English Română

Table of Contents

Important! This documentation is currently in beta and is a work in progress. Content may change as features are finalized.

1. Introduction

Welcome to the Container Code Recognigtion (CCR) v2.5 user manual. This software application is designed to automatically recognize and read container codes and license plates from video streams captured by cameras. The application processes video in real-time, identifies vehicles, extracts license plate numbers and container codes, and can trigger various actions based on the recognition results.

The CCR system is widely used in:

Key Features

The CCR application offers a comprehensive set of features designed for reliable and efficient automatic recognition:

2. Starting the Application

To launch the CCR application:

  1. Control Panel starts automatically when the server is on.
  2. Add a new application for CCR- see Control Panel user manual
  3. Do the next settings

Starting without GUI (Headless Mode):

./metrici-ccr -nogui

Use the headless mode when running on servers without a display or when you need the application to run in the background without a visible window.

First Time Setup

When you first run the CCR application, you will need to configure basic settings:

  1. Click the "Settings" button on the main toolbar
  2. The Settings window will open with multiple configuration categories
  3. Configure your camera connection settings (see Camera Configuration section)
  4. Adjust recognition settings as needed for your environment
  5. Click "Save" to apply your settings
  6. The application will automatically attempt to connect to your camera
Important: Make sure your camera is powered on and accessible on the network before attempting to configure the CCR application. If you cannot establish a connection, check your network settings and camera configuration.

3. Main Interface Overview

The CCR application main window is divided into several key areas that provide visual feedback and control over the recognition process.

Main Window Components

Video Display Area

The main video display shows the live video feed from your connected camera. This area:

Connection Status Indicators

Located near the video display, these indicators show the current connection status:

Status Meaning
● Connected Camera is connected and video is streaming normally
● Connecting Attempting to establish connection to the camera
● Disconnected Camera connection has been lost or cannot be established
Application main window
Fig. Application main window

Frame Rate Display

Shows the current processing speed in frames per second (FPS). This helps you monitor system performance.

Last Detected CC (Container Code)

This area displays the most recently recognized container code:

Codes History Table

A scrolling table showing all recently detected codes with:

Control Buttons

The main toolbar contains these essential buttons:

Button Function
Settings Opens the configuration window to adjust all application settings
About Displays version information and license details
Quit Closes the application

GPS Status Display

If GPS integration is enabled, this area shows:

4. Camera and Video Stream Configuration - Input Stream

Configuring your camera correctly is essential for reliable license plate recognition. The CCR application supports a wide variety of camera types and video streaming protocols.

Supported Camera Types

The CCR application supports numerous camera manufacturers and video formats:

RTSP Streaming Cameras with H.264 and H.265 protocols

Real-Time Streaming Protocol (RTSP) is the industry standard for IP cameras:

HTTP Streaming Cameras

Cameras that stream video over HTTP:

Specialized Camera Types

Configuring Camera Settings

Step-by-Step Camera Configuration

  1. Click the "Settings" button on the main toolbar
  2. Expand the "Input Stream" section in the settings tree
  3. Configure the following parameters:

Stream Type Selection

From the dropdown menu, select the type of video stream:

Stream Type: [Generic RTSP H.264 ▼]

Choose the option that matches your camera manufacturer and streaming protocol.

Camera Address

Enter the network address of your camera. The format depends on the stream type:

Stream Type Example Address Format
RTSP rtsp://192.168.1.100:554/stream1
HTTP MJPEG 192.168.1.100/cgi-bin/mjpeg?stream=0
HTTP JPEG 192.168.1.100/snapshot
Tip: Most camera manufacturers provide the exact RTSP or HTTP URL in their documentation. Consult your camera manual or manufacturer's website for the correct stream URL.

TCP Port

For RTSP streams, specify the TCP port number:

TCP Port: [554]

Authentication Credentials

If your camera requires login credentials:

Username: [admin]
Password: [••••••••]
Security Note: Use strong passwords for your camera accounts. Avoid using default passwords as this is a significant security risk.

FPS Limit

Set a maximum frame rate to limit processing load:

Example FPS Limit: [6]
Input stream menu
Fig. Input stream menu

Video Resolution set in Camera's menu

Configure the video resolution for optimal recognition:

Resolution Best For Bandwidth
1280 × 720 (720p) General purpose, balanced quality Medium
1920 × 1080 (1080p) High detail, distant codes High
1024 × 768 Lower bandwidth, faster processing Low
800 × 600 Very limited bandwidth
Recommendation: For license plate recognition and container codes, higher resolution is generally better as it allows reading from greater distances. However, ensure your network and computer can handle the increased bandwidth and processing requirements.

RTSP Stream Settings

For RTSP streams, additional options are available:

Testing Camera Connection

After configuring camera settings, test the connection:

  1. Click "Save" in the Settings window
  2. Return to the main window
  3. Watch the connection status indicator
  4. If the status changes to Connected, the camera is working
  5. If it shows Disconnected, check your settings

Troubleshooting Camera Connection

Problem Possible Cause Solution
Cannot connect Wrong IP address Verify camera IP address is correct and camera is on network
Cannot connect Wrong stream URL Check camera documentation for correct RTSP/HTTP URL
Cannot connect Authentication failed Verify username and password are correct
Video freezes Network congestion Reduce resolution or FPS limit, or upgrade network
Poor recognition Low video quality Increase resolution, improve lighting, adjust camera focus

5. Companion Stream (Secondary Camera)

The CCR application supports a second video stream called the Companion Stream. This secondary camera can provide additional views or capture different angles of the same vehicle/ code for improved recognition reliability.

Configuring Companion Stream

  1. Click "Settings" on the main toolbar
  2. Expand the "Companion Stream" section
  3. Configure stream type, address, and credentials (same as main camera)
  4. Click "Save"

Companion Stream Settings

The companion stream configuration options are identical to the main input stream:

Display Options

The companion stream video can be displayed:

6. CCR Recognition Settings

Fine-tune the container code recognition engine to achieve optimal results for your specific environment and requirements.

Plate Detection Parameters

CCR Minimum Length

Set the minimum number of pixels expected for the codes:

Maximum CCR Length

Set the maximum number of characters expected:

Single CC mode

Single Plate Mode: [✓] Enabled / [ ] Disabled

When enabled, the system assumes only one container code is in the detection area at a time:

Same Code Delay

Set the minimum time between recognizing the same code :

This prevents duplicate recognition of the same vehicle.

Vehicle Direction Settings

Direction Indicator

Configure how the system determines vehicle direction:

Code Direction: [0-360 degrees]

Set the expected direction of vehicle movement. Arrange the arrow on the dial accordingly

Event Type

Define what happens when a vehicle/ code is detected:

Event Type: [Coming ▼]

This setting affects how recognition events are reported and logged.

Recognition Engine Working Mode

Continuous Mode

Working Mode: [Continuous ▼]

In continuous mode, the system constantly analyzes every video frame:

Best for: High-traffic areas where vehicles are always present.

Trigger Mode

In trigger mode, recognition only occurs when triggered by an external signal:

Best for: Controlled environments with external vehicle sensors.

Note: Trigger mode requires configuration of external trigger settings (see External Triggers section).

7. Detection Window Configuration

The detection window defines the specific area of the video frame where the system will look for codes. Properly configuring this area improves accuracy and reduces processingp>

Why Use a Detection Window

Setting a detection window provides several benefits:

Enabling the Detection Window

  1. Click "Settings" on the main toolbar
  2. Expand the "Detection Window" section
  3. Check the "Detection Window Active" option
  4. Click "Save"

Setting Detection Window Position

Origin Coordinates (Top-Left Corner)

Origin X: [100] pixels
Origin Y: [200] pixels

These values define where the top-left corner of the detection area starts:

Window Size

Resolution X: [640] pixels
Resolution Y: [480] pixels

These values define the width and height of the detection area.

Visual Adjustment Method

For easier configuration, you can visually adjust the detection window:

  1. In the Settings window, click on the video display area
  2. Click and drag to draw a rectangle where you want the detection area
  3. The coordinates will automatically update in the settings fields
  4. Release the mouse button to set the final position
Tip: The detection window should be positioned where codes are clearly visible. Avoid areas where codes may be partially obscured or at extreme angles.

Best Practices for Detection Window

Optimal Window Position

Warning: If the detection window is too small, you may miss vehicles/codes. If it's too large, you may load the processing from areas you don't want to monitor.

Testing Detection Window

After setting up the detection window:

  1. Save your settings
  2. Watch the main video display
  3. A green rectangle shows the detection area
  4. Verify the code is detected when inside the green rectangle
  5. Adjust the window if necessary

8. Live View Feature

The Live View feature allows you to broadcast the video feed with recognition overlays to a remote web server or monitoring system.

Purpose of Live View

Live View is useful for:

Enabling Live View

  1. Click "Settings"
  2. Expand the "Live View" section
  3. Check "Live View Active"
  4. Enter the destination URL
  5. Click "Save"

Live View URL Configuration

Live View URL: [http://your-server.com/io/ccr/live_view.php]

The URL must point to a server-side script that can receive and process the video stream.

9. Reporting and Check Action

The CCR application can automatically report recognition events to external servers for logging, processing, and integration with other systems.

Reporting URL

Reporting URL: [http://your-server.com/io/ccr/reporting_event.php]

This is the main endpoint where recognition events are sent. Each time a code is recognized, the application sends data including:

Check Action URL

Check Action URL: [http://your-server.com/io/ccr/check_action_event.php]

This URL allows the system to query external databases or decision systems before taking action. Flow:

  1. Code is recognized
  2. System sends plate data to Check Action URL
  3. Remote server processes the request
  4. Server returns instructions (allow, deny etc )
  5. CCR takes action based on response

Authentication

Secure your reporting and check action endpoints:

Check Action Auth Key: [your-secret-key]
Check Action ID: [1]

The auth key is the communication intermediary between engine and database. The check action ID identifies which installation is. These are to be retrieved from Metrici Interface when creating location and camera

Data Format

Data is typically sent as HTTP POST requests with JSON or form-encoded data:

POST /reporting.php
Content-Type: application/json

{
    "plate": "ABC123",
    "timestamp": "2024-01-15 14:30:25",
    "confidence": 95,
    "direction": "coming",
    "gate_id": 1,
    
}
Reporting URL and Check Action
Fig. Reporting URL and Check Action

Trigger UDP Port

Trigger UDP Port: [3500]

For simple integrations, the CCR can send UDP packets when plates are detected. This is useful for triggering external hardware or simple scripts.

Note: UDP trigger requires a receiving application listening on the specified port. This is a lightweight alternative to full HTTP reporting.

10. Barrier and Traffic Light Control

The CCR application can integrate with barrier (gate) systems to automatically open barriers for authorized vehicles/ codes.

Barrier Control Overview

When combined with the Check Action feature, the system can:

Configuration

Open Barrier URL

Open Barrier URL: [http://barrier-controller/open]

This URL is called when the system needs to open the barrier (typically for authorized vehicles).

Close Barrier URL

Close Barrier URL: [http://barrier-controller/close]

This URL is called to close the barrier after a vehicle has passed.

Open/Close Delay

Open-Close Delay: [5] seconds

Time between opening the barrier and automatically closing it. Adjust based on your requirements:

Secondary Traffic Light

For installations with two barriers (entry and exit) or other device:

Traffic Light ON URL: [http://barrier-controller2/open]
Traffic Light OFF URL: [http://barrier-controller2/close]
Open-Close Delay 2: [5] seconds

Barrier Control Flow

  1. Vehicle approaches and is recognized
  2. Code is sent to Check Action URL
  3. Server responds with action (e.g., "ALLOW")
  4. If allowed: Open Barrier URL is called
  5. Barrier opens
  6. System waits for Open-Close delay
  7. Close Barrier URL is called
  8. Barrier closes

11. External Triggers

External triggers allow the CCR application to be activated by hardware sensors or external systems rather than continuously processing video.

Types of External Triggers

Hardware Triggers

Virtual Triggers

Trigger Configuration

Trigger Type

External Trigger Type: [Barionet 50 I/O 1 ▼]

Select the type of trigger device you are using.

Trigger Sensitivity

Trigger Seconds: [2] seconds

This setting defines how long the detection is done after the trigger is received.

Working mode and external trigger
Fig. Working Mode and External Trigger

12. GPS Integration

The CCR application can receive GPS coordinates from an external GPS device and include location data with each recognition event.

Purpose of GPS Integration

GPS Status Indicators

The main interface shows GPS connection status:

Status Icon Meaning
○ Not Connected No GPS device connected or detected
● Error GPS device connected but not functioning
● Low Signal GPS signal weak, coordinates may be inaccurate
● Good Signal GPS working properly, coordinates accurate

GPS Data Display

When GPS is connected and working, the interface shows:

Connecting a GPS Device

  1. Connect GPS device to computer via USB or serial port
  2. Install necessary drivers for the GPS device
  3. The application should automatically detect the GPS device
  4. Wait for GPS signal acquisition (may take a few minutes)
  5. Verify status shows Good Signal

GPS Data in Reports

GPS coordinates are included in reports sent to:

{
    "plate": "ABC123",
    "timestamp": "2024-01-15 14:30:25",
    "gps_latitude": 40.7128,
    "gps_longitude": -74.0060
}

13. Weight Scale Integration

The CCR application can read weight data from connected weight scales and combine it with license plate recognition for comprehensive vehicle logging.

Why Integrate Weight Scales

Configuration

Weight Scale Type

Weight Scale Type: [Barix Cantar I30 ▼]

Weight Scale Address

Weight Scale Address: [192.168.1.200]

Network IP address of the weight scale device.

TCP Port

TCP Port: [80]

Communication port for the weight scale (typically 80 or 3050).

Weight Data Display

When connected, weight data is displayed:

Weight Data in Reports

Weight data is included with recognition events:

{
    "plate": "ABC123",
    "timestamp": "2024-01-15 14:30:25",
    "weight": 12500.5,
    "weight_unit": "kg"
}

14. Radar/Speed Detection

The CCR application can integrate with Metrici Observer Radar device to measure vehicle speed and combine it with license plate recognition or container codes.

Purpose of Radar Integration

Radar Data in Reports

Speed data is included with recognition events:

{
    "plate": "ABC123",
    "timestamp": "2024-01-15 14:30:25",
    "speed": 45.5,
    "speed_unit": "km/h"
}

15. Recognition Engine Mode

The CCR application offers two modes of operation for the license plate recognition engine.

Continuous Mode (Default)

In continuous mode, the recognition engine analyzes every video frame all the time:

Triggered Mode

In triggered mode, the recognition engine only activates when triggered by an external signal:

Changing the Mode

  1. Click "Settings"
  2. Navigate to "LPR Engine Working Mode"
  3. Select mode from dropdown:
Working Mode: [Continuous ▼]
Working Mode: [Started by Trigger ▼]

Performance Comparison

Aspect Continuous Mode Triggered Mode
CPU Usage High (always processing) Low (only when triggered)
Detection Rate Very High High (requires working trigger)
Latency Minimal Trigger delay + processing time
Hardware Required Camera only Camera + trigger device
Best For Busy intersections, tolls Controlled access points

16. Command Line Options

The CCR application can be started with various command line options for advanced configuration and deployment scenarios.

Basic Command Line Syntax

ccr [options]

Available Options

Headless Mode

-nogui

Runs the application without the graphical interface. Use this for server deployments or headless systems.

ccr -nogui

GPU Configuration

-disable_gpu

Disables GPU acceleration, forcing the application to use CPU processing only. Use when GPU is unavailable or causing issues.

ccr -disable_gpu
-gpu [id]

Specifies which GPU to use for acceleration when multiple GPUs are available.

ccr -gpu 0        // Use first GPU
ccr -gpu 1        // Use second GPU

Processing Threads

-detection_threads [number]

Sets the number of threads used for recognition processing. Default is 1, maximum is 8.

ccr -detection_threads 4    // Use 4 processing threads

Logging Configuration

-log_level [0-3]

Sets the verbosity of log output:

ccr -log_level 1    // Low logging
ccr -log_level 3    // Verbose debugging

Application Instance

-app_id [0-15]

Identifies which application instance this is when running multiple instances on one system. Each instance uses a separate configuration file.

ccr -app_id 0        // First instance (uses 0.ini)
ccr -app_id 1        // Second instance (uses 1.ini)

Application Name

-app_name [name]

Sets a custom name for this application instance, displayed in the title bar and logs.

ccr -app_name "Entry Gate North"

Output Format

-output_type [format]

Specifies the output format for external integrations.

ccr -output_type default    // Standard format
ccr -output_type vidux         // Vidux format

Version Information

-v

Displays version information and exits without starting the application.

ccr -v

Debug Mode

-debug

Enables debug mode with additional diagnostic information.

ccr -debug

Complete Example

ccr -nogui -detection_threads 4 -log_level 2 -app_id 0 -app_name "Main Entrance"

This command runs the application:

17. Troubleshooting

This section addresses common problems and their solutions.

Camera Connection Issues

Problem: Cannot Connect to Camera

Possible Cause Solution
Wrong IP address Verify camera IP address is correct. Ping the camera to confirm network access.
Camera not powered on Check camera power indicator lights. Verify power supply.
Network cable disconnected Check physical network connections.
Firewall blocking connection Configure firewall to allow traffic on camera ports (80, 554, etc.)
Wrong stream URL Consult camera documentation for correct RTSP/HTTP URL format.
Authentication failed Verify username and password. Check for special characters.

Problem: Video Freezes or Lags

Possible Cause Solution
Network congestion Reduce video resolution or FPS limit. Upgrade network infrastructure.
Low bandwidth Switch to lower resolution. Consider using H.265 compression if available.
Insufficient computer resources Reduce processing load. Close other applications. Upgrade hardware.
Camera overheating Check camera temperature. Ensure proper ventilation.

Recognition Issues

Problem: Poor Recognition Accuracy

Possible Cause Solution
Low video quality Increase resolution. Clean camera lens. Improve lighting.
Blurry image Adjust camera focus. Check for dirt or condensation on lens.
Poor lighting Add additional illumination. Install infrared lights for night operation.
Camera angle too extreme Reposition camera to get more frontal view of plates.
Vehicle moving too fast Use higher FPS. Adjust camera position for shorter capture zone.
Wrong plate length settings Adjust min/max plate length to match expected plates.
Wrong country selected Select correct country for license plate format optimization.

Problem: Missing Detections

Possible Cause Solution
Detection window not covering vehicle path Adjust detection window position and size.
Trigger not working (triggered mode) Test trigger device. Check connections and settings.
External trigger delay too short Increase trigger seconds setting.
Processing too slow Reduce number of detection threads. Reduce FPS.
Same plate delay too long Reduce same plate delay if vehicles pass quickly.

Problem: False Detections

Possible Cause Solution
Detection window too large Reduce detection window size to exclude areas with false positives.
Single plate mode disabled Enable single plate mode if only one vehicle present at a time.
Text on other objects Reposition camera to exclude signs, buildings, etc.

Performance Issues

Problem: Low Frame Rate

Possible Cause Solution
Insufficient CPU Reduce detection threads. Upgrade CPU.
Insufficient GPU memory Reduce video resolution. Disable GPU if not enough memory.
High network latency Use wired network instead of wireless.
Camera sending too much data Reduce camera resolution or FPS.

Integration Issues

Problem: Reports Not Being Sent

Possible Cause Solution
Wrong URL Verify reporting URL is correct and server is running.
Firewall blocking outbound connections Configure firewall to allow outbound HTTP/HTTPS.
Server not responding Test server separately. Check server logs.
Auth key mismatch Verify auth key matches server configuration.

Problem: Barrier Not Opening

Possible Cause Solution
Barrier control URL wrong Verify barrier URLs are correct and accessible.
Check action blocking Server may be returning deny response. Check server response.
Network issue Test barrier controller network connection.

GPS Issues

Problem: GPS Not Connecting

Possible Cause Solution
GPS device not connected Check USB/serial connection.
Missing drivers Install GPS device drivers.
Wrong COM port Check which COM port GPS is assigned to.

Problem: GPS Signal Weak

Possible Cause Solution
Poor satellite visibility Move to open area. Check for obstructions (buildings, trees).
Metal roof blocking signal Mount GPS antenna externally.
GPS antenna damaged Inspect antenna and cable. Replace if damaged.

Logs and Diagnostics

When troubleshooting, enable detailed logging:

ccr -log_level 3 -debug

Log files contain valuable diagnostic information including:

Tip: When contacting technical support, provide log files with -log_level 3 for faster troubleshooting.

18. Technical Support

If you need additional help, please contact technical support.

Before Contacting Support

To help us assist you quickly, please gather the following information:

t may be covered under your license agreement. Please have your license information ready when contacting support.

Appendix B: Settings Quick Reference

Setting Category Setting Typical Value
Input Stream Stream Type Generic RTSP H.264
Address rtsp://camera-ip:554/stream
TCP Port 554
Username admin
FPS Limit 30
Resolution 1280 × 720
Detection Window Active Checked
Origin X/Y Depends on setup
Resolution X/Y Depends on setup
Plate Settings Min Length 150
Max Length 800
Same Plate Delay 30 seconds
Engine Mode Working Mode Continuous
Trigger Type None (if continuous)
Reporting Reporting URL http://server/reporting.php
Check Action URL http://server/check-action.php
Auth Key Your secret key
Check Action ID 1
Barrier Open Barrier URL http://barrier/open
Close Barrier URL http://barrier/close
Open-Close Delay 5 seconds

Appendix C: Stream URL Formats

Common RTSP URLs

Manufacturer Example RTSP URL
Generic rtsp://192.168.1.100:554/stream1
Axis rtsp://192.168.1.100:554/axis-media/media.amp
Hikvision rtsp://192.168.1.100:554/ISAPI/streaming/channels/101
Bosch rtsp://192.168.1.100:554/rtsp_tunnel
Samsung rtsp://192.168.1.100:554/profile1/media.smp
Sony rtsp://192.168.1.100:554/live
Uniview rtsp://192.168.1.100:554/unicast/c1/live
Mobotix rtsp://192.168.1.100:554/stream

Common HTTP MJPEG URLs

Manufacturer Example HTTP URL
Generic http://192.168.1.100/video
Axis http://192.168.1.100/axis-cgi/mjpg/video.cgi
Hikvision http://192.168.1.100/ISAPI/Streaming/jpeg/channels/1
Dahua http://192.168.1.100/cgi-bin/mjpg?channel=0
Mobotix http://192.168.1.100/cgi-bin/faststream.jpg?camera=left
Vivotek http://192.168.1.100/video.mjpg
Note: These URLs are examples. Consult your camera's documentation for the exact URL format. Some cameras require authentication in the URL itself: http://username:password@192.168.1.100/video

Appendix A: Configuration File (INI File)

The CCR application stores all its settings in a configuration file called an INI file. This file contains every configurable option for the application and is automatically created when you first save your settings.

INI File Location and Naming

The configuration file is located in the same directory as the CCR application executable. The file naming convention depends on the application instance:

{instance_id}.ini
Instance ID Configuration File
0 (default) 0.ini
1 1.ini
2 2.ini
etc. N.ini
Note: You can run multiple instances of the CCR application on the same computer by using the -app_id command line option. Each instance uses its own separate INI file.

INI File Structure

The INI file is a text-based configuration format organized into sections and key-value pairs. Here is an example of what an INI file looks like:

[General]
; This is a comment
setting_name=value

[Input Stream]
input_stream_type=1
input_stream_address=rtsp://192.168.1.100:554/stream1
input_stream_tcp_port=554
input_stream_username=admin
input_stream_password=secret123
input_stream_fps_limit=30
input_stream_resx=1280
input_stream_resy=720

[Companion Stream]
companion_stream_type=0
companion_stream_address=
companion_stream_tcp_port=80

[Detection Window]
input_stream_window_active=false
input_stream_window_origx=100
input_stream_window_origy=100
input_stream_window_resx=100
input_stream_window_resy=100

[Live View]
live_view_active=true
live_view_url=http://localhost/io/ccr/live_view.php

[Reporting]
reporting_url=http://localhost/io/ccr/reporting_event.php
check_action_url=http://localhost/io/ccr/check_action_event.php
check_action_send_trigger_address=
check_action_send_trigger_udp_port=3500
reporting_check_action_id=0
reporting_check_action_authkey=

[Plates]
plate_min_length=5
plate_max_length=10
same_plate_delay=30
single_plate_mode=false

[Vehicle Settings]
cars_direction=0
cars_event_type=1

[Barrier Control]
open_barrier_url=
close_barrier_url=
open_close_barrier_delay=10
open_barrier2_url=
close_barrier2_url=
open_close_barrier2_delay=10

[External Trigger]
external_trigger_type=0
external_trigger_seconds=1

[Engine Settings]
lpr_engine_working_mode=0

[Hardware Integration]
weight_scale_type=0
weight_scale_address=
weight_scale_tcp_port=10001
radar_type=0
radar_address=
radar_tcp_port=10001

[Advanced Settings]
rtsp_stream_latency=100
rtsp_stream_protocols=tcp

Complete Settings Reference

The following table lists all settings that can be stored in the INI file, organized by category:

Input Stream Settings

Setting Name Default Value Description
input_stream_type 1 Type of video stream (0-35, see stream type table)
input_stream_address (empty) Camera URL or IP address
input_stream_tcp_port 80 TCP port for RTSP/HTTP connection
input_stream_use_ssl 0 Enable SSL/TLS for connection (0=no, 1=yes)
input_stream_username (empty) Username for camera authentication
input_stream_password (empty) Password for camera authentication
input_stream_fps_limit 30 Maximum frames per second to process (0=unlimited)
input_stream_resx 640 Video stream width in pixels
input_stream_resy 480 Video stream height in pixels

Companion Stream Settings

Setting Name Default Value Description
companion_stream_type 0 Type of secondary video stream (0=disabled)
companion_stream_address (empty) Secondary camera URL or IP address
companion_stream_tcp_port 80 TCP port for secondary camera connection
companion_stream_use_ssl 0 Enable SSL/TLS for secondary camera
companion_stream_username (empty) Username for secondary camera
companion_stream_password (empty) Password for secondary camera
companion_stream_resx 640 Secondary video width in pixels
companion_stream_resy 480 Secondary video height in pixels

Detection Window Settings

Setting Name Default Value Description
input_stream_window_active 0 (false) Enable or disable detection window (0=disabled, 1=enabled)
input_stream_window_origx 100 X coordinate of detection window top-left corner
input_stream_window_origy 100 Y coordinate of detection window top-left corner
input_stream_window_resx 100 Width of detection window in pixels (must be multiple of 4)
input_stream_window_resy 100 Height of detection window in pixels (must be multiple of 4)

Live View Settings

Setting Name Default Value Description
live_view_active 1 (true) Enable or disable live view broadcasting
live_view_url http://localhost/io/ccr/live_view.php URL endpoint for live view stream

Reporting Settings

Setting Name Default Value Description
reporting_url http://localhost/io/ccr/reporting_event.php URL endpoint for sending recognition events
check_action_url http://localhost/io/ccr/check_action_event.php URL endpoint for checking actions/authorization
reporting_check_action_id 0 Installation/lane identifier for reporting
reporting_check_action_authkey (empty) Authentication key for reporting requests
check_action_send_trigger_address (empty) IP address for UDP trigger sending
check_action_send_trigger_udp_port 3500 UDP port for sending triggers (0=disabled)

Plate Recognition Settings

Setting Name Default Value Description
plate_min_length 100 Minimum number of characters for a valid plate
plate_max_length 1000 Maximum number of characters for a valid plate
same_plate_delay 3 Seconds before recognizing the same plate again
single_plate_mode 0 (false) Enable if only one vehicle at a time (reduces false positives)

Vehicle Settings

Setting Name Default Value Description
cars_direction 0 Expected vehicle travel direction (0-359 degrees)
cars_event_type 1 (coming) Event type: 1=coming, 2=leaving

Barrier Control Settings

Setting Name Default Value Description
open_barrier_url (empty) URL to call when opening primary barrier
close_barrier_url (empty) URL to call when closing primary barrier
open_close_barrier_delay 10 Seconds between opening and auto-closing primary barrier
open_barrier2_url (empty) URL to call when opening secondary barrier
close_barrier2_url (empty) URL to call when closing secondary barrier
open_close_barrier2_delay 10 Seconds between opening and auto-closing secondary barrier

External Trigger Settings

Setting Name Default Value Description
external_trigger_type 0 (none) Type of external trigger device (0-5)
external_trigger_seconds 1 Trigger debounce time in seconds (filters noise)

Engine Settings

Setting Name Default Value Description
lpr_engine_working_mode 0 (continuous) Recognition mode: 0=continuous, 1=triggered

Hardware Integration Settings

Setting Name Default Value Description
weight_scale_type 0 (none) Type of weight scale (0-1)
weight_scale_address (empty) IP address of weight scale device
weight_scale_tcp_port 10001 TCP port for weight scale communication
radar_type 0 (none) Type of radar device (0-1)
radar_address (empty) IP address of radar device
radar_tcp_port 10001 TCP port for radar communication

Advanced RTSP Settings

Setting Name Default Value Description
rtsp_stream_latency 100 RTSP stream latency buffer in milliseconds
rtsp_stream_protocols tcp RTSP transport protocol (tcp, udp, http)

Stream Type Values Reference

The following table shows the numeric values for stream types:

Value Stream Type
0 Not configured
1 HTTP ACTi MJPEG
2 RTSP ACTi H.264
3 HTTP Android MJPEG
4 HTTP Arecont MJPEG
5 HTTP Axis MJPEG
6 RTSP Axis MJPEG
7 RTSP Axis H.264
8 RTSP Bosch MJPEG
9 RTSP Bosch H.264
10 HTTP Dahua MJPEG
11 HTTP Diviotec MJPEG
12 RTSP Diviotec H.264
13 HTTP Generic MJPEG
14 RTSP Generic MJPEG
15 RTSP Generic H.264
16 RTSP Generic H.265
17 HTTP Generic JPEG Picture
18 HTTP Hikvision MJPEG
19 RTSP Hikvision H.264
20 HTTP Mobotix MJPEG
21 HTTP Mobotix MxPEG
22 RTSP Mobotix H.264
23 RTSP Mobotix MOVE H.264
24 HTTP Novus MJPEG
25 RTSP Novus H.264
26 RTSP Pelco MJPEG
27 Roseek Raw
28 HTTP Samsung MJPEG
29 RTSP Samsung H.264
30 HTTP Sony MJPEG
31 RTSP Sony H.264
32 RTSP Uniview H.264
33 Video File
34 HTTP Vivotek MJPEG
35 HTTP VLC MJPEG

Trigger Type Values Reference

Value Trigger Type
0 None
1 Barionet 50 I/O 1
2 Barionet 50 I/O 2
3 Barionet 50 I/O 3
4 Barionet 50 I/O 4
5 Metrici Virtual

Weight Scale Type Values

Value Weight Scale Type
0 None
1 Barix Cantar I30

Radar Type Values

Value Radar Type
0 None
1 Barix Kestrel Pico Basic
Warning: Be careful when editing the INI file manually. Incorrect values may cause the application to malfunction or fail to start. Always make a backup before editing.

Backing Up Configuration

It's good practice to backup your configuration file:

Resetting to Defaults

To reset all settings to default values:

  1. Close the CCR application
  2. Delete or rename the INI file (e.g., rename 0.ini to 0.ini.backup)
  3. Restart the CCR application
  4. A new INI file will be created with default settings

Multiple Instances

When running multiple instances of the CCR application, each instance has its own INI file:

ccr -app_id 0    ; Uses 0.ini
ccr -app_id 1    ; Uses 1.ini
ccr -app_id 2    ; Uses 2.ini

This allows you to have different configurations for different cameras or locations on the same computer.

Appendix D: Glossary

Term Definition
ANPR Automatic Number Plate Recognition - Technology that reads vehicle license plates
API Application Programming Interface - Methods for software to communicate
FPS Frames Per Second - Video refresh rate measurement
GPU Graphics Processing Unit - Hardware for accelerated computing
H.264 Video compression standard used by most modern IP cameras
H.265 Newer video compression standard (HEVC) with better compression
HTTP Hypertext Transfer Protocol - Web communication protocol
IP Camera Network Camera - Digital camera that sends video over computer network
LPR License Plate Recognition - Same as ANPR
MJPEG Motion JPEG - Video format where each frame is a JPEG image
OpenCL Open Computing Language - Framework for GPU acceleration
RTSP Real-Time Streaming Protocol - Protocol for controlling video streams
TCP/IP Transmission Control Protocol/Internet Protocol - Network communication protocols
UDP User Datagram Protocol - Fast network protocol without delivery guarantee