# Metrici Documentation — Full Content > Official technical documentation for Metrici products: AI-powered video analytics software, computer vision engines, hardware devices, and integrations. Maintained by Metrici AI Solutions SRL, a Bucharest-based company specializing in license plate recognition (LPR), parking management, object detection, and custom computer vision solutions. This file contains the complete content of all Metrici documentation concatenated into a single markdown file, intended for AI assistants and large language models that benefit from having full context in one fetch. The lightweight navigation index version is available at https://docs.metrici.ro/llms.txt. For sales inquiries visit https://www.metrici.ro. For technical support contact support@metrici.ro. --- # Metrici LPR V7.1 User Manual for End Users and System Administrators Last updated: May 4, 2026 > **Welcome to Metrici LPR!** This comprehensive guide will help you understand and configure your License Plate Recognition system. Whether you're setting up a new installation or fine-tuning an existing one, this manual provides clear, step-by-step instructions for every feature. ## Table of Contents 1. [Introduction](#introduction) 2. [Main Application Interface Overview](#main-interface) 3. [Camera and Stream Configuration - LPR Input Stream](#camera-setup) 4. [Detection Window Configuration](#detection-window) 5. [Plate Recognition and Detection Settings](#recognition-settings) 6. [Country and Plate Selection](#country-selection) 7. [Trigger Modes and Detection Timing](#trigger-modes) 8. [Vehicle Analysis Features](#vehicle-analysis) 9. [External System Integration - Reporting, Check Action and Trigger Out](#external-systems) 10. [GPS Configuration](#gps) 11. [Weight Scale and Radar Integration](#weight-radar) 12. [Barrier and Traffic Light Control](#barriers-lights) 13. [Troubleshooting](#troubleshooting) 14. [Configuration File (INI)](#configuration-file) 15. [Appendix: Settings Quick Reference](#appendix) ## 1. Introduction ### What is Metrici LPR? Metrici LPR v7.1 is an advanced AI-based License Plate Recognition system designed to automatically detect, recognize, and record vehicle license plates from video streams. The system can identify plates from over 57 countries worldwide and provides extensive integration capabilities with external systems like barriers, gates, traffic lights, weight scales and speed radars. ### Key Features - **Multi-Camera Support:** Each detection engine connects up to 2 video streams simultaneously (main and companion camera) - **Wide Camera Compatibility:** Supports 35+ camera brands and protocols including MJPEG, RTSP H264, and RTSP H265 - **Global Plate Recognition:** Recognizes license plates from 57 different countries - **Vehicle Analysis:** Identifies vehicle type, manufacturer, and color - **Smart Detection:** Configurable detection zones and virtual loops to focus on specific areas - **Multiple Trigger Modes:** Works with physical sensors, virtual detection, or continuous scanning - **External Integration:** Controls barriers, traffic lights, and sends data to external servers - **GPS Support:** Records location and other metadata with each plate detection ### Typical Applications - Parking lot access control - Toll road systems - Truck weighing stations - Traffic monitoring and law enforcement - Border control checkpoints - Security and surveillance systems ### First Settings - Add Cameras Metrici Control Panel starts automatically when the server is on. You will add here the cameras and do settings for your location. You can have active as many cameras/applications as licenses acquired. **Fig.A Metrici Control Panel** To add a camera click on **Add (1)** button. A popup window will show with the following fields: - **ID:** Number generated by Metrici. Starting with zero. - **Name:** Fill in a name that you can easily recognize and identify the camera. - **Application Type:** A list of Metrici detection engines - LPR, Area Counter, Line Counter, etc. Choose for what application this camera will be used for (in this case LPR). - **CPU Cores:** Number of processing cores for each camera. The more processing power for each camera, the better the detection, and the application will operate more frames in real time. Do not allocate to cameras more processing power than the actual physical cores. - **Execution Type:** Choose "Foreground with watchdog" - this allows setting the camera for the next steps. After done settings, Metrici recommends switching to "Background with watchdog". - **Use GPU:** Metrici recommends using a GPU to lower the load on processor and better performance. From dropdown menu, choose the one installed on the server. - **Log Level:** Metrici recommends setting it to Medium. - **Output type:** Set it to Normal. - **External Module:** For integration with Skidata or Bebarmatic access control systems. Applicable only in LPR installations. Otherwise set it to None. **Fig.B Add Camera Settings** ## 2. Main Application Interface Overview When all above settings were done, a window appears that is designed to give you immediate visibility into the recognition process for each detection engine/camera while providing easy access to all configuration options. Understanding the layout will help you monitor the system effectively and quickly identify any issues. **Fig.1 Main Interface of Application Settings** ### Video Display Area The main window displays your video streams in a tabbed interface. You can switch between the **LPR input stream view** (your main camera) and the **Companion stream view** (optional secondary camera). Each video display shows: - **Connection Status:** A colored indicator showing if the camera is connected (green), disconnected (red), or connecting (orange). - **Stream Type:** The protocol being used (e.g., RTSP, MJPEG, HTTP). - **Address:** The IP address or hostname of the camera. - **FPS:** Current frame rate in frames per second. - **Resolution:** The video resolution (e.g., 800 x 600). ### Plates Panel The right side of the interface shows detected plates information: **Fig.2 Plates view** - **Last Detected Plate:** Shows the most recently recognized plate number, vehicle type, maker, and color. - **Detected Plates List:** A table showing all recently detected plates with timestamps, confidence levels, and country codes. - Also info about what type of vehicle, color, brand, plate size, last seen and probability. ### Control Buttons - **Settings:** Opens the configuration window where you can adjust all system parameters. This is the first one to use when added a camera. - **About:** Displays version information and system details. - **Maximize/Minimize:** Toggles between full-screen and compact view. - **Quit:** Closes the application. ## 3. Camera and Stream Configuration Proper camera configuration is essential for accurate plate recognition. The system supports two video streams: a main LPR input stream and an optional companion stream. The companion stream can provide additional context, such as a wider view of the detection area. ### Stream Type Options Metrici LPR supports multiple camera protocols and formats. Choose the option that matches your camera type: | Protocol | Description | Best For | |----------|-------------|----------| | **MJPEG over HTTP** | Motion JPEG stream via standard web protocol | Most IP cameras, easy setup | | **RTSP H264/H265** | Real-time streaming protocol with compressed video | High-resolution cameras, low bandwidth | | **Video File** | Process pre-recorded video files | Testing and batch processing | ### Supported Camera Brands The system includes optimized drivers for many popular camera brands: - **ACTi:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Android:** Supported codecs: MJPEG; standard protocols (HTTP) - **Arecont Vision:** Supported codecs: MJPEG; standard protocols (HTTP) - **Axis:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Bosch:** Supported codecs: MJPEG, H264; standard protocols (RTSP) - **Dahua:** Supported codecs: MJPEG; standard protocols (HTTP) - **Divotec:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Hikvision:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Mobotix:** Supported codecs: MJPEG, MxPEG; standard protocols (HTTP) - **Novus:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Pelco:** Supported codecs: MJPEG; standard protocols (RTSP) - **Roseek:** RAW - **Samsung:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **VLC:** Supported codecs: MJPEG; standard protocols (HTTP) - **Vivotek:** Supported codecs: MJPEG; standard protocols (HTTP) - **Generic:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). When your camera is not on the list, choose this protocol. ### Configuring Camera Connection - LPR Input Stream **Fig.3 LPR input stream** #### Step-by-Step Setup: 1. Click the **Settings** button on the main interface. 2. Select **"LPR input stream"** from the settings categories. 3. **Stream Type:** Select your camera's protocol from the dropdown list. 4. **IP Address:** Enter the camera's IP address or hostname (without http://). 5. **Port:** Enter the HTTP port (default HTTP is usually 80) - other protocols have different ports. 6. **Use SSL:** Enable if your camera requires secure connection. 7. **Username/Password:** Enter credentials if your camera is password protected. 8. **Limit FPS:** Set to 0 for unlimited, or specify a maximum frame rate. Use Companion Stream tab and fill in data only if one camera (different from LPR one) is available for this purpose. Otherwise leave it blank. > **Tip:** Higher frame rates provide more opportunities to capture clear images of passing vehicles. In parking lots, 2-3 FPS is usually enough. More are required on highways. ### Camera Positioning Guidelines Proper camera placement significantly impacts recognition accuracy. Consider these factors: - **Angle:** Position the camera so license plates are visible without extreme angles. Ideally, the plate should be facing the camera within maximum 30 degrees from perpendicular. - **Lighting:** Ensure adequate illumination or IR for the detection zone. Avoid direct sunlight that causes glare on plates. - **Resolution:** At the expected detection distance, license plates should appear at least 200 pixels wide in the image. - **Weather Protection:** Use weatherproof housing for outdoor installations. ### Testing Your Camera Setup After configuring the camera, the connection status indicator on the main interface will show: - **RED** - Disconnected: Check your IP address and network connection - **ORANGE** - Connecting: Wait a few seconds for the connection to establish - **GREEN** - Connected: Camera is streaming successfully ## 4. Detection Window Configuration The detection window allows you to define a specific area within the camera view where the system will look for license plates. This is crucial for improving accuracy and reducing false detections from areas where plates cannot be found. **Fig.4 Detection window** ### Why Use a Detection Window? - **Improved Accuracy:** Focuses recognition efforts on relevant areas - **Reduced Processing:** Smaller detection areas use less CPU power - **Fewer False Positives:** Ignores irrelevant objects in other parts of the image - **Reduced Area:** Can initiate detection when vehicles enter specific areas ### Configuring the Detection Window #### Manual Configuration: 1. Open **Settings** and navigate to **"Detection window"**. 2. Check **"Detection window active"** to enable the feature. 3. Set the **origin coordinates** (X, Y) for the top-left corner of the detection area. 4. Set the **width and height** for the detection area dimensions. 5. Or just **drag the corners** of the polygon in the main window. #### Companion Window If you're using a companion camera stream, you can also configure a detection window for it. The companion window works similarly to the main detection window and can be used for additional validation or wider area coverage. As this camera is not usually used for detection, a window will not affect overall recognition performance but displaying it and streaming can overload bandwidth and power. However it is useful in Red Light runner detection applications, when a window is to be placed for the traffic light. #### Interactive Configuration: For easier setup, you can position the detection window directly on the video feed: > **Important!** If you want to position the detection window directly on the video feed you need to have the Settings menu open! 1. In Settings, navigate to the Detection window section 2. Click on the video display in the main window 3. Drag the corners of the detection box to resize 4. Drag the center to reposition the window > **Note:** Width and height values must be divisible by 4. This is a technical requirement for the recognition engine to function correctly. ## 5. Plate Recognition and Detection Settings Fine-tuning recognition settings helps balance between detection accuracy, processing speed, and the types of vehicles you want to capture. To access the plates menu go to Settings, Plates. **Fig.5 Plates** ### Same Plate Delay (seconds) This setting defines the minimum time (in seconds) before the same license plate can be detected and reported again. During this delay, repeated detections of the same plate are ignored. This is useful if the view is briefly obstructed by an object. ### Minimum Plate Width This setting defines the smallest plate size (in pixels) that will trigger a detection. Plates smaller than this threshold will be ignored. Recommended value = 200. | Setting Value | Effect | Use Case | |--------------|--------|----------| | **100-150 pixels** | More sensitive, captures distant plates. Prone to errors. | Wide-angle views, longer detection ranges | | **200-250 pixels** | Balanced detection | Typical parking or access control. High speed also. | | **300+ pixels** | Only close plates detected | Tight spaces, high accuracy requirement | > **Recommendation:** For optimal recognition quality, set the minimum plate width to at least 200 pixels. Smaller plates often result in poor recognition accuracy. ### Maximum Plate Width Sets the largest plate size that will trigger a detection. This prevents very large objects from being mistakenly identified as plates and reduces processing of oversized images. ### Single Plate Mode When enabled, this mode assumes there is only one license plate in the camera view at any time. This is particularly useful for: - Truck weighing stations where vehicles stop and wait - Drive-through configurations - Areas with low traffic volume > **Caution:** Single plate mode may miss vehicles when multiple cars are present in the frame. Only enable this when your specific use case requires it. ## 6. Countries and Plate Selection Metrici LPR can recognize license plates from 57 countries worldwide. Selecting the correct countries improves recognition accuracy by telling the system which plate formats to expect. **Fig.6 Countries** ### Selecting Countries #### In the Settings Window: 1. Open **Settings** and select **"Countries"**. 2. You will see two lists: **"Available countries"** and **"Selected countries"**. 3. Select a country from the available list and click **Push (→)** to add it to selected. 4. To remove a country, select it and click **Pop (←)**. 5. Use **Up/Down arrows** to change the priority order (first in list = higher priority). The country where the installation is in should always be first on the list. No matter how many countries are on the detection list, when first syntax match is done, Metrici will stop looking further. This is why it is important to place countries according to the probability top. ### Country List The system supports plates from these regions: - **Europe:** Albania (AL), Austria (A), Belarus (BY), Belgium (B), Bosnia (BIH), Bulgaria (BG), Croatia (HR), Cyprus (CY), Czech Republic (CZ), Denmark (DK), Estonia (EST), Finland (FIN), France (F), Germany (D), Great Britain, Greece (GR), Hungary (H), Ireland (IRL), Italy (I), Kosovo (KS), Kuwait (KW), Latvia (LV), Lithuania (LT), Luxembourg (L), Macedonia (MK), Malta (MT), Moldova (MD), Montenegro (MNE), Netherlands (NL), Norway (N), Poland (PL), Portugal (P), Romania (RO), Russia (RUS), Serbia (SRB), Slovakia (SLO), Slovenia (S), Spain (E), Sweden (S), Switzerland (CH), Turkey (TR), Ukraine (UA), United Kingdom (GB) - **Middle East:** Israel (IL), Jordan (JO), Saudi Arabia (KSA), Bahrein, Qatar - **Asia:** Hong Kong, India (IND), Kazakhstan (KZ), Philippines (PH) - **Americas:** Argentina (RA), Chile (RCH), Colombia (CO), Peru (PE) - **Other, Africa:** Tanzania, Zanzibar ### Catch-All Mode When **"Catch all"** is enabled, the system will attempt to recognize and report ANY license plate, even from countries not in your selected list. > **Warning:** Catch-all mode may increase false positives because the system attempts to read plates using all available country formats. Use this only when you need to detect plates from many different countries. ## 7. Trigger Modes and Detection Timing This tab allows setting the way the engine acts. The trigger mode determines when the system processes video frames to look for license plates. Choosing the right trigger mode affects both recognition accuracy and system resources. **Fig.7 LPR engine** ### LPR Engine Working Modes From **"LPR engine working mode:"**, you can choose between three options: #### 1. Continuous Mode - **Description:** The system constantly analyzes every video frame - **Best for:** High-traffic areas, monitoring entry/exit points - **Resource usage:** High - uses more CPU/GPU #### 2. Triggered - End After Time Period - **Description:** Detection starts when a trigger signal is received and continues for a set duration - **Best for:** Access control with gate sensors, truck weighing - **Saves:** Processing power when no vehicles are present #### 3. Triggered - End After Level Change - **Description:** Detection runs while the trigger signal is active (high), stops when it returns to inactive (low) - **Best for:** Integration with physical sensors like induction loops or Metrici Virtual Trigger ### Trigger Device Types This setting can be changed from **"Trigger device and type:"**. | Trigger Type | Description | Use Case | |-------------|-------------|----------| | **None** | No external trigger, use continuous or internal detection | Standalone operation | | **Barionet 50** | Industrial I/O controller with digital inputs (I1-I4) | Physical sensors, loops | | **Metrici Virtual Trigger** | Software trigger controlled by the other application | Testing, virtual loops | | **Multicontroller** | Multi-function controller with RFID support | Access control systems | | **Vehicle Detection** | Internal detection of vehicles in video - Metrici Virtual Loop | No external hardware needed | ### Trigger Duration Settings When using time-based trigger modes, set **"How many seconds to analyze after trigger"** to define how long the system continues processing after receiving a trigger signal. > **Tip:** Set this value based on typical traffic flow. ### Virtual Loop Configuration The virtual loop is a Metrici proprietary specific point within the detection window that triggers plate recognition when a vehicle passes over it. This mimics the functionality of physical induction loops used in some access control systems. #### Setting Up Virtual Loop: 1. In Settings, under **"LPR engine working mode and Trigger IN"**, you need to select **"Vehicle detection"**. 2. Set **Virtual loop X** and **Virtual loop Y** coordinates. 3. These coordinates define where in the image the "trigger point" is located. 4. You can also use the mouse to move the Virtual Loop icon on the live stream in the main interface, if the settings window is open. ## 8. Vehicle Analysis Features Beyond license plate recognition, the system can analyze vehicle characteristics using deep learning. These features require additional processing power and work best with GPU acceleration. **Fig.8 Vehicle classification** ### Vehicle Classification When enabled, the system identifies the type of vehicle detected: - Car - Motorcycle - Bus - Truck - Semi-truck - Van - SUV/Pick-up - Tram - Other vehicles ### Vehicle Maker Recognition Identifies the manufacturer (brand) of the detected vehicle (Over 60 brands recognized). This is useful for: - Vehicle fleet management - Security applications (identify specific brands) - Traffic analysis by vehicle type ### Color Recognition Determines the vehicle's primary color. Common colors detected include: - Black - Grey/Silver - White - Beige - Red - Yellow - Blue - Green - Orange - Brown - Purple - Other ### Red Light Infringement When combined with traffic light monitoring, this feature can identify vehicles that pass through intersections when the light is red. This requires: - Detection of traffic light state (red/green) - Plate recognition during red light - Correlation of timing between light state and vehicle position > **Requirements:** Vehicle analysis features require significant processing power. They are recommended only when: > - You have a dedicated GPU available > - Your system isn't already at maximum processing capacity > - You actually need these features for your application ### Enhanced Recognition Mode This mode increases recognition accuracy at the cost of: - Longer processing time per frame - Reduced maximum frame rate - Higher likelihood of missing fast-moving vehicles > **When to use:** Enable enhanced mode when accuracy is critical and vehicles move slowly (under 30 km/h). Disable for high-speed traffic monitoring. Metrici recommends to keep it OFF. ## 9. External System Integration - Reporting, Check Action and Trigger Out Metrici LPR can integrate with various external systems to create automated workflows. This section covers the communication protocols and configuration for external connections. **Fig.9 Reporting and check action URL** ### Reporting URL The reporting URL specifies where the system sends detection events. Each time a plate is recognized, the system sends data to this address: **http://IP_ADDRESS/path/reporting_event.php**. In case the reporting and administration interface is installed on the same computer as the analysis application, IP_ADDRESS will be 127.0.0.1 or localhost and path will be /io/lpr/. This address is usually where the Metrici Interface License is installed, to see all events in Interface and build database, reports, etc. #### Data Format: ```http POST http://your-server.com/path/reporting_event.php Content-Type: application/x-www-form-urlencoded plate_number=ABC123&country=RO×tamp=20240101120000&confidence=0.95 ``` ### Check Action URL This address specifies where the system sends a request to check which actions should be executed when a license plate is recognized. Actions are configured in the **Metrici LPR Web Interface** and may include opening a barrier, sending an e-mail, showing a pop-up message on the screen, or changing a traffic light. The URL has the following format: **http://IP_ADDRESS/path/check_action_event.php**. If the reporting and administration interface is installed on the same computer as the analysis application, set IP_ADDRESS to **127.0.0.1** or **localhost** and path to **io/lpr**. The Reporting URL and Check Action URL may be different. The system typically calls the Check Action URL first, when a vehicle is detected, and sends the Reporting event later, when the vehicle exits the camera's field of view. In parking or barrier-control scenarios, you can define rules in the Metrici Interface for the camera connected to the barrier, for example: open the barrier when a specific plate number is recognized; or use a wildcard rule (e.g., "%") to grant access to all vehicles. ### Minimum Probability Threshold Only plates recognized with a confidence above this threshold will trigger check actions, preventing false recognitions from causing unwanted responses. Check action minimum probability (0.1-1.0) sets the minimum confidence required before a recognized license plate is checked against the database for possible actions. In other words, it defines how certain the engine must be that the reading is correct. We recommend a value of 0.6, which typically means the plate has been detected consistently (e.g., in at least two frames) before actions are evaluated. | Threshold | Effect | |-----------|--------| | 0.40 (40%) | More actions, higher false positive risk | | 0.60 (60%) | Balanced setting | | 0.90 (90%) | Fewer but more accurate actions | ### Authentication Key The authkey and ID provide authentication for external server communications. These credentials are obtained from the Metrici web interface where you configure your LPR cameras into the location. ### Trigger Output - Send Trigger at Check Action... When a **Check Action** returns a positive result, the system can trigger external devices or other Metrici engines by sending a **UDP** packet to a configured **IP address** and **port**. This is typically used to synchronize events between systems—for example, triggering a second camera/engine to start recognition when the first camera detects a vehicle. ## 10. GPS Configuration GPS integration adds location data to every plate detection, useful for mobile installations or when you need to verify where detections occurred. **Fig.10 GPS** ### GPS Features - **Position Tracking:** Records latitude and longitude with each detection. - **Status Monitoring:** Shows GPS signal quality (connected, good signal, low signal, error). - **Static Location:** Can use fixed coordinates instead of GPS receiver. ### Configuration Options #### Using GPS Receiver: 1. Connect a GPS receiver to your system (typically via USB or serial port). 2. The system automatically detects and connects to GPS devices. 3. GPS status indicator shows connection quality. #### Using Static Location: 1. Enter coordinates in **Static Latitude** and **Static Longitude** fields. 2. Use format: decimal degrees (e.g., 44.4268 for Bucharest). 3. This overrides GPS receiver if both are configured. ### GPS Status Indicators | Status | Meaning | |--------|---------| | **Unconnected** | No GPS receiver detected | | **Error** | GPS receiver found but communication failed | | **Low Signal** | Receiving data but insufficient satellites for accurate fix | | **Good Signal** | Accurate position data available | ## 11. Weight Scale and Radar Integration For commercial vehicle monitoring applications, integrating weight scales and speed radars provides additional data for each detection. ### Weight Scale Integration Connect to weight measurement systems for truck weighing and cargo monitoring: **Fig.11 Weight scale** #### Supported Weight Scale Types: - **Generic Scale:** Multi-platform weighing controller - **Dini Argeo:** Industrial weighing systems - **Bilancia D400:** Weighing terminal - **Custom STXLF:** Generic serial protocol - **Custom STXETX:** Generic serial protocol #### Configuration: 1. In Settings, select **"Weight scale"**. 2. Choose the **weight scale type** from dropdown. 3. Enter the **IP address** of the weight scale controller. 4. Enter the **TCP port** number. #### Display: When a weight scale is connected and configured, the measured weight appears on the video display overlay, near the plate detection result. ### Radar Speed Detection Integrate with speed radar devices to capture vehicle speed along with plate recognition: **Fig.12 Radar** #### Supported Radar Types: - **Metrici Observer Radar** #### Configuration: 1. In Settings, select **"Radar"**. 2. Choose the **radar type - Observer Radar**. 3. Enter the **IP address** of the radar controller. 4. Enter the **TCP port** number. #### Display: When connected, detected vehicle speed appears on the video overlay during playback. > **Integration Note:** Both weight scale and radar use IP connectivity. Ensure both devices are on the same network as your LPR system and that firewall rules allow communication on the configured TCP ports. ## 12. Barrier and Traffic Light Control Metrici LPR can automatically control barriers and traffic lights based on plate recognition results. This enables fully automated access control systems. **Fig.13 Barrier and Traffic light** ### Barrier Control Configure URLs that the system will call to open and close vehicle barriers: #### Configuration Fields: - **Open barrier URL:** HTTP address to send open command. - **Close barrier URL:** HTTP address to send close command. - **Delay before closing (seconds):** Will set the time interval, in seconds, the system waits before closing the barrier after it opened it for a recognized license plate. Usually this time can be set in barrier settings as reset time and can be left blank here. #### Example Configuration: ``` Open barrier URL: http://192.168.1.100/barrier/open Close barrier URL: http://192.168.1.100/barrier/close Delay before closing: 10 seconds ``` ### Traffic Light Control Traffic light ON URL is used when a traffic light is installed and configured to switch when a license plate is detected; the light will commute only if this option is enabled for that specific plate number in the Action list, for example in intersection monitoring or traffic management scenarios. #### Configuration Fields: - **Traffic light ON URL:** Command to turn lights on (red). - **Traffic light OFF URL:** Command to turn lights off (green). - **Delay between ON/OFF:** Duration of red light phase. ### Integration with Check Actions Barrier and traffic light control is typically triggered by the **check action** system: 1. Plate is recognized 2. System queries check action URL 3. Check action returns response (allow/deny/action) 4. System executes configured URLs based on response ## 13. Troubleshooting This section covers common issues and their solutions to help you get the most out of your Metrici LPR system. ### Camera Connection Issues #### Problem: Camera shows "Disconnected" status **Solutions:** - Verify the camera IP address is correct and accessible - Check network connectivity (can you ping the camera?) - Confirm the correct stream type is selected - Check if username/password are correct - Verify the camera port is not blocked by firewall - Ensure camera is configured to allow MJPEG/RTSP streams #### Problem: Video is choppy or FPS is low **Solutions:** - Reduce camera resolution - Limit FPS in settings - Check network bandwidth - Reduce detection window size - Upgrade network infrastructure (use wired instead of WiFi) ### Recognition Problems #### Problem: No plates are being detected **Solutions:** - Check if detection window is properly positioned over the road/lane - Verify minimum plate width is not set too high - Ensure adequate lighting on the detection area - Confirm country selection includes plates from your region - Check if trigger mode is correctly configured #### Problem: Recognition accuracy is poor **Solutions:** - Increase minimum plate width to 200+ pixels - Improve camera positioning for better plate angles - Enhance lighting in the detection area - Enable enhanced recognition mode - Clean camera lens - Adjust or reduce detection window to focus on best viewing area #### Problem: False detections (recognizing plates that don't exist) **Solutions:** - Enable single plate mode if only one vehicle at a time - Increase minimum probability threshold - Reduce detection window to exclude irrelevant areas - Disable catch-all mode and select only relevant countries #### Problem: Same vehicle detected multiple times **Solutions:** - Increase "same plate delay" setting - Configure virtual loop for single trigger point - Use trigger mode instead of continuous scanning ### Performance Issues #### Problem: System runs slowly or lags **Solutions:** - Reduce video resolution or frame rate - Shrink detection window size - Disable vehicle analysis features (maker, color, type) - Disable red light infringement detection - Use GPU acceleration if available - Upgrade computer hardware (more RAM, faster CPU/GPU) ### External Integration Issues #### Problem: External servers not receiving data **Solutions:** - Verify URL is correct and accessible - Check firewall allows outbound connections - Confirm authkey and ID are correct - Review server logs for errors - Test URL manually in browser #### Problem: Barrier/traffic light not responding **Solutions:** - Verify control URLs are correct - Check device is powered on and connected to network - Confirm integration settings are saved - Test URLs manually - Check device documentation for correct command format ### GPS Issues #### Problem: GPS status shows error or no signal **Solutions:** - Verify GPS receiver is connected and powered - Check COM port or USB connection - Ensure GPS has clear view of the sky - Wait for GPS to acquire satellite signal (can take several minutes) - Use static coordinates if GPS signal is unreliable ### Getting Help If you continue to experience issues after trying these solutions: - Check the application logs for detailed error messages - Contact technical support with error descriptions and log excerpts - Include details about your camera model, system configuration, and specific scenarios where issues occur ## 14. Configuration File (INI) Metrici LPR stores all its settings in a configuration file called `lpr.ini` (or numbered variants like `0.ini`, `1.ini` for multi-camera setups). Understanding this file allows you to: - Back up and restore configurations - Deploy the same settings across multiple installations - Troubleshoot configuration issues - Edit settings manually when needed ### File Location and Naming The configuration file is located in the same directory as the application executable. By default, it's named `lpr.ini`. For multi-camera setups where multiple LPR instances are managed by a central system, files may be numbered: - `0.ini` - First camera configuration - `1.ini` - Second camera configuration - `lpr.ini` - Default configuration ### File Format The INI file uses standard Windows-style INI format with key-value pairs organized into sections (though Qt's QSettings may flatten sections in some configurations). Here's an example of what the file looks like: ```ini ; Metrici LPR v7.1 Configuration File ; This file contains all settings for the LPR system ; Edit with care - incorrect settings may affect system behavior [General] input_stream_type=5 input_stream_address=192.168.1.100 input_stream_tcp_port=80 input_stream_use_ssl=0 input_stream_username=admin input_stream_password=secret123 input_stream_fps_limit=15 companion_stream_type=0 companion_stream_address= companion_stream_tcp_port=80 companion_stream_use_ssl=0 [Recognition] plate_min_length=200 plate_max_length=350 single_plate_mode=0 enhanced_recognition_mode=0 countries=RO,BG catch_all=0 [Detection] input_stream_window_active=1 input_stream_window_origx=0.35 input_stream_window_origy=0.45 input_stream_window_resx=0.3 input_stream_window_resy=0.2 virtual_loop_x=0.5 virtual_loop_y=0.6 [Vehicle Analysis] vehicle_detection=1 maker_detection=0 color_detection=0 red_light_infringement=0 [External Systems] reporting_url=http://localhost/io/lpr/reporting_event.php check_action_url=http://localhost/io/lpr/check_action_event.php check_action_min_probability=0.6 open_barrier_url=http://admin:admin@192.168.1.100/outs.cgi?out0=0 close_barrier_url=http://admin:admin@192.168.1.100/outs.cgi?out0=1 open_close_barrier_delay=10 [GPS] gps_latitude=44.4268 gps_longitude=26.1025 [Integration] reporting_check_action_id=1 reporting_check_action_authkey=your_auth_key_here ``` ### Complete Settings Reference #### Video Stream Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `input_stream_type` | 0 | Camera type (1=MJPEG HTTP, 2=RTSP H264, etc.) - see stream type codes below | | `input_stream_address` | (empty) | IP address or hostname of the main camera | | `input_stream_tcp_port` | 80 | HTTP port for camera connection | | `input_stream_use_ssl` | 0 | Enable SSL for camera connection (0=disabled, 1=enabled) | | `input_stream_username` | (empty) | Camera username for authentication | | `input_stream_password` | (empty) | Camera password for authentication | | `input_stream_fps_limit` | 5 | Maximum frames per second for main camera (0=unlimited) | | `input_stream_resx` | 640 | Main camera horizontal resolution | | `input_stream_resy` | 480 | Main camera vertical resolution | | `companion_stream_type` | 0 | Companion camera type (0=disabled) | | `companion_stream_address` | (empty) | IP address of companion camera | | `companion_stream_tcp_port` | 80 | Companion camera port | | `companion_stream_fps_limit` | 5 | Companion camera FPS limit | | `rtsp_stream_latency` | 100 | RTSP stream latency in milliseconds (for RTSP streams) | | `rtsp_stream_protocols` | tcp | RTSP protocol (tcp or udp) | #### Recognition Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `plate_min_length` | 200 | Minimum plate width in pixels for detection | | `plate_max_length` | 350 | Maximum plate width in pixels for detection | | `single_plate_mode` | 0 | Assume only one plate in view (0=disabled, 1=enabled) | | `enhanced_recognition_mode` | 0 | Higher accuracy mode (0=disabled, 1=enabled) | | `countries` | RO,BG | Comma-separated list of country codes to recognize | | `catch_all` | 0 | Recognize plates from any country (0=disabled, 1=enabled) | | `same_plate_delay` | 3 | Seconds to wait before reporting same plate again | #### Detection Window Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `input_stream_window_active` | 0 | Enable detection window (0=disabled, 1=enabled) | | `input_stream_window_origx` | 0.4 | Detection window X position as fraction of image width (0.0-1.0) | | `input_stream_window_origy` | 0.4 | Detection window Y position as fraction of image height (0.0-1.0) | | `input_stream_window_resx` | 0.2 | Detection window width as fraction of image width (0.0-1.0) | | `input_stream_window_resy` | 0.2 | Detection window height as fraction of image height (0.0-1.0) | | `companion_stream_window_active` | 0 | Enable companion camera detection window | | `companion_window_*` | 0.4, 0.4, 0.2, 0.2 | Companion detection window settings (same format as main) | | `virtual_loop_x` | 0.5 | Virtual loop X position as fraction of image | | `virtual_loop_y` | 0.5 | Virtual loop Y position as fraction of image | #### Vehicle Analysis Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `vehicle_detection` | 0 | Enable vehicle type classification (0=disabled, 1=enabled) | | `maker_detection` | 0 | Enable vehicle maker recognition (0=disabled, 1=enabled) | | `color_detection` | 0 | Enable vehicle color recognition (0=disabled, 1=enabled) | | `red_light_infringement` | 0 | Enable red light infringement detection (0=disabled, 1=enabled) | | `full_gpu_algorithm` | 0 | Run full algorithm on GPU (0=disabled, 1=enabled) | #### Trigger Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `external_trigger_type` | 0 | Trigger device type (0=None, 1-4=Barionet, 5=Virtual, etc.) | | `external_trigger_seconds` | 1 | Seconds to analyze after receiving trigger | | `lpr_engine_working_mode` | 0 | 0=Continuous, 1=Triggered-time, 2=Triggered-level | | `cars_direction` | 0 | Vehicle direction angle (0-359 degrees) | | `cars_event_type` | 1 | 1=Coming, 2=Leaving, 3=Unknown | #### External Integration Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `reporting_url` | http://localhost/io/lpr/reporting_event.php | URL for sending detection reports | | `reporting_duplicate_url` | (empty) | Secondary URL for redundant reporting | | `check_action_url` | http://localhost/io/lpr/check_action_event.php | URL for checking actions based on plate numbers | | `check_action_duplicate_url` | (empty) | Secondary check action URL | | `check_action_min_probability` | 0.6 | Minimum confidence (0.1-1.0) to trigger check action | | `check_action_send_trigger_address` | (empty) | IP address for sending UDP trigger on check action | | `check_action_send_trigger_udp_port` | 0 | UDP port for trigger output | | `check_action_direction_for_sending` | 0 | Direction filter for trigger sending | | `external_query_url` | http://localhost/io/lpr/get_info.php?plate_number=#INPUT_VALUE | URL for manual plate queries | | `reporting_check_action_id` | 0 | Camera ID for external system authentication | | `reporting_check_action_authkey` | (empty) | Authentication key for external systems | #### Barrier and Traffic Light Control | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `open_barrier_url` | (empty) | URL to call when opening barrier | | `close_barrier_url` | (empty) | URL to call when closing barrier | | `open_close_barrier_delay` | 10 | Seconds to wait before automatically closing barrier | | `open_barrier2_url` | (empty) | URL to turn traffic light ON (red) | | `close_barrier2_url` | (empty) | URL to turn traffic light OFF (green) | | `open_close_barrier2_delay` | 10 | Seconds to maintain red light state | #### Live View Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `live_view_active` | 1 | Enable periodic live view snapshots (0=disabled, 1=enabled) | | `live_view_url` | http://localhost/io/lpr/live_view.php | URL for receiving live view snapshots | | `live_view_resolution_divider` | 1 | Divide live view resolution by this factor (1=full, 2=half size) | #### GPS Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `gps_latitude` | 0 | Static latitude coordinate (decimal degrees) | | `gps_longitude` | 0 | Static longitude coordinate (decimal degrees) | #### Hardware Integration Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `weight_scale_type` | 0 | Weight scale model (0=None, 1=Cantar-I30, 2=Dini Argeo, etc.) | | `weight_scale_address` | (empty) | IP address of weight scale controller | | `weight_scale_tcp_port` | 10001 | TCP port for weight scale connection | | `radar_type` | 0 | Radar type (0=None, 1=Kestrel Pico Basic) | | `radar_address` | (empty) | IP address of radar controller | | `radar_tcp_port` | 10001 | TCP port for radar connection | ### Stream Type Codes Reference | Code | Stream Type | |------|-------------| | 0 | Disabled | | 1 | HTTP MJPEG (ACTi) | | 2 | RTSP H264 (ACTi) | | 3 | HTTP MJPEG (Android) | | 4 | HTTP MJPEG (Arecont) | | 5 | HTTP MJPEG (Axis) | | 6 | RTSP MJPEG (Axis) | | 7 | RTSP H264 (Axis) | | 8 | RTSP MJPEG (Bosch) | | 9 | RTSP H264 (Bosch) | | 10 | HTTP MJPEG (Dahua) | | 11 | HTTP MJPEG (Diviotec) | | 12 | RTSP H264 (Diviotec) | | 13 | HTTP MJPEG (Generic) | | 14 | RTSP MJPEG (Generic) | | 15 | RTSP H264 (Generic) | | 16 | RTSP H265 (Generic) | | 17 | HTTP JPEG Picture (Generic) | | 18 | HTTP MJPEG (Hikvision) | | 19 | RTSP H264 (Hikvision) | | 20 | HTTP MJPEG (Mobotix) | | 21 | HTTP MxPEG (Mobotix) | | 22 | RTSP H264 (Mobotix) | | 23 | RTSP H264 (Mobotix Move) | | 24 | HTTP MJPEG (Novus) | | 25 | RTSP H264 (Novus) | | 26 | RTSP MJPEG (Pelco) | | 27 | Raw (Roseek) | | 28 | HTTP MJPEG (Samsung) | | 29 | RTSP H264 (Samsung) | | 30 | HTTP MJPEG (Sony) | | 31 | RTSP H264 (Sony) | | 32 | RTSP H264 (Uniview) | | 33 | Video File | | 34 | HTTP MJPEG (Vivotek) | | 35 | HTTP MJPEG (VLC) | ### Trigger Type Codes | Code | Trigger Type | |------|-------------| | 0 | None | | 1 | Barionet 50 Input 1 | | 2 | Barionet 50 Input 2 | | 3 | Barionet 50 Input 3 | | 4 | Barionet 50 Input 4 | | 5 | Metrici Virtual Trigger - gets command from another engine | | 6 | Multicontroller Input 1 | | 7 | Multicontroller Input 2 | | 8 | Multicontroller RFID | | 9 | Vehicle Detection - Virtual Loop | ### Weight Scale Type Codes | Code | Weight Scale Type | |------|------------------| | 0 | None (Disabled) | | 1 | GenericScale | | 2 | Dini Argeo | | 3 | Bilancia D400 | | 4 | Custom STXLF Protocol | | 5 | Custom STXETX Protocol | ### Editing the Configuration File #### Manual Editing 1. Make a backup copy of the current INI file 2. Open the file in a text editor (Notepad, TextEdit, or any code editor) 3. Find the setting you want to change 4. Modify the value after the equals sign 5. Save the file 6. Restart the LPR application or reload settings > **Important:** When editing the INI file manually, be careful to: > - Keep the format exactly as shown (key=value) > - Use only numbers for numeric values (no commas, units, or text) > - Preserve decimal points for floating-point values > - Do not remove semicolons from commented lines #### Automating Configuration Deployment For deployments across multiple sites: 1. Create a "master" INI file with your standard settings 2. Deploy this file to all installations 3. Only modify site-specific values (IP addresses, auth keys) per installation 4. Use version control to track configuration changes ### Configuration Backup and Restore Regular backups ensure you can recover from configuration issues: #### What to Include in Backup: - The main INI file (lpr.ini or numbered variant) - Any custom country recognition files - OCR training data if customized #### Backup Best Practices: - Backup before making major configuration changes - Name backups with dates (e.g., `lpr_20240115_backup.ini`) - Test restored configurations in a non-production environment first - Document why each configuration was changed ### Troubleshooting Configuration Issues #### Settings Not Taking Effect **Possible causes and solutions:** - Application didn't reload the INI file - restart the application - Editing the wrong INI file - check which file the application is using - Syntax error in INI file - open in text editor and look for issues - Permissions issue - ensure the file is readable by the application #### Application Won't Start After Editing INI **Recovery steps:** 1. Rename the problematic INI file to something else 2. Start the application - it will create a new default INI 3. Compare the original and new files to identify the error 4. Copy correct settings from the new file #### Common Configuration Mistakes - Using comma-separated values where space-separated is required - Forgetting that boolean values must be 0 or 1 (not "true"/"false") - Setting numeric values outside valid ranges - Leaving spaces around equals signs (use `key=value`, not `key = value`) ### Advanced: Multiple Camera Setup For systems managing multiple LPR cameras: - Each camera typically has its own numbered INI file (0.ini, 1.ini, etc.) - The main application tracks which camera each file belongs to - Settings can be different for each camera - Some settings (like external system URLs) may be shared across cameras ### INI File Security Considerations The INI file may contain sensitive information: - **Passwords:** Camera access credentials are stored in plain text - **Auth keys:** External system authentication tokens - **URLs:** Server addresses that could reveal network topology > **Security recommendations:** > - Restrict file permissions to only application users > - Consider using external configuration management for sensitive values > - Regularly rotate authentication credentials > - Avoid storing production passwords in version control ## 15. Appendix: Settings Quick Reference ### Recommended Settings by Application #### Parking Entry/Exit: - Working Mode: Continuous or Triggered (vehicle detection) - Min Plate Width: 200 pixels - Same Plate Delay: 15-30 seconds - Countries: Select your country #### Truck Weighing Station: - Working Mode: Triggered (level change) - Single Plate Mode: Enabled - Min Plate Width: 250 pixels - Same Plate Delay: 60 seconds - Integration: Weight scale required #### Toll Road: - Working Mode: Continuous - Min Plate Width: 180 pixels - Same Plate Delay: 5 seconds #### Border Control: - Working Mode: Continuous - Countries: Multiple (all expected nationalities) - Catch All: May be enabled - Check Action Mandatory: Required for blacklist checking and database check > **Final Note:** Every installation is unique. Use these recommendations as starting points and adjust based on your specific requirements and observed results. Regular monitoring and fine-tuning will optimize performance for your particular situation. --- **Metrici LPR v7.1** License Plate Recognition System Copyright © 2026 # Metrici Control Panel v4.0 User Manual for End Users and System Administrators --- ## Table of Contents 1. [Introduction](#introduction) 2. [Getting Started](#getting-started) 3. [Main Window Overview](#main-window-overview) 4. [Managing Applications](#managing-applications) 5. [Application Configuration Options](#application-configuration-options) 6. [License Management](#license-management) 7. [Monitoring Applications](#monitoring-applications) 8. [Log Files and Troubleshooting](#log-files-and-troubleshooting) 9. [Frequently Asked Questions](#frequently-asked-questions) 10. [Technical Support](#technical-support) ## Introduction ### What is Metrici Control Panel? The **Metrici Control Panel v4.0** is a central management application that allows you to configure, start, stop, and monitor various Metrici recognition and analysis applications. Think of it as a "command center" that gives you complete control over all your Metrici software from a single, easy-to-use interface. ### What Applications Can It Manage? The Control Panel can manage various types of Metrici applications, including: - **LPR (License Plate Recognition)** - Reads and identifies vehicle license plates - **LPR+ (Enhanced License Plate Recognition)** - Advanced version with additional features - **QR Code Reader** - Scans and decodes QR codes - **CCR (Container Code Recognition)** - Identifies shipping container codes - **PPD (Parking Place Detector)** - Monitors parking space occupancy - **AC (Area Counter)** - Counts people or objects in defined areas - **LC (Line Counter)** - Counts objects crossing a line - **TA (Thermal Analyzer)** - Processes thermal imaging data - **ID Card Reader** - OCR for documents and IDs - **Snapshot** - Take images when triggered - **Advanced Video Analytics** - Custom projects - **Line Counter PE** - Protection equipment detection - **Area Counter PE** - Protection equipment detection - **Live View** - Engine detections display > **Note:** The applications available to you depend on your purchased license. Some modules may not appear if you haven't purchased them. ### Key Features - **Easy Application Management** - Add, configure, start, and stop applications with a few clicks - **Real-time Monitoring** - View application status and resource usage in real-time - **License Management** - Request new activations and update existing licenses - **GPU Acceleration** - Configure applications to use GPU processing for better performance - **Flexible Execution Modes** - Run applications in background or foreground, with or without automatic restart - **Comprehensive Logging** - Access detailed logs for troubleshooting and monitoring ## Getting Started ### Launching the Control Panel Usually, Control Panel starts automatically when the server is powered on. Or you can start it from command line. The main window will appear, showing you the current status of your applications. ### Command Line Options If you need to run the Control Panel from the command line, the following options are available: | Option | Description | |--------|-------------| | `-nogui` | Starts the application without displaying the graphical interface. Useful for running in headless environments or as a service. | | `-v` | Displays the version information and exits. | > **Important:** Before you can add and run applications, you need a valid SENTINEL key. The demo version only allows two cameras/applications to be used and is only valid for 30 days. ### Understanding the License Status When you first launch the Control Panel, check the license status indicator at the top of the window. The indicator shows three key pieces of information: | Status Color | Meaning | |--------------|---------| | **Green** | Your license key is valid and active. The number of enabled licenses is displayed. | | **Orange** | You are running in demo mode with limited functionality. | | **Red** | No valid license key found. Applications cannot be started. | ## Main Window Overview The main window is divided into several sections that give you complete control over your Metrici applications. ### Top Bar - License Information The top section displays important information about your license: - **Key Status** - Shows whether your SENTINEL key is detected and valid - **Enabled Licenses** - Number of application licenses you have purchased - **Running Licenses** - Number of applications currently running - **Available Licenses** - Licenses remaining that can be used for new applications ### Applications Table The main table displays all configured applications with their details: | Column | Description | |--------|-------------| | **ID** | Unique identifier for the application instance | | **Name** | Descriptive name you gave to this application instance | | **App type** | What kind of Metrici application this is (LPR, QR, etc.) | | **CPU Cores** | Number of CPU processor cores allocated to this application | | **Execution Type** | How the application runs: Background or Foreground | | **GPU** | Which GPU device the application uses (if any) | | **Log Level** | How detailed the log files should be | | **Status** | Current state: Stopped, Starting, or Started | | **Load** | Current CPU load percentage | ### Button Bar The buttons at the bottom or side of the window provide quick access to common operations: | Button | Function | |--------|----------| | **Add** | Create a new application configuration | | **Edit** | Modify an existing application's settings | | **Delete** | Remove an application configuration | | **Start** | Launch the selected application | | **Stop** | Stop the running application | | **View Log** | View the log file for the selected application | | **Licenses** | Show detailed license information | | **License Request** | Generate a file to request new license activations | | **License Update** | Apply a new license update file | | **About** | Show information about the Control Panel software | | **Quit** | Close the Control Panel and all applications | ## Managing Applications > **Tip:** Start with default settings for your first application. You can always adjust these settings later by editing the application. ### Adding a New Application To add a new application instance: 1. Click the **Add** button in the button bar. 2. A configuration menu will appear with various options. 3. Fill in the required information: - **Application Type** - Select what kind of application this is - **Name** - Give it a descriptive name - **CPU Cores** - Choose how many processor cores to allocate - **Execution Type** - Decide how it should run. First settings are always done in "Foreground with watchdog". - **GPU Usage** - Choose which GPU to use or if GPU should be disabled. GPU recommended. - **Log Level** - Set how detailed logging should be 4. Click **Save** to create the application configuration. > **License Limit:** You cannot create more applications than you have licenses for. If you need more applications, contact your Metrici distributor to purchase additional licenses. ### Starting an Application Once you've configured an application, you can start it: 1. Select the application in the table by clicking on its row. 2. Check that the status shows "Stopped" 3. Click the **Start** button. 4. An interface menu will appear with various options. 5. The status will change to "Starting" and then "Started" **What happens when you start an application:** - The Control Panel launches the application process - It verifies a license is available - The application begins processing according to its configuration - The status updates to show it's running ### Stopping an Application To stop a running application: 1. Select the application in the table. 2. Ensure the status shows "Started". 3. Click the **Stop** button. 4. The status will change to "Stopped". > **Warning:** Stopping an application will immediately terminate its processing. Any data being processed at that moment may be lost. Only stop applications when you're sure it's safe to do so. ### Editing Application Settings To modify an existing application's configuration: 1. Select the application in the table. 2. Click the **Edit** button. 3. Modify the desired settings in the dialog. 4. Click **Save** to apply changes. > **Important:** Some settings may require you to stop and restart the application before they take effect. Settings related to execution type and resource allocation typically require a restart. ### Deleting an Application To remove an application configuration: 1. Select the application in the table. 2. Click the **Delete** button. 3. Confirm the deletion when prompted. > **Confirmation Required:** Deleting an application will also remove its configuration file. If the application is running, it will be stopped first. This action cannot be undone. ### Viewing Application Logs To view an application's log file: 1. Select the application in the table. 2. Click the **Log** button. 3. A log viewer window will open showing detailed information about the application's activities. Log files are essential for troubleshooting. They contain information about: - Application startup and shutdown events - Processing errors and warnings - Performance metrics - Any issues that occurred during operation - Info about communication with external systems or Metrici database ## Application Configuration Options When adding or editing an application, you'll need to configure various options. This section explains each option in detail. ### Application Name A descriptive name to help you identify this application instance. While optional, giving each application a meaningful name makes it easier to manage multiple instances. ### Application Type This defines what kind of Metrici application this instance will be. Choose based on your licenses/needs: | Application Type | Use Case | Description | |------------------|----------|-------------| | **LPR** | Vehicle access control, parking management | Recognizes license plates from camera images. Ideal for basic license plate reading tasks. | | **LPR+** | High-security vehicle identification | Enhanced license plate recognition with additional features like vehicle color and brand. | | **QR Code** | QR code scanning, inventory tracking | Reads and decodes QR codes from images or video streams. | | **Container Code** | Logistics, shipping, port management | Recognizes shipping container identification codes. | | **Parking Place Detector** | Smart parking systems | Detects whether parking spaces are occupied or empty. | | **Area Counter** | People and vehicles counting | Counts people or objects within a defined area. | | **Line Counter** | People and traffic counting | Counts objects that cross a virtual line in the video feed. | | **Thermal Analyzer** | Thermal imaging analysis, fire detection | Analyzes thermal camera feeds for temperature monitoring or anomaly detection. | | **ID Card Reader** | OCR | Automatically identifies text and saves it to Metrici database. | | **Snapshot** | Image Capture | Take photo from IP cameras when triggered | | **Advanced Video Analytics** | Special projects | Detection of custom objects. | | **Line Counter PE** | Protection equipment counting | Detects if a person has protection equipment like vest, helmets etc | | **Area Counter PE** | Protection equipment detection | Detects if a person has protection equipment like vest, helmets etc | | **Live View** | Detections display | View as many engines in real time | ### CPU Cores This setting determines how many CPU processor cores the application can use. More cores allow the application to process data faster, especially when handling multiple video streams. > **Performance Tip:** If you're running multiple applications, don't allocate all CPU cores to one application. Spread them out for better overall system performance. ### Execution Type This setting controls how and where the application runs: | Execution Type | Description | Use Case | |----------------|-------------|----------| | **Background** | Application runs invisibly without a window. You won't see any interface, but the application processes data continuously. | Server installations, 24/7 operation, when no monitor is attached | | **Background with Watchdog** | Runs in background like above, but if the application crashes or stops unexpectedly, it will automatically restart. | Critical applications that must run continuously without manual intervention | | **Foreground** | Application runs with its own window visible on the screen. You can see what it's processing in real-time. | Testing, demonstrations, when you need to monitor the application visually | | **Foreground with Watchdog** | Application runs in a visible window but will automatically restart if it crashes. | When you want to see the application running but also need automatic recovery | > **Recommendation:** For production environments, use "Background with Watchdog" for critical applications. For testing and setup, "Foreground with watchdog" is better so you can see what's happening. ### USE GPU Modern computer graphics cards (GPUs) can process visual data much faster than CPUs. This setting controls whether and how the application uses your GPU: | Setting | Description | When to Use | |---------|-------------|-------------| | **Disabled (No GPU)** | Application uses only the CPU for processing | Systems without GPUs, or when GPU is needed by another application | | **GPU [Device Number]** | Application uses the specified GPU for processing | When you want maximum performance and have a dedicated GPU | > **Performance Impact:** Using a GPU can significantly improve processing speed, especially for video analysis. However, not all systems have GPUs, and some integrated graphics may not provide benefits. For best results, use a dedicated GPU (NVIDIA or AMD) when processing multiple video streams. > **Hardware Requirement:** GPU processing requires a compatible graphics card and proper drivers installed. If you select GPU usage and the application fails to start, check that your GPU drivers are up to date. ### Output Type This determines how the application sends its results and data: | Output Type | Description | |-------------|-------------| | **Normal** | Sends all event details plus pictures (plate/car images) to the URL using an HTTP POST. | | **Simplified** | Sends only the basic event details (plate number, time, confidence, etc.) - usually without pictures. | | **Json** | Sends the event details in JSON format (a structured text format). The receiving system must be able to read/parse JSON to use the data. | > **Consult your integration guide:** The appropriate output type depends on how your system is set up. Check with your system administrator or integration documentation to determine the correct setting. ### External Module External module selects a vendor integration mode. Choose Skidata or Bebarmatic only when your parking hardware/software is from that vendor, so Metrici sends plate events using that vendor's interface instead of only using Metrici's internal actions. | Module Type | Description | |-------------|-------------| | **None** | Metrici works on its own. It saves plate events and uses its own rules/actions to control access (e.g., open a barrier). | | **Skidata** | Select this if the installation uses a Skidata parking system. Metrici forwards plate events to Skidata so Skidata can handle access/parking logic. | | **Bebarmatic** | Select this if the installation uses a Bebarmatic parking system. Metrici forwards plate events to Bebarmatic so Bebarmatic can handle access/parking logic. | ### Log Level The log level determines how much detail is written to the application log file. More detailed logs are useful for troubleshooting but use more disk space: | Log Level | Detail | Disk Usage | Use Case | |-----------|--------|------------|----------| | **None** | No logging at all | Minimal | Maximum performance needed, no troubleshooting required | | **Low** | Only important events (start, stop, errors) | Low | Normal operation, general monitoring | | **Medium** | Standard events and important operations | Medium | Default recommendation for most users | | **High** | Very detailed, including debug information | High | Troubleshooting specific issues | > **Tip:** Start with "Medium" logging. Increase to "High" only when troubleshooting a specific problem, then reduce back to "Medium" when done. High logging can generate large log files quickly. ## License Management The Metrici Control Panel manages also the software licenses. This section explains how to manage your licenses. ### Understanding Your Licenses Your Metrici software is protected by a SENTINEL key which provides: - What applications you're licensed to use - How many instances of each application you can run - Whether you have a full or demo version ### Viewing License Summary To see a summary of all your enabled licenses: 1. Click the **Licenses** button. 2. A window will open showing detailed information about each type of license you have. 3. This includes both engine licenses and web interface licenses. ### Requesting License Activation If you need to activate new licenses (for example, after purchasing additional applications): 1. Ensure your SENTINEL USB key is connected. 2. Click the **License Request** button. 3. Enter the product activation key provided by your Metrici distributor when prompted 4. A file with extension `.c2v` will be created on your Desktop 5. Go to http://support.metrici.ro/activate/ . In the designated fields write a valid e-mail address to which you have access and a phone number. Load the previously generated c2v file by pressing "Load the license request file". In the end press "Request activation". 6. It is important that you have access to the mail you provided because you will receive there the info for activation 7. Metrici will process your request and send you a license update file > **File Location:** The license request file is saved as `[product_key].c2v` on your Desktop. Make sure to send the correct file to your distributor. ### Updating Licenses When your distributor sends you a license update file: 1. Save the license update file (usually has `.v2c` or `.v2cp` extension) to your computer 2. Ensure your SENTINEL key is active 3. Click the **License Update** button. 4. Navigate to and select the license update file 5. Click **Open** 6. The license will be updated and the Control Panel will restart > **Important:** After updating licenses, the Control Panel will restart. ### License Status Indicators The Control Panel provides visual feedback about your license status: | Status Display | Meaning | Action Required | |----------------|---------|-----------------| | **Green: "SENTINEL key is active, X engine licenses and Y web licenses enabled"** | Normal operation, licenses working | None | | **Orange: "SENTINEL key is active, X demo engine license(s) and ALL demo web license(s) enabled"** | Demo/trial version active | Contact distributor for full licenses | | **Red: "SENTINEL key error: invalid, not active, missing or expired"** | License key problem detected | Check USB connection, try different USB port, or contact support | ## Monitoring Applications The Control Panel provides several ways to monitor your applications in real-time. ### Status Column The status column shows the current state of each application: | Status | Meaning | |--------|---------| | **Stopped** | Application is not running | | **Starting** | Application is launching (this is temporary) | | **Started** | Application is running and processing data | ### Load Monitoring The "Load" column shows the current CPU load of each application as a percentage. This helps you understand how heavily each application is using system resources: | Load Value | Interpretation | |------------|----------------| | **0%** | Application is idle or no data is being processed | | **1-50%** | Light processing load | | **50-80%** | Moderate processing load | | **80-100%** | Heavy processing, may affect real-time performance | > **Monitoring Tip:** If you see consistently high load values, consider reducing the number of applications running, reducing CPU core allocation per application, or upgrading your hardware. ### Automatic Status Updates The Control Panel automatically checks the status of all applications every second. The display updates automatically when: - An application starts or stops - The load changes significantly - A watchdog restart occurs ### Watchdog Feature Applications configured with "Watchdog" execution type have built-in crash recovery: - If the application crashes or stops unexpectedly - The Control Panel detects this instantly - Automatically restarts the application - Logs the event in the system log > **Watchdog in Action:** You might see an application status briefly change from "Started" to "Starting" without any action from you. This indicates the watchdog successfully recovered the application after an unexpected stop. ## Log Files and Troubleshooting ### Understanding Log Files Log files contain detailed records of what an application did. They're essential for understanding problems and monitoring performance. #### Where Logs Are Stored Logs are typically stored in the application data directory. You can access them through the Control Panel by clicking the "View Log" button for any selected application. ### Common Issues and Solutions #### Application Won't Start - Check that you have available licenses - Verify the SENTINEL key is connected - Check the application logs for error messages - Ensure the camera is properly configured and accessible #### High CPU Usage - Reduce the number of CPU cores allocated per application - Disable GPU acceleration if not needed - Reduce video resolution or FPS limit in the application settings - Consider adding more CPU cores or upgrading hardware #### Application Crashes Frequently - Check the application logs for error messages - Verify the camera connection is stable - Ensure the application has enough resources (CPU, GPU, memory) - Update to the latest version of the software ## Frequently Asked Questions ### Q: How many applications can I run? You can run as many applications as you have licenses for. The Control Panel will show you the number of available licenses in the top bar. ### Q: What is the difference between Background and Foreground execution? Background applications run without a visible window, making them ideal for server installations. Foreground applications display their interface on screen, which is useful for testing and monitoring. ### Q: How do I add a new license? Contact your Metrici distributor to purchase additional licenses. They will provide you with an activation key. Use the License Request and License Update buttons in the Control Panel to activate the new licenses. ### Q: Can I run multiple instances of the same application? Yes, as long as you have enough licenses. Each instance will have its own configuration file and can be configured independently. ## Technical Support For additional help, please contact Metrici technical support team at **support@metrici.ro**. **Version:** Metrici Control Panel v4.0 # Metrici Area Counter v2.0 User Manual for End Users and System Administrators --- > **Tip:** If you're unsure of your camera's stream type, check the camera's documentation or try "RTSP H.264" first as it's the most common format for modern IP cameras. ## Table of Contents 1. [Getting Started](#getting-started) 2. [Main Window Overview](#main-window) 3. [Video Source Configuration](#video-sources) 4. [Setting Up Counting Zones](#counting-zones) 5. [Engine Working Mode and External Trigger](#engine-settings) 6. [External Trigger Configuration](#external-trigger) 7. [Signaling Device URL](#barrier-control) 8. [Live View Streaming](#live-view) 9. [Reporting](#reporting) 10. [Command Line Options](#command-line) 11. [Troubleshooting](#troubleshooting) 12. [Configuration File Reference](#configuration-file-reference) 13. [Glossary](#glossary) 14. [Technical Support](#technical-support) ## Getting Started ### What is Metrici Area Counter? Metrici Area Counter is a software application that uses video cameras to automatically detect, track, and count objects (like people or vehicles) as they move through defined areas. It's commonly used for attendance tracking, traffic monitoring, crowd management, and occupancy counting. ### Starting the Application The application automatically starts every time the server is on. If not, launch the application from command line. The system will initialize and connect to your configured video source. If this is your first time running the application, you'll see a settings window where you can configure all your options. ## Main Window Overview The main window consists of several key areas: **Fig.1 AC Interface** ### Video Display Area The central area shows the processed video feed with: - **Main Stream:** Your primary video source with detected objects and counting zones overlaid. - **Companion Stream:** (Optional) Secondary video source for alternative view. - **Zone Overlays:** Semi-transparent polygons showing your counting zones. - **Object Highlights:** Bounding boxes around detected objects. ### Status Bar Below the video, you'll see status information: - **Connection Status:** Shows if camera is connected, disconnected, or connecting. - **Stream Type:** Type of video source (RTSP, HTTP, etc.). - **Stream Address:** IP address or URL of the camera. - **FPS:** Frames per second being processed. - **Resolution:** Video resolution (width × height). ### Control Buttons - **Settings:** Opens the configuration window to adjust all settings. - **Add Zone:** Creates a new counting zone by drawing on the video. - **Edit Zone:** Modifies an existing counting zone. - **Save Zone:** Saves changes to counting zones (only appears after Edit Zone is used). - **Delete Zone:** Removes the selected counting zone. - **About:** Shows version and license information. - **Maximize:** Toggles between full-screen and windowed mode. - **Quit:** Closes the application. ### Counters Display The right panel shows: - **Zone Table:** List of all counting zones with their individual counts. - **Total Counter:** Sum of all objects counted across all zones. ## Video Source Configuration The first and most important setup is configuring your video source. Click the **Settings** button to open the configuration window. ### Main Input Stream #### Stream Type Select the type of video source from the dropdown menu: - **ACTi:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Android:** Supported codecs: MJPEG; standard protocols (HTTP) - **Arecont Vision:** Supported codecs: MJPEG; standard protocols (HTTP) - **Axis:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **BASLER:** GigE - **Bosch:** Supported codecs: MJPEG, H264; standard protocols (RTSP) - **Dahua:** Supported codecs: MJPEG; standard protocols (HTTP) - **Divotec:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Hikvision:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Mobotix:** Supported codecs: MJPEG, MxPEG; standard protocols (HTTP) - **Novus:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Pelco:** Supported codecs: MJPEG; standard protocols (RTSP) - **Roseek:** RAW - **Samsung:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **VLC:** Supported codecs: MJPEG; standard protocols (HTTP) - **Vivotek:** Supported codecs: MJPEG; standard protocols (HTTP) - **Generic:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) #### Step-by-Step Setup: 1. Click the **Settings** button on the main interface. 2. Select **"Input stream"** from the settings categories. 3. **Stream Type:** Select your camera's protocol from the dropdown list. 4. **IP Address:** Enter the camera's IP address. 5. **Port:** Enter the HTTP port (default HTTP is 80) - other protocols have different ports. 6. **Use SSL:** Enable if your camera requires secure connection. 7. **Username/Password:** Enter credentials if your camera is password protected. 8. **Limit FPS:** Set to 0 for unlimited, or specify a maximum frame rate. ### Companion Stream (Optional) A secondary video source that can be used to have an alternative view of the scenery. When a new event is registered by the main camera, a frame is saved from the companion one along the one with the detection. The companion stream uses the same configuration options as the main stream: type, address, authentication, ports, SSL, and resolution. Configure it independently based on your second camera's capabilities. > **Note:** Do not fill in anything for this tab if you don't have a secondary camera. ## Setting Up Counting Zones Counting zones are the areas where objects are detected and counted. Each zone is defined as a quadrilateral (four-sided polygon) on the video image. ### Creating a New Zone 1. Click the **Add Zone** button in the main window. 2. Drag on the four corners of the area you want to monitor. Click Save Zone. 3. After placing all four points press save and the zone is created. 4. In an image, you can create as many zones as you want. 5. Each zone will have a number on one of the corners indicating its order. ### Zone Shape Guidelines - **Complete Coverage:** Ensure the zone covers all paths where objects may be ### Editing Existing Zones 1. Select the zone from the zones table (click on it). 2. Click the **Edit Zone** button. 3. Drag the corner points to new positions. 4. Click **Save Zone** when finished. ### Deleting Zones 1. Select the zone from the zones table. 2. Click the **Delete Zone** button. 3. Confirm the deletion. ### Understanding Zone Counts Each zone displays: - **Zone ID:** Unique identifier for the zone. - **Counter:** Number of objects detected in this zone. - **Last Change:** Timestamp of the most recent count change. - **Time Elapsed:** Time since the zone was last modified. > **Note:** The counter shows the total number of objects currently within the zone, not a cumulative total. Objects leaving the zone will decrement the counter. ## Engine Working Mode and External Trigger These settings control how the application detects and counts objects. Access them in Settings → Engine Working Mode and External Trigger. ### Engine Working Mode Choose how the detection engine should operate: | Mode | Description | Use Case | |------|-------------|----------| | **Continuous** | Always processes video frames and counts objects | 24/7 monitoring, constant traffic areas | | **Started by Trigger, Ended After Time Period** | Starts counting when triggered, stops after a set time | Less processing | | **Started by Trigger, Ended After Level Change** | Starts counting when triggered, stops when trigger resets | Gate-triggered counting, door counters | ### Recognition Enhancement Applies additional image processing to improve detection and recognition accuracy. Enable this if objects are often missed or misidentified. This setting adjusts detection accuracy across a range from Low to Ultra. Higher precision levels deliver significantly better results, though they do require more processing power. In most cases, a Normal setting will be sufficient; however, the smaller the objects appear in the video stream, the higher the accuracy needs to be, so High or even Ultra may be necessary. | Level | Description | CPU Impact | |-------|-------------|------------| | **Low** | Minimal processing, fastest performance | Very Low | | **Medium** | Balanced processing for moderate accuracy | Low | | **Normal** | Standard processing for good accuracy | Medium | | **High** | Aggressive processing for high accuracy | High | | **Ultra** | Maximum processing for best accuracy | Very High | | **Insane** | The top level of AI analysis | Use only in extreme situations | ### Image Analysis Mode Select the algorithm used for image analysis: - **Full:** The entire image is analyzed in one step. If the objects are smaller than 4% of the image, the image will be ignored. - **Cropped:** Only the defined areas are cropped and analyzed one by one, so each object should be bigger than 4% of the corresponding cropped area. - **Microscope:** The entire image is cropped in small tiles which are analyzed one by one and the results are combined afterwards. ### Object Type Select what types of objects to detect and count: | Type | Description | |------|-------------| | **People, People (fast)** | Human detection only | | **Vehicles, Vehicles (fast)** | Car, Truck, Bus, Semi-truck, Vans, SUV/pick-up, Motorcycle, Tram, other | | **People heads** | Detect people heads | | **Boats** | Jet-ski, Inflatable, Dinghy, Sailboat, Motor-yacht, Passenger-ship, Catamaran, other | | **Custom** | Used in tailored projects when AI training is done for specific client's products/objects | The **fast** option refers to a Metrici setting where a smaller DNN is used for faster processing when objects are bigger in the frame. ## External Trigger Configuration An external trigger allows you to start/stop counting based on external hardware signals, useful for integration with access control systems or sensors. If you don't have any external triggers leave it to None. ### Trigger Types | Trigger Type | Description | |--------------|-------------| | **None** | No external trigger, continuous operation | | **Barionet 50 I1-I4** | Barionet 50 controller inputs 1-4 (hardware I/O device) | | **Metrici Virtual** | Software trigger from Metrici system | ### Trigger: How Many Seconds to Analyze How many seconds the engine analyzes the frames after the trigger is received. ### Using Barionet Triggers The Barionet 50 is a hardware I/O controller that provides digital inputs. Connect your trigger source (sensor, button, relay) to one of the four inputs: - **I1:** Input 1 (typically GPIO1) - **I2:** Input 2 (typically GPIO2) - **I3:** Input 3 (typically GPIO3) - **I4:** Input 4 (typically GPIO4) ## Signaling Device URL When configured, the system can send commands to open barriers based on counting events, object recognition, or external triggers. This enables automated access control systems. ### Signaling Device URL ON Enter the HTTP URL triggered when a new event is registered - the count in the area changes. This is typically a command sent to a controller or automation system. ### Signaling Device URL OFF Enter the HTTP URL that triggers the stop of the process opened by the previous signal, like closing the barrier, a door, turning a light off, etc. ### Open-Close Delay Sets how long (in seconds) the signal stays ON before automatically closing. ### RTSP Stream Latency This setting can be set in .ini file `rtsp_stream_latency =`: Set the buffering delay for RTSP streams. Higher values (500-2000ms) provide smoother video but increase delay between actual events and system response. For real-time counting, use lower values (100-300ms). By default the settings are set to (100-300ms). ### RTSP Stream Protocol This setting can be set in .ini file `rtsp_stream_protocols =`: Choose which RTSP protocols to attempt. Using UDP is faster but may have issues through firewalls. TCP is more reliable but slightly slower. You can enable both to let the system try UDP first, then fall back to TCP if needed. The default RTSP protocol that is set is TCP. ## Live View Streaming Enable a live video stream that can be viewed in web browsers or other applications. ### Enable Live View Check this box to enable live view streaming. When enabled, the processed video with overlays is made available for viewing. ### Live View URL The local URL where the live stream is published. Default: `http://localhost/io/ac/live_view.php`. To view the live stream, open a web browser and navigate to this URL. The stream will display the same view as the application main window. ## Reporting The application can send counting events to a remote server for recording. ### Reporting URL The web address where counting events are sent. Format: `http://localhost/io/ac/new_counting_zone_event.php`. When an object enters or exits a counting zone, the application sends an HTTP POST request with event data. ### Check Action ID An identifier sent with each event to help the server categorize or route the data. Leave as 0 if not used by your server. This setting can be found in .ini file `"reporting_check_action_id = 0"`. ### Authentication Key The authkey and ID provide authentication for external server communications. These credentials are obtained from the Metrici web interface where you configure your AC cameras into the location. ### Counter Change Delay Sets a time delay (in seconds) between a detection event and the moment the counter is updated. This prevents false positives caused by brief, unintended triggers — for example, an object partially crossing a line and immediately moving back. ### Duplicate URL (Optional) An optional second URL where the same event data is sent (this URL can be set in .ini file). Use this for: - Redundancy (backup server) - Different processing (analytics + archive) - Load balancing ## Command Line Options The application accepts several command line parameters for advanced configuration: | Option | Description | |--------|-------------| | `-nogui` | Run without graphical interface (headless mode) | | `-app_id N` | Set application ID (uses config file N.ini). Default is 0. | | `-app_name "Name"` | Set custom application name for display | | `-detection_threads N` | Number of processing threads (1-8). Default is 1. | | `-disable_gpu` | Disable GPU acceleration even if available | | `-use_gpu N` | Force use of specific GPU device ID | | `-log_level N` | Logging detail level: 0=None, 1=Low, 2=Medium, 3=High | | `-v` | Display version information and exit | ### Example Commands ```bash # Run headless with application ID 5 ./metrici-ac -nogui -app_id 5 # Run with 4 processing threads and high logging ./metrici-ac -detection_threads 4 -log_level 3 # Run with custom application name ./metrici-ac -app_name "Main Entrance Counter" -app_id 1 # Check version ./metrici-ac -v # Run with GPU disabled (use CPU only) ./metrici-ac -disable_gpu ``` ## Troubleshooting ### Connection Problems #### "Camera Not Connecting" **Symptoms:** Connection status shows "Disconnected", stream never connects **Solutions:** - Verify camera IP address is correct and camera is powered on - Check network connectivity (ping the camera IP) - Verify username and password are correct - Ensure correct stream type is selected - Check if camera requires HTTPS (enable SSL option) - Try different TCP port (default 554 for RTSP, 80 for HTTP) ### Detection Problems #### "Objects Not Being Detected" **Symptoms:** Video shows but no objects are highlighted or counted **Solutions:** - Ensure object type matches what you're trying to detect - Increase recognition enhancement level - Check if lighting is adequate - Verify counting zones are properly drawn over the path - Ensure objects are large enough in the frame #### "False Positives (Ghost Counts)" **Symptoms:** Count increases when nothing is there, or counts objects in wrong areas **Solutions:** - Increase recognition enhancement level - Increase counter change delay - Adjust counting zone boundaries to avoid background movement - Check for shadows, reflections, or moving foliage in frame - Change image analysis mode ### Log Files When troubleshooting, enable detailed logging to capture issues: ```bash # Run with high logging level ./metrici-ac -log_level 3 ``` Log files contain detailed information about: - Connection attempts and results - Detection events - Count changes - Error messages ### Getting Help If you continue to experience issues: 1. Check the application logs (run with `-log_level 3`) 2. Note the exact error messages and when they occur 3. Record your configuration settings 4. Contact technical support with: - Application version - Operating system - Camera make and model - Configuration file content - Log file excerpts ## Configuration File Reference All settings are stored in configuration files (X.ini where X is the app ID). Here's a complete reference: ```ini [General] # Video Source Settings input_stream_type=2 # 0=None, 1=HTTP MJPEG, 2=RTSP H.264, etc. input_stream_address=192.168.1.100 # Camera IP or URL input_stream_tcp_port=554 # RTSP:554, HTTP:80 input_stream_use_ssl=0 # 0=No, 1=Yes input_stream_username=admin # Camera login username input_stream_password=password # Camera login password input_stream_fps_limit=0 # 0=Unlimited # Companion Stream (Optional) companion_stream_type=0 companion_stream_address= companion_stream_tcp_port=80 companion_stream_use_ssl=0 companion_stream_username= companion_stream_password= # RTSP Settings rtsp_stream_latency=2000 # Milliseconds (500-5000) rtsp_stream_protocols=tcp # tcp or udp # Reporting Settings reporting_url=http://localhost/io/ac/new_counting_zone_event.php #Default reporting_duplicate_url= # Optional backup server reporting_check_action_id=0 reporting_check_action_authkey= # Authentication key # Live View Settings live_view_active=1 # 0=Off, 1=On live_view_url=http://localhost/io/ac/live_view.php #Default # Engine Settings external_trigger_type=0 # 0=None, 1-4=Barionet inputs, 5=Virtual external_trigger_seconds=1 # Trigger debounce time engine_working_mode=0 # 0=Continuous, 1=Time-triggered, 2=Level-triggered recognition_enhancement=3 # 0=Low to 4=Ultra image_analysis_mode=0 # 0=Standard, 1=Enhanced, 2=Deep Learning objects_type=2 # 0=People, 1=Vehicles, 2=Both counter_change_delay=2 # Seconds # Barrier Control open_barrier_url= close_barrier_url= open_close_barrier_delay=5 # Seconds # Counting Zones (Auto-generated, do not edit manually) counting_zones_list="1,0.1,0.1,0.9,0.1,0.9,0.9,0.1,0.9;" ``` ## Glossary | Term | Definition | |------|------------| | **RTSP** | Real-Time Streaming Protocol - standard for streaming video over IP networks | | **H.264/H.265** | Video compression standards (also called AVC and HEVC) | | **MJPEG** | Motion JPEG - format that sends individual JPEG images in sequence | | **FPS** | Frames Per Second - rate at which video frames are captured/displayed | | **OpenCL** | Open Computing Language - allows software to use GPU for processing | | **Latency** | Delay between video capture and display | | **Authentication Key** | Security code meant to facilitate communication between detection engines and database | ## Technical Support For additional help, please contact Metrici technical support team at **support@metrici.ro**. **Version:** Metrici Area Counter v2.0 # Metrici Line Counter v1.4 User Manual for End Users and System Administrators > **Welcome!** This manual will guide you through all features and settings of your Metrici Line Counter. Whether you're monitoring vehicles on a highway, counting people in a building, tracking boats at a marina, or managing inventory flow in a warehouse, this guide will help you configure everything you need for accurate object counting. ## Table of Contents 1. [Getting Started](#getting-started) 2. [Main Window Overview](#main-window) 3. [Video Source Configuration](#video-sources) 4. [Companion Stream](#companion-stream) 5. [Counting Lines](#counting-gates) 6. [Engine Working Mode & External Trigger](#recognition-settings) 7. [Signaling Device URL](#barrier-control) 8. [External Trigger Setup](#external-trigger) 9. [GPS Calibration](#gps-calibration) 10. [Reporting Configuration](#reporting) 11. [Live View Feature](#live-view) 12. [Troubleshooting](#troubleshooting) 13. [Configuration File (INI File)](#configuration-file) 14. [Glossary](#glossary) ## Getting Started ### What This System Does The Metrici Line Counter is an intelligent video analysis application that automatically detects and tracks various types of objects (vehicles, people, boats, animals, or custom objects) and counts them as they pass through virtual defined counting lines. It connects to your cameras, processes the video feed in real-time, and can send counting data to external systems or trigger automated responses. The system is versatile and can be configured for numerous applications: - **Traffic monitoring:** Count vehicles on roads, highways, or toll booths - **People counting:** Monitor foot traffic in buildings, stores, sidewalks, or events - **Maritime applications:** Count boats passing through locks or at harbors - **Industrial counting:** Track items on production lines or in warehouses - **Wildlife monitoring:** Count animals in conservation areas or farms ### System Requirements - **Camera:** IP camera or video file source - **Network:** Stable connection for camera access (if using IP cameras) - **License Key:** Valid HASP key for software activation ### Starting the Application The application automatically starts every time the server is on. If not, launch the application from command line. The system will initialize and connect to your configured video source. If this is your first time running the application, you'll see a settings window where you can configure all your options. ## Main Window Overview The main window displays your video feed and provides access to all system controls. Understanding each section will help you operate the system efficiently. **Fig.1 LC Main Interface** ### Video Display Area The central area shows the processed video feed with: - **Main Stream:** Your primary video source. - **Companion Stream:** (Optional) Secondary video source for alternative view. - **Counting Lines:** Virtual lines that detect when objects cross them. ### Status Bar Below the video, you'll see status information: - **Connection Status:** Shows if camera is connected, disconnected, or connecting. - **Stream Type:** Type of video source (RTSP, HTTP, etc.). - **Stream Address:** IP address or URL of the camera. - **FPS:** Frames per second being processed. - **Resolution:** Video resolution (width × height). ### Control Buttons - **Settings:** Opens the configuration window to adjust all settings. - **Add gate:** Creates a new gate. - **Edit Gate:** Modifies an existing gate. - **Delete Gate:** Removes the selected gate. - **About:** Shows version and license information. - **Maximize:** Toggles between full-screen and windowed mode. - **Quit:** Closes the application. ## Video Source Configuration The first and most important setup is configuring your video source. Click the Settings button to open the configuration window. **Fig.2 Input Stream** ### Input Stream Type The system includes optimized drivers for many popular camera brands: - **ACTi:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Android:** Supported codecs: MJPEG; standard protocols (HTTP) - **Arecont Vision:** Supported codecs: MJPEG; standard protocols (HTTP) - **Axis:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Bosch:** Supported codecs: MJPEG, H264; standard protocols (RTSP) - **Dahua:** Supported codecs: MJPEG; standard protocols (HTTP) - **Divotec:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Hikvision:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Mobotix:** Supported codecs: MJPEG, MxPEG; standard protocols (HTTP) - **Novus:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Pelco:** Supported codecs: MJPEG; standard protocols (RTSP) - **Roseek:** RAW - **Samsung:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Sony:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) - **Uniview:** Supported codecs: H264; standard protocols (HRTSP) - **VLC:** Supported codecs: MJPEG; standard protocols (HTTP) - **Vivotek:** Supported codecs: MJPEG; standard protocols (HTTP) - **Generic:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP) > **Tip:** RTSP H.264 is recommended for most installations as it provides the best balance of video quality and network efficiency. #### Step-by-Step Setup: 1. Click the **Settings** button on the main interface. 2. Select **"Input stream"** from the settings categories. 3. **Stream Type:** Select your camera's protocol from the dropdown list. 4. **IP Address:** Enter the camera's IP address. 5. **Port:** Enter the HTTP port (default HTTP is 80) - other protocols have different ports. 6. **Use SSL:** Enable if your camera requires secure connection. 7. **Username/Password:** Enter credentials if your camera is password protected. 8. **Limit FPS:** Set to 0 for unlimited, or specify a maximum frame rate. Line Counter needs more FPS to track the objects. ### RTSP Stream Latency Set the buffering delay for RTSP streams. Higher values (500-2000ms) provide smoother video but increase delay between actual events and system response. For real-time counting, use lower values (100-300ms). By default the settings are set to (100-300ms). ### RTSP Protocol Selection Choose which RTSP protocols to attempt. Using UDP is faster but may have issues through firewalls. TCP is more reliable but slightly slower. You can enable both to let the system try UDP first, then fall back to TCP if needed. The default RTSP protocol that is set is TCP. The settings are done in the .ini file. ## Companion Stream The companion stream feature allows you to connect a second camera that can provide additional viewpoints for verification. **Fig.4 Companion** > **Note:** Use Companion Stream tab and fill in data only if one camera (different from LC one) is available for this purpose. Otherwise leave it blank. ### Configuration Options The companion stream uses the same configuration options as the main stream: type, address, authentication, ports, SSL, and resolution. Configure it independently based on your second camera's capabilities. ### When to Use Companion Stream - **Multiple angle capture:** Main camera captures full view, companion gets detailed close-up. ## Counting Lines Counting lines (also called "gates") are virtual lines drawn on your video image that detect when objects cross them. This is how the system counts objects and determines direction of travel. ### Understanding Counting Lines A counting line is a defined line or zone on your video screen. When an object is detected crossing this line, the system records a counting event. You can configure multiple lines for different counting zones, lanes, or areas. ### Adding a New Counting Line 1. Click the **Add Gate** button in the main window. 2. A new counting line appears in the gates table. 3. Drag the line endpoints to the desired location. 4. Pay attention to the direction indicated by the arrow at the end of the gate. 5. Click **Save Gate** to confirm the position. 6. You can add as many counting lines as you want in the application. ### Counting Line Properties | Property | Description | |----------|-------------| | Gate ID | Unique identifier for the counting line (automatically assigned). | | Position (X1, Y1, X2, Y2) | Coordinates of the counting line endpoints (0-100% of image width/height). This data can be found in the .ini file of the application: `gates_list=""`. | | Counter Coming | Number of objects detected crossing in one direction. | | Counter Leaving | Number of objects detected crossing in the opposite direction. | | Last Change | Timestamp of the most recent counting event. | ### Direction Detection The system automatically determines object direction based on which side of the counting line the object was on before and after crossing. The counter increments in the appropriate direction (coming/leaving) based on this detection. ### Deleting Counting Lines Select a counting line in the table and click **Delete Gate** to remove it. Confirm the deletion when prompted. ### Testing Your Counting Lines After positioning your counting lines, test them by having objects cross at different speeds and angles. Verify that the counts update correctly in both directions. Adjust line position if objects are missed or counted incorrectly. ## Engine Working Mode & External Trigger These settings control how the system detects and recognizes different types of objects. Proper configuration ensures accurate results for your specific application. **Fig.5 Engine working & External trigger** ### Objects Type Specifies what types of objects the system should detect and track: - **Vehicles:** Cars, trucks, motorcycles, buses etc. Metrici has 9 classes of vehicle. - **People:** Will detect people or parts of human body. - **People heads:** Will only detect faces. - **Boats:** Jet-ski, Inflatable, Dinghy, Sailboat, Motor-yacht, Passenger-ship, Catamaran, Other. - **Custom:** Used in tailored projects when AI training is done for specific client's products/objects. The fast option refers to a Metrici setting where a smaller DNN is used for faster processing when objects are bigger in the frame. ### Recognition Enhancement Applies additional image processing to improve detection and recognition accuracy. Enable this if objects are often missed or misidentified. What this will do is increase the accuracy of detection from Low to Ultra. The higher the precision, the more processing power is needed but the precision is much better. A normal setting would be just enough in most cases. The smaller the objects are in the video stream, the greater the accuracy must be so you will choose "high" or even "ultra". > **Performance Impact:** Recognition enhancement increases CPU usage. If your system struggles with frame rate, try lower enhancement levels or reduce video resolution. ### Engine Working Mode From **"Engine working mode:"**, you can choose between two options: #### 1. Continuous Mode - **Description:** The system constantly analyzes every video frame - **Resource usage:** High - uses more CPU/GPU #### 2. Triggered - Started by Trigger - **Description:** Detection starts when a trigger signal is received and continues for a set duration - **Saves:** Processing power when no objects are present ### Crossing Detection Point Position Sets where on the object the system checks for line crossings. A higher value means the crossing point will be computed to the top of the recognized object. ## Signaling Device URL This feature allows the system to automatically control equipment like barriers, gates or access control systems, typically used at entry points, toll stations, or secure facilities. ### Understanding Signaling Device URL When configured, the system can send commands to open barriers based on counting events, object recognition, or external triggers. This enables automated access control systems. The signal can be sent to other devices such as lights, audio signal, LED signs etc. ### Signaling Device for Coming Events (ON) Enter the HTTP URL triggered when a new event is registered. This is typically a command sent to a controller or automation system. ### Signaling Device for Coming Events (OFF) Enter the HTTP URL that triggers the barrier/equipment to close. The system can automatically close barriers after objects pass through. ### Open-Close Delay Sets how long (in seconds) the barrier stays open before automatically closing. Set this based on your typical traffic flow. ### Secondary Equipment Control For installations with two barriers (such as entrance and exit lanes), configure the secondary barrier URLs and delays independently. ## External Trigger Setup External triggers allow hardware devices or other systems to control the counting system. This is useful for integrating with sensors, signals, or external control systems. An external trigger allows you to start/stop counting based on external hardware signals, useful for integration with access control systems or sensors. ### Trigger Types | Trigger Type | Description | |--------------|-------------| | **None** | No external trigger, continuous operation | | **Barionet 50 I1-I4** | Barionet 50 controller inputs 1-4 (hardware I/O device) | | **Metrici Virtual** | Software trigger from Metrici system | ### Trigger Seconds Sets how long (in seconds) the trigger must be active before it's recognized. This prevents noise or brief signals from triggering false events. ### Using Barionet Triggers The Barionet 50 is a hardware I/O controller that provides digital inputs. Connect your trigger source (sensor, button, relay) to one of the four inputs: - **I1:** Input 1 (typically GPIO1) - **I2:** Input 2 (typically GPIO2) - **I3:** Input 3 (typically GPIO3) - **I4:** Input 4 (typically GPIO4) ## GPS Calibration GPS calibration maps video image coordinates to real-world GPS coordinates. This allows the system to report actual positions of detected objects or measure object dimensions. **Fig.6 GPS settings** ### When to Use GPS Calibration - Large areas requiring object location tracking. - Outdoor monitoring systems needing geographic coordinates. - Systems that integrate with fleet management or dispatch. - Wildlife or maritime tracking applications. - Measure objects entering an area - e.g., boats entering the port. ### Calibration Process 1. Define 4 calibration points in the video image. 2. Measure the GPS coordinates (latitude/longitude) of each point in the real world. 3. Enter the image coordinates and GPS coordinates in the settings. 4. The system uses these points to calculate a transformation between image and GPS space. ### Calibration Point Configuration For each of the 4 calibration points, configure: - **X Coordinate:** Horizontal position on image (0-100% from left to right) - **Y Coordinate:** Vertical position on image (0-100% from top to bottom) - **Latitude:** Real-world latitude of the point - **Longitude:** Real-world longitude of the point ### Horizontal Reference Select the horizontal reference mode based on your camera angle: - **Length:** Use when the horizontal reference line represents a measured distance along the scene (e.g., along the road/sidewalk direction). Sets scale for that axis. - **Width:** Use when the horizontal reference line represents a measured distance across the scene (e.g., road/area width). - **Height:** How tall an object is. **Fig.6.1 GPS calibration** ## Reporting Configuration Configure how the system sends counting data and events to external systems or databases. **Fig.7 Reporting** ### Reporting URL Enter the URL where the system should send counting data. Data is typically sent as HTTP POST requests with JSON or XML content: ``` http://server_ip/io/lc/new_counting_gate_event.php ``` ### Duplicate Reporting URL Optionally specify a second URL to receive the same data (inside .ini file `reporting_duplicate_url = Second_URL`). ### Authentication Key The authkey and ID provide authentication for external server communications. These credentials are obtained from the Metrici web interface where you configure your LC cameras into the location. ### Data Sent in Reports Each counting event includes: - Timestamp of the event - Counting line ID that was crossed - Direction of travel (coming/leaving) - Object type (if recognized) - Object image (if enabled) - GPS coordinates (if calibrated) ## Live View Feature The live view feature allows remote viewing of the counting system's video output through a web browser or video streaming client. **Fig.8 Live view** ### Enabling Live View 1. Check **Enable Live View** in the settings. 2. Enter the URL where the video stream should be published. 3. Save the settings and restart the application. ### Live View URL Configuration The system can publish the processed video feed using various protocols. Common configurations: ``` server_ip/io/lc/live_view.php ``` > **Security Warning:** Live view URLs may be accessible over your network. Ensure proper network security and access controls to prevent unauthorized viewing. ## Troubleshooting ### Connection Issues | Problem | Solution | |---------|----------| | Camera won't connect | Check network cable, verify IP address, confirm camera is powered on | | Connection drops frequently | Increase RTSP latency, check network stability, reduce video quality | | Wrong video stream | Verify stream address path, check camera configuration for correct stream | | Authentication failed | Confirm username/password, check for special characters requiring URL encoding | ### Counting Accuracy Issues | Problem | Solution | |---------|----------| | Objects not counted | Reposition counting lines, Check recognition enhancement, Check crosspoint | | Wrong direction counted | Check line orientation | ### Detection and Recognition Issues | Problem | Solution | |---------|----------| | Objects not detected | Enable recognition enhancement, increase image resolution, improve lighting | | Wrong object type detected | Check objects type setting, adjust recognition enhancement level | | Slow detection | Reduce FPS limit, use faster stream type (RTSP H.264), upgrade hardware | | Blurry images | Check camera focus, reduce motion blur with higher shutter speed | ### Performance Issues | Problem | Solution | |---------|----------| | Low frame rate | Reduce video resolution, lower FPS limit, disable enhancement features | | High CPU usage | Use GPU acceleration if available, reduce number of counting lines | | Memory usage growing | Restart application periodically, reduce video buffer sizes | ### Barrier Control Issues | Problem | Solution | |---------|----------| | Barrier not responding | Verify URL is correct, check barrier controller network connection, test URL manually | | Barrier closes too fast | Increase open-close delay setting | | Barrier opens unintentionally | Check trigger configuration, review external trigger settings | ### Getting Help If you continue experiencing issues: 1. Check the application logs for detailed error messages 2. Note the exact conditions when the problem occurs 3. Contact technical support with: - Application version - Camera model and configuration - Operating system details - Error messages or log excerpts > **Log Files:** Application logs contain detailed information useful for troubleshooting. Log files are typically stored in the application data directory and can be accessed through the Settings window or directly from the file system. ## Configuration File (INI File) The Metrici Line Counter stores all its configuration settings in a file called `[app_id].ini`, where `[app_id]` is the application identifier (typically a number). This file is created automatically in the application directory when you first save your settings. ### Understanding the INI File The INI file is a standard configuration file format organized into key-value pairs. You can view or edit this file with any text editor, but it's recommended to use the application's Settings window for configuration changes to ensure all values are validated and saved correctly. > **Backup Recommendation:** Before manually editing the INI file, create a backup copy. Incorrect values can cause the application to malfunction or fail to start. ### INI File Location The INI file is stored in the same directory as the application executable. The filename matches your application ID (e.g., `1.ini`, `2.ini`). Multiple INI files can exist for different application instances. ### Configuration Values Reference The following table lists all configuration values stored in the INI file, their default values, and descriptions of what each setting controls. #### Main Video Stream Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `input_stream_type` | 0 | Type of video stream (0=RTSP H.264, 1=RTSP H.265, 2=RTSP MJPEG, etc.) | | `input_stream_address` | (empty) | Network address or file path of the video source | | `input_stream_tcp_port` | 80 | TCP port number for connecting to the camera | | `input_stream_use_ssl` | 0 | Enable SSL encryption for camera connection (0=off, 1=on) | | `input_stream_username` | (empty) | Username for camera authentication | | `input_stream_password` | (empty) | Password for camera authentication | | `input_stream_fps_limit` | 0 | Maximum frames per second to process (0=unlimited) | | `input_stream_resx` | 640 | Input video horizontal resolution in pixels | | `input_stream_resy` | 480 | Input video vertical resolution in pixels | #### Companion Stream Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `companion_stream_type` | 0 | Type of companion video stream | | `companion_stream_address` | (empty) | Network address or file path of the companion video source | | `companion_stream_tcp_port` | 80 | TCP port number for companion camera connection | | `companion_stream_use_ssl` | 0 | Enable SSL encryption for companion camera connection (0=off, 1=on) | | `companion_stream_username` | (empty) | Username for companion camera authentication | | `companion_stream_password` | (empty) | Password for companion camera authentication | | `companion_stream_resx` | 640 | Companion video horizontal resolution in pixels | | `companion_stream_resy` | 480 | Companion video vertical resolution in pixels | #### RTSP Stream Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `rtsp_stream_latency` | 100 | Buffer delay in milliseconds for RTSP streams (100-2000ms) | | `rtsp_stream_protocols` | tcp | RTSP transport protocols (tcp, udp, or both separated by comma) | #### Object Detection Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `recognition_enhancement` | 2 | Image processing enhancement level (0=off, 1=standard, 2=high) | | `objects_type` | 1 | Type of objects to detect (all vehicles, people, custom categories) | | `engine_working_mode` | 0 | Recognition engine mode (0=speed, 1=balanced, 2=accuracy) | | `crossing_detection_point_position` | 5 | Which point on object triggers count (center, bottom, up, or else) | | `normal_mode` | 1 | Standard operating mode flag | #### Counting Lines Configuration | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `gates_list` | (empty) | List of configured counting lines with their positions and settings | #### GPS Calibration Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `gps_calibration_points` | 1,0.2,0.2,0.0,0.0;2,0.8,0.2,0.0,0.0;3,0.8,0.8,0.0,0.0;4,0.2,0.8,0.0,0.0; | GPS calibration points (format: id,x,y,lat,lon;id,x,y,lat,lon;...) | | `horizontal_is` | 0 | Horizontal reference mode | #### External Trigger Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `external_trigger_type` | 0 | Type of external trigger (0=none, 1=TCP, 2=UDP, 3=HTTP, 4=serial) | | `external_trigger_seconds` | 1 | Duration in seconds that external trigger remains active | #### Reporting Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `reporting_check_action_id` | 0 | Identifier for this counting instance in reporting | | `reporting_check_action_authkey` | (empty) | Security key for authenticating reporting requests | | `reporting_url` | http://localhost/io/lc/new_counting_gate_event.php | URL where counting events are sent | | `reporting_duplicate_url` | (empty) | Secondary URL for redundant reporting | | `reporting_send_image` | 1 | Include captured images in reports (0=no, 1=yes) | #### Live View Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `live_view_active` | 1 | Enable live view streaming (0=disabled, 1=enabled) | | `live_view_url` | http://localhost/io/lc/live_view.php | URL where the processed video stream is published | #### Barrier Control Settings | Setting Name | Default Value | Description | |-------------|--------------|-------------| | `open_barrier_url` | (empty) | HTTP URL that triggers the primary barrier to open | | `close_barrier_url` | (empty) | HTTP URL that triggers the primary barrier to close | | `open_close_barrier_delay` | 5 | Seconds the primary barrier stays open before auto-closing | | `open_barrier2_url` | (empty) | HTTP URL that triggers the secondary barrier to open | | `close_barrier2_url` | (empty) | HTTP URL that triggers the secondary barrier to close | | `open_close_barrier2_delay` | 5 | Seconds the secondary barrier stays open before auto-closing | ### Example INI File Below is an example of what a typical INI file looks like with sample configuration values: ```ini [General] input_stream_type=0 input_stream_address=rtsp://192.168.1.100:554/stream1 input_stream_tcp_port=554 input_stream_use_ssl=0 input_stream_username=admin input_stream_password=secret123 input_stream_fps_limit=25 input_stream_resx=1280 input_stream_resy=720 companion_stream_type=0 companion_stream_address=rtsp://192.168.1.101:554/stream1 companion_stream_tcp_port=554 companion_stream_use_ssl=0 companion_stream_username= companion_stream_password= companion_stream_resx=640 companion_stream_resy=480 rtsp_stream_latency=200 rtsp_stream_protocols=tcp object_tracking_level=3 recognition_enhancement=1 objects_type=1 engine_working_mode=1 crossing_detection_point_position=5 normal_mode=1 gates_list=1,0.2,0.5,0.8,0.5;2,0.4,0.3,0.6,0.3; gps_calibration_points=1,0.2,0.2,45.1234,12.5678;2,0.8,0.2,45.1240,12.5685;3,0.8,0.8,45.1230,12.5680;4,0.2,0.8,45.1225,12.5675; horizontal_is=0 external_trigger_type=1 external_trigger_seconds=1 reporting_check_action_id=1 reporting_check_action_authkey=authkey123 reporting_url=http://server.io/lc/new_counting_gate_event.php reporting_duplicate_url= reporting_send_image=1 live_view_active=1 live_view_url=http://localhost/io/lc/live_view open_barrier_url= close_barrier_url= open_close_barrier_delay=5 open_barrier2_url= close_barrier2_url= open_close_barrier2_delay=5 ``` > **Warning:** Deleting the INI file will erase all your configuration settings, counting lines, and calibration data. Make a backup if you might need to restore them later. ### Multiple Configuration Files You can create multiple INI files for different configurations by changing the application ID. This is useful for: - Different camera setups at different locations - Testing new settings without affecting production configuration - Switching between different counting scenarios Simply copy the INI file with a different name and configure the application to use that file. ## Glossary | Term | Definition | |------|------------| | **Counting Line (Gate)** | A virtual line on the video image used to detect object crossings for counting | | **FPS** | Frames Per Second - Measure of video smoothness, higher values mean smoother video but more processing | | **Object Tracking** | The process of following detected objects across consecutive video frames | | **RTSP** | Real Time Streaming Protocol - Standard protocol for streaming video over networks | | **SSL/TLS** | Encryption protocols for securing network communications | | **Trigger** | A signal (from hardware or software) that causes the system to take action | > **Document Version:** This manual corresponds to version 1.4 of the Metrici Line Counter. Features and options may vary slightly between versions. # Metrici Parking Place Detector v2.0 User Manual for End Users and System Administrators > **Quick Start:** This manual explains how to configure and use the Parking Place Detector system. The application monitors camera feeds, detects vehicles in parking spaces, and reports occupancy status to your management system. ## Table of Contents 1. [Introduction](#introduction) 2. [Main Window Overview](#main-window) 3. [Configuration Settings](#settings) 4. [Camera Stream Configuration](#streaming) 5. [Detection Settings](#detection) 6. [Reporting Configuration](#reporting) 7. [Managing Parking Spaces](#parking-spaces) 8. [Troubleshooting](#troubleshooting) 9. [INI Configuration File](#ini-file) 10. [Command Line Options](#command-line-options) 11. [Glossary](#glossary) 12. [Getting Help](#getting-help) ## 1. Introduction ### What This Application Does The ParkingPlace Detector system is an automated surveillance solution that: - Connects to one or more cameras monitoring a parking area. - Continuously analyzes video frames to detect vehicles or other objects. - Monitors the status (free/occupied) of each parking space. - Sends real-time occupancy data to your reporting server. - Provides a live view of the parking area with detection overlays. ### Key Concepts - **Input Stream:** The primary camera feed showing the parking area. - **Companion Stream:** An optional secondary camera for different overview. - **Trigger:** An external signal (from sensors or other systems) that can start/stop detection. - **Recognition Enhancement:** How thoroughly the system analyzes each frame for detection. ## 2. Main Window Overview When you launch the application, you'll see the main window containing several important areas: **Fig.1 Main Interface** ### 2.1 Video Display Area The main portion of the window shows the live camera feed. This is where you can: - Watch the real-time video from your parking camera. - See colored boxes (bounding boxes) around detected vehicles. - Observe the current status of each parking space. ### 2.2 Connection Status Indicators Located below the video display, these indicators show: - **Connection Status:** Whether the camera is connected, disconnected, or connecting. - **Stream Type:** What type of video stream is being used (RTSP, HTTP, etc.). - **Stream Address:** The IP address or URL of the camera. - **FPS:** Frames per second being processed. - **Resolution:** The video resolution (width x height). ### 2.3 Parking Spaces Table A table showing all configured parking spaces with their: - **ID:** Unique identifier for each space. - **Status:** Free, Busy, or Unknown. - **Double Parking:** Whether a vehicle is parked across two spaces. ### 2.4 Counter Summary At the bottom, you'll see three counters showing: - **Total:** Total number of parking spaces configured. - **Busy:** How many spaces are currently occupied. - **Free:** How many spaces are currently available. ### 2.5 Control Buttons The main window includes these control buttons: - **Add space:** Add a new parking space. - **Edit space:** Edit an existing parking place. - **Delete space:** Delete an existing parking place. - **Settings:** Opens the configuration panel. - **About:** Shows version and license information. - **Maximize:** Toggles the window between normal and maximized view. - **Quit:** Closes the application. ## 3. Configuration Settings Click the **Settings** button to open the configuration panel. **Fig.2 Engine Working Mode & External Trigger** ### 3.1 Engine Working Mode & External Trigger This tab controls how the detection system operates. #### Engine Working Mode Choose how the detection engine should operate: - **CONTINUOUS:** The system constantly analyzes video frames. Use this for round-the-clock monitoring. - **Started by TRIGGER:** The system only analyzes frames when it receives an external signal. Use this if you want to save resources or only monitor during certain events. #### Trigger Device and Type If you selected "Started by TRIGGER" mode, configure the trigger source: - **None:** No external trigger (same as CONTINUOUS mode). - **Barix Barionet 50 (inputs 1-4):** A hardware device that sends trigger signals via network. - **Metrici Virtual Trigger:** A software-based trigger from another Metrici engine. > **Note:** When using external triggers, the system listens on UDP port 3500. If you need to run multiple instances of the application, each additional instance uses the next port number (3501, 3502, etc.). The port number is calculated as: 3500 + your App ID. #### How Many Seconds to Analyze After Trigger When a trigger signal is received, the system will continue analyzing for this many seconds before stopping. This allows the system to capture multiple frames after the initial trigger event. This setting only appears only when a trigger device and type is selected. **Valid range:** 1 to 65535 seconds **Fig.3 Seconds** #### Objects Type Select what types of objects the system should detect: - **Vehicles:** Cars, buses, trucks, semi-truck, vans, SUVs/pick-ups, motorcycles, trams, other. - **Boats:** Jet-skis, Inflatable, Dinghy, Sailboat, Motor-yacht, Passenger-ship, Catamaran, Other. - **People:** Human detection for pedestrian monitoring. #### Recognition Enhancement This setting controls how thoroughly the system analyzes each frame. Higher settings mean more accurate detection but require more processing time and computer resources: - **Low:** Fastest processing, basic detection quality - **Medium:** Balanced speed and accuracy - **Normal:** Standard detection quality - **High:** Better accuracy, moderate speed - **Ultra:** High accuracy, slower processing - **Insane:** Maximum accuracy, slowest processing #### Bounding Boxes Reduction Detection boxes around objects can sometimes overlap. This setting shrinks the boxes to avoid false overlaps that might cause incorrect occupancy readings: - **None:** No reduction (boxes shown at full size) - **25% both axes:** Boxes reduced by 25% in width and height. - **50% both axes:** Boxes reduced by half in both directions. - **75% both axes:** Boxes reduced to 25% of original size. - **25% horizontal:** Width reduced by 25%. - **50% horizontal:** Width reduced by 50%. - **75% horizontal:** Width reduced by 75%. - **25% vertical:** Height reduced by 25%. - **50% vertical:** Height reduced by 50%. - **75% vertical:** Height reduced by 75%. #### Bounding Boxes Visible Choose whether to show the detection boxes overlay on the live video: - **No:** Hide detection boxes (cleaner view). - **Yes:** Show detection boxes (helps with debugging). ## 4. Camera Stream Configuration ### 4.1 Input Stream (Primary Camera) The **Input Stream** tab configures your main parking camera. **Fig.4 Input Stream** #### Input Stream Type Select the type of camera or video source you're using. The application supports many camera brands and protocols: - **ACTi:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Android:** Supported codecs: MJPEG; standard protocols (HTTP). - **Arecont Vision:** Supported codecs: MJPEG; standard protocols (HTTP). - **Axis:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Bosch:** Supported codecs: MJPEG, H264; standard protocols (RTSP). - **Dahua:** Supported codecs: MJPEG; standard protocols (HTTP). - **Divotec:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Hikvision:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Mobotix:** Supported codecs: MJPEG, MxPEG; standard protocols (HTTP). - **Novus:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Pelco:** Supported codecs: MJPEG; standard protocols (RTSP). - **Roseek:** RAW - **Samsung:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Sony:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **Uniview:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). - **VLC:** Supported codecs: MJPEG; standard protocols (HTTP). - **Vivotek:** Supported codecs: MJPEG; standard protocols (HTTP). - **Generic:** Supported codecs: MJPEG, H264; standard protocols (HTTP, RTSP). When your camera is not on the list, choose this protocol. #### Step-by-Step Setup: 1. Click the **Settings** button on the main interface. 2. Select **"Input stream"** from the settings categories. 3. **Stream Type:** Select your camera's protocol from the dropdown list. 4. **IP Address:** Enter the camera's IP address or hostname (with or without http://). 5. **Port:** Enter the HTTP port (default HTTP is usually 80) - other protocols have different ports. 6. **Use SSL:** Enable if your camera requires secure connection. 7. **Username/Password:** Enter credentials if your camera is password protected. 8. **Limit FPS:** Set to 0 for unlimited, or specify a maximum frame rate. Use Companion Stream tab and fill in data only if one camera (different from PPD one) is available for this purpose. Otherwise leave it blank. > **Tip:** Higher frame rates provide more opportunities to capture clear images of passing vehicles. In parking lots, 1 FPS or lower is enough. ### Testing Your Camera Setup After configuring the camera, the connection status indicator on the main interface will show: - **RED** - Disconnected: Check your IP address and network connection - **ORANGE** - Connecting: Wait a few seconds for the connection to establish - **GREEN** - Connected: Camera is streaming successfully ### 4.2 Companion Stream (Secondary Camera) The **Companion Stream** tab configures an optional second camera. This can be useful for: - Getting a different angle on the parking area - Using a higher-resolution camera for license plate recognition The configuration options are identical to the Input Stream tab. ## 5. Detection Settings ### 5.1 Live View #### Live View Active Enable this checkbox to allow stream to be broadcast to the server. **Fig.5 Live view** #### Live View URL Enter the web address where stream should be sent. Example: `http://yourserver.com/io/ppd/live_view.php` ## 6. Reporting Configuration The **Reporting** tab configures how the system sends occupancy data to your management software. **Fig.6 Reporting** #### Reporting URL Enter the web address where the system should send parking status updates. This is typically your parking management system's API endpoint. Example: `http://your_server.com/io/ppd/new_parking_place_event.php` #### Reporting - Authkey / ID These fields identify your installation to the reporting server: - **Authkey:** A security key that authenticates your installation. It is to be found in Metrici Interface when configuring the location and cameras. - **ID:** The numeric identifier for this specific camera/install location. These values are provided by Metrici web Interface. #### Status Change Delay This setting prevents false readings when vehicles are temporarily passing through a parking space: - **How it works:** When a vehicle enters or leaves, the system waits this many seconds before changing the status. - **Purpose:** Prevents "flickering" status when a car is just passing through. - **Recommended:** 5-15 seconds for typical parking scenarios. **Valid range:** 1 to 65535 seconds ## 7. Managing Parking Spaces Parking spaces are the specific areas within the camera view that you want to monitor. Here's how to configure them: **Fig.7 Add Space** ### 7.1 Adding a New Parking Space 1. In the main window, find the parking spaces table. 2. Click the **Add** button. 3. A new row appears in the table with default values. 4. The new space is automatically selected for editing. 5. Move the circle with the number inside over the area that you consider a parking space. 6. Click save after you're done. 7. Repeat for how many parking spaces you have or you need to have checked. ### 7.2 Editing a Parking Space To modify an existing parking space: 1. Click on the parking space row to select it. We are using the same figure (Fig.7) because the menu looks the same. 2. Click the **Edit** button. 3. Make your changes by clicking on the video display. 4. Click **Save** to confirm. ### 7.3 Deleting a Parking Space To remove a parking space: 1. Click on the parking space row to select it. 2. Click the **Delete** button. 3. Confirm the deletion when prompted. ### 7.5 Placement Mode When placing parking spaces, you can choose between: - **Strict:** Vehicles (in fact its bounding box) must completely cover the defined space number to count as occupying it. - **Loose:** Vehicles that partially overlap with the space count as occupying it. ## 8. Troubleshooting ### 8.1 Camera Connection Problems **Camera won't connect:** - Verify the camera IP address is correct and the camera is powered on - Check that the camera is on the same network as this computer, or that network routing is configured - Confirm the username and password are correct - Try accessing the camera stream directly in a web browser first - Check if the camera's HTTP/RTSP ports are not blocked by a firewall ### 8.2 Detection Accuracy Issues **Vehicles not detected or false detections:** - Increase the **Recognition Enhancement** setting - Adjust **Bounding Boxes Reduction** to prevent overlapping detection boxes - Check camera angle - shadows and glare can affect detection - Increase **Status Change Delay** if status flickers frequently - Verify the correct **Objects Type** is selected ### 8.3 Application Performance **Application runs slowly or uses too much CPU:** - Cut the **Recognition Enhancement** setting - Reduce the **FPS Limit** in the input stream settings - Consider using a lower resolution video stream - Close other applications that use significant CPU resources - If you have multiple processors, consider using more processing threads (requires restart) ### 8.4 Reporting Problems **Status updates not reaching the server:** - Verify the Reporting URL is correct - Check that the Authkey and ID are correctly configured - Ensure the server is accessible from this computer - Check server logs for any rejected requests - Verify network connectivity to the server ### 8.5 External Trigger Issues **External triggers not working:** - Confirm the trigger device is configured correctly - Check that the UDP port is not blocked by a firewall - Verify the trigger device is sending to the correct port (50000 + App ID) - Ensure the Engine Working Mode is set to "Started by TRIGGER" ## 9. INI Configuration File All application settings are stored in a configuration file called `.ini`. This INI file allows you to configure the application manually or via automation scripts without using the graphical interface. ### 9.1 File Location and Name - **File Name:** `.ini` where `` is the application ID (default: 1, resulting in `1.ini`) - **Location:** The same directory as the application executable - **Format:** Standard INI format using QSettings > **Note:** If you run multiple instances of the application, each instance must have a unique `app_id` to generate a unique INI filename (e.g., `1.ini`, `2.ini`, `3.ini`). ### 9.2 Configuration Keys Reference The following table lists all available configuration keys, their data types, default values, and descriptions. Keys are case-sensitive. | Key | Type | Default | Description | |-----|------|---------|-------------| | `input_stream_type` | int | 0 | Input stream type (see Section 4 for valid values) | | `input_stream_address` | string | (empty) | IP address or URL of the input camera | | `input_stream_tcp_port` | int | 80 | Network port for the input stream | | `input_stream_use_ssl` | int | 0 | Enable SSL/TLS for input stream (0=No, 1=Yes) | | `input_stream_username` | string | (empty) | Username for camera authentication | | `input_stream_password` | string | (empty) | Password for camera authentication | | `input_stream_fps_limit` | float | 0 | Maximum FPS to process (0=unlimited) | | `companion_stream_type` | int | 0 | Companion stream type (see Section 4 for valid values) | | `companion_stream_address` | string | (empty) | IP address or URL of the companion camera | | `companion_stream_tcp_port` | int | 80 | Network port for the companion stream | | `companion_stream_use_ssl` | int | 0 | Enable SSL/TLS for companion stream (0=No, 1=Yes) | | `companion_stream_username` | string | (empty) | Username for companion camera authentication | | `companion_stream_password` | string | (empty) | Password for companion camera authentication | | `rtsp_stream_latency` | int | 100 | RTSP stream latency in milliseconds | | `rtsp_stream_protocols` | string | tcp | RTSP transport protocol (tcp, udp, or multicast) | | `reporting_url` | string | Defined by REPORTING_URL constant | URL endpoint for reporting parking status | | `reporting_duplicate_url` | string | (empty) | Secondary URL for redundant reporting | | `reporting_check_action_id` | int | 0 | Camera/instance ID for reporting | | `reporting_check_action_authkey` | string | (empty) | Authentication key for reporting server | | `input_stream_resx` | int | 640 | Input stream horizontal resolution (width) | | `input_stream_resy` | int | 480 | Input stream vertical resolution (height) | | `companion_stream_resx` | int | 640 | Companion stream horizontal resolution (width) | | `companion_stream_resy` | int | 480 | Companion stream vertical resolution (height) | | `live_view_active` | int | 1 | Enable live view snapshots (0=Disabled, 1=Enabled) | | `live_view_url` | string | Defined by LIVE_VIEW_URL constant | URL endpoint for live view snapshots | | `external_trigger_type` | int | 0 | External trigger type (see Section 3.1 for valid values) | | `external_trigger_seconds` | int | 1 | Seconds to analyze after receiving trigger signal | | `engine_working_mode` | int | 0 | Engine working mode (0=Continuous, 1=Triggered) | | `recognition_enhancement` | int | 2 | Recognition enhancement level (0-5, higher = more thorough) | | `bounding_boxes_reduction` | int | 0 | Bounding boxes reduction mode (see Section 3.1) | | `bounding_boxes_visible` | int | 0 | Show bounding boxes overlay (0=Hide, 1=Show) | | `objects_type` | int | 0 | Type of objects to detect (0=Vehicles, 1=Boats, 2=People) | | `status_change_delay` | int | 5 | Delay in seconds before changing parking space status | | `parking_spaces_list` | string | (empty) | Comma-separated list of defined parking space IDs | ### 9.3 Example INI File Below is an example `1.ini` file with common settings configured: ```ini [General] input_stream_type=4 input_stream_address=192.168.1.100 input_stream_tcp_port=80 input_stream_use_ssl=0 input_stream_username=admin input_stream_password=secret123 input_stream_fps_limit=10 companion_stream_type=0 companion_stream_address= companion_stream_tcp_port=80 companion_stream_use_ssl=0 companion_stream_username= companion_stream_password= rtsp_stream_latency=100 rtsp_stream_protocols=tcp reporting_check_action_id=1 reporting_check_action_authkey=your-auth-key-here reporting_url=http://yourserver.com/io/ppd/new_parking_place_event.php reporting_duplicate_url= input_stream_resx=1280 input_stream_resy=720 companion_stream_resx=640 companion_stream_resy=480 status_change_delay=5 live_view_active=1 live_view_url=http://yourserver.com/io/ppd/live_view.php external_trigger_type=0 external_trigger_seconds=1 engine_working_mode=0 recognition_enhancement=2 bounding_boxes_reduction=0 bounding_boxes_visible=0 objects_type=0 parking_spaces_list=1,2,3,4,5,6,7,8 ``` ### 9.4 Manually Editing the INI File You can manually edit the INI file to configure the application: 1. Open `.ini` in a text editor 2. Modify the desired configuration keys 3. Save the file > **Important:** The application automatically updates the INI file when you save settings through the graphical interface. If you edit the INI file manually, be careful to maintain proper INI format. Incorrect formatting may cause the application to ignore settings or fail to start. ### 9.5 Automation Script Example Here's a bash script example that creates a configuration file for automated deployments: ```bash #!/bin/bash APP_ID=1 INI_FILE="${APP_ID}.ini" cat > "${INI_FILE}" << 'EOF' [General] input_stream_type=4 input_stream_address=CAMERA_IP_ADDRESS input_stream_tcp_port=80 input_stream_use_ssl=0 input_stream_username=CAMERA_USER input_stream_password=CAMERA_PASS input_stream_fps_limit=10 reporting_url=http://yourserver.com/io/ppd/new_parking_place_event.php reporting_check_action_id=1 reporting_check_action_authkey=AUTH_KEY reporting_duplicate_url= input_stream_resx=1280 input_stream_resy=720 companion_stream_resx=640 companion_stream_resy=480 status_change_delay=5 live_view_active=1 live_view_url=http://yourserver.com/io/ppd/live_view.php external_trigger_type=0 external_trigger_seconds=1 engine_working_mode=0 recognition_enhancement=2 bounding_boxes_reduction=0 bounding_boxes_visible=0 objects_type=0 parking_spaces_list=1,2,3,4,5 EOF echo "Configuration file ${INI_FILE} created successfully" ``` ### 9.6 Configuration Migration When migrating configurations between systems or upgrading the application: - Copy the entire `.ini` file to the new location - Ensure the `app_id` matches the instance you're configuring - Review and update IP addresses, URLs, and authentication credentials as needed - Test the configuration by starting the application > **Tip:** The application monitors the INI file for changes while running. If you modify the file externally and save, the application will detect the modification and reload settings automatically. ## 10. Command Line Options When starting the application from the command line, you can use these options: | Option | Description | |--------|-------------| | `-nogui` | Run without displaying the graphical interface (headless mode) | | `-debug` | Enable debug mode with additional logging | | `-disable_gpu` | Disable GPU acceleration even if available | | `-use_gpu ` | Use GPU number n for processing (if multiple GPUs) | | `-detection_threads ` | Number of processing threads (1-8, default is 1) | | `-log_level ` | Logging level: 0 (none), 1 (low), 2 (medium), 3 (high) | | `-app_id ` | Application ID for multi-instance deployments | | `-v` | Show version information | ## 11. Glossary | Term | Definition | |------|------------| | **API** | Application Programming Interface - how the application communicates with your server | | **Bounding Box** | A rectangle drawn around a detected object in the video | | **Double Parking** | A vehicle occupying more than one parking space | | **FPS** | Frames Per Second - how many video frames are processed each second | | **GPU** | Graphics Processing Unit - can speed up video analysis | | **H.264/H.265** | Video compression formats used by modern cameras | | **HTTP** | HyperText Transfer Protocol - standard web communication | | **IP Address** | Network address of a device (like 192.168.1.100) | | **MJPEG** | Motion JPEG - a video format where each frame is a separate JPEG image | | **RTSP** | Real Time Streaming Protocol - standard for streaming video over networks | | **SSL/TLS** | Security protocols for encrypted communication | | **UDP** | User Datagram Protocol - a fast network protocol for sending trigger signals | ## 12. Getting Help If you encounter issues not covered in this manual: - Check the application logs for detailed error messages - Contact your system administrator for configuration assistance - Contact technical support with the following information: - Application version - Camera make and model - Error messages (from logs) - Steps you were taking when the problem occurred # Metrici Web Interface User Manual for End Users and System Administrators --- ## Table of Contents 1. [Introduction](#introduction) 2. [Login and Navigation](#login-and-navigation) 3. [Global Settings](#global-settings) 4. [License Plate Recognition](#license-plate-recognition) 5. [Parking Module for LPR](#parking-module-for-lpr) 6. [Area Counter](#area-counter) 7. [Line Counter](#line-counter) 8. [Parking Place Detector](#parking-place-detector) ## Introduction Metrici is a suite of intelligent video analytics software and hardware products. All software modules share a common **Web Interface** for administration, monitoring, reporting, and configuration. This document covers exclusively the Web Interface side of every Metrici product. All Metrici software is based on analyzing video streams from IP cameras and recognizing objects in the frames. The architecture is split into two main components: - **Metrici Control Panel** - the detection engine manager (server-side, handles cameras and real-time analysis) - **Metrici Web Interface** - the browser-based application for dashboards, events, reports, actions, and settings > **Important!** For the system to work correctly, settings must be configured in **both** the Control Panel and the Web Interface. | Product | Version | Purpose | |---------|---------|---------| | LPR | v7.1 | License plate recognition for access control, parking, tolling, traffic monitoring | | CCR | v1.0 | Container code recognition for logistics, ports, industrial tracking | | Area Counter | v2.0 | Count objects present in defined zones of a video stream | | Line Counter | v1.4 | Count objects crossing a virtual gate/line in a video stream | | PPD | v2.0 | Monitor individual parking spaces for occupancy (busy/free) | | Thermal Analyzer | v1.0 | Temperature detection and measurement from thermal cameras | ## Login and Navigation Access the Metrici Web Interface by opening a browser and navigating to the server's IP address. On first access, use the default credentials: | Field | Value | |-------|-------| | User | `metrici@metrici.ro` | | Password | `metriciadmin` | > **Important!** Change the default password immediately after first login. After login, the left sidebar displays all licensed Metrici modules. You will only have access to the modules you have purchased licenses for; others will appear locked. The sidebar typically shows: - Module menus (LPR, CCR, Area Counter, Line Counter, PPD, Thermal Analyzer, etc.) - **Global Settings** - always at the bottom of the sidebar To edit your profile or change your password at any time, click the user icon in the upper-left corner and select **Edit Profile**. > **Note:** No matter what module you manage, the first settings must always be made in Global Settings before configuring any individual module. ## Global Settings Global Settings contains configuration options shared across every Metrici software module. These must be set up first. Access them via Global Settings in the left sidebar. ### Application Settings **Owner's name** is the name of the company or individual who owns the Metrici system and holds administration rights. **From e-mail address** is the address used as the sender when the system sends notification or alarm emails. This must be a valid e-mail address. **Outgoing mail server** defines the mail server used for sending emails. The default value is localhost with the SMTP port set to 25. Metrici can send emails natively from localhost, however some receiving servers require authentication and will reject unauthenticated messages. In that case, configure the system to send emails through an external SMTP server by filling in the following fields: SMTP host, SMTP port, SMTP username, and SMTP password, using the credentials provided by your mail server administrator. **API Key** is an auto-generated authentication key. This key is required when integrating Metrici with third-party applications or external services. ### Users Administration Metrici supports multi-user access with role-based permissions. Administrators can create, edit, and remove user accounts. When adding a new user: - Choose a **name**, assign an **email address**, select the **language** for the interface, and set a **password** - Assign **administration** or **viewing rights** for each module section. The Roles can be set by clicking on "Roles" menu - Set the **default landing page** - which menu or sub-menu appears when the user logs in - Define which **locations**, **cameras**, and **menus** the user can access - Click Save after you're done An administrator of the system can also change the password for a different user in the same way. ### Time Tables Time Tables allow you to apply rules, actions, or alarm settings on a specific hourly, daily, or weekly schedule. This feature provides flexibility by enabling actions to be triggered only when defined time conditions are met. For example, a user can configure the system to send an alert email only during specific hours or on certain days of the week. Time Tables are commonly used in the Parking LPR and Toll Station modules. Note that this feature is not available across all Metrici modules. ### Location & Cameras This is the most critical section of Global Settings. Every module requires at least one location with at least one camera assigned to it. #### Creating a Location Navigate to Global Settings -> Locations & Cameras. Click the green **Add Location** button (upper right). Enter a name and click **Save**. #### Adding Cameras to a Location Click on a location name, then click **Add Camera**. Each camera has the following fields: | Field | Description | |-------|-------------| | **Name** | A descriptive name to easily identify and locate this camera | | **Authkey** | Auto-generated by Metrici when a camera is added. Required in the Control Panel to link the engine with the Web Interface | | **Camera URL** | The IP address of the camera from which the video stream is received | | **Open barrier URL** | IP address of the barrier connected to this camera. One camera can command one barrier | | **Camera Type** | Select the Metrici application for this camera: LPR, CCR, Area Counter, Line Counter, PPD, QR Code, Thermal Analyzer, etc | | **Time zone hour difference** | Used when the server and camera are in different time zones | | **Obfuscate images** | GDPR compliance feature - blurs event photos. Once enabled, all future photos for that camera are blurred | > **Important!** If you do not select the correct Camera Type, you will not see the camera in the corresponding module menu, and the system will not function for that camera. After adding all the cameras to the system, the ID and the authkey for each camera are mandatory to be added to the Metrici Control Panel where the detection engines are located. This facilitates the communication between the engines and the Web Interface. If this step is omitted, no data will be recorded in database and the system will not work. ### Licenses You can see here what type of licenses you have activated on your interface. The ones you don't have access to are crossed out. You can update your license anytime with new modules and engines. ### Languages Change the menu language of the interface. ### Backup & Restore Two backup options are available: 1. **Export general settings** - Saves all interface configuration data (users, administration rights, location names, camera settings, etc.) but without event data 2. **Full export (entire database)** - Saves an SQL file with all data including the events list, but without the photo captures from detections To restore, click the **Restore** button, browse to the saved SQL file, and click **Save**. ### Logs Users with administration rights can view all login records and changes made within the system. You can search logs by date, user, or time interval. Results can be exported in Excel format. ### Cron Jobs A user can set to receive reports by mail at an established time interval. You can select here what type of report to receive, where to send it, on what time interval: hourly, daily, weekly, monthly or once a year. ## License Plate Recognition For detailed LPR configuration, see the [LPR Documentation](../lpr-eng/index.html). ## Parking Module for LPR The Parking Module for LPR extends the base LPR functionality with parking-specific features. Configuration is done through the Web Interface under the Parking LPR section. ## Area Counter For detailed Area Counter configuration, see the [Area Counter Documentation](../ac-eng/index.html). ## Line Counter For detailed Line Counter configuration, see the [Line Counter Documentation](../lc-eng/index.html). ## Parking Place Detector For detailed PPD configuration, see the [PPD Documentation](../ppd-eng/index.html). --- **Metrici Web Interface** Central Dashboard for Video Analytics Management # Metrici Web Interface - Complete Documentation This is the complete documentation for the Metrici Web Interface, converted from HTML for LLM usage. --- ## Table of Contents 1. [Introduction & Overview](#introduction--overview) 2. [Login & Navigation](#login--navigation) 3. [Global Settings](#global-settings) 4. [License Plate Recognition (LPR)](#license-plate-recognition-lpr) 5. [Parking Module for LPR](#parking-module-for-lpr) 6. [Area Counter](#area-counter) 7. [Line Counter](#line-counter) 8. [Parking Place Detector (PPD)](#parking-place-detector-ppd) --- ## Introduction & Overview Metrici is a suite of intelligent video analytics software and hardware products. All software modules share a common **Web Interface** for administration, monitoring, reporting, and configuration. ### Architecture The system is based on analyzing video streams from IP cameras and recognizing objects in the frames. The architecture has two main components: - **Metrici Control Panel** — the detection engine manager (server-side, handles cameras and real-time analysis) - **Metrici Web Interface** — the browser-based application for dashboards, events, reports, actions, and settings **Important:** For the system to work correctly, settings must be configured in **both** the Control Panel and the Web Interface. ### Product Modules | Product | Version | Purpose | |---------|---------|---------| | LPR | v7.1 | License plate recognition for access control, parking, tolling, traffic monitoring | | CCR | v1.0 | Container code recognition for logistics, ports, industrial tracking | | Area Counter | v2.0 | Count objects present in defined zones of a video stream | | Line Counter | v1.4 | Count objects crossing a virtual gate/line in a video stream | | PPD | v2.0 | Monitor individual parking spaces for occupancy (busy/free) | | Thermal Analyzer | v1.0 | Temperature detection and measurement from thermal cameras | --- ## Login & Navigation ### Default Credentials - **User:** `metrici@metrici.ro` - **Password:** `metriciadmin` **Important:** Change the default password immediately after first login. ### Interface Layout After login, the left sidebar displays all licensed Metrici modules. You will only have access to the modules you have purchased licenses for; others will appear locked. The sidebar typically shows: - Module menus (LPR, CCR, Area Counter, Line Counter, PPD, Thermal Analyzer, etc.) - **Global Settings** — always at the bottom of the sidebar To edit your profile or change your password, click the user icon in the upper-left corner and select **Edit Profile**. --- ## Global Settings Global Settings contains configuration options shared across every Metrici software module. These must be set up first before configuring any individual module. ### Application Settings - **Owner's name** — The company or individual who owns the Metrici system - **From e-mail address** — The address used as sender for notification/alarm emails - **Outgoing mail server** — Default: localhost, SMTP port 25. Can configure external SMTP - **API Key** — Auto-generated authentication key for third-party integrations ### Users Administration When adding a new user: 1. Choose a **name**, assign an **email**, select **language**, set a **password** 2. Assign **administration** or **viewing rights** for each module section 3. Set the **default landing page** 4. Define which **locations**, **cameras**, and **menus** the user can access 5. Click Save ### Time Tables Time Tables allow you to apply rules, actions, or alarm settings on a specific hourly, daily, or weekly schedule. Commonly used in Parking LPR and Toll Station modules. ### Location & Cameras This is the most critical section. Every module requires at least one location with at least one camera assigned. #### Camera Fields | Field | Description | |-------|-------------| | **Name** | Descriptive name to identify the camera | | **Authkey** | Auto-generated. Required in Control Panel to link engine with Web Interface | | **Camera URL** | IP address of the camera | | **Open barrier URL** | IP address of the barrier connected to this camera | | **Camera Type** | LPR, CCR, Area Counter, Line Counter, PPD, etc. | | **Time zone hour difference** | When server and camera are in different time zones | | **Obfuscate images** | GDPR feature — blurs event photos | **Important:** If you do not select the correct Camera Type, you will not see the camera in the corresponding module menu. #### Camera ID and AuthKey After adding cameras, the ID and authkey must be added to the Metrici Control Panel where the detection engines are located. This facilitates communication between engines and Web Interface. ### Backup & Restore 1. **Export general settings** — Saves interface configuration (users, locations, camera settings) without event data 2. **Full export (entire database)** — Saves SQL file with all data including events, without photo captures ### Logs View all login records and changes made within the system. Search by date, user, or time interval. Exportable in Excel format. ### Cron Jobs Set to receive reports by mail at established intervals: hourly, daily, weekly, monthly, or once a year. --- ## License Plate Recognition (LPR) The LPR module provides the most feature-rich interface, including dedicated sub-modules for parking, toll stations, and weighing stations. ### Vehicles (Events) Displays a list of all detections with filters for: - Date/time, country, location, camera, direction - Info, speed, red light, group ### Vehicles Flow Real-time alerts with beep sound when a detection occurs. Options for: - Alert filtering (whitelist/blacklist/all) - Location & camera selection - Image preview ### Live View Monitor cameras in real-time. Features: - Full screen expansion - Manual barrier opening from live view - Multi-camera layout ### Reports - Vehicles Each Hour - Vehicles Each Month - Vehicles Each Camera - Top Vehicles - Vehicles by Origin - Time Inside ### Actions Add vehicles to action lists with settings for: - Plate number and group - Locations and cameras - Timetable - Start and expiration date - Actions: open barrier, control traffic light, send email/SMS, display pop-up **Cross Check:** Special feature that triggers action only when multiple conditions are met simultaneously (e.g., LPR + QR code verification). ### Groups Organize license plates with shared settings. All group settings are automatically assigned to cars added to the group. ### Alarms Configure alarms with conditions for: - Plate inside location - Speed thresholds - Direction - Group membership Notification methods: Email, SMS, HTTP request. ### Video Processing Analyze recorded video files (.mp4 or .avi): - Create virtual camera in Interface - Configure Control Panel for video file input - Process in real-time (29-min video = 29 min processing) - Maximum 2GB per file ### Settings - Minimum Probability Display (default: 0.6) - Show Original Plate - Delete Plates After (days) - Events counter - Disk Space ### Red Light & Speed Requires companion camera watching traffic light. Can filter: - Red light infringements - Speed violations (requires Metrici Controller Radar) ### Popup Alerts Configure notifications for specific plates or groups with custom messages. --- ## Parking Module for LPR Extends LPR functionality for parking lot management. ### Key Features - Create tenants and subtenants (unlimited nesting) - Reserve parking spaces for tenants - Organize by floors/sections - Real-time occupancy calculation - LED display integration - Unlimited timetables and pricing units - Grace periods and rounding methods - Cash register integration - White List / Black List management - SMS-based access ### Settings - Parking Spaces (total capacity) - Cars Inside (real-time count) - Free Minutes After Arrival (grace period) - Minimum Charge - Rounding Method (Ceiling/Nearest) - Grace Minutes After Payment - URL Triggers (full/available parking) - Anti-Passback security ### Zones Distinct areas (floor, level, section) with real-time tracking of free/occupied spaces. ### Tenants - Unlimited tenants with individual interfaces - Subtenants with parent-child relationships - Preserve Tenant Spaces option - Space limits per tenant ### Cash Registers Linked to single cameras with configurable receipt settings. ### Parking Prices - Hourly, half-hour, one-time pricing - Differentiated tariffs (weekdays/weekends, day/night) - Timetable-based pricing ### Billing Manual payment processing with: - Automatic time calculation - Multiple price options - Receipt generation - Drop button for manual override --- ## Area Counter Tracks object count changes in defined zones. ### Dashboard - Select location and object type - View zone list with capacity and counter - Occupancy percentages - Group data ### Counting Events List of all zone changes with filters for: - Time interval, location, camera, group, object type Export formats: PDF, XLS, CSV ### Live View Real-time camera monitoring with multi-camera support. ### Reports **Occupancy Reports:** - Each Hour, Each Day, Each Month (percentages) **Counter Reports:** - Each Hour, Each Day, Each Month (absolute numbers) ### Alarms Trigger based on: - Location occupancy - Group thresholds - Zone counter/status Notification methods: Email, SMS, HTTP request. ### Settings — Locations & Cameras - Register zones with capacity - Unregister unavailable zones - LED display communication ### LED Display Codes **Colors:** #Y (yellow), #R (red), #G (green), #O (orange), #B (blue), #I (indigo), #V (violet), #W (white) **Data:** #CAPACITY, #COUNTER, #AVAILABLE ### Groups Collection of zones with shared characteristics for consolidated reporting. ### Location Plan Upload floor plans (.png/.jpeg) and draw zone perimeters for visual management. --- ## Line Counter Detects and counts objects passing through virtual gates. ### Dashboard - View lines with capacity and counter - Object type selection - Occupancy percentages - Useful for finite capacity locations (parking, marinas, stores) ### Events List of all gate crossings with: - Direction (coming/leaving) - Gate, type, subtype - Date/time, location, camera Export: PDF, XLS, CSV ### Events Flow Real-time display of events as they occur. ### Live View 1 frame per second live feed with multi-camera support. ### Reports - Objects Each Hour - Objects Each Day - Objects Each Month ### Alarms Trigger based on zone conditions with: - Location/zone selection - Comparison operators (=, !=, <, <=, >, >=) ### Settings - Event retention period - Zone creation with object type - Capacity and counter configuration - LED display communication ### LED Display Codes **Colors:** #Y, #R, #G, #O, #B, #I, #V, #W **Data:** #CAPACITY, #COUNTER, #AVAILABLE, #OCCUPANCY --- ## Parking Place Detector (PPD) Manages parking lots using IP cameras to monitor individual spaces. ### Dashboard - Location selection - Occupancy rate per camera - Total/free/busy spots - Group data ### Parking Events Status changes for parking places with filters and export options. ### Live View Real-time camera monitoring for parking places. ### Reports - Occupancy Each Hour - Occupancy Each Day - Occupancy Each Month ### Alarms Types: Email, SMS, HTTP Request Conditions based on: - Location occupancy - Group occupancy - Place status ### Settings #### Registering Places After creating places in Control Panel, they must be registered in PPD Settings → Locations & Cameras. #### LED Display Codes: #TSPACES, #BSPACES, #FSPACES with color codes (#R, #G, #Y) #### Groups Collection of parking places with shared characteristics. #### Cloning Group Settings Copy settings from existing groups. #### Location Plan Upload map and manually place parking spaces for visual dashboard. --- ## Quick Reference ### Default Login - URL: Server IP address - User: `metrici@metrici.ro` - Password: `metriciadmin` ### Common URLs **Live View:** - LPR: `http://localhost/io/lpr/live_view.php` - Parking: `http://localhost/io/lpr/live_view.php` - Area Counter: `http://localhost/io/ac/live_view.php` - Line Counter: `http://localhost/io/lc/live_view.php` - PPD: `http://localhost/io/ppd/live_view.php` **Display URLs:** - LPR: `http://SERVER_IP/io/lpr/location_display.php?id=1` - Area Counter: `http://SERVER_IP/io/ac/location_display.php?id=11` - Line Counter: `http://SERVER_IP/io/lc/zone_display.php?id=5` - PPD: `http://SERVER_IP/io/ppd/location_display.php?id=1` ### Important Notes 1. Settings must be configured in both Control Panel and Web Interface 2. Camera ID and AuthKey must be entered in Control Panel for communication 3. Correct Camera Type must be selected for modules to work 4. Zones/places must be registered in module settings after creation in Control Panel 5. Color codes are mandatory for LED displays # Line Counter Line Counter (LC) is a dedicated tool developed by Metrici for detecting and counting different objects in a video stream as they pass through a virtual gate. Metrici LC is designed to help address and manage challenges in: - Security - Trespassing prevention - Traffic monitoring - Parking management - Retail analytics --- ## Dashboard **Important:** An event is saved in the database every time an object defined by the user passes through a virtual gate set in the Metrici detection engine's video stream. **Example:** If Metrici is set to detect people, every time a person passes through, an event is saved in the database with a photo as evidence and other relevant data. ### Dashboard Overview In the **Dashboard** menu, you can see all the details of one or more locations. 1. From the dropdown menu at the top of the page, choose a location (or all locations) 2. Click the **OK** button after making your selection ### Zone List (Left Side) A list of all the lines created in the location you manage, along with: - Total capacity - Counter (number of objects currently in the zone) The number of objects refers only to the selection you made previously. For example, if you selected to see reports about people, you will see the total number of people detected by Metrici on the cameras. ### When to Use Dashboard The dashboard is particularly useful for locations that have a finite number of objects that can fit in them, such as: - Parking lots - Marinas - Stores It is not as suitable for other types of applications — for example, counting boxes shipped by a transportation company or cars crossing an intersection — where the **Reports** menu would be more useful. ### Dashboard Table Fields | Field | Description | |-------|-------------| | **Object Type** | The type of object being detected, as set in the Control Panel | | **Capacity** | The maximum number of objects that can fit in the zone | | **Available** | How many places are still available | | **Counter** | How many objects are in that zone at the current moment | | **Occupancy** | The percentage indicating how busy that zone is | --- ## Events A list of all the changes that occurred for any camera in a location will be displayed in this menu. ### Filters Several filters can be applied from the dedicated bar at the top: - Time interval - Location or locations - Camera to monitor - Object types ### Exporting Results Any result can be exported as: **PDF:** - List of selected search results with all data about where, when, and how the status number changed - Includes a still image from the moment the event occurred - If a companion camera is attached, the photo from that camera will be saved as well **XLS:** - List of data events without the photo captures **CSV:** - Raw data for further processing ### Event Details Each event includes: - Direction of movement (coming or leaving) - Which gate was passed - Type and subtype (e.g., type may be "vehicle", subtype can be "bus" or "van") - Date and time of the change - Location where the event occurred - Camera where the change took place ### Side Panel On the right side of the screen, where the photo evidence is displayed: - Additional information about that particular gate - "Counter 5-2" represents camera 5 and gate 2 for that camera ### Interactive Buttons You can view every event change for a particular zone for: - Today - This week - This month You can also: - Add an alarm - Export the data as a PDF The buttons are interactive — clicking them updates the list according to the filter selected. --- ## Events Flow In this menu, you can see events as they occur, for a single location or all locations at once. **Features:** - Each time a virtual gate is passed, the event is immediately displayed here - A zone is a grouping of cameras that have been assigned together under the same category --- ## Live View This page displays a live feed from your cameras at 1 frame per second. ### Requirements You can add or remove any camera from the live view if: 1. It has been added in Global Settings → Locations & Cameras with the Line Counter type selected 2. Your user account has been granted viewing rights for that camera ### Adding Cameras 1. Choose the camera you want from the dropdown menu 2. Click the **ADD LIVE VIEW** button in the upper left ### Controls - Click the monitor icon to maximise the view (full screen) - Click the **X** to close it - When you minimise a full-screen image, you return to the multi-camera layout **Default URL:** `http://localhost/io/lc/live_view.php` Replace `localhost` with the appropriate address or IP if needed (e.g., `http://metrici.ro/io/lc/live_view.php`). --- ## Reports In the Reports section, you can choose from three different report types. ### Filters - Date range - Location for which a report will be generated - Camera or cameras - Zone - Object type and subtype - Direction **Note:** Depending on the size of the database and the report you want to generate, the display may take a while for the calculation to be completed. ### Objects Each Hour This report generates a chart with the number of objects for each hour within the selected time interval. ### Objects Each Day This report generates a chart with the number of objects for the current week by default, or for another time interval set in the filter. ### Objects Each Month This report generates a chart with the number of objects for the selected input data. --- ## Alarms Each location or zone can have its own alarms that trigger when one or more conditions are met. ### Adding an Alarm Click on the green **ADD ALARM** button in the upper right of this menu. ### Alarm Types An alarm can be set to active or inactive, and you can choose one or all of the three notification types: **Email Alert:** - Fill in the email address field with the recipient address - Personalise the message that will be delivered **SMS Message:** - Click on the Send SMS box - Enter the phone number to which the message will be sent - Write the message that will be delivered - A GSM module must be attached to the server - Multiple phone numbers can receive SMS alerts, but each number must have its own alarm set up - Multiple phone numbers cannot be set in a single alarm **HTTP Request:** - This type of alarm triggers a URL when activated - Allows it to control external hardware such as a barrier, traffic light, audio signal, etc. ### Setting Conditions After an alarm has been created (name + type), define the conditions under which it will activate. Click the green **Conditions** button to add new conditions. You can add as many conditions as you need and save them. **Important:** Each condition has a comparison operator. ### Alarm Item The first condition when setting up an alarm is to establish an **alarm item**: - This can be a zone for any location Based on the selected item, you will then add further conditions. ### Comparison Operators | Operator | Meaning | |----------|---------| | `=` | The condition belongs to or is equal to a specific value | | `!=` | The condition is different from or not included in the alarm item | | `<` | Smaller than — usually used for alarms with time units | | `<=` | Smaller than or equal to — also used for alarms with time units or percentages | | `>` | Greater than — usually used for alarms set with timestamps | | `>=` | Greater than or equal to — usually used with time units | Finally, for an alarm to be saved, you must select a parameter to apply it to. --- ## Settings In this section, you can set how many days to keep your events recorded in the database. You can also see: - How many events are currently registered - How much disk space they are using ### Locations and Cameras Only locations introduced in Global Settings will appear in this menu. For a location to be displayed in the Line Counter menu, it must have at least one camera assigned to it. #### Creating Zones At the bottom of the page, you can see all locations created in the Global Settings menu. 1. Click on the name of a location to open it 2. In the new menu, you can create zones for each location **Example:** A location can be an entire mall — then one zone could be the first floor, another could be the underground level, another an entrance, and so on. Each zone will have its own designated cameras. 1. Start by creating a zone, even if you only need one 2. Choose a name for it 3. From the **Object Type** dropdown menu, choose what kind of object will be counted: people, vehicles, boats, etc. After a zone is created, click the blue **View** button. On the new page: - Choose which cameras or counting gates from the list are associated with that zone - Press **Save** when finished **Important:** A detection engine must begin sending data to the Interface in order to populate the list of counting gates. You will first need to configure the settings in the Control Panel and detection engines. Do not forget to enter the **ID** and **Authkey** that were generated in the Interface when the camera was introduced in Global Settings → Locations & Cameras. **Note:** If you ever delete a counting gate from a detection engine, you should also unregister it from this list in the Interface. ### Edit Zone – Capacity and Counter The green **EDIT ZONE** button lets you: - Set communication parameters with the Metrici LED Display (if one is connected) - Configure capacity parameters for that particular zone #### Counter The number of objects inside the zone at any given time. It is calculated as the difference between entries and exits. When creating a zone — or at any time after that — you can manually change the number of objects inside. #### Capacity The total number of objects that can fit in a zone. Once you set it, you will be able to: - See the occupancy percentage - Set alarms when capacity is approaching 100% **Use Case:** These parameters are useful in applications where a maximum capacity applies to a zone or location, such as a parking lot, a store, or a marina. They are not useful in other applications — such as counting vehicles on a street or objects on a production line — and should be left at 0 for capacity in those cases. ### Communication with Display If you want to display information about your zones on a Metrici LED Display, you can configure it here. #### Colour Codes | Code | Colour | |------|--------| | `#Y` | Yellow | | `#R` | Red | | `#G` | Green | | `#O` | Orange | | `#B` | Blue | | `#I` | Indigo | | `#V` | Violet | | `#W` | White | #### Data Codes | Code | Displays | |------|----------| | `#CAPACITY` | Total capacity | | `#COUNTER` | Number of objects | | `#AVAILABLE` | Available slots | | `#OCCUPANCY` | Occupancy level [%] | The first letter after the hashtag represents the colour in which the information is shown. **LED Display URL:** ``` http://IP_OF_THIS_SERVER/io/lc/zone_display.php?id=5 ``` This is automatically generated in the Metrici Interface. The number after a data code indicates how many digits to use. For example, `#CAPACITY3` will display the capacity using a maximum of 3 characters. **Remember:** It is mandatory to specify a colour code — without one, nothing will be displayed. You can use any number of characters from 1 to 9. If you set a number of characters larger than what the Metrici Display can fit, the information will scroll. For a better understanding, see also the Metrici LED Display user and integration guides. # Area Counter The key thing to remember about Metrici Area Counter is that an event is saved in the database every time the number of objects defined by the user changes in the video stream, whether it is the full image or a specific zone. **Example:** If Metrici is set to detect people in a zone covered by the camera, every time the number of people in the zone changes (from 0 to 1, from 5 to 4, from 10 to none, etc.), an event is saved in the database along with a photo witness and additional data. --- ## Dashboard The Dashboard menu displays all the details of one or more locations that you manage. ### Navigation 1. From the dropdown menu at the top, select a specific location or all locations 2. A second dropdown menu allows you to choose the type of objects (people, vehicles, etc.) 3. Click the **OK** button after making your selection ### Zone List (Left Side) A list of all zones created in the selected location, along with: - Total capacity - Current counter (number of objects present at that moment) The object count refers only to the type you selected previously. ### Dashboard Table Fields | Field | Description | |-------|-------------| | **Camera** | The name of the camera as configured in Global Settings | | **Total** | The maximum number of objects that can fit in the frame or zone for that camera | | **Available** | How many places are still available | | **Counter** | How many objects are currently in that zone | | **Occupancy** | The percentage indicating how busy that zone is | This is a split dashboard where information is displayed separately for each camera in the selected locations. ### Groups Menu On the right side of the page, you will see a menu for the groups configured in your location. --- ## Counting Events This menu displays a list of all changes that have occurred across any zone and camera in a location. ### Filters A filter bar at the top allows you to refine results by: - Time interval - Location - Camera - Group - Object type ### Exporting Results **PDF:** - Contains the full list of matching events with all data about where, when, and how the object count changed - Includes a still image captured at the moment the event occurred - If a companion camera is attached, its photo will be included as well **XLS:** - Contains a list of event data without photo captures **CSV:** - Raw data for further processing ### Event Information Each event in the list includes: - The counter (how many objects were in the zone after the change) - The type of object Metrici is detecting - The date and time of the change - The location where the event occurred - The camera that captured it ### Side Panel On the right side of the screen: - Photo witness is displayed - Additional details about the selected zone and event - Counter label (e.g., **4-1** represents camera 4 and zone 1 for that camera) ### Interactive Buttons - **Today / This Week / This Month** — Click any to filter the list and view all event changes for that particular zone within the selected time period - **Add Alarm** — Creates an alarm for that zone (remember to add conditions for it to function) - **Export PDF** — Exports the selected event as a PDF document --- ## Object Flow This feature allows users to generate alarms for specific events within the Metrici Interface. ### Features - Users can select which locations and cameras to monitor - If you manage multiple locations and choose only one, alerts will display detections exclusively from the selected location --- ## Live View This page allows you to watch your cameras in real time. ### Requirements Cameras must have been: 1. Registered in Global Settings under Locations & Cameras 2. Set as Area Counter cameras 3. You have the necessary viewing rights ### Adding Cameras 1. Select the camera you want from the dropdown menu 2. Click the **Add Live View** button in the upper left 3. Multiple cameras can be displayed simultaneously ### Controls - Click the monitor icon to maximize the view to full screen - Click the **X** to close it - When you minimize a full-screen image, you return to the multi-camera layout **Default URL:** `http://localhost/io/ac/live_view.php` Replace `localhost` with the appropriate address or IP if needed (e.g., `http://metrici.ro/io/ac/live_view.php`). --- ## Reports In the Reports section, you can choose from multiple report types. ### Filters - Time interval - Location - Camera or cameras - Object type - Group **Note:** Occupancy reports show values as percentages, while Counter reports display absolute numbers for each selected period. **Tip:** If you do not want a report for all cameras in a location but only for a specific set (e.g., Section C), create a group for those cameras and generate a report for that particular group. **Note:** Depending on database size and report type, display may take a moment while calculations are processed. ### Occupancy Each Hour Generates a report showing the occupancy percentage of a location, camera, object type, or group for each hour within the selected time interval. ### Occupancy Each Day Generates a report showing the occupancy percentage for each day. By default, the current week is displayed, but a different time interval can be set using the filters. ### Occupancy Each Month Generates a chart with the comparative occupancy percentage for the selected criteria. By default, generates a report for the current year from the beginning to today. Dates can be adjusted in the filter menu. ### Counter Each Hour Generates a report showing the absolute number of detected objects per hour for a location, camera, object type, or group within the selected time interval. ### Counter Each Day Generates a report showing the absolute number of detected objects for each day. By default, the current week is displayed, but a different time interval can be selected using the filters. ### Counter Each Month Generates a chart with the total number of detected objects for each month. By default, generates a report for the current year from the beginning to today. Dates can be adjusted in the filter menu. --- ## Alarms Each location or zone can have its own alarm that triggers when one or more conditions are met. ### Adding an Alarm Click the green **Add Alarm** button in the upper right corner of the menu. ### Alarm Types An alarm can be set as active or inactive and can be one of three types: **Email:** - Enter the recipient's email address - Customize the message that will be delivered **SMS:** - Check the Send SMS box - Enter the phone number - Write the message to be delivered - A GSM module must be attached to the server - Each phone number requires its own separate alarm **HTTP Request:** - The alarm triggers a URL when activated - Allows control of a barrier, traffic light, or any other device that communicates over HTTP ### Setting Up Conditions After creating an alarm (name + type), define the conditions under which it will activate. Click the green **Add Conditions** button. You can add as many conditions as needed. ### Alarm Item Selection The first condition requires selecting an **Alarm Item**: | Alarm Item | Available Conditions | |------------|---------------------| | **Location** | Occupancy percentage — set the threshold at which the alarm activates | | **Group** | Select which group or groups the alarm applies to, along with a percentage or number threshold | | **Zone** | Select the specific zone and set a status or counter condition | ### Comparison Operators | Operator | Meaning | |----------|---------| | `=` | Is equal to a specific value | | `!=` | Is different from / not included in the alarm item | | `<` | Smaller than (typically used with time units) | | `<=` | Smaller than or equal to (used with time units or percentages) | | `>` | Greater than (typically used with time-based conditions) | | `>=` | Greater than or equal to (used with time units or percentages) | ### Examples **Example 1:** Alert when a zone has been occupied for more than 1 minute. - Alarm Item: **Zone** = select the zone - Condition: **Counter** > more than - Value: **1 minute** **Example 2:** Alert when a location is almost full. - Alarm Item: **Location** = select the location - Condition: **Occupancy** >= **90%** **Note:** Every alarm must have at least one condition defined for it to function. An alarm without conditions will not trigger. --- ## Settings — Locations & Cameras Only locations that have been created in Global Settings will appear in this menu. For a location to be displayed in Area Counter, it must have at least one camera assigned to it. ### Capacity Settings For any location, you can edit the cameras that were allocated to it in Global Settings. For each camera, you must: 1. Set a maximum capacity of objects that can fit in the zone 2. Register it (e.g., how many vehicles can fit in a zone, or how many people) **Important:** The capacity is essential for the system to properly calculate occupancy reports and generate accurate statistics. If the capacity information is not accurate, the reports will not be either. Similarly, if a zone is not registered, its events will not appear in the database. ### How to Register a Zone 1. Choose a location from your list and click on its name 2. From the list of cameras in that location, select the one for which you want to register the capacity **Important:** For zones to appear in this menu, you must first: 1. Set up cameras and add zones in the Metrici Control Panel for the detection engines 2. At least one detection must be made and sent to the Interface for the zone to become visible If a zone becomes unavailable due to reconfiguration, maintenance, or any other reason, it can be unregistered so that it is no longer taken into account when calculating occupancy percentages. --- ## Communication with LED Display If you want to display information about available spaces on a Metrici LED Display: 1. Navigate to **Area Counter → Settings → Locations & Cameras** 2. From the list of locations, click the blue **Edit** button ### Display Text Codes In the **Display Text** field, use special codes to instruct the LED Display what to show. **Example:** ``` #YCapacitate=#CAPACITY3 #RContor=#COUNTER3 #GDisponibil=#AVAILABLE3 ``` ### Color Codes | Code | Color | |------|-------| | `#Y` | Yellow | | `#R` | Red | | `#G` | Green | | `#O` | Orange | | `#B` | Blue | | `#I` | Indigo | | `#V` | Violet | | `#W` | White | ### Data Codes | Code | Description | |------|-------------| | `#CAPACITY3` | Displays the total capacity using a maximum of 3 characters | | `#COUNTER3` | Displays the current number of objects using a maximum of 3 characters | | `#AVAILABLE3` | Displays the number of available slots using a maximum of 3 characters | The number after the code (1–9) defines how many characters to use for the display. If the number of characters exceeds the physical size of the LED Display, the information will scroll. **Important:** A color code is mandatory — without one, nothing will be displayed on the LED screen. ### LED Display URL On your Metrici LED Display interface, fill in the auto-generated URL: ``` http://IP_OF_THIS_SERVER/io/ac/location_display.php?id=11 ``` --- ## Groups A group is a collection of multiple zones that share a specific characteristic, defined by the administrator. Groups can also be used to deliver consolidated information to a Metrici LED Display. **Features:** - Can include any number of zones from any number of cameras - Not all zones from a single camera need to be included — you can select only the relevant ones ### Creating a Group 1. Click on a location name where you want to create a group 2. Click the green **Add Group** button in the upper right corner 3. Choose a name for the group 4. Select what objects are included 5. Enter the display codes for the Metrici LED Display (if applicable) 6. Click **Save** ### Managing a Group 1. Go to the list of groups 2. Click on a group name or the green **View** button 3. From the list of zones available in that location (across all cameras), click on the ones you want to add to the group 4. You can add or remove zones from a group at any time by clicking its name or the **View** button --- ## Location Plan For easier management, a floor plan or map of a location can be uploaded to the Metrici Interface. This provides an instant visual overview of the entire location with live data overlaid. ### Uploading a Plan 1. Navigate to **Area Counter → Settings → Locations & Cameras** 2. From the list of locations, click the **Edit** button for the location you want to add a map to 3. In the **Emplacement Schematic** section, choose the file you want to upload 4. Select it and click **Save** **Note:** The file must be in `.png` or `.jpeg` format. ### Drawing Zones on the Map **Important:** Zones must be registered for each camera in the location before they can be drawn on the map. 1. Go back to **Area Counter → Settings → Locations & Cameras** 2. From the list of cameras in the location, select one by clicking on its name 3. In the menu that opens, click the **Edit Plan** button 4. Select a previously registered zone 5. Manually draw the perimeter for that zone on the map by placing points 6. Click **Save** 7. Repeat this process for each camera in the location Once all zones have been drawn, the **Dashboard** menu in Area Counter will display an instant view of the location with live detection data from each camera overlaid on the map. # PPD - Parking Place Detector Parking Place Detector (PPD) is a dedicated tool developed by Metrici for managing parking lots of any size using IP cameras and software, with specialised features designed to help you run and grow your business more efficiently. --- ## Dashboard In the Dashboard menu, you can see all the details of one or more parking lots. ### Navigation - On the left side, choose a location (or all locations) for which you want to see an instant report - Click the **OK** button after making your selection ### Displayed Information - General overview with occupancy rate for each camera at that moment - Total number of parking places set for each camera - Number of free and busy spots - Occupancy percentage ### Groups On the right side, you will see the data for each group set within a parking lot. A group can differ from a camera grouping: - Can be made up of parking places belonging to multiple cameras - Can be a selection of specific places from several cameras **Note:** The "name" of a parking place is composed of the camera ID and the number assigned to that place when it was created in the Metrici detection engine. --- ## Parking Events A list of all status changes that have occurred for any parking place will be displayed in this menu. ### Filters Available from the dedicated bar at the top: - Time interval - Location or locations - Camera or group ### Exporting Results Any result can be exported as: **PDF:** - List of selected search results with all data about where, when, and how the status changed - Includes a still image from the moment the event occurred - If a companion camera is attached, the photo from that camera will be saved as well **XLS:** - List of data events without the photo captures ### Event Details Each event includes: - Status change (occupied or free) - Date and time of the change - Location and camera where the change took place - Group name (if applicable) ### Side Panel Information For a selected parking place: - Number of events for the current day/week/month - Buttons are interactive - clicking updates the list with the selected filter - Options to add an alarm or export the event as a PDF --- ## Live View Choose which cameras you want to watch live. ### Requirements Cameras must have been: 1. Introduced in Global Settings → Locations & Cameras 2. Set as Parking Place Detector cameras 3. You have viewing rights for this menu and those cameras ### Adding Cameras 1. Choose the camera from the dropdown menu 2. Click the **ADD LIVE VIEW** button in the upper left ### Controls - Click the monitor icon to maximise (full screen) - Click **X** to close - When minimising a full-screen image, return to multi-camera layout **Default URL:** `http://localhost/io/ppd/live_view.php` Replace `localhost` with the appropriate address or IP if needed. --- ## Reports Choose from three different report types with filters: - Time interval - Location - Camera or cameras - Group **Tip:** If you don't want a report from all cameras in a location but only from a few (e.g., section C or fourth floor), create a group for those cameras and choose a report for that particular group. **Note:** Depending on database size and report type, display may take a while for calculations. ### Occupancy Each Hour Generates the occupancy percentage of a location, camera, or group for each hour within the selected time interval. ### Occupancy Each Day Generates the occupancy percentage for the current week by default, or for another time interval set in the filter. ### Occupancy Each Month Generates a chart with comparative occupancy percentage for the selected input data. By default, generates a report for the current year from the beginning up to today. --- ## Alarms Each parking place, group, or camera can have an alarm set to trigger when one or more conditions are met. ### Alarm Types An alarm can be active or inactive, and can be one of three types: **Email Alert:** - Fill in the email address for notification - Personalize the message **SMS Message:** - Click Send SMS box - Enter the phone number - Write the message - Multiple phone numbers can receive alerts, but each needs its own alarm - Requires GSM module attached to the server **HTTP Request:** - Triggers a URL when activated - Allows control of a barrier or other external hardware system ### Setting Conditions After creating an alarm (name + type), define the conditions under which it will activate. Click the green **View** button to add new conditions. Add as many as needed. **Important:** Each condition has a comparison operator. ### Alarm Item Types The first condition establishes an **alarm item**, which can be: - **Location** → Next condition is automatically occupancy percentage - **Group** → Choose which groups and the percentage - **Place** → Next condition is the status ### Comparison Operators | Operator | Meaning | |----------|---------| | `=` | Is equal to a specific value | | `!=` | Is different from / not included in the alarm item | | `<` | Smaller than (typically used with time units) | | `<=` | Smaller than or equal to | | `>` | Greater than (typically used with timestamps) | | `>=` | Greater than or equal to | ### Examples **Example 1 — Alarm when a place is occupied:** ``` Place = choose the place AND Status = Busy AND More than = 1 minute ``` **Example 2 — Alarm when parking lot is almost full:** ``` Create alarm named "Parking almost full" IF Location = your location AND Occupancy >= 90% ``` **Note:** If you want an alarm for any change of status on a parking place, you must create two separate alarms - one for when the place becomes occupied and one for when it becomes free. --- ## Settings ### Locations and Cameras – Registering Places Only locations introduced in Global Settings will appear in this menu. For a location to be displayed in PPD, it must have at least one camera assigned to it. **Important:** After parking places have been created in Metrici Control Panel, they must be registered in this menu. Without this step, the system will not work properly. **Registering** is the operation by which you tell the system that a place is available for parking. Later, you can unregister a place if needed. ### How to Register a Place 1. Go to **Parking Place Detector → Settings → Locations & Cameras** 2. Choose a location from your list and click on its name 3. From the list of cameras in your location, choose the one for which you want to register parking places 4. From the list of parking places allocated to that camera, select the ones you want to register 5. Or click the **Check All** button to activate them all **Unregistering:** If a place becomes unavailable due to reconfiguration, works underway, or any other reason, it can be unregistered so it is no longer taken into account when calculating occupancy percentage. ### Communication with Display If you want to display information about available spaces on an LED display: 1. Go to **Parking Place Detector → Locations & Cameras** 2. Click the blue **EDIT** button for the location #### Display Text Codes **Colour Codes:** | Code | Colour | |------|--------| | `#Y` | Yellow | | `#R` | Red | | `#G` | Green | **Data Codes:** | Code | Displays | |------|----------| | `#TSPACES` | Total number of parking spaces | | `#BSPACES` | Number of occupied parking spaces | | `#FSPACES` | Number of free parking spaces | **Example:** `#RBUSY #BSPACES3` / `#GFREE #FSPACES3` **LED Display URL:** ``` http://METRICI_IP_ADDRESS_OF_SERVER/io/ppd/location_display.php?id=1 ``` **Important:** It is mandatory to specify a colour code - without one, nothing will be displayed. You can use any number of characters from 1 to 9. If you set more characters than the display can fit, the information will scroll. ### Groups A group is a collection of multiple parking places that correspond to a specific category, defined by the administrator. **Features:** - Can include as many parking places as needed - Places can come from any number of cameras - Events registered by a group can be exported from the **Parking Events** menu by selecting the group name from the filters #### Creating a Group 1. Click on a location's name to view or add a group 2. Click the green **Add Group** button in the upper right 3. Choose a name for the group 4. Enter the codes for communication with the Metrici LED Display (if applicable) 5. Click **Save** #### Managing a Group 1. Go to the list of groups 2. Click on the group name or the green **View** button 3. Add or remove places as needed ### Cloning Group Settings You can clone the settings of an existing group: 1. After creating a group and assigning places to it 2. Click the yellow **Clone** button 3. All data will be copied to the new group **Tip:** You can register or unregister more than one place at a time. Click on the first one, press and hold **Shift**, and click the last one. All places between the two points will be selected. ### Location Plan For easier management, a plan or map of a location can be uploaded to the Metrici Interface. #### Uploading a Plan 1. Go to **Parking Place Detector → Settings → Locations & Cameras** 2. Click the **Edit** button for the location 3. In the **Emplacement Schematic** section, upload a **.jpeg** or **.png** file #### Drawing Zones on the Map 1. Go back to **Parking Place Detector → Settings → Locations & Cameras** 2. From the list of cameras in the location, select one by clicking on its name 3. Click the **Edit Plan** button 4. Select a previously registered zone 5. Manually draw the perimeter for that zone on the map by placing points 6. Click **Save** 7. Repeat for all cameras and places When you access the **Dashboard** menu in Parking Place Detector, you will see an instant view of the location with all the detection data from each camera overlaid on the map. # LPR - License Plate Recognition The LPR module provides the most feature-rich interface, including dedicated sub-modules for parking, toll stations, and weighing stations. --- ## Vehicles (Events) The events page displays a list of all detections, with a filter bar at the top that allows you to narrow your search. ### Available Filters - Date and time - Country - Location - Camera - Direction - Info (custom field for additional notes) - Speed - Red light - Group ### Event Information Each entry includes: - Detected plate number - Country of registration - Timestamp - Location and camera - Direction of movement - Time spent inside the location - Assigned actions - Associated info ### Side Panel On the right side of the screen, additional information is displayed for the selected license plate: - Photo from the moment of detection - Number of events recorded for that plate (day/week/month) - Button to add the plate to an action list - Button to export event in PDF format --- ## Vehicles Flow This feature provides a method for generating real-time alerts for specific events within the Metrici Interface. The alert is delivered as a beep sound when a detection occurs. ### Alert Options **Alert Filtering:** - Vehicles on the action list (whitelist/blacklist entries) - Vehicles not on the list - None (all detections in real time) **Location & Camera Selection:** Choose which locations and cameras to monitor. **Image Preview:** Clicking on a detected license plate or photo enlarges the image. --- ## Live View From the dropdown list of available cameras, select cameras to monitor one by one and click the blue "Add Live View" button. ### Features - Camera feed can be expanded to full screen by clicking the monitor icon - Remove a camera by clicking the "x" button - If a barrier is connected, a green button appears to open the barrier with a single click - Useful when the license plate is not visible, is missing, or the action cannot be executed automatically --- ## Reports Several reports are automatically generated by Metrici. Each report can be exported in XLS format. ### Report Types **Vehicles Each Hour:** Displays the number of recognized license plates (detections) and the number of unique vehicles. **Vehicles Each Month:** Generates a report for all months of the current year by default. Additional months can be selected. **Vehicles Each Camera:** Displays all detections recorded by each camera within a selected location. **Top Vehicles:** Lists the most frequently detected license plates. Select number of results (10-100). **Vehicles by Origin:** Displays the countries of origin of detected vehicles and the number of detections for each country. For Romanian vehicles, includes a breakdown by county. **Time Inside:** Displays how long vehicles typically remain inside a parking facility or monitored location. --- ## Actions In this menu, you can add vehicles to action lists or remove existing ones. You can also create groups to organize license plates. ### Adding a Plate **Plate Number:** Enter the plate number and relevant details. If the plate belongs to a group, select that group. **Locations and Camera:** Choose the location and camera for which this plate's action rule will apply. **Timetable:** Select a timetable if you want to assign this plate to one. Actions will only be active during the defined timetable period. **Start and Expiration date:** Set an expiration date or check "Never Expire". ### Actions Available Enable the Active toggle and choose: - Open a barrier - Control a traffic light - Send an email or SMS - Display a pop-up For email and SMS, specify the recipient's address/phone number and compose the message. **Vehicle Only:** Select only if you want the action to be triggered only when the plate is detected on an actual vehicle (not on paper). Requires Vehicle Classification option enabled in Control Panel. ### Action URL The address of the hardware device (barrier, traffic light) that will be triggered when the plate is detected. ### Cross Check A special Metrici feature that triggers an action only when a defined set of conditions are simultaneously met. - Default value is 0 (one condition needs to be met) - If set to 1, two conditions must be met at the same time **Example:** Access control using both LPR and QR code verification - access is granted only when both a valid plate and valid QR code are detected and linked in the database. --- ## Groups Groups make it easier to manage multiple vehicles with the same settings. ### Benefits - All settings for a group are automatically assigned to cars added to it - No need to manually configure actions for each plate - When adding a new plate, just fill in the Plate number and choose the group ### Group Configuration When creating a group, correctly set: - Rules for the group - Locations and cameras where the action takes place - Timetable - Expiration date ### Import/Export - Import lists in CSV format - Option to "EMPTY GROUP BEFORE IMPORT" to avoid duplicates - Export group settings as CSV file --- ## SMS In this menu, you can add phone numbers that have administration rights for the interface. ### Features - Phone numbers can send plate numbers via SMS - Plates are automatically added to the actions list - **Hours Till Expire:** Defines the time interval during which a plate number submitted via SMS will have active access rights --- ## Alarms Various types of alarms can be configured within the Metrici interface. ### Creating an Alarm 1. Navigate to the **Alarms** section 2. Enter a descriptive name 3. Toggle the **Active** switch 4. Choose notification method: - **Email:** Enter email address and compose custom message - **SMS:** Enter recipient's phone number 5. Click **Add Alarm** ### Adding Conditions Click the green **Add Condition** button. The alarm will only trigger when all conditions are met simultaneously. **First Condition Parameters:** - Alarm Item (Plate inside location, Speed) - Comparison operator (=, !=, <, <=, >, >=) - Target value (location name, plate group, speed threshold, time-based SQL expression) **Additional Condition Types:** - Plate Inside Location - Last Direction of Plate - Last Datetime of Plate - Plate in Group - Speed --- ## Plates Information This section displays a list of all vehicles registered in the database, along with any additional information entered in the info field. ### Features - Click on a plate number or Edit button to begin editing - Add new plates using the top menu bar - Export and import lists in CSV format --- ## Video Processing Metrici supports license plate analysis and detection in recorded video files in .mp4 or .avi format. ### Configuration **Interface Setup:** 1. Navigate to Global Settings → Locations and Camera 2. Select the location and click **Add Camera** 3. Enter a descriptive name 4. From Camera Type dropdown, select **License Plate Recognition – Video Files Processing** 5. Save - Metrici will assign a unique Auth Key and Camera ID **Control Panel Setup:** 1. Click the Add button in the bottom-left corner 2. Enter a name for the camera 3. Set Application Type to LPR 4. Navigate to LPR Input Stream and set to **Video File** 5. In LPR Video File Path, enter the path to the folder where the engine will search for files Example path: `/var/www/metrici_storage/ID.avi` or `/var/www/metrici_storage/ID.mp4` 6. Navigate to Reporting, Check Action and Trigger OUT 7. Enter the Auth Key and Camera ID from the Interface ### Processing a Video 1. Go to LPR → Video Files Processing 2. Select the camera to use 3. Click Browse to locate and select the file 4. Click Save and wait for the progress bar to reach 100% **Important:** - The analysis runs in real time (a 29-minute video takes 29 minutes to process) - Maximum upload size is 2 GB per file - While analysis is in progress, no other file can be uploaded for the same camera --- ## Settings ### General Settings **Minimum Probability Display:** Confidence threshold at which a detected plate is stored in the database. Default value is 0.6 (60% probability). **Show Original Plate:** Enables display of the license plate photo exactly as captured by the system. Useful for visual verification. **Delete Plates After (days):** Sets the retention period for stored detections. A value of 0 means all plates are kept indefinitely. **Events counter:** Keeps track of the total number of events in the database. **Disk Space:** Displays total capacity, used space, and available space. --- ## Red Light Infringement, Speed & Vehicles and Trailers ### Vehicles and Trailers Displays a list of all detected vehicles and their associated trailers (if applicable). Useful for logistics hubs, weighing stations, border checkpoints, or industrial facilities. #### Available Filters - Front Plate / Country (Front) - Back Plate / Country (Back) - Date / Time - Location - Direction - Class (car, SUV/pickup, van, bus, truck, bike, tram, heavy machinery) - Maker (vehicle manufacturer) - Colour - Action - Info **Note:** For Class, Maker, and Colour filters to work, vehicle classification must be enabled in the Control Panel. ### Red Light Infringement & Speed **Important:** This menu works only when you have a companion camera linked to the LPR detection camera. The companion camera should watch the face of a traffic light in full view. **Red Light Infringement:** - Filter cars crossing on red light or not - Requires companion camera working with the LPR one - Create a detection area around the traffic light in the companion camera stream - LPR detection area should be positioned past the traffic light **Speed:** - Works when a Metrici Controller Radar is connected to the LPR engine - Any LPR event will have a speed attached that can be filtered --- ## Popup Alerts Popup Alerts allow you to configure notifications for individual number plates or groups, each with a custom message. ### Setup 1. Add a plate or create a group 2. Enable the "Show Pop-up" option in settings 3. Customize the alert message ### Usage - When triggered, a notification appears in the bottom-right corner - Click to be redirected to the popup menu - Click the green button to acknowledge and dismiss ### Filtering Filter alerts by: - Number plate - Generation date range - Acknowledgement date range # Metrici Access Terminal User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Access Terminal. This hardware device enables QR code-based parking barrier access control. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [User Management](#user-management) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Access Terminal is a hardware device for QR code-based parking barrier access control. A driver scans a QR code on the device's touchscreen, the terminal validates it through a remote API, and if approved, triggers a relay to open the parking barrier. The full flow is: car arrives on loop -> driver scans QR -> API validates -> relay opens barrier -> barrier auto-closes. Key features: - **4 MP camera** for QR code scanning - **Touchscreen display** for user interaction - **PoE+ power** - single cable for power and network - **WiFi and Ethernet** connectivity - **Relay output (GPIO23)** for barrier control - **Input sensor (GPIO24)** for inductive loop vehicle detection - **Web-based admin dashboard** for configuration ### Technical Data | Specification | Details | |---------------|---------| | **Description** | QR code-based parking barrier access terminal | | **Camera** | 4 MP camera for QR scanning | | **Display** | Touchscreen display | | **Connectivity** | PoE+ (IEEE 802.3at), WiFi, Ethernet | | **Outputs** | Relay output (GPIO23) for barrier control | | **Inputs** | Input sensor (GPIO24) for inductive loop detection | | **Interface** | Web-based admin dashboard | | **Weight** | 2.1 kg | | **Rating** | IP65 | ## First Boot Connect the Access Terminal to your network using an Ethernet cable from a PoE+ switch or PoE injector. The device will receive both power and network connectivity through the single cable. After connecting, access the web interface by opening a browser and navigating to the device's IP address. The default IP address can be found on the device label or obtained from your network's DHCP server. The web interface has the following sections: - **Dashboard** - displays the current status of the device and recent activity - **Settings** - where all configuration changes are made - **User** - user account management ## Dashboard The Dashboard provides a real-time overview of the Access Terminal's current state: - **Connection Status** - whether the device is connected to the network - **Camera Status** - whether the QR scanning camera is active - **Barrier Status** - current state of the barrier relay output - **Recent Activity** - log of recent QR scans and barrier events ## Settings To configure the Access Terminal, click **Settings** in the left-side menu. ### Network Settings Configure the network connection for the device: | Field | Description | |-------|-------------| | **Connection Type** | Ethernet or WiFi | | **IP Type** | Static or DHCP | | **IP Address** | Device's IP address (for Static mode) | | **Gateway** | Router's IP address | | **Subnet Mask** | Network mask | | **DNS** | DNS server address | | **SSID** | WiFi network name (for WiFi mode) | | **Password** | WiFi password (for WiFi mode) | ### API Configuration Configure the remote API endpoint that validates QR codes: | Field | Description | |-------|-------------| | **API URL** | The URL of the API endpoint that validates QR codes | | **API Key** | Authentication key for the API (if required) | | **Timeout** | Request timeout in seconds | ### Barrier Configuration Configure the barrier relay output: | Field | Description | |-------|-------------| | **Relay Pin** | GPIO pin for barrier control (default: GPIO23) | | **Active State** | Whether the relay is active when HIGH or LOW | | **Open Duration** | How long the barrier stays open (in seconds) | ### Vehicle Detection Configure the inductive loop input sensor: | Field | Description | |-------|-------------| | **Sensor Pin** | GPIO pin for vehicle detection (default: GPIO24) | | **Detection Mode** | Active HIGH or Active LOW | ### QR Code Settings Configure QR code scanning behavior: | Field | Description | |-------|-------------| | **Scan Timeout** | How long to wait for a QR code scan | | **Success Message** | Message displayed on successful scan | | **Failure Message** | Message displayed on failed validation | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. #### Factory Reset Reset all settings to factory defaults. After reset, the device will be accessible at its default IP address. ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the device will not be responsive - do not interact with it. Wait until the update completes. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface. ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network - Try pinging the device IP address ### QR Scanning Issues - Clean the camera lens - Ensure adequate lighting for QR code scanning - Verify the QR code format is supported - Check the API URL and connectivity ### Barrier Not Opening - Verify the barrier relay configuration is correct - Check that the API validation is returning success - Verify the barrier mechanism is working - Check device logs for barrier events ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Access Terminal # Metrici Payment Terminal User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Payment Terminal. This self-service hardware terminal enables parking payment at parking facilities. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [User Management](#user-management) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Payment Terminal is a self-service hardware payment terminal for parking payment. Drivers select a language, enter their license plate number or a received code via on-screen keyboard, view the calculated parking fee (queried from Metrici server in real-time), optionally request an invoice (phone, email, CIF/VAT ID), and complete payment using a built-in POS card reader. The terminal integrates with Metrici Web Application's Parking Module for pricing, billing, and access control. It supports 15 languages and PoE+ power. Key features: - **Self-service payment** - drivers can pay for parking without staff assistance - **Built-in POS card reader** - accepts card payments - **15 languages** supported - **On-screen keyboard** for license plate or code entry - **Invoice generation** - optional invoice request (phone, email, CIF/VAT ID) - **Real-time pricing** - queries Metrici server for calculated fees - **PoE+ power** - single cable for power and network - **Web-based admin dashboard** for configuration ### Technical Data | Specification | Details | |---------------|---------| | **Description** | Self-service parking payment terminal | | **Display** | Touchscreen display | | **Payment** | Built-in POS card reader | | **Connectivity** | PoE+, Ethernet | | **Languages** | 15 supported languages | | **Integrations** | Metrici Web Application Parking Module | | **Features** | License plate entry, code entry, invoice generation | ## First Boot Connect the Payment Terminal to your network using an Ethernet cable from a PoE+ switch or PoE injector. The device will receive both power and network connectivity through the single cable. After connecting, access the web interface by opening a browser and navigating to the device's IP address. The default IP address can be found on the device label or obtained from your network's DHCP server. The web interface has the following sections: - **Dashboard** - displays the current status of the device and recent transactions - **Settings** - where all configuration changes are made - **User** - user account management ## Dashboard The Dashboard provides a real-time overview of the Payment Terminal's current state: - **Connection Status** - whether the device is connected to the network - **POS Status** - whether the card reader is active - **Recent Transactions** - log of recent payment transactions - **System Health** - CPU, memory, and storage usage ## Settings To configure the Payment Terminal, click **Settings** in the left-side menu. ### Network Settings Configure the network connection for the device: | Field | Description | |-------|-------------| | **Connection Type** | Ethernet | | **IP Type** | Static or DHCP | | **IP Address** | Device's IP address (for Static mode) | | **Gateway** | Router's IP address | | **Subnet Mask** | Network mask | | **DNS** | DNS server address | ### Parking Module Configuration Configure the connection to the Metrici Web Application Parking Module: | Field | Description | |-------|-------------| | **Server URL** | The URL of the Metrici Parking Module | | **API Key** | Authentication key for the Parking Module API | | **Location ID** | Identifier for this parking location | ### Payment Settings Configure payment processing: | Field | Description | |-------|-------------| | **Currency** | Local currency for display | | **POS Type** | Type of POS card reader | | **POS Settings** | POS-specific configuration | | **Receipt Printing** | Enable/disable receipt printing | ### Invoice Settings Configure invoice generation: | Field | Description | |-------|-------------| | **Invoice Enabled** | Enable/disable invoice generation | | **Required Fields** | Select mandatory invoice fields (email, phone, CIF/VAT) | | **Invoice Email** | Email address for sending invoices | | **Invoice Template** | Invoice template configuration | ### Language Settings Configure the interface language: | Field | Description | |-------|-------------| | **Default Language** | Default language for the interface | | **Available Languages** | Select which languages to enable | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. #### Factory Reset Reset all settings to factory defaults. ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the device will not be responsive - do not interact with it. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface. ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network - Try pinging the device IP address ### Payment Issues - Verify the POS card reader is connected and functional - Check the Parking Module connection - Verify the API key is correct - Check device logs for payment errors ### Display Issues - Check touchscreen calibration - Verify the display cable connection - Restart the device ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Payment Terminal # Metrici Document Scanner User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Document Scanner. This hardware terminal automates visitor, carrier, and deliverer registration at facility access points. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [User Management](#user-management) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Document Scanner is a hardware terminal for automated visitor, carrier, and deliverer registration at facility access points. It scans identity documents (ID cards, passports) and travel documents (AWBs, invoices) using a built-in camera and AI-powered LLM (Large Language Model) for structured data extraction. The device integrates with Metrici LPR for license plate recognition and sends all data to the Metrici Visitor Journal web application. It supports 15 languages and role-based workflows (Visitor, Carrier, Deliverer). Key features: - **Document scanning** - ID cards, passports, AWBs, invoices - **AI-powered data extraction** - LLM for structured data extraction (name, CNP, nationality, birth date, etc.) - **15 languages** supported - **Role-based workflows** - Visitor, Carrier, Deliverer - **Touch screen** guided workflow with step-by-step registration process - **LPR integration** - connects with Metrici LPR for license plate recognition - **PoE+ power** - single cable for power and network - **Web-based admin dashboard** for configuration ### Technical Data | Specification | Details | |---------------|---------| | **Description** | Automated document scanning terminal for visitor registration | | **Camera** | Built-in camera for document scanning | | **Display** | Touch screen display | | **Connectivity** | PoE+, WiFi, Ethernet | | **AI Processing** | LLM for document data extraction | | **Languages** | 15 supported languages | | **Integrations** | Metrici LPR, Metrici Visitor Journal | | **Workflows** | Visitor, Carrier, Deliverer | ## First Boot Connect the Document Scanner to your network using an Ethernet cable from a PoE+ switch or PoE injector. The device will receive both power and network connectivity through the single cable. After connecting, access the web interface by opening a browser and navigating to the device's IP address. The default IP address can be found on the device label or obtained from your network's DHCP server. The web interface has the following sections: - **Dashboard** - displays the current status of the device and recent activity - **Settings** - where all configuration changes are made - **User** - user account management ## Dashboard The Dashboard provides a real-time overview of the Document Scanner's current state: - **Connection Status** - whether the device is connected to the network - **Camera Status** - whether the document scanning camera is active - **Recent Registrations** - log of recent document scans and registrations - **System Health** - CPU, memory, and storage usage ## Settings To configure the Document Scanner, click **Settings** in the left-side menu. ### Network Settings Configure the network connection for the device: | Field | Description | |-------|-------------| | **Connection Type** | Ethernet or WiFi | | **IP Type** | Static or DHCP | | **IP Address** | Device's IP address (for Static mode) | | **Gateway** | Router's IP address | | **Subnet Mask** | Network mask | | **DNS** | DNS server address | ### Visitor Journal Configuration Configure the connection to the Metrici Visitor Journal web application: | Field | Description | |-------|-------------| | **Journal URL** | The URL of the Metrici Visitor Journal | | **API Key** | Authentication key for the Journal API | | **Location ID** | Identifier for this registration point | ### LPR Integration Configure the connection to Metrici LPR for license plate recognition: | Field | Description | |-------|-------------| | **LPR URL** | The URL of the Metrici LPR server | | **Camera ID** | The camera ID for license plate recognition | | **Auth Key** | Authentication key for LPR communication | ### Document Settings Configure document scanning behavior: | Field | Description | |-------|-------------| | **Document Types** | Select which document types to accept (ID, Passport, AWB, Invoice) | | **Languages** | Select the interface language | | **Auto-capture** | Enable automatic document capture | | **Image Quality** | Scan resolution and quality settings | ### Workflow Settings Configure the registration workflow: | Field | Description | |-------|-------------| | **Default Role** | Default workflow role (Visitor, Carrier, Deliverer) | | **Required Fields** | Select which fields are mandatory for registration | | **Confirmation Message** | Message displayed after successful registration | | **Timeout** | Inactivity timeout before returning to home screen | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. #### Factory Reset Reset all settings to factory defaults. ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the device will not be responsive - do not interact with it. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface. ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network - Try pinging the device IP address ### Document Scanning Issues - Clean the camera lens - Ensure adequate lighting for document scanning - Verify the document type is supported - Check that the document is placed correctly on the scanning area ### LPR Integration Issues - Verify the LPR URL and camera ID are correct - Check that the LPR server is running and accessible - Verify the auth key is correct ### Visitor Journal Issues - Verify the Journal URL and API key are correct - Check that the Journal server is running and accessible - Check device logs for API errors ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Document Scanner # Metrici MultiController User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici MultiController. Whether you are configuring a simple barrier control system or integrating with Wiegand access control stations, this manual provides clear, step-by-step instructions. ## Table of Contents 1. [Introduction](#introduction) 2. [How Does It Work](#how-does-it-work) 3. [First Boot](#first-boot) 4. [Dashboard](#dashboard) 5. [Settings](#settings) 6. [Wiegand Settings](#wiegand-settings) 7. [Backup / Restore / Reset](#backup--restore--reset) 8. [User Management](#user-management) 9. [Troubleshooting](#troubleshooting) ## Introduction The Metrici MultiController is a hardware product fully developed by Metrici. It is a multi-function LAN device designed to work both indoors and outdoors. The device can be wall-mounted or placed in a small space, and it acts as an input/output controller for a wide range of devices. The controller features one Ethernet port (used for both power and network via PoE), two digital inputs, two digital outputs, and a 26-bit Wiegand interface. Its two inputs can be connected to inductive loops or sensors to send triggers to Metrici detection engines, while its two outputs can control up to two barriers, traffic lights, or any relay-driven hardware. The Wiegand interface allows the MultiController to receive codes from a connected Wiegand keypad and forward them over the network to a configured server. ### Technical Data | Specification | Details | |---------------|---------| | **Description** | Smart "all in one" LAN controller | | **Connectivity** | 1 Ethernet port (PoE), 2 digital inputs, 2 relay-driven digital outputs, 1 Wiegand 26-bit interface | | **Characteristics** | Web interface; can send triggers to 2 Metrici engines; can open 2 barriers; can convert license plates to Wiegand IDs | | **Networking** | WiFi 802.11 b/g/n and Ethernet 10/100 Mbps | | **Protocols** | HTTP over TCP/IP, RAW over UDP/IP, Wiegand 26-bit | | **Software Compatibility** | Metrici v3.3 and higher | | **Power** | PoE (IEEE 802.3af) via Ethernet cable | | **Operating Temperature** | -20 to +50 C, IP65 | | **Weight** | 0.35 Kg (350g) | ## How Does It Work The Metrici MultiController is designed to fit multiple working scenarios: ### Scenario 1 - Trigger and Control The MultiController is connected to two inductive loops or sensors to trigger Metrici detection engines when a vehicle arrives. In this scenario, it can also command up to two barriers, traffic lights, or other external hardware via its two digital outputs. Typical use cases include: controlling barriers when Metrici recognizes a license plate, triggering alarms on production lines, or alerting security when people are detected in restricted areas. ### Scenario 2 - Wiegand Keypad Input The MultiController is used to collect codes from a 26-bit Wiegand keypad connected to its Wiegand interface. When a user enters a code on the keypad, the device receives the Wiegand frame over its W0/W1 lines and forwards the resulting code to a configured server address and port. This setup is typically used for PIN-based access control: the forwarded code can be validated by a Metrici engine or any other authentication service. ## First Boot The MultiController is powered via PoE (Power over Ethernet). Connect a single Ethernet cable from a PoE switch or PoE injector to the device's Ethernet port. > **Note:** The network switch or injector must support at least standard PoE (IEEE 802.3af). > **Important!** The default IP address of the MultiController is always **192.168.100.10**. After connecting the Ethernet cable, open a browser and navigate to: ``` http://192.168.100.10 ``` The device ships with factory defaults: **Connection Type: Ethernet** and **IP Type: Static**. The MultiController interface has three main sections: - **Dashboard** - displays the current status of the device - **Settings** - where all configuration changes are made - **User** - where a user account is created or edited ## Dashboard At the default IP address (`192.168.100.10`), the first page you will see is the Dashboard. It provides an instant overview of the device's current state. ### Dashboard - Input Tab The Input tab under I/O Settings shows the configured trigger addresses. Each input can be linked to a Metrici detection engine by setting an IP address and port number. ### Dashboard - Output Tab The Output tab displays the relay timer values and provides manual On/Off toggle buttons for Relay 1 and Relay 2. These buttons allow you to manually switch the relays for testing purposes. The Dashboard also displays: - **Network Settings** - connection status, connection type, IP type, IP address, gateway, subnet mask, DNS, and MAC addresses - **Wiegand Settings** - the configured server address and port where Wiegand keypad codes will be forwarded - **Logs** - a record of recent device activity including network configuration changes and relay state changes ## Settings To configure the MultiController, navigate to **Settings** in the left-side menu. Each settings field can be in one of three states: - **Unchanged** - leave the field as it is, and the current value is kept - **"not set"** - type this to reset the value to its default - **New value** - enter a new value to replace the current one ### Network Settings The Network Settings tab allows you to change the local network configuration of the device. #### Connection Type | Option | Description | |--------|-------------| | **Ethernet** | Connect via Ethernet cable (recommended) | | **WiFi** | Connect via WiFi. Enter the SSID and Password | #### IP Type | Option | Description | |--------|-------------| | **Static** | Manually set the IP Address, Gateway, Subnet Mask, and DNS | | **DHCP** | The device receives an IP address automatically from the router | > **Important!** When using DHCP, each reboot may assign a different IP address to the device. Configure your router to link the MultiController's MAC address to a fixed IP address. > **Attention!** When saving any network settings, the device will restart. You will need to reconnect at the new IP address. ### Relay Settings The Relay Settings section contains two tabs: **Input** and **Output**. #### Input (Triggers) The MultiController can send trigger signals to up to two Metrici detection engines. To configure the inputs: - **Input IP Address** - the IP address of the Metrici server that will receive the trigger - **Input Port** - the unique port number for each detection engine, found in Metrici Control Panel. Port numbers begin at 3500 To set up the trigger on the Metrici server side: 1. Open Metrici Control Panel on the detection server 2. Select the detection engine that should receive the trigger 3. Set it to **Foreground with Watchdog** working mode, press **Edit** when started 4. Navigate to **Engine Working Mode and Trigger IN** 5. Change the engine working mode to **"Started by TRIGGER"** 6. Under Trigger Device and Type, select **Metrici MultiController (Input 1)** or **Metrici MultiController (Input 2)** 7. Metrici will automatically assign a port number (starting from 3500) #### Output (Relays) The Output tab allows you to configure the timer durations for each relay: | Field | Description | |-------|-------------| | **Timer 1 (s)** | The number of seconds Relay 1 stays ON after being triggered. Set to **0** to keep it ON indefinitely | | **Timer 2 (s)** | The number of seconds Relay 2 stays ON after being triggered. Set to **0** to keep it ON indefinitely | ### Wiegand Settings The Wiegand Settings section allows you to configure the Wiegand server connection: | Field | Description | |-------|-------------| | **Server Address** | The IP address of the Wiegand server | | **Port** | The port number used to connect to the Wiegand server | > **Important!** The MultiController can only connect to one Wiegand server at a time. ## Wiegand Settings ### Setting Up Wiegand To configure Wiegand: 1. Navigate to Settings -> Wiegand Settings 2. Enter the **Server Address** (IP of the Wiegand server) 3. Enter the **Port** number 4. Click **Save** When a user enters a code on a connected Wiegand keypad, the MultiController forwards the code to the configured server. ## Backup / Restore / Reset ### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. ### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. The device will restart with the imported settings. > **Important!** Importing a configuration file will overwrite all current settings. ### Hard Factory Reset To perform a hard factory reset, press and hold the reset button on the device for 10 seconds. This will reset all settings to factory defaults. After restart, the device will be accessible at the default IP address: `192.168.100.10`. ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the controller will not be responsive - do not interact with the device. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface and HTTP commands. > **Important!** When a user and password are set, all HTTP commands must include the credentials. ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network as the device - Try pinging the device IP address (default: 192.168.100.10) ### Relays Not Activating - Verify the trigger configuration is correct - Check that the detection engine is sending triggers to the correct IP and port - Check device logs for received trigger events ### Wiegand Not Working - Verify the Wiegand server address and port are correct - Check that the Wiegand keypad is properly connected (W0, W1, GND) - Check device logs for Wiegand events ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici MultiController # Metrici Signal Light User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Signal Light. This device has two built-in indicator lights - one red and one green - and can be controlled manually from the web interface or remotely by Metrici detection engines. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [User Management](#user-management) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Signal Light is a hardware product developed by Metrici. It is a compact LAN device with two built-in indicator lights - one red and one green - used to display visual status at parking entrances, access control points, or any location where a simple go/stop signal is needed. The device features a single Ethernet port that provides both network connectivity and electrical power via PoE (Power over Ethernet). No separate power adapter is needed - a single cable handles everything. The lights are built into the controller itself. When a Metrici detection engine (such as Area Counter or Line Counter) needs to signal an event, it sends an HTTP command to the Signal Light device, which then turns the appropriate light on or off. For example, when a parking zone is full, the engine can turn the red light on to indicate no available spaces. Key features: - **Two built-in lights** - independent red and green indicator lights inside the device - **Automatic timers** - set how long each light stays on before automatically switching off - **PoE powered** - single Ethernet cable for both power and network - **Web interface** - configure and monitor from any browser - **WiFi and Ethernet** - supports both connection types - **Remote control via HTTP** - lights are controlled by Metrici detection engines through simple HTTP commands ### Technical Data | Specification | Details | |---------------|---------| | **Description** | Red/Green indicator LAN controller with built-in lights | | **Connectivity** | 1 Ethernet port (PoE), built-in red light, built-in green light | | **Networking** | WiFi 802.11 b/g/n and Ethernet 10/100 Mbps | | **Protocols** | HTTP over TCP/IP | | **Power** | PoE (IEEE 802.3af) via Ethernet cable | | **Operating Temperature** | -20 to +50 C, IP65 | | **Software Compatibility** | Metrici v3.3 and higher | | **Interface** | Web-based dashboard with 3 sections: Dashboard, Settings, User | | **Weight** | 0.4 KG (400g) | ## First Boot The Metrici Signal Light is powered via PoE (Power over Ethernet). Connect a single Ethernet cable from a PoE switch or PoE injector to the device's Ethernet port. > **Note:** The network switch or injector must support at least standard PoE (IEEE 802.3af). > **Important!** The default IP address of the Signal Light device is always **192.168.100.10**. After connecting the Ethernet cable, open a browser and navigate to: ``` http://192.168.100.10 ``` The device ships with factory defaults: **Connection Type: Ethernet** and **IP Type: Static**. The web interface has three main sections: - **Dashboard** - displays the current status of the device, network information, light states, and logs - **Settings** - where all configuration changes are made (network, light timers, backup, firmware) - **User** - where a user account is created or edited for securing access to the interface ## Dashboard The Dashboard is the first page you see after accessing the device. It provides a real-time overview of the Signal Light device's current state. ### Network Status The left side of the Dashboard displays the current network configuration, including: - **Connected** - whether the device is connected to the network (Yes/No) - **Connection Type** - Ethernet or WiFi - **IP Type** - Static or DHCP - **SSID** - the WiFi network name (empty when using Ethernet) - **IP Address** - the device's current IP address - **Gateway** - the router's IP address - **Subnet Mask** - the network mask - **DNS** - the DNS server address - **MAC Address WiFi** - the device's WiFi MAC address - **MAC Address Eth** - the device's Ethernet MAC address ### Red/Green Color Settings The right side of the Dashboard shows the Red/Green Color Settings panel. This provides: - **Timer Red** - displays the current timer value (in seconds) for the red light - **Timer Green** - displays the current timer value (in seconds) for the green light - **Red Light** - manual On/Off toggle button to switch the red light - **Green Light** - manual On/Off toggle button to switch the green light ### Logs The Logs section at the bottom of the Dashboard displays a timestamped record of recent device events: - `Red light is ON` - the red light was turned on - `Red light is OFF` - the red light was turned off ## Settings To configure the Signal Light device, click **Settings** in the left-side menu. ### Network Settings #### Connection Type | Option | Description | |--------|-------------| | **Ethernet** | Connect via Ethernet cable (recommended) | | **WiFi** | Connect via WiFi. Enter the SSID and Password | #### IP Type | Option | Description | |--------|-------------| | **Static** | Manually set the IP Address, Gateway, Subnet Mask, and DNS | | **DHCP** | The device receives an IP address automatically from the router | > **Attention!** When saving any network settings, the device will restart and you will need to reconnect at the new IP address. ### Red/Green Light Settings On the Settings page, the Red/Green Color Settings panel allows you to configure the timers for each light: | Field | Description | |-------|-------------| | **Timer Red (s)** | The number of seconds the red light stays ON before automatically turning OFF. Set to **0** to keep it ON indefinitely | | **Timer Green (s)** | The number of seconds the green light stays ON before automatically turning OFF. Set to **0** to keep it ON indefinitely | ### Remote Control via HTTP Commands The built-in lights are controlled remotely by Metrici detection engines using HTTP requests: | Command | URL | |---------|-----| | Turn Red Light ON | `http://192.168.100.10/red/on` | | Turn Red Light OFF | `http://192.168.100.10/red/off` | | Turn Green Light ON | `http://192.168.100.10/green/on` | | Turn Green Light OFF | `http://192.168.100.10/green/off` | Replace `192.168.100.10` with the actual IP address of your Signal Light device. > **Note:** If a user and password are set on the device, the URLs must include authentication credentials. For example: `http://username:password@192.168.100.10/red/on` ### Integration with Metrici Detection Engines The Metrici Signal Light is designed to work with Metrici detection engines (Area Counter, Line Counter, etc.). The engine sends HTTP commands to the device's IP address to activate the lights. #### Example - Area Counter In the Metrici Control Panel, open the Area Counter engine settings. Under **Signaling Device URL**, enter the Signal Light device's IP: | Field | Value | Effect | |-------|-------|--------| | **Signaling device URL (ON)** | `http://192.168.100.10/red/on` | Turns red light when zone is full | | **Signaling device URL (OFF)** | `http://192.168.100.10/green/on` | Turns green light when space is available | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. #### Factory Reset Two reset options are available: - **Soft Reset** - keeps network settings but resets everything else - **Factory Reset** - resets all settings to factory defaults ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the controller will not be responsive - do not interact with the device. Wait until you are redirected to the confirmation page. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface and HTTP commands. > **Important!** When a user and password are set, all HTTP commands must include the credentials. For example: `http://username:password@192.168.100.10/red/on` ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network as the device - Try pinging the device IP address (default: 192.168.100.10) ### Lights Not Responding - Verify the trigger URLs are correct - Check that the detection engine is sending triggers to the correct IP and port - Check device logs for received trigger events - Verify user authentication is configured correctly if set ### Network Connection Issues - Verify Ethernet cable is securely connected - Check switch port is providing PoE power - Verify network settings (IP, subnet, gateway) are correct ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Signal Light # Metrici Horn Light User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Horn Light. This device has a built-in red indicator light and an audible horn that activate simultaneously when a trigger event is received - providing both a visual and an audio alert. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [User Management](#user-management) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Horn Light is a hardware product developed by Metrici. It is a compact LAN device with a built-in **red indicator light** and an **audible horn** - used to deliver simultaneous visual and audio alerts at parking entrances, access control points, or any location where an immediate go/stop signal is needed. The device features a single Ethernet port that provides both network connectivity and electrical power via PoE (Power over Ethernet). No separate power adapter is needed - a single cable handles everything. The red light and horn are controlled via two independent relay outputs built into the controller. When a Metrici detection engine (such as Area Counter or Line Counter) needs to signal an event, it sends an HTTP command to the Horn Light device, which activates the corresponding relay. Key features: - **Red indicator light + horn** - activate simultaneously on trigger for combined visual and audio alerts - **Two independent relay outputs** - Relay 1 (red light) and Relay 2 (horn) with individually configurable timers - **Two input addresses** - configure IP:port pairs to receive trigger signals from external systems - **Wiegand integration** - connect to a Wiegand server for access control scenarios - **Automatic timers** - set how long each output stays active before automatically switching off - **PoE powered** - single Ethernet cable for both power and network - **Web interface** - configure and monitor from any browser - **WiFi and Ethernet** - supports both connection types - **Remote control via HTTP** - outputs are controlled by Metrici detection engines through simple HTTP commands ### Technical Data | Specification | Details | |---------------|---------| | **Description** | Red light + horn alert LAN controller with built-in relay outputs | | **Outputs** | Relay 1 (red indicator light), Relay 2 (horn/buzzer) | | **Inputs** | 2 configurable input addresses (IP:port) | | **Connectivity** | 1 Ethernet port (PoE) | | **Networking** | WiFi 802.11 b/g/n and Ethernet 10/100 Mbps | | **Protocols** | HTTP over TCP/IP, Wiegand | | **Power** | PoE (IEEE 802.3af) via Ethernet cable | | **Operating Temperature** | -20 to +50 C, IP65 | | **Software Compatibility** | Metrici v3.3 and higher | | **Interface** | Web-based dashboard with 3 sections: Dashboard, Settings, User | ## First Boot The Metrici Horn Light is powered via PoE (Power over Ethernet). Connect a single Ethernet cable from a PoE switch or PoE injector to the device's Ethernet port. > **Note:** The network switch or injector must support at least standard PoE (IEEE 802.3af). Verify your equipment supports PoE before connecting. > **Important!** The default IP address of the Horn Light device is always **192.168.100.10**. After connecting the Ethernet cable, open a browser and navigate to: ``` http://192.168.100.10 ``` The device ships with factory defaults: **Connection Type: Ethernet** and **IP Type: Static**. The web interface has three main sections: - **Dashboard** - displays the current status of the device, network information, relay states, and logs - **Settings** - where all configuration changes are made (network, I/O timers, Wiegand, backup, firmware) - **User** - where a user account is created or edited for securing access to the interface ## Dashboard The Dashboard is the first page you see after accessing the device. It provides a real-time overview of the Horn Light device's current state. ### Network Status The left side of the Dashboard displays the current network configuration, including: - **Connected** - whether the device is connected to the network (Yes/No) - **Connection Type** - Ethernet or WiFi - **IP Type** - Static or DHCP - **SSID** - the WiFi network name (empty when using Ethernet) - **IP Address** - the device's current IP address - **Gateway** - the router's IP address - **Subnet Mask** - the network mask - **DNS** - the DNS server address - **MAC Address WiFi** - the device's WiFi MAC address - **MAC Address Eth** - the device's Ethernet MAC address ### Output Controls The right side of the Dashboard shows the I/O Settings panel. Switch to the **Output** tab to view and manually control the device's relay outputs. The Output tab provides: - **Timer 1** - displays the current timer value (in seconds) configured for Relay 1 (red light) - **Timer 2** - displays the current timer value (in seconds) configured for Relay 2 (horn) - **Relay 1 - On / Off** - manual toggle to activate or deactivate the red indicator light - **Relay 2 - On / Off** - manual toggle to activate or deactivate the horn ### Logs The Logs section at the bottom of the Dashboard displays a timestamped record of recent device events: - `Relay 1 is ON` - the red light was activated - `Relay 1 is OFF` - the red light was deactivated - `Relay 2 is ON` - the horn was activated - `Relay 2 is OFF` - the horn was deactivated ## Settings To configure the Horn Light device, click **Settings** in the left-side menu. Here you can change the network configuration, set relay timers, configure input and Wiegand addresses, perform backup and restore operations, and update the firmware. ### Network Settings The Network Settings section allows you to configure how the device connects to your local network. #### Connection Type | Option | Description | |--------|-------------| | **Ethernet** | Connect via Ethernet cable (recommended). SSID and Password fields become inactive | | **WiFi** | Connect via WiFi. Enter the SSID and Password of your local wireless network | #### IP Type | Option | Description | |--------|-------------| | **Static** | Manually set the IP Address, Gateway, Subnet Mask, and DNS | | **DHCP** | The device receives an IP address automatically from the router | #### Network Fields | Field | Description | |-------|-------------| | **SSID** | The WiFi network name. Only used when Connection Type is WiFi | | **Password** | The WiFi network password. Only used when Connection Type is WiFi | | **IP Address** | The device's unique address on the network | | **Gateway** | The router's IP address | | **Subnet Mask** | Defines the local network range | | **DNS** | The DNS server address | > **Attention!** When saving any network settings, the device will restart and you will need to reconnect at the new IP address. ### I/O Settings The I/O Settings panel is divided into two tabs: **Input** and **Output**. #### Input Tab The Input tab allows you to configure the two input addresses from which the device accepts trigger signals: | Field | Description | |-------|-------------| | **Input 1 Address** | IP address of the first system authorised to send trigger commands | | **Input 1 Port** | Port number corresponding to Input 1 | | **Input 2 Address** | IP address of the second system authorised to send trigger commands | | **Input 2 Port** | Port number corresponding to Input 2 | #### Output Tab On the Settings page, the Output tab allows you to configure the timer durations for each relay: | Field | Description | |-------|-------------| | **Timer 1 (s)** | The number of seconds Relay 1 (red light) stays ON after being triggered. Set to **0** to keep it ON indefinitely | | **Timer 2 (s)** | The number of seconds Relay 2 (horn) stays ON after being triggered. Set to **0** to keep it ON indefinitely | ### Remote Control via HTTP Commands The built-in relays are controlled remotely by Metrici detection engines using HTTP requests: | Command | URL | |---------|-----| | Turn Relay 1 (Red Light) ON | `http://192.168.100.10/relay1/on` | | Turn Relay 1 (Red Light) OFF | `http://192.168.100.10/relay1/off` | | Turn Relay 2 (Horn) ON | `http://192.168.100.10/relay2/on` | | Turn Relay 2 (Horn) OFF | `http://192.168.100.10/relay2/off` | Replace `192.168.100.10` with the actual IP address of your Horn Light device. > **Note:** If a user and password are set on the device, the URLs must include authentication credentials. For example: `http://username:password@192.168.100.10/relay1/on` ### Integration with Metrici Detection Engines The Metrici Horn Light is designed to work with Metrici detection engines. The engine sends HTTP commands to the device's IP address to activate the relays. #### Example - Area Counter In the Metrici Control Panel, open the Area Counter engine settings. Under **Engine Working Mode & External Trigger**, enter the Horn Light device's IP in the signaling device fields: | Field | Value | Effect | |-------|-------|--------| | **Signaling device URL (ON)** | `http://192.168.100.10/relay1/on` | Activates the red light when the configured condition is met | | **Signaling device URL (OFF)** | `http://192.168.100.10/relay1/off` | Deactivates the red light when the condition clears | ### Wiegand Settings The Wiegand Settings section allows you to connect the Horn Light to a Wiegand server: | Field | Description | |-------|-------------| | **Server Address** | The IP address of the Wiegand server | | **Port** | The port number used to connect to the Wiegand server | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. The device will restart with the imported settings. > **Important!** Importing a configuration file will overwrite all current settings. #### Factory Reset Two reset options are available: - **Soft Reset** - keeps the network settings but resets everything else - **Factory Reset** - resets all settings to factory defaults. After restart, the device will be accessible at the default IP address: `192.168.100.10` ### Firmware Update Firmware files (`firmware.bin` and `littlefs.bin`) are provided by Metrici and can be downloaded from **support.metrici.ro**. To update: 1. Download the firmware files from support.metrici.ro 2. Click **Browse** and select `firmware.bin` 3. Click **Update** 4. After the firmware update completes, repeat the process for the optional `littlefs.bin` file > **Important!** During the update, a blue "Updating..." message will appear. The controller will not be responsive - do not interact with the device. Wait until you are redirected to the confirmation page. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time - saving a new username or password will overwrite the previous one. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface and HTTP commands from the local network. > **Important!** When a user and password are set, all HTTP commands must include the credentials. For example: `http://username:password@192.168.100.10/relay1/on` ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network as the device - Try pinging the device IP address (default: 192.168.100.10) - If the IP was changed, check your router's DHCP table or use a network scanner ### Network Connection Issues - Verify Ethernet cable is securely connected - Check switch port is providing PoE power - Verify network settings (IP, subnet, gateway) are correct - If using WiFi, verify SSID and password are correct ### Relays Not Activating - Verify the trigger URLs are correct - Check that input addresses are configured correctly in Settings - Verify the detection engine is sending triggers to the correct IP and port - Check device logs for received trigger events ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Horn Light # Metrici Server User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to know about the Metrici Server hardware platform. This compact mini-PC is designed specifically for running Metrici detection engines. ## Table of Contents 1. [Introduction](#introduction) 2. [Technical Specifications](#technical-specifications) 3. [Getting Started](#getting-started) 4. [Hardware Setup](#hardware-setup) 5. [Software Configuration](#software-configuration) 6. [Maintenance](#maintenance) 7. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Server is a compact mini-PC hardware platform shipped pre-installed with Ubuntu 24.04 LTS and Metrici detection engines. It is built around Intel Core Ultra 5 125H/135H (Meteor Lake-H) with Intel Arc Graphics and designed for 24/7 operation. The unit arrives ready to use - just connect power, network, and optionally a display. ## Technical Specifications ### Processor | Specification | Details | |---------------|---------| | **CPU** | Intel Core Ultra 5 125H / 135H (Meteor Lake-H) | | **GPU** | Intel Arc Graphics | | **RAM** | Up to 96 GB DDR5 | | **Storage** | M.2 NVMe SSD | ### Connectivity | Specification | Details | |---------------|---------| | **Ethernet** | 2.5 Gb Ethernet | | **WiFi** | Wi-Fi 6E | | **USB** | Thunderbolt/USB4 ports | | **Display** | Display output (with emulation for headless operation) | ### Power | Specification | Details | |---------------|---------| | **Power Adapter** | 120W | | **Power Input** | Standard AC power | ### Physical | Specification | Details | |---------------|---------| | **Form Factor** | Compact mini-PC | | **Operating Temperature** | Designed for 24/7 operation | | **MTBF** | > 50,000 hours | ### Software | Specification | Details | |---------------|---------| | **Operating System** | Ubuntu 24.04 LTS (pre-installed) | | **Pre-installed** | Metrici detection engines | ## Getting Started The Metrici Server arrives ready to use. Follow these steps to get started: 1. **Unpack the server** from its packaging 2. **Connect the Ethernet cable** to your network 3. **Connect the power adapter** to the server and a power outlet 4. **Optionally connect a display** via the display output (for initial setup) 5. **The server will boot automatically** and start the Metrici services > **Note:** The server is configured to start automatically when powered on. No additional configuration is required for basic operation. ## Hardware Setup ### Connecting to Network Connect an Ethernet cable from your network switch or router to the 2.5 Gb Ethernet port on the server. This provides both network connectivity and, if using PoE, power. ### Connecting Power Connect the 120W power adapter to the server's power input and to a power outlet. The server will boot automatically when power is connected. ### Connecting a Display (Optional) For initial setup and troubleshooting, you can connect a display to the server's display output. However, the server is designed for headless operation and can be fully managed over the network. ### Headless Operation The server supports display emulation for headless operation: - **Virtual display** - The server can operate without a physical display connected - **Persistent HDMI** - If a display is connected, the server will maintain the connection ## Software Configuration ### First Boot On first boot, the server will: 1. Initialize the Ubuntu 24.04 LTS operating system 2. Start the Metrici detection engines 3. Configure network settings (DHCP by default) 4. Begin listening for connections from the Metrici Control Panel and Web Interface ### Network Configuration By default, the server obtains its IP address via DHCP. To configure a static IP address: 1. Access the server via SSH or connected display 2. Edit the network configuration file 3. Set the desired IP address, gateway, and DNS settings 4. Restart the network service ### Metrici Services The following Metrici services run on the server: - **Metrici Control Panel** - Central management of detection engines - **Metrici Detection Engines** - LPR, Area Counter, Line Counter, etc. - **Metrici Web Interface** - Browser-based dashboard (if licensed) ### Accessing the Server #### SSH Access To access the server via SSH: ```bash ssh username@server_ip ``` Replace `username` with your configured username and `server_ip` with the server's IP address. #### Web Interface Access To access the Metrici Web Interface: 1. Open a web browser 2. Navigate to `http://server_ip` (or the configured IP address) 3. Log in with your credentials ## Maintenance ### Software Updates To keep the server up to date: 1. **Ubuntu updates:** ```bash sudo apt update sudo apt upgrade ``` 2. **Metrici updates:** - Update through the Metrici Control Panel - Or download updates from support.metrici.ro ### Backup Regular backups are recommended: 1. **Configuration backup** - Use the Metrici Control Panel's backup feature 2. **Database backup** - Use the Metrici Web Interface's backup feature 3. **System backup** - Consider using system-level backup tools ### Hardware Maintenance - **Cleaning** - Keep the server clean and free of dust - **Ventilation** - Ensure adequate airflow around the server - **Power** - Use a UPS (Uninterruptible Power Supply) for protection against power outages ## Troubleshooting ### Server Won't Boot - Verify the power adapter is connected properly - Check that the power outlet is working - Try a different power adapter if available ### Network Connectivity Issues - Verify the Ethernet cable is securely connected - Check that the network switch port is active - Verify the IP address configuration - Check firewall settings ### High CPU or Memory Usage - Check the number of running detection engines - Verify the CPU core allocation in the Control Panel - Consider upgrading RAM if running many engines ### Detection Engine Issues - Check the engine logs in the Control Panel - Verify camera connections - Verify license status - Restart the engine from the Control Panel ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Server # Container Code Recognition v2.5 User Manual for End Users and System Administrators > **Important!** This documentation is currently in beta and is a work in progress. Content may change as features are finalized. ## Table of Contents 1. [Introduction](#introduction) 2. [Starting the Application](#starting-the-application) 3. [Main Interface Overview](#main-interface-overview) 4. [Input Stream - Camera and Video Stream Configuration](#camera-configuration) 5. [Companion Stream (Secondary Camera)](#companion-stream) 6. [Recognition Settings](#recognition-settings) 7. [Detection Window Configuration](#detection-window) 8. [Live View Feature](#live-view) 9. [Reporting and Check Action](#reporting) 10. [Barrier and Traffic Light Control](#barrier-control) 11. [External Triggers](#external-triggers) 12. [GPS Integration](#gps-integration) 13. [Weight Scale Integration](#weight-scale) 14. [Radar/Speed Detection](#radar-integration) 15. [Recognition Engine Mode](#engine-mode) 16. [Command Line Options](#command-line) 17. [Troubleshooting](#troubleshooting) 18. [Technical Support](#technical-support) 19. [Configuration File (INI File)](#configuration-file) ## 1. Introduction Welcome to the **Container Code Recognition (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: - **Container Terminals:** Tracking shipping containers as they enter or exit facilities - **Vehicle Access Control:** Monitoring and controlling vehicle access at secured entrances - **Logistics Centers:** Recording vehicle movements and cargo information - **Toll Gates:** Automatic vehicle identification and billing - **Parking Facilities:** Entry and exit tracking ### Key Features The CCR application offers a comprehensive set of features designed for reliable and efficient automatic recognition: - **Multi-Camera Support:** Connect to various types of IP cameras and video sources - **Real-Time Processing:** Analyze video streams and recognize plates and codes in real-time - **Multiple Recognition Engine Modes:** Choose between continuous scanning or trigger-based operation - **Configurable Detection Area:** Define exactly where on the screen recognition should be made - **Direction Detection:** Determine whether vehicles are entering or leaving - **Integration Capabilities:** Connect with external systems like barriers, sensors, and databases - **Reporting:** Send recognition results to remote servers for logging and processing - **GPS Support:** Record location data with each recognition event - **Hardware Integration:** Connect to weight scales and radar devices ## 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):** ```bash ./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: - Displays the processed video with recognition overlays - Highlights detected license plates and codes with bounding boxes - Shows recognized characters - Indicates the detection window (if configured) #### 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 | **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: - The recognized container code - Confidence level (how sure the system is of the recognition) - Timestamp of when the code was detected - A thumbnail image of the detected code #### Codes History Table A scrolling table showing all recently detected codes with: - Timestamp of detection - Recognized code - Direction (entering/leaving) - Confidence level #### Control 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: - Current GPS connection status - Latitude and longitude coordinates - Signal quality indicator ## 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 - **Video File:** Process pre-recorded video files instead of live cameras ### 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: - **Default RTSP Port:** 554 - **Alternative RTSP Ports:** 555, 8554, 10554 - **HTTP Port:** Usually 80 or 8080 ``` 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] ``` **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 | Very Low | > **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: - **RTSP Latency:** Delay buffer for RTSP streams (typically 100-500ms). Higher values improve stability but add delay. - **Protocol Selection:** Choose between UDP, TCP, or HTTP tunneling depending on your network conditions. Settings done in .ini file. ### 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: - Stream type selection (RTSP, HTTP, etc.) - Camera address - TCP port - Username and password #### Display Options The companion stream video can be displayed: - **Tabbed View:** Switch between main and companion with tabs ## 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 ▼] ``` - **Coming:** Vehicle is approaching/arriving at the detection point - **Leaving:** Vehicle is departing from the detection point 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: - **Pros:** Maximum detection probability, no risk of missing vehicles - **Cons:** Higher CPU/GPU usage, may detect stationary vehicles **Best for:** High-traffic areas where vehicles are always present. #### Trigger Mode In trigger mode, recognition only occurs when triggered by an external signal: - **Pros:** Lower resource usage, more accurate triggering of events - **Cons:** Requires external trigger hardware (loop detectors, sensors) **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 processing. ### Why Use a Detection Window? Setting a detection window provides several benefits: - **Improved Accuracy:** The system only searches for plates in the defined area - **Faster Processing:** Smaller search area means faster recognition - **Reduced Area:** Can initiate detection when vehicles enter specific areas ### 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: - **Origin X:** Horizontal position from the left edge (0 = left edge) - **Origin Y:** Vertical position from the top edge (0 = top edge) #### 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 - Position where vehicles/codes are perpendicular to the camera (best angle for reading) - Include the full path of vehicle travel - Exclude areas where non-vehicle objects might cause false detections > **Warning:** If the detection window is too small, you may miss vehicles/codes. If it's too large, you may overload 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: - **Remote Monitoring:** Watch the video feed from anywhere via web browser - **Central Control Rooms:** Display feeds on video walls - **Mobile Access:** View on smartphones or tablets - **Recording:** External systems can capture and record the stream ### 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: - Code number - Timestamp - GPS coordinates (if available) - Direction (coming/leaving) - Event ID ### 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: ```http POST /reporting.php Content-Type: application/json { "plate": "ABC123", "timestamp": "2024-01-15 14:30:25", "confidence": 95, "direction": "coming", "gate_id": 1, } ``` **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: - Automatically open barriers for authorized vehicles - Keep barriers closed for unauthorized vehicles - Log all access attempts - Integrate with existing access control systems ### 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 devices: ``` 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 - **Barionet 50 I/O:** Network-connected digital input module - **Inductive Loop Detectors:** Detect vehicles via magnetic field changes - **Photoelectric Sensors:** Detect vehicles via light beam interruption - **Pressure Mats:** Detect vehicles via weight sensors #### Virtual Triggers - **Metrici Virtual Trigger:** Software-based trigger from other systems ### 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. **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 - **Location Logging:** Record exact location of each recognition - **Mobile Installations:** Use with vehicles or portable setups - **Geo-Fencing:** Verify vehicles are in expected locations - **Multiple Site Management:** Identify which site recorded each event ### 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: - **Latitude:** North/South position (e.g., 40.7128° N) - **Longitude:** East/West position (e.g., 74.0060° W) - **Coordinates Format:** Decimal degrees (DD.DDDD°) ### 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: - Reporting URL - Local log files ```json { "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 - **Weight Verification:** Confirm loaded vs. empty vehicle weights - **Overload Detection:** Identify overweight vehicles - **Comprehensive Logging:** Record both identity and weight - **Revenue Tracking:** Weight-based billing or tolling ### 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: - **Current Weight:** Live weight reading - **Unit:** Kilograms (kg) or pounds (lbs) - **Connection Status:** Connected/disconnected indicator ### Weight Data in Reports Weight data is included with recognition events: ```json { "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 - **Speed Measurement:** Record vehicle speed during recognition - **Speed Limit Enforcement:** Identify vehicles exceeding speed limits - **Safety Monitoring:** Track speeding incidents - **Traffic Analysis:** Gather speed data for traffic studies ### Radar Data in Reports Speed data is included with recognition events: ```json { "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: - Maximum detection probability - won't miss passing vehicles - Constant CPU/GPU usage - Best for high-traffic areas - Recommended for most installations ### Triggered Mode In triggered mode, the recognition engine only activates when triggered by an external signal: - Lower resource usage - only processes when needed - Requires external trigger device (see External Triggers section) - More precise timing - captures vehicle at exact moment - Best for installations with vehicle sensors ### 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. ```bash 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. ```bash ccr -disable_gpu ``` ``` -gpu [id] ``` Specifies which GPU to use for acceleration when multiple GPUs are available. ```bash 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. ```bash ccr -detection_threads 4 # Use 4 processing threads ``` #### Logging Configuration ``` -log_level [0-3] ``` Sets the verbosity of log output: - **0:** NONE - No logging - **1:** LOW - Only important events - **2:** MEDIUM - Standard logging (default) - **3:** HIGH - Verbose, includes debug information ```bash 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. ```bash 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. ```bash ccr -app_name "Entry Gate North" ``` #### Output Format ``` -output_type [format] ``` Specifies the output format for external integrations. ```bash ccr -output_type default # Standard format ccr -output_type vidux # Vidux format ``` #### Version Information ``` -v ``` Displays version information and exits without starting the application. ```bash ccr -v ``` #### Debug Mode ``` -debug ``` Enables debug mode with additional diagnostic information. ```bash ccr -debug ``` ### Complete Example ```bash ccr -nogui -detection_threads 4 -log_level 2 -app_id 0 -app_name "Main Entrance" ``` This command runs the application: - Without GUI (headless mode) - With 4 processing threads - With medium log verbosity - As application instance 0 - Named "Main Entrance" ## 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: ```bash ccr -log_level 3 -debug ``` Log files contain valuable diagnostic information including: - Connection attempts and results - Recognition confidence scores - Error messages and stack traces - Timing information > **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: - **Software Version:** Run `ccr -v` to get version information - **Log Files:** Enable `-log_level 3` and capture the logs during the issue - **Configuration:** Export or describe your current settings - **Hardware Information:** Computer specs, camera model - **Network Setup:** IP addresses, network topology - **Issue Description:** Detailed description of the problem - **Steps to Reproduce:** How to make the issue happen ## 19. 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: ```ini [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: - Make a copy before making major changes - Backup before software updates - Save different configurations for different scenarios - Store backups in a safe location ### 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: ```bash 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 | --- **Document Version:** 2.5.0 **Last Updated:** February 2026 **Software Version:** CCR v2.5 © 2026 Metrici. All rights reserved. # Metrici LuxRiot Integration User Manual for System Administrators and Developers --- > **Welcome!** This guide explains how to integrate Metrici LPR events with LuxRiot VCA (Vehicle-Count-Analytics) using the provided PHP export script. ## Table of Contents 1. [Introduction](#introduction) 2. [Installation](#installation) 3. [Configuration](#configuration) 4. [Authentication](#authentication) 5. [Data Format](#data-format) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici LPR to LuxRiot VCA Export Script (`luxriot_lpr.php`) is a PHP helper script that bridges Metrici License Plate Recognition events to LuxRiot VCA VMS. The script: - Receives LPR HTTP POST requests from a Metrici LPR engine - Validates them using per-camera authkey and MD5 hash authentication - Builds a JSON metadata payload - Forwards it to a LuxRiot VCA server using HTTP Digest authentication Use cases include: - Integrating Metrici LPR with LuxRiot VMS - Sending plate recognition events to a central VMS - Enabling LuxRiot to act on LPR events (alerts, logging, etc.) ## Installation ### Requirements - PHP 7.4 or higher - Web server (Apache, Nginx, etc.) - Metrici LPR engine configured to send events ### Setup 1. Download the `luxriot_lpr.php` script from Metrici resources 2. Place the script on your web server 3. Configure the script with your LuxRiot server details 4. Configure your Metrici LPR engine to send events to the script URL ## Configuration ### GET Parameters The script accepts the following GET parameters for LuxRiot server configuration: | Parameter | Description | |-----------|-------------| | `server` | LuxRiot VCA server URL | | `port` | LuxRiot VCA server port | | `user` | LuxRiot username | | `pass` | LuxRiot password | | `target_id` | Target ID in LuxRiot for this camera | ### Example URL ``` http://your-server.com/luxriot_lpr.php?server=192.168.1.100&port=8080&user=admin&pass=password&target_id=1 ``` ### Metrici LPR Configuration In the Metrici Control Panel, configure the LPR engine's Check Action URL to point to the script: ``` http://your-server.com/luxriot_lpr.php?server=192.168.1.100&port=8080&user=admin&pass=password&target_id=1 ``` ## Authentication ### Per-Camera Authkey Each camera has a unique authkey that must be configured in both the Metrici LPR engine and the LuxRiot script. The authkey is used for MD5 hash authentication to verify the authenticity of incoming requests. ### MD5 Hash Authentication The script validates incoming requests using an MD5 hash: 1. The Metrici LPR engine sends the request with an authkey 2. The script computes the MD5 hash of the authkey 3. The hash is compared with the expected value 4. If the hash matches, the request is processed ### HTTP Digest Authentication The script uses HTTP Digest authentication when sending requests to the LuxRiot VCA server. This provides secure authentication for the export requests. ## Data Format ### POST Fields from Metrici LPR The script receives the following POST fields from the Metrici LPR engine: | Field | Description | |-------|-------------| | `plate_number` | Recognized license plate number | | `country_code` | Country code of the plate | | `timestamp` | Detection timestamp | | `probability` | Recognition confidence (0.0-1.0) | | `direction` | Vehicle direction (coming/leaving) | | `image` | Base64-encoded image of the detection | | `gps_latitude` | GPS latitude (if available) | | `gps_longitude` | GPS longitude (if available) | | `vehicle_type` | Detected vehicle type | | `vehicle_color` | Detected vehicle color | | `plate_x1, plate_y1, plate_x2, plate_y2` | Plate bounding box coordinates | ### JSON Payload to LuxRiot The script builds and sends the following JSON payload to LuxRiot: ```json { "plate": "ABC123", "country": "RO", "timestamp": "2024-01-15T14:30:25Z", "probability": 0.95, "direction": "coming", "gps": { "latitude": 44.4268, "longitude": 26.1025 }, "vehicle": { "type": "car", "color": "white" }, "plate_box": { "x1": 100, "y1": 200, "x2": 300, "y2": 250 } } ``` ## Response Codes | HTTP Code | Meaning | |-----------|---------| | 200 | Success - event forwarded to LuxRiot | | 400 | Bad Request - invalid or missing parameters | | 401 | Unauthorized - authentication failed | | 500 | Server Error - LuxRiot server error or script error | ## Troubleshooting ### Events Not Reaching LuxRiot - Verify the LuxRiot server URL and port are correct - Check that the LuxRiot credentials are valid - Verify the target_id is correct - Check network connectivity between the script server and LuxRiot ### Authentication Failures - Verify the per-camera authkey is correct in both LPR and the script - Check that the MD5 hash computation is working correctly - Verify HTTP Digest credentials for LuxRiot ### Script Errors - Check PHP error logs on the web server - Verify PHP version is 7.4 or higher - Check that required PHP extensions are installed (curl, json) ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici LuxRiot Integration # Metrici Live View Interface v1.3 User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici Live View Interface. This application acts as a "video wall" for displaying processed video from Metrici detection engines. ## Table of Contents 1. [Introduction](#introduction) 2. [Getting Started](#getting-started) 3. [Configuration](#configuration) 4. [Layout Options](#layout-options) 5. [Web Viewing](#web-viewing) 6. [Troubleshooting](#troubleshooting) ## Introduction The Metrici Live View Interface is a video monitoring display application that acts as a "video wall" - it receives processed video frames from up to 3 Metrici detection applications (LPR, Area Counter, Parking Detector, etc.) and displays them in a unified viewing interface. **Important:** The Live View application does NOT perform detection itself. It only receives and displays images sent by other Metrici engines. Key features: - **Multi-engine display** - View up to 3 detection engines simultaneously - **Configurable layouts** - Vertical or horizontal layout options - **Automatic scaling** - Images are automatically scaled to fit the display - **Web viewing** - Built-in web server for remote browser viewing (port 8080) - **Single configuration file** - All settings stored in `lv.ini` ## Getting Started ### Starting the Application The Live View application can be started in two modes: - **Graphical Mode (Default):** Run without any command-line arguments - **No-GUI Mode:** Use the `-nogui` command-line argument for headless operation ```bash # Graphical mode ./metrici-lv # Headless mode ./metrici-lv -nogui ``` ### Configuration File All settings are stored in a single `lv.ini` configuration file located in the application directory. ## Configuration ### INI File Structure The `lv.ini` file contains configuration for up to 3 video streams: ```ini [Stream1] active=1 address=192.168.1.100 port=8080 url=/liveview1 [Stream2] active=0 address=192.168.1.101 port=8080 url=/liveview2 [Stream3] active=0 address=192.168.1.102 port=8080 url=/liveview3 [Display] layout=vertical web_port=8080 web_active=1 ``` ### Stream Configuration Each stream (Stream1, Stream2, Stream3) can be configured independently: | Setting | Description | Default | |---------|-------------|---------| | `active` | Enable/disable the stream (0=disabled, 1=enabled) | 0 | | `address` | IP address of the detection engine | - | | `port` | Port where the engine sends images | 8080 | | `url` | URL path for receiving images | /liveview1, /liveview2, /liveview3 | ### Display Configuration | Setting | Description | Default | |---------|-------------|---------| | `layout` | Display layout: vertical or horizontal | vertical | | `web_port` | Port for the built-in web server | 8080 | | `web_active` | Enable web viewing (0=disabled, 1=enabled) | 1 | ## Layout Options ### Vertical Layout In vertical layout, the streams are displayed one above the other: ``` +------------------+ | Stream 1 | +------------------+ | Stream 2 | +------------------+ | Stream 3 | +------------------+ ``` ### Horizontal Layout In horizontal layout, the streams are displayed side by side: ``` +----------+----------+----------+ | Stream 1 | Stream 2 | Stream 3 | +----------+----------+----------+ ``` ## Web Viewing The Live View application includes a built-in web server that allows remote viewing through a web browser. ### Accessing the Web View To view the live streams through a browser: 1. Open a web browser 2. Navigate to `http://server_ip:8080` (or the configured web port) 3. The web interface will display all active streams ### Stream URLs Each stream can also be accessed individually: - **Stream 1:** `http://server_ip:8080/stream1` - **Stream 2:** `http://server_ip:8080/stream2` - **Stream 3:** `http://server_ip:8080/stream3` ### Configuring Detection Engines To send video frames to the Live View application, configure each detection engine's Live View settings: | Detection Engine | URL to Configure | |------------------|------------------| | LPR | `http://lv_server_ip:8080/liveview1` | | Area Counter | `http://lv_server_ip:8080/liveview2` | | Line Counter | `http://lv_server_ip:8080/liveview3` | > **Note:** Detection apps send JPEG images via HTTP POST to `/liveview1`, `/liveview2`, or `/liveview3`. ## Troubleshooting ### No Video Displayed - Verify the detection engine is running and sending images - Check the IP address and port configuration in `lv.ini` - Verify the URL path matches the engine's Live View URL setting - Check network connectivity between the engine and Live View ### Connection Lost The Live View application shows "No Stream" placeholder if a connection is lost for more than 2 seconds. If streams frequently disconnect: - Check network stability - Verify the detection engine is running continuously - Check firewall settings ### Web View Not Accessible - Verify the web server is enabled (`web_active=1`) - Check the web port is not blocked by a firewall - Verify the IP address is correct ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Live View Interface v1.3 # Metrici Milestone Integration User Manual for System Administrators and Developers --- > **Welcome!** This guide explains how to integrate Metrici LPR events with Milestone XProtect VMS using the provided .NET plugin. ## Table of Contents 1. [Introduction](#introduction) 2. [System Requirements](#system-requirements) 3. [Installation](#installation) 4. [Configuration](#configuration) 5. [API Reference](#api-reference) 6. [Authentication](#authentication) 7. [Troubleshooting](#troubleshooting) ## Introduction The Metrici LPR Plugin for Milestone XProtect is a WinForms-based .NET plugin that integrates Metrici License Plate Recognition with Milestone XProtect VMS. The plugin: - Provides an HTTP API endpoint (POST /lpr/event) for receiving LPR data via multipart/form-data - Uses MD5-based per-camera authentication - Stores events in a SQLite database - Provides a rich UI with main view, side panel, and detailed event viewer - Supports real-time updates, export to text files, and administration interface ### Architecture ``` Metrici LPR Engine --> HTTP POST --> Milestone Plugin --> SQLite Database --> Milestone XProtect ``` ## System Requirements ### Server | Requirement | Details | |-------------|---------| | **Operating System** | Windows Server 2016+ or Windows 10/11 | | **.NET Framework** | 4.7.2 or higher | | **CPU** | Multi-core processor recommended | | **RAM** | 4 GB minimum, 8 GB recommended | | **Storage** | SQLite database storage (scales with event volume) | | **Network** | TCP port 8080 open for incoming LPR events | ### Milestone XProtect | Requirement | Details | |-------------|---------| | **Version** | Milestone XProtect Express, Professional, or Enterprise | | **MIPSDK** | MIPSDK-compatible plugin support | ## Installation ### Prerequisites 1. Install .NET Framework 4.7.2 or higher 2. Ensure Milestone XProtect is installed and running 3. Obtain the Metrici LPR Plugin files from Metrici ### Installation Steps 1. **Install the plugin:** - Copy the plugin files to the Milestone XProtect plugins directory - The plugin will be registered automatically with XProtect 2. **Configure the plugin:** - Open the plugin administration interface - Configure camera settings and authentication keys - Set up the listening port (default: 8080) 3. **Configure Metrici LPR:** - In Metrici Control Panel, configure the Check Action URL - Set the URL to: `http://milestone_server_ip:8080/lpr/event` - Configure the authkey for each camera ## Configuration ### Plugin Administration Interface The plugin provides an administration interface for managing camera configurations: | Setting | Description | |---------|-------------| | **Camera Name** | Descriptive name for the camera | | **Camera IP** | IP address of the Metrici LPR engine | | **Auth Key** | Per-camera authentication key (MD5) | | **Enabled** | Enable/disable the camera | | **Port** | Port for receiving LPR events (default: 8080) | ### SQLite Database Events are stored in a SQLite database located in the plugin directory. The database schema includes: | Table | Description | |-------|-------------| | `events` | LPR detection events with plate data, timestamps, and images | | `cameras` | Camera configuration data | | `settings` | Plugin settings | ### Event Viewer The plugin provides a detailed event viewer with the following features: - **Main View** - Real-time display of incoming events - **Side Panel** - Camera list and filtering options - **Event Details** - Detailed view of each event including plate number, confidence, image, and metadata ## API Reference ### POST /lpr/event Receives LPR events from Metrici LPR engines. #### Request Format - **Method:** POST - **Content-Type:** multipart/form-data - **Authentication:** MD5 hash header #### Form Fields | Field | Description | |-------|-------------| | `plate_number` | Recognized license plate number | | `country_code` | Country code of the plate | | `timestamp` | Detection timestamp | | `probability` | Recognition confidence (0.0-1.0) | | `direction` | Vehicle direction (coming/leaving) | | `image` | Image file (JPEG or PNG) | | `gps_latitude` | GPS latitude (optional) | | `gps_longitude` | GPS longitude (optional) | | `vehicle_type` | Detected vehicle type (optional) | | `vehicle_color` | Detected vehicle color (optional) | | `authkey` | Per-camera authentication key | #### Example Request ```http POST http://milestone_server_ip:8080/lpr/event Content-Type: multipart/form-data; boundary=----WebKitFormBoundary ------WebKitFormBoundary Content-Disposition: form-data; name="plate_number" ABC123 ------WebKitFormBoundary Content-Disposition: form-data; name="country_code" RO ------WebKitFormBoundary Content-Disposition: form-data; name="timestamp" 2024-01-15T14:30:25Z ------WebKitFormBoundary Content-Disposition: form-data; name="probability" 0.95 ------WebKitFormBoundary Content-Disposition: form-data; name="authkey" camera_auth_key_here ------WebKitFormBoundary Content-Disposition: form-data; name="image"; filename="detection.jpg" Content-Type: image/jpeg (binary data) ------WebKitFormBoundary-- ``` #### Response | HTTP Code | Meaning | |-----------|---------| | 200 | Success - event received and stored | | 400 | Bad Request - missing or invalid fields | | 401 | Unauthorized - authentication failed | | 500 | Server Error - internal error | ## Authentication ### MD5 Per-Camera Authentication Each camera has a unique authkey that is used for MD5 hash authentication: 1. The Metrici LPR engine includes the authkey in the request 2. The plugin computes the MD5 hash of the authkey 3. The hash is compared with the expected value 4. If the hash matches, the request is processed ### Security Best Practices - Use strong, unique authkeys for each camera - Keep authkeys secure and do not share them - Regularly rotate authkeys for security - Use HTTPS if possible (requires additional configuration) ## Troubleshooting ### Events Not Received - Verify the Metrici LPR Check Action URL is correct - Check that port 8080 is open and not blocked by firewall - Verify the plugin is running and listening - Check plugin logs for errors ### Authentication Failures - Verify the per-camera authkey is correct in both LPR and the plugin - Check that the authkey matches exactly (case-sensitive) - Verify MD5 hash computation is working ### Database Issues - Check SQLite database file permissions - Verify sufficient disk space for event storage - Check database integrity regularly ### Performance Issues - Monitor SQLite database size and performance - Consider archiving old events periodically - Ensure sufficient CPU and RAM resources ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici Milestone Integration # Metrici QR Code Recognizer v2.4 User Manual for End Users and System Administrators --- > **Important!** This documentation is currently in beta and is a work in progress. Content may change as features are finalized. ## Table of Contents 1. [Overview](#overview) 2. [Main Window](#main-window) 3. [Getting Started](#getting-started) 4. [Video Sources](#video-sources) 5. [Detection Window](#detection-window) 6. [QR Recognition Engine Settings](#qr-recognition-engine-settings) 7. [External Trigger](#external-trigger) 8. [QR Code Detection Settings](#qr-code-detection-settings) 9. [Reporting and Check Actions](#reporting-and-check-actions) 10. [Door Opening and Door Light](#door-opening-and-door-light) 11. [GPS Integration](#gps-integration) 12. [Weight Scale Integration](#weight-scale-integration) 13. [Radar Integration](#radar-integration) 14. [Live View](#live-view) 15. [Settings Management](#settings-management) 16. [INI Configuration File](#ini-configuration-file) 17. [Troubleshooting](#troubleshooting) 18. [Glossary](#glossary) 19. [Technical Support](#technical-support) ## Overview The Metrici QR Code Recognizer system is designed to: - **Connect to video cameras** - Supports IP cameras, RTSP streams, HTTP video streams, and many other video sources - **Detect QR codes** - Automatically identifies QR codes from the video feed - **Process and record codes** - Saves recognized QR codes with timestamps, images, and location data - **Integrate with external systems** - Can send code data to servers for access control, inventory tracking, or verification - **Work with additional sensors** - Can connect to GPS devices, weight scales, and radar sensors for enhanced tracking > **Tip:** This application requires a valid software license (HASP key) to operate. Without a valid license, the application will run in demo mode with limited functionality for a limited period of time. ## Main Window The main window is divided into several sections: ### 2.1 Video Display Area The left side of the window displays: - **Main Input Stream** - Shows the video feed from your primary camera - **Companion Stream** - (Optional) Shows video from a second camera for additional coverage Each video display shows: - Connection status (Connected, Disconnected, Connecting) - Stream type and address - Frame rate (FPS) - Video resolution ### 2.2 QR Code Information Panel The right side displays: - **Last Detected Code** - Shows the most recently recognized QR code - **Code Table** - A list of all detected QR codes with timestamps and confidence scores - **Statistics** - Frame counts and processing rates ### 2.3 Control Buttons - **Settings** - Opens the configuration window to customize all application settings - **About** - Shows version information and license details - **Min/Max** - Toggles between fullscreen and windowed mode - **Quit** - Closes the application ## Getting Started ### Initial Setup 1. **Connect your camera** - Ensure your IP camera is connected to the network and functioning 2. **Launch the application** - Set it in Foreground with watchdog to initiate settings 3. **Open settings** - Click the **Settings** button 4. **Configure video source** - Go to the "Input Stream" section and select your camera type - **IP Address:** Enter the camera's IP address or hostname (without http://) - **Port:** Enter the HTTP port (default HTTP is usually 80) - other protocols have different ports - **Write username and password** for the camera 5. **Limit FPS:** Set to 0 for unlimited, or specify a maximum frame rate 6. **Save settings** - Click **Save** to apply your configuration 7. **Test the connection** - The video feed should appear in the main window ### First Time Configuration For optimal performance, follow these steps: 1. Adjust the [Detection Window](#detection-window) to cover only the area where QR codes will appear 2. Set the [QR Recognition Engine Working Mode](#qr-recognition-engine-settings) based on your needs 3. Configure [Reporting URLs](#reporting-and-check-actions) if you want to send code data to a server 4. Set up [Barrier Control](#door-opening-and-door-light) if you need automatic gate opening based on QR codes ## Video Sources The application supports many types of video sources. You need to configure both the **Input Stream** (main camera) and optionally a **Companion Stream** (secondary camera). ### Input Stream Configuration #### Stream Type Select the type of video stream from your camera. If you don't have a specific supported brand, just choose Generic. The application supports: | Type | Description | |------|-------------| | HTTP ACTi MJPEG | ACTi cameras using MJPEG over HTTP | | RTSP ACTi H264 | ACTi cameras using H264 over RTSP | | HTTP Android MJPEG | Android-based cameras | | HTTP Arecont MJPEG | Arecont Vision cameras | | HTTP Axis MJPEG | Axis cameras using MJPEG | | RTSP Axis MJPEG | Axis cameras using RTSP with MJPEG | | RTSP Axis H264 | Axis cameras using RTSP with H264 | | RTSP Bosch MJPEG | Bosch cameras using MJPEG | | RTSP Bosch H264 | Bosch cameras using H264 | | HTTP Dahua MJPEG | Dahua cameras using MJPEG | | HTTP Diviotec MJPEG | Diviotec cameras | | RTSP Diviotec H264 | Diviotec cameras using H264 | | HTTP Generic MJPEG | Generic MJPEG cameras | | RTSP Generic MJPEG | Generic RTSP MJPEG streams | | RTSP Generic H264 | Generic RTSP H264 streams | | HTTP Hikvision MJPEG | Hikvision cameras using MJPEG | | RTSP Hikvision H264 | Hikvision cameras using H264 | | HTTP Mobotix MJPEG | Mobotix cameras using MJPEG | | HTTP Mobotix MxPEG | Mobotix cameras using their MxPEG format | | RTSP Mobotix H264 | Mobotix cameras using H264 | | RTSP Mobotix MOVE H264 | Mobotix MOVE cameras | | HTTP Novus MJPEG | Novus cameras | | RTSP Novus H264 | Novus cameras using H264 | | RTSP Pelco MJPEG | Pelco cameras | | ROSEEEK RAW | ROSEek camera raw stream | | HTTP Samsung MJPEG | Samsung cameras | | RTSP Samsung H264 | Samsung cameras using H264 | | HTTP Sony MJPEG | Sony cameras | | RTSP Sony H264 | Sony cameras using H264 | | RTSP Uniview H264 | Uniview cameras | | HTTP Vivotek MJPEG | Vivotek cameras | | HTTP VLC MJPEG | VLC media server streams | #### Stream Address Enter the network address of your camera. This could be: - **IP address** - e.g., `192.168.1.100` - **Hostname** - e.g., `camera.warehouse.example.com` - **Full URL** - e.g., `http://192.168.1.100/video.cgi` #### TCP Port The network port number your camera uses. Common defaults: - **HTTP streams** - usually port 80 - **RTSP streams** - usually port 554 - **Custom cameras** - check your camera documentation #### Username and Password If your camera requires authentication, enter the credentials here. Leave blank if your camera is open access. #### FPS Limit Limits the number of frames processed per second. Lower values reduce CPU usage but may miss fast-moving QR codes. > **Important:** The FPS limit is a maximum value. The actual frame rate depends on your camera capabilities and network bandwidth. If you limit fps in the application and the camera sends more toward the engine, this will drop frames beyond its limit. ### Companion Stream The companion stream provides a second video camera view. This is useful when: - You need multiple angles of the same QR code - You want to cover a larger area than one camera can see Configuration options are identical to the Input Stream. ## Detection Window The detection window defines the specific area within the video frame where the application will look for QR codes. This optimization: - **Improves accuracy** - Reduces false detections from non-code areas - **Increases speed** - Smaller area = faster processing - **Reduces CPU usage** - Less area to scan ### Detection Window Active Enable or disable the detection window. When disabled, the entire video frame is scanned for QR codes. - **Enabled (checked)** - Only scan within the defined window - **Disabled (unchecked)** - Scan the entire video frame ### Window Position and Size | Setting | Description | |---------|-------------| | Origin X (origx) | Horizontal starting position of the detection window (left edge) | | Origin Y (origy) | Vertical starting position of the detection window (top edge) | | Resolution X (resx) | Width of the detection window in pixels | | Resolution Y (resy) | Height of the detection window in pixels | > **Setup Tip:** Or just drag the corners of the polygon on the live video when you enable the detection window. When setting up the detection window, position it to cover where QR codes will appear (e.g., on conveyor belts, at entry points, on documents). The window should be large enough to capture codes but not so large that it includes empty areas. ### Items Direction Set the direction of item movement (0-360 degrees). This is used for: - Statistical analysis of item flow - Event triggering (e.g., trigger when items are entering vs. leaving) - Filtering codes based on direction The direction is set using a dial control. Arrange the arrow accordingly: - **Coming** - Items going in the set direction are coming - **Leaving** - Items going in the set direction are leaving - **Useful** to use to filter events on the Interface when needed or to keep track of items inside ## QR Recognition Engine Settings The QR Recognition Engine settings control how the application processes video to find and read QR codes. ### Working Mode | Mode | Description | Use Case | |------|-------------|----------| | Continuous | Constantly analyzes every frame for QR codes | High-volume scanning, no external trigger available | | Started by Trigger | Only analyzes when triggered by external signal | Lower CPU usage, controlled capture timing, lower false positives | > **Recommendation:** Use "Continuous" mode for most installations. Use "Started by Trigger" mode when you have external sensors and want to save CPU resources or precisely control when codes are captured. ## External Trigger An external trigger allows sensors or devices to tell the application when to capture QR codes. This is useful when: - You have item detection sensors (photoelectric sensors, infrared beams) - You want precise control over when codes are captured - You want to save CPU resources by only processing when needed ### Trigger Type | Type | Description | |------|-------------| | None | No external trigger (uses continuous mode) | | Barionet 50 I1-I4 | Barionet 50 device with input 1, 2, 3, or 4 | | Metrici Virtual | Virtual trigger via network connection | ### Trigger Seconds The duration (in seconds) the detection engine remains active after being activated. Set this based on how long items take to pass through the detection area. ## QR Code Detection Settings ### Same Code Delay After a QR code is detected, the application waits this many seconds before detecting the same code again. This prevents: - Duplicate entries for the same code - Multiple triggering for one item - Overloaded reporting systems **Recommended value:** depending on item flow speed ### Minimum Code Length The minimum number of pixels a recognized QR code must contain to be considered valid. This filters out false detections. ### Maximum Code Length The maximum number of pixels a recognized code can have. ### Single Code Mode When enabled, the application will only process and report the first QR code found in each frame. When disabled, all detected QR codes in a frame are processed. - **Enabled** - Faster processing, best for single-item scanning - **Disabled** - Captures all codes, best for multi-code or high-density areas ## Reporting and Check Actions The application can send recognized QR code information to external servers for processing, validation, or storage. ### Reporting URL The web address where recognized code data is sent. The server typically stores this information in a database. **Format:** `http://your-server.com/io/qr/reporting_event.php` ### Check Action URL The web address used to check recognized codes against a database. The server can respond with instructions such as: - Grant access (open barrier) - Deny access (keep barrier closed) - Log only (no action) - Trigger alert **Format:** `http://your-server.com/io/qr/check_action_event.php` ### Check Action Authentication Key A security key facilitates communication between engines and database. It is to be obtained from Metrici Interface when setting the location and cameras, being generated by Metrici. ### Send Trigger The application can send a network trigger when a QR code is recognized: | Setting | Description | |---------|-------------| | Trigger Address | IP address or hostname of the device to trigger | | Trigger UDP Port | Network port on the target device | Common uses include triggering external systems like barrier controllers, displays, sorting systems, or alarm systems. Or another Metrici detection engine. ## Door Opening and Door Light The application can automatically control two separate doors/barriers/gates based on QR code validation results. ### First Device | Setting | Description | |---------|-------------| | Open Door URL | HTTP address to send a command that opens the first device | | Close Door URL | HTTP address to send a command that closes the first device | | Open-Close Delay | Time (seconds) between opening and automatically closing the barrier | ### Door Light ON URL Same settings as the first one, for a second gate or barrier at the same location. Use cases for dual barriers: - Entry and exit points - Multiple security checkpoints - Staging area control > **Safety Warning:** When setting automatic close delays, ensure sufficient time for items to pass through. A delay that is too short could cause damage or accidents. ## GPS Integration The application can receive GPS coordinates from a connected GPS device. This is useful for: - Mobile scanning installations - Recording the exact location where each code was scanned - Verifying the location of recorded scans ### GPS Status Shows the current status of the GPS connection: - **Unconnected** - GPS device not connected or not detected - **Error** - GPS device connected but not functioning - **Low Signal** - GPS signal weak, position may be inaccurate - **Good Signal** - GPS working properly with accurate position ### Latitude and Longitude Shows the current GPS coordinates in decimal degrees format: - **Latitude** - North/South position (-90 to +90 degrees) - **Longitude** - East/West position (-180 to +180 degrees) ## Weight Scale Integration The application can integrate with industrial weight scales. When connected, the weight of the item is recorded along with the QR code. ### Weight Scale Type | Type | Description | |------|-------------| | None | No weight scale connected | | Barix Cantar-I30 | Barix Cantar-I30 weight scale device | ### Weight Scale Address The network address (IP or hostname) of the weight scale device. ### Weight Scale TCP Port The network port the weight scale uses for communication (default varies by device). ## Radar Integration The application can integrate with radar speed sensors to capture item speed along with QR codes. ### Radar Type | Type | Description | |------|-------------| | None | No radar connected | | Metrici Observer Radar | Metrici radar device naturally integrated with the detection engines | ### Radar Address The network address (IP or hostname) of the radar device. ### Radar TCP Port The network port the radar uses for communication. > **Use Case:** Weight scales and radar sensors are commonly used together at loading docks, quality control stations, or sorting facilities, or on production sites. ## Live View The live view feature sends processed video frames to a web server, allowing real-time viewing through a web browser. ### Live View Active Enable or disable the live view feature: - **Enabled** - Frames are sent to the live view server - **Disabled** - Live view is not active ### Live View URL The web address where frames should be sent: **Format:** `http://localhost/io/qr/live_view.php` ## Settings Management ### Saving Settings To save your configuration: 1. Click the **Settings** button in the main window 2. Configure all desired settings in the various sections 3. Click **Save** to apply changes 4. The settings are saved to a configuration file ### Canceling Changes If you make changes you don't want to keep: 1. Click **Cancel** in the settings window 2. Changes are discarded 3. Previous settings remain active ### Auto-Reload on File Change The application monitors the settings file for external changes. If you modify the settings file directly (using a text editor), the application will automatically reload the new settings. ## INI Configuration File ### Overview The application stores all its configuration settings in an INI-format configuration file. This file contains all the parameters that control how the application operates, from video source connections to reporting URLs. The INI file serves as both a persistent storage for settings and a convenient way to back up, transfer, or modify configurations across different installations. ### File Location The configuration file is typically named `app_id.ini` and is located in the same directory as the application executable. > **Tip:** The application can use multiple configuration files (0.ini, 1.ini, o.ini) for different applications. ### File Structure The INI file uses a simple text-based format with sections, keys, and values. The file is divided into sections enclosed in square brackets, with each section containing multiple key-value pairs. The general format is: ```ini [SectionName] key1=value1 key2=value2 key3=value3 ``` ### General Settings | Setting | Description | Example | |---------|-------------|---------| | input_stream_type | Type of video stream for the main camera (see Stream Types table) | 17 | | input_stream_address | Network address or hostname of the main camera | 192.168.1.60 | | input_stream_tcp_port | TCP port for the video stream connection | 554 | | input_stream_username | Username for camera authentication (leave blank if not required) | admin | | input_stream_password | Password for camera authentication (leave blank if not required) | secret123 | | input_stream_fps_limit | Maximum frames per second to process (0 = unlimited) | 7 | ### Companion Stream Settings | Setting | Description | Example | |---------|-------------|---------| | companion_stream_type | Type of video stream for the companion camera (see Stream Types table) | 10 | | companion_stream_address | Network address or hostname of the companion camera | 192.168.1.61 | | companion_stream_tcp_port | TCP port for the companion video stream | 80 | | companion_stream_username | Username for companion camera authentication | admin | | companion_stream_password | Password for companion camera authentication | admin123 | | companion_stream_resx | Horizontal resolution of companion stream in pixels | 640 | | companion_stream_resy | Vertical resolution of companion stream in pixels | 480 | ### Reporting and Check Action Settings | Setting | Description | Example | |---------|-------------|---------| | reporting_url | URL endpoint for sending recognized QR code data | http://server.com/io/qr/reporting_event.php | | reporting_check_action_authkey | Authentication key for reporting requests | TX8343V2 | | reporting_check_action_id | Station identifier sent with reporting data | 7 | | check_action_url | URL endpoint for checking QR codes against a database | http://server.com/io/qr/check_action_event.php | | check_action_min_probability | Minimum confidence threshold (0.0-1.0) for actions | 0.6 | | check_action_send_trigger_address | IP address for sending UDP trigger on detection | 192.168.1.100 | | check_action_send_trigger_udp_port | UDP port for trigger messages | 5000 | ### Barrier Control Settings | Setting | Description | Example | |---------|-------------|---------| | open_barrier_url | HTTP URL to call when opening the first barrier | http://192.168.1.100/outs.cgi?out0=0 | | open_close_barrier_delay | Seconds to wait before automatically closing barrier | 10 | | close_barrier_url | HTTP URL to call when closing the first barrier | http://192.168.1.100/outs.cgi?out0=1 | | open_barrier2_url | HTTP URL to call when opening the second barrier | http://192.168.1.101/open.cgi | | open_close_barrier2_delay | Seconds to wait before automatically closing barrier 2 | 15 | | close_barrier2_url | HTTP URL to call when closing the second barrier | http://192.168.1.101/close.cgi | ### QR Code Detection Settings | Setting | Description | Example | |---------|-------------|---------| | same_plate_delay | Seconds to wait before detecting the same code again | 10 | | plate_min_length | Minimum number of pixels for valid QR code | 100 | | plate_max_length | Maximum number of pixels for valid QR code | 1000 | | single_plate_mode | Process only first QR code per frame (0=disabled, 1=enabled) | 0 | | countries | Comma-separated list of expected formats (if applicable) | "RO,BG,DE" | ### Detection Window Settings | Setting | Description | Example | |---------|-------------|---------| | input_stream_window_active | Enable detection window (0=disabled, 1=enabled) | 0 | | input_stream_window_origx | X coordinate of detection window's left edge | 300 | | input_stream_window_origy | Y coordinate of detection window's top edge | 224 | | input_stream_window_resx | Width of detection window in pixels | 300 | | input_stream_window_resy | Height of detection window in pixels | 224 | | input_stream_resx | Horizontal resolution of input video in pixels | 1920 | | input_stream_resy | Vertical resolution of input video in pixels | 1080 | ### Direction and Event Settings | Setting | Description | Example | |---------|-------------|---------| | cars_direction | Direction of item movement in degrees (0-360) | 36 | | cars_event_type | Event type filter (1=coming, 2=leaving) | 1 | ### Engine Settings | Setting | Description | Example | |---------|-------------|---------| | lpr_engine_working_mode | Engine mode (0=continuous, 1=triggered) | 0 | ### External Trigger Settings | Setting | Description | Example | |---------|-------------|---------| | external_trigger_type | Trigger type (0=none, 1=Barionet, 2=Virtual) | 0 | | external_trigger_seconds | Duration trigger remains active after activation | 1 | ### Weight Scale Settings | Setting | Description | Example | |---------|-------------|---------| | weight_scale_type | Device type (0=none, 1=BarixI30) | 0 | | weight_scale_address | Network address of weight scale device | 192.168.1.50 | | weight_scale_tcp_port | TCP port for weight scale communication | 10001 | ### Radar Settings | Setting | Description | Example | |---------|-------------|---------| | radar_type | Device type (0=none, 1=Barix) | 0 | | radar_address | Network address of radar device | 192.168.1.51 | | radar_tcp_port | TCP port for radar communication | 10002 | ### Live View Settings | Setting | Description | Example | |---------|-------------|---------| | live_view_active | Enable live view feature (0=disabled, 1=enabled) | 1 | | live_view_url | URL endpoint for sending live view frames | http://server.com/io/qr/live_view.php | ### Video Stream Types The following values are used for the input_stream_type and companion_stream_type settings: | Value | Stream Type | |-------|-------------| | 1 | HTTP ACTi MJPEG | | 2 | RTSP ACTi H264 | | 3 | HTTP Android MJPEG | | 4 | HTTP Arecont MJPEG | | 5 | HTTP Axis MJPEG | | 6 | RTSP Axis MJPEG | | 7 | RTSP Axis H264 | | 8 | RTSP Bosch MJPEG | | 9 | RTSP Bosch H264 | | 10 | HTTP Dahua MJPEG | | 11 | HTTP Diviotec MJPEG | | 12 | RTSP Diviotec H264 | | 13 | HTTP Generic MJPEG | | 14 | RTSP Generic MJPEG | | 15 | RTSP Generic H264 | | 16 | HTTP Hikvision MJPEG | | 17 | RTSP Hikvision H264 | | 18 | HTTP Mobotix MJPEG | | 19 | HTTP Mobotix MxPEG | | 20 | RTSP Mobotix H264 | | 21 | RTSP Mobotix MOVE H264 | | 22 | HTTP Novus MJPEG | | 23 | RTSP Novus H264 | | 24 | RTSP Pelco MJPEG | | 25 | ROSEek RAW | | 26 | HTTP Samsung MJPEG | | 27 | RTSP Samsung H264 | | 28 | HTTP Sony MJPEG | | 29 | RTSP Sony H264 | | 30 | RTSP Uniview H264 | | 31 | HTTP Vivotek MJPEG | | 32 | HTTP VLC MJPEG | ### Example Configuration Files #### Basic Setup (0.ini) ```ini [General] input_stream_type=4 input_stream_address=192.168.11.40 input_stream_tcp_port=80 input_stream_username=admin input_stream_password=123456 reporting_check_action_authkey=TX8343V2 reporting_check_action_id=7 reporting_url=http://lpr.metrici.ro/io/qr/new_plate_event.php check_action_url=http://lpr.metrici.ro/io/qr/check_action_event.php check_action_min_probability=0.6 same_plate_delay=10 plate_min_length=160 plate_max_length=350 input_stream_resx=1280 input_stream_resy=720 input_stream_window_active=0 input_stream_window_origx=60 input_stream_window_origy=40 input_stream_window_resx=1096 input_stream_window_resy=604 ``` #### Advanced Setup with Barriers (0.ini) ```ini [General] input_stream_type=5 input_stream_address=192.168.100.70 input_stream_tcp_port=80 input_stream_username=root input_stream_password=metrici input_stream_fps_limit=0 companion_stream_type=0 companion_stream_address=192.168.1.6 companion_stream_tcp_port=80 companion_stream_username=admin companion_stream_password=admin123 reporting_check_action_authkey=W0603E0W reporting_check_action_id=22 reporting_url=http://dev2.metrici.ro/io/qr/reporting_event.php check_action_url=http://dev2.metrici.ro/io/qr/check_action_event.php check_action_send_trigger_address= check_action_send_trigger_udp_port=0 open_barrier_url="http://admin:admin@192.168.1.100/outs.cgi?out0=0" open_close_barrier_delay=10 close_barrier_url= open_barrier2_url= open_close_barrier2_delay=10 close_barrier2_url= check_action_min_probability=0.6 same_plate_delay=1 plate_min_length=100 plate_max_length=700 single_plate_mode=0 cars_direction=36 cars_event_type=1 input_stream_resx=1920 input_stream_resy=1920 companion_stream_resx=1920 companion_stream_resy=1080 input_stream_window_active=0 input_stream_window_origx=292 input_stream_window_origy=88 input_stream_window_resx=592 input_stream_window_resy=788 live_view_active=1 live_view_url=http://dev2.metrici.ro/io/qr/live_view.php external_trigger_type=0 external_trigger_seconds=1 lpr_engine_working_mode=0 weight_scale_type=0 weight_scale_address= weight_scale_tcp_port=10001 radar_type=0 radar_address= radar_tcp_port=10002 ``` ### Editing the INI File You can edit the INI file manually using any text editor. However, it's recommended to use the application's Settings window when possible, as it provides validation and prevents syntax errors. #### Best Practices for Manual Editing - **Backup first** - Always make a copy of the current configuration before editing - **Use plain text editor** - Use editors like nano, vim, or gedit; avoid word processors ## Troubleshooting ### Camera Connection Issues **Camera won't connect:** - Verify the camera IP address is correct and accessible - Check that the camera is powered on and on the network - Confirm the correct stream type is selected - Check if username/password are correct **Video is choppy or FPS is low:** - Reduce camera resolution - Limit FPS in settings - Check network bandwidth ### Recognition Problems **No QR codes being detected:** - Check if detection window is properly positioned - Verify minimum code length is not set too high - Ensure adequate lighting on the QR code area **Recognition accuracy is poor:** - Increase minimum code width - Improve camera positioning for better QR code angles - Enhance lighting in the detection area ### Getting Help If you continue to experience issues after trying these solutions: - Check the application logs for detailed error messages - Contact technical support with error descriptions and log excerpts - Include details about your camera model, system configuration, and specific scenarios where issues occur ## Glossary | Term | Definition | |------|------------| | **QR Code** | Quick Response code - a type of matrix barcode readable by cameras | | **RTSP** | Real-Time Streaming Protocol - standard for streaming video over networks | | **HTTP** | Hypertext Transfer Protocol - standard web communication protocol | | **MJPEG** | Motion JPEG - video format where each frame is a separate JPEG image | | **H.264** | Video compression standard used by most modern IP cameras | | **GPS** | Global Positioning System - satellite-based navigation | | **Trigger** | A signal (from hardware or software) that causes the system to take action | | **UDP** | User Datagram Protocol - a fast network protocol for sending trigger signals | ## Technical Support For additional help, please contact Metrici technical support team at **support@metrici.ro**. **Version:** Metrici QR Code Recognizer v2.4 # Metrici RGB LED Display User Manual for End Users and System Administrators --- > **Welcome!** This guide covers everything you need to set up and operate the Metrici RGB LED Display. This web-based interface controls an RGB LED display matrix for visual information display. ## Table of Contents 1. [Introduction](#introduction) 2. [First Boot](#first-boot) 3. [Dashboard](#dashboard) 4. [Settings](#settings) 5. [Content Configuration](#content-configuration) 6. [User Management](#user-management) 7. [Troubleshooting](#troubleshooting) ## Introduction The Metrici RGB LED Display is a web-based interface for controlling an RGB LED display matrix. Users access it via browser at the device's IP address (default 192.168.100.10). The interface allows configuration of display content from an API endpoint (JSON polling) or static content (image/text upload), brightness control, network settings, system logs, firmware updates, and user management. Key features: - **Web-based control** - Configure and monitor from any browser - **API content** - JSON polling for dynamic content from remote servers - **Static content** - Upload images or text for permanent display - **Brightness control** - Adjust display brightness for different lighting conditions - **Network settings** - Configure WiFi or Ethernet connection - **User management** - Secure access with username/password - **Firmware updates** - Keep the device up to date ### Technical Data | Specification | Details | |---------------|---------| | **Description** | RGB LED display matrix controller | | **Interface** | Web-based dashboard | | **Connectivity** | WiFi 802.11 b/g/n, Ethernet 10/100 Mbps | | **Power** | PoE (IEEE 802.3af) via Ethernet cable | | **Default IP** | 192.168.100.10 | | **Protocols** | HTTP, JSON API | ## First Boot Connect the RGB LED Display to your network using an Ethernet cable from a PoE switch or PoE injector. > **Note:** The network switch or injector must support at least standard PoE (IEEE 802.3af). > **Important!** The default IP address of the RGB LED Display is always **192.168.100.10**. After connecting, open a browser and navigate to: ``` http://192.168.100.10 ``` The device ships with factory defaults: **Connection Type: Ethernet** and **IP Type: Static**. ## Dashboard The Dashboard provides a real-time overview of the RGB LED Display's current state: - **Network Status** - Connection status, IP address, subnet, gateway - **Display Status** - Current brightness, content source, display state - **Recent Activity** - Log of content changes and system events - **System Health** - CPU, memory, and storage usage ## Settings To configure the RGB LED Display, click **Settings** in the left-side menu. ### Network Settings Configure the network connection: | Field | Description | |-------|-------------| | **Connection Type** | Ethernet or WiFi | | **IP Type** | Static or DHCP | | **IP Address** | Device's IP address (for Static mode) | | **Gateway** | Router's IP address | | **Subnet Mask** | Network mask | | **DNS** | DNS server address | | **SSID** | WiFi network name (for WiFi mode) | | **Password** | WiFi password (for WiFi mode) | > **Attention!** When saving network settings, the device will restart and you will need to reconnect at the new IP address. ### Display Settings Configure the display behavior: | Field | Description | |-------|-------------| | **Brightness** | Display brightness level (0-100%) | | **Brightness Schedule** | Schedule brightness changes by time of day | | **Display Mode** | Normal, Night, or Custom mode | ### Content Configuration #### API Content (Dynamic) Configure content from a remote API endpoint: | Field | Description | |-------|-------------| | **API URL** | The URL that provides JSON content | | **Polling Interval** | How often to check for new content (in seconds) | | **JSON Path** | The JSON path to extract the display text | | **Authentication** | API key or credentials (if required) | #### Static Content Upload static content for permanent display: | Field | Description | |-------|-------------| | **Content Type** | Text or Image | | **Text Content** | Text to display | | **Image Upload** | Upload an image file | | **Display Duration** | How long to display (for image slideshows) | ### Backup / Restore / Reset #### Backup Current Configuration Click **Save to File** to download a JSON file containing all current settings. #### Restore Configuration Click **Browse**, select a previously saved configuration file, then click **Upload**. #### Factory Reset Reset all settings to factory defaults. After reset, the device will be accessible at the default IP address: `192.168.100.10`. ### Firmware Update Firmware files are provided by Metrici and can be downloaded from **support.metrici.ro**. > **Important!** During the update, the device will not be responsive - do not interact with it. ## User Management The User page allows you to set a username and password for HTTP authentication. Only one user account can exist at a time. Setting a user is not mandatory for the device to work. It is a security feature that prevents unauthorized access to the web interface. > **Important!** When a user and password are set, all API requests must include the credentials. ## Troubleshooting ### Device Not Accessible - Verify the device is powered (check PoE switch/injector) - Check that your computer is on the same network - Try pinging the device IP address (default: 192.168.100.10) ### Display Not Showing Content - Verify the content configuration is correct - Check the API URL is accessible - Verify the JSON path is correct for API content - Check the device logs for errors ### Network Connection Issues - Verify Ethernet cable is securely connected - Check switch port is providing PoE power - Verify network settings (IP, subnet, gateway) are correct ### Getting Help If you continue to experience issues, contact Metrici technical support at **support@metrici.ro**. **Version:** Metrici RGB LED Display Web Interface v0.8.9e # Metrici Thermal Analyzer v1.2 User Manual for End Users and System Administrators --- > **Important!** This documentation is currently in beta and is a work in progress. Content may change as features are finalized. ## Table of Contents 1. [Introduction](#introduction) 2. [Getting Started](#getting-started) 3. [Main Window Overview](#main-window-overview) 4. [Connecting to Camera Streams](#connecting-to-camera-streams) 5. [Setting Up Counting Zones](#setting-up-counting-zones) 6. [Image Processing Settings](#image-processing-settings) 7. [Thermal Measurement Configuration](#thermal-measurement-configuration) 8. [Triggers and External Actions](#triggers-and-external-actions) 9. [Reporting and Integration](#reporting-and-integration) 10. [Advanced Settings](#advanced-settings) 11. [Configuration File (INI)](#configuration-file-ini) 12. [Troubleshooting](#troubleshooting) 13. [Glossary](#glossary) 14. [Technical Support](#technical-support) ## Introduction ### What is Metrici Thermal Analyzer? Metrici Thermal Analyzer is an advanced software application designed to process thermal imaging video streams and perform automated detection and counting of people or objects. The application connects to various types of thermal and visual cameras, analyzes the video feed in real-time, and can trigger external actions based on detection events. ### Key Features - **Multi-Protocol Support:** Connect to cameras using RTSP, HTTP MJPEG, and other common protocols from manufacturers like Axis, Bosch, Hikvision, Mobotix, and many others. - **Thermal Analysis:** Measure temperature from thermal camera data and set up temperature alarms. - **People/Object Counting:** Define counting zones and track how many objects enter or exit these zones. - **Real-time Processing:** Process video streams in real-time with GPU acceleration support for improved performance. - **External Integration:** Trigger external systems like barrier controllers or send reports to servers when events occur. - **Dual Stream Support:** Process both thermal and visual camera streams simultaneously for enhanced analysis. ## Getting Started ### Starting the Application The application can be started in two modes: - **Graphical Mode (Default):** Run without any command-line arguments to launch the full graphical interface - app starts automatically when the server is on. - **No-GUI Mode:** Use the `-nogui` command-line argument to run the application without the graphical interface, useful for headless servers or automated deployments. ### Command-Line Options | Option | Description | |--------|-------------| | `./metrici-ta -nogui` | Run without graphical interface | | `./metrici-ta -disable_gpu` | Disable GPU acceleration even if available | | `./metrici-ta -use_gpu ` | Select specific GPU device by ID (if multiple GPUs available) | | `./metrici-ta -detection_threads ` | Number of processing threads (1-8, default: 1) | | `./metrici-ta -gpu ` | Set GPU device ID for OpenCL | | `./metrici-ta -app_id ` | Application instance ID (0-254) | | `./metrici-ta -log_level ` | Logging level (0=None, 1=Low, 2=Medium, 3=High) | > **Tip:** For systems with powerful graphics cards, increasing the number of detection threads and enabling GPU acceleration can significantly improve processing speed. ## Main Window Overview The main window is the central hub for monitoring and controlling the application. It displays video streams, counting statistics, and provides access to all configuration options. ### Main Window Components #### Video Display Area The video display area shows the processed video stream. This is where you can: - View the live video feed from your camera - See detection overlays showing detected objects - View counting zones that you have configured - Observe temperature measurements (from thermal cameras) #### Connection Status Indicators Connection status indicators show the current state of your camera connections: - **Connected:** Green indicator when successfully receiving video - **Connecting:** Yellow indicator during connection attempt - **Disconnected:** Red indicator when connection is lost #### FPS Counter The frames per second (FPS) counter shows how many video frames are being processed each second. This helps you understand if your system is keeping up with the video stream. #### Control Buttons | Button | Function | |--------|----------| | **Settings** | Open the settings window to configure all application options | | **About** | Display version information and application details | | **Quit** | Close the application | | **Maximize** | Make the image bigger | #### Total Counter Display The total counter display shows the cumulative count of objects detected across all counting zones. This provides a quick overview of detection activity. ## Connecting to Camera Streams One of the first steps in setting up the application is configuring your camera connections. The application supports a wide variety of camera types and connection protocols. ### Input Stream Configuration The input stream is your primary video source, typically a thermal camera. Configure these settings in the Settings window under the Input Stream section. #### Stream Type Select the appropriate camera manufacturer and protocol from the dropdown list. The application supports cameras from: - **ACTi** - Both MJPEG over HTTP and H264 over RTSP - **AXIS** - MJPEG and H264 streams over HTTP and RTSP - **Bosch** - Professional surveillance cameras - **DAHUA** - Popular IP cameras - **DIVIOTEC** - Thermal cameras - **Hikvision** - Major camera manufacturer - **Mobotix** - German cameras with MJPEG and MxPEG formats - **Samsung** - Consumer and professional cameras - **Sony** - Various IP camera models - **Generic Cameras** - For cameras that don't match specific brands - **Roseek RAW** - Special raw thermal data format > **Important:** Choosing the correct stream type is essential for proper video decoding. If you're unsure which type to use, check your camera's documentation or try the "Generic Camera" options first. #### Stream Address Enter the network address of your camera. The format depends on your camera type: - **HTTP MJPEG:** `http://camera_ip_address/video.cgi` or similar path - **RTSP H264:** `rtsp://camera_ip_address:554/stream1` - **JPEG Picture:** `http://camera_ip_address/cgi-bin/currentpic.cgi` #### TCP Port (for RTSP streams) Specify the TCP port number for RTSP streams (default is typically 554). #### Username and Password Enter the authentication credentials required to access your camera. Most IP cameras require a username and password for access. #### FPS Limit Set a maximum frames per second limit for the video stream. This can be useful for reducing system load or when you don't need full-speed processing. ### Companion Stream Configuration The companion stream is an optional secondary video source, typically a visual (non-thermal) camera that provides a clearer view for visual verification. The companion stream uses the same configuration options as the input stream. Having both thermal and visual streams allows for visual confirmation of thermal findings. > **Note:** The companion stream is optional. You can leave these settings blank if you only have a thermal camera or don't need dual-stream. ## Setting Up Counting Zones Counting zones are defined areas within the video frame where the application tracks objects entering or exiting. This feature is essential for accurate counting statistics. ### Creating Counting Zones 1. Click the **Add Zone** button in the main window 2. A new zone will appear in the zones table 3. Use your mouse to define the zone boundaries on the video display 4. Click **Save Zone** when finished ### Zone Geometry Each counting zone is defined by four points (corners) that form a quadrilateral: - **Point 1 (x1, y1):** Top-left corner of the zone - **Point 2 (x2, y2):** Top-right corner of the zone - **Point 3 (x3, y3):** Bottom-right corner of the zone - **Point 4 (x4, y4):** Bottom-left corner of the zone The application uses these four points to create a polygon that defines the counting area. Objects detected within this polygon are tracked and counted. ### Zone Management | Action | Description | |--------|-------------| | **Add Zone** | Create a new counting zone | | **Edit Zone** | Modify an existing zone's shape or position | | **Save Zone** | Save changes to the current zone | | **Delete Zone** | Remove the selected zone | ### Zone Counting Logic The application tracks objects as they move through counting zones: - When an object enters a zone from outside, the counter increments - When an object exits a zone, the counter decrements - The net count shows the current number of objects within the zone > **Tip:** For best results, position counting zones in areas where objects must pass through. ## Image Processing Settings Image processing settings control how the application analyzes video frames and detects objects. Proper configuration of these settings is crucial for accurate detection. ### Engine Working Mode | Mode | Description | |------|-------------| | **Continuous** | The application constantly processes video frames and updates detections in real-time | | **Started by Trigger** | Processing only occurs when an external trigger signal is received | > **Recommendation:** Use "Continuous" mode for most applications. Use "Started by Trigger" mode when you want to capture and analyze specific events triggered by external hardware. ### Recognition Enhancement This setting controls the sensitivity and accuracy of the detection algorithm: | Level | Description | Best For | |-------|-------------|----------| | **Low** | Fastest processing, lower detection accuracy | High-resolution cameras, powerful systems | | **Medium** | Balanced speed and accuracy | General purpose use | | **Normal** | Standard detection quality | Default for most scenarios | | **High** | Higher accuracy, slower processing | Challenging lighting or crowded scenes | | **Ultra** | Very high accuracy, significant processing overhead | Critical applications, high-end systems | | **Insane** | Maximum accuracy, maximum processing requirements | Best systems only, when accuracy is paramount | ### Objects Type Select what type of objects the application should detect: | Type | Description | |------|-------------| | **People** | Detect full human bodies using standard detection model | | **People (fast)** | Detect people using a faster, lightweight DNN model | | **People Heads** | Detect only human heads (useful for thermal cameras) | | **People Heads (fast)** | Detect heads using lightweight model | ### Bounding Boxes Reduction This setting reduces the size of detection bounding boxes, which can help with overlapping detections: | Reduction | Effect | |-----------|--------| | **None (0%)** | Full bounding box size | | **10%-90%** | Progressively smaller bounding boxes | ### Image Mode | Mode | Description | |------|-------------| | **Single Sensor** | Process video from one camera only | | **Dual Sensor** | Process both streams simultaneously | ### Counter Change Delay Set a delay (in seconds) before counting changes are registered. This helps prevent double-counting due to rapid re-detection of the same object. ## Thermal Measurement Configuration For thermal cameras, the application can measure temperature and trigger alarms when temperatures exceed defined thresholds. ### Thermal Sensor Selection If using a dual-sensor setup, select which thermal sensor to use: | Option | Description | |--------|-------------| | **RIGHT** | Use the right thermal sensor only | | **LEFT** | Use the left thermal sensor only | | **LEFT + RIGHT** | Combine data from both sensors | ### Temperature Algorithm Select how temperature is calculated from the thermal data: | Algorithm | Description | |-----------|-------------| | **Average Temperature** | Calculate the average temperature across all pixels | | **Average of Hottest 10%** | Average temperature of the hottest 10% of pixels | | **Average of Hottest 1%** | Average temperature of the hottest 1% of pixels | | **Hottest Point** | Use the maximum temperature from a single pixel | > **Recommendation:** For people detection, use "Average of Hottest 10%" to get a good representation of body temperature. For detecting hot spots or equipment, use "Hottest Point". ### Temperature Alarms Configure minimum and maximum temperature thresholds: - **Minimum Temperature:** Triggers an alarm if temperature falls below this value - **Maximum Temperature:** Triggers an alarm if temperature exceeds this value When a temperature alarm is triggered, the application can send notifications or trigger external actions. ### Temperature Calibration Configure how temperature measurements are calibrated: | Calibration Type | Description | |------------------|-------------| | **None** | Use raw temperature data without calibration | | **Static Deviation** | Apply a fixed offset to all temperature readings | | **Black Body** | Use a reference black body source for calibration (most accurate) | ### Static Deviation If using "Static Deviation" calibration, enter the temperature offset value (positive or negative) to adjust all readings. ### Bounding Box for Temperature For "Black Body" calibration, define the bounding box coordinates that specify the area of the camera image containing the black body reference: - **X Position:** Horizontal position of the black body area - **Y Position:** Vertical position of the black body area - **Width:** Width of the black body area - **Height:** Height of the black body area - **Expected Temperature:** The known temperature of the black body reference ## Triggers and External Actions The application can respond to external triggers and perform actions when certain events occur. ### External Trigger Configuration Configure how the application responds to external trigger signals: #### Trigger Type | Type | Description | |------|-------------| | **None** | No external trigger functionality | | **Barix Barionet 50 (Input 1-4)** | Listen for triggers from Barix Barionet 50 device inputs | | **Metrici Virtual Trigger** | Software-based trigger from Metrici system - other detection engines | ### Signaling Device Control The application can control barrier/gates/lights systems by sending HTTP requests when events occur. #### Signaling Device URL (ON) Enter the HTTP URL that will open the device. When the application needs to open the barrier (e.g., when detecting a person in a zone), it will send a request to this URL. #### Signaling Device URL (OFF) Enter the HTTP URL that will close the device. When the application needs to close the barrier, it will send a request to this URL. #### Delay Set the delay (in seconds) between open and close actions. This determines how long the device stays open/ON. ## Reporting and Integration The application can send reports to external servers when counting events occur, enabling integration with other systems. ### Reporting URL Enter the URL of the server endpoint that will receive counting event reports. The application will send HTTP requests to this URL when objects are detected in counting zones. > **Format:** The URL should be in standard HTTP format, for example: `http://localhost/io/ta/new_counting_zone_event.php` ### Auth Key Enter an authentication key that is generated by Metrici in the Interface when creating the location and the camera. This facilitates the communication between the detection engines and the interface/database. ### Live View The application can provide a live view feed for web-based monitoring. #### Live View Active Enable or disable the live view feature. #### Live View URL Enter the URL where the live view feed will be available. This is typically a local server endpoint that streams the processed video, as in `http://localhost/io/ta/live_view.php`. ## Advanced Settings Advanced settings provide additional configuration options for power users and specific use cases. ### GPU Acceleration The application can use GPU acceleration for faster image processing. GPU processing is significantly faster than CPU processing for detection algorithms. > **Requirements:** GPU acceleration requires a compatible graphics card with OpenCL support and appropriate drivers installed. #### Multiple GPU Systems On systems with multiple GPUs, you can specify which GPU to use with the `-gpu ` command-line argument, where `` is the GPU index, or on the main window edit the application. ### Processing Threads The number of processing threads determines how many parallel tasks the application can run. More threads can improve throughput on multi-core systems. > **Recommendation:** Start with the default (1 thread) and increase if your CPU has multiple cores and you need higher throughput. Too many threads can actually decrease performance due to overhead. ### Logging Level Configure how much information is recorded to the application log: | Level | Description | |-------|-------------| | **None** | No logging (fastest performance) | | **Low** | Only critical events and errors | | **Medium** | Standard logging including warnings | | **High** | Verbose logging including detailed debug information | ## Configuration File (INI) The application stores all its configuration settings in a configuration file called `.ini`, where `` is the application instance ID (default: 0.ini). This file is automatically created and updated by the application when you save settings. ### INI File Location The INI file is located in the same directory as the application executable. If you run multiple instances of the application with different `app_id` values, each instance will use its own corresponding INI file (0.ini, 1.ini, 2.ini, etc.). ### INI File Structure The INI file is divided into sections, with all application settings stored under the `[General]` section. Each setting is stored as a key-value pair on its own line. > **Example INI File:** ```ini [General] input_stream_type=30 input_stream_address=192.168.100.78 input_stream_tcp_port=80 input_stream_username=admin input_stream_password=admin123 input_stream_fps_limit=0 companion_stream_type=33 companion_stream_address=http://192.168.100.78/cgi-bin/image.jpg companion_stream_tcp_port=80 companion_stream_username=admin companion_stream_password=admin123 reporting_check_action_authkey=597SX5D4 reporting_check_action_id=420 reporting_url=http://dev2.metrici.ro/io/ta/new_counting_zone_event.php reporting_duplicate_url= input_stream_resx=1280 input_stream_resy=480 companion_stream_resx=640 companion_stream_resy=480 live_view_active=1 live_view_url=http://dev2.metrici.ro/io/ta/live_view.php external_trigger_type=0 external_trigger_seconds=1 engine_working_mode=0 recognition_enhancement=2 objects_type=2 bounding_boxes_reduction=5 counter_change_delay=1 counting_zones_list=1,0.978957,0.028057,0.982617,0.942970,0.523750,0.940000,0.513750,0.033333; image_mode=1 thermal_sensor=0 thermal_algorithm=1 alarm_min_temperature=36 alarm_max_temperature=40 temperature_calibration=2 temperature_static_deviation=-3.3 temperature_bbody_x=0.500391 temperature_bbody_y=0.003125 temperature_bbody_w=0.0890625 temperature_bbody_h=0.204167 temperature_bbody_t=40 open_barrier_url=http://support.metrici.ro/sn.php open_close_barrier_delay=3 close_barrier_url=http://support.metrici.ro/sn.php fullscreen=0 ``` ### Complete INI Settings Reference #### Input Stream Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `input_stream_type` | Camera type and protocol for the primary stream | 1-35 (see Stream Type Reference) | | `input_stream_address` | Network address (IP or hostname) of the camera | String (e.g., "192.168.100.78") | | `input_stream_tcp_port` | TCP port for RTSP streams | Number (default: 554) | | `input_stream_username` | Username for camera authentication | String (leave empty if no auth) | | `input_stream_password` | Password for camera authentication | String (leave empty if no auth) | | `input_stream_fps_limit` | Maximum frames per second to process | 0 = unlimited, or number (e.g., 15) | | `input_stream_resx` | Expected horizontal resolution of input stream | Number (pixels, e.g., 1280) | | `input_stream_resy` | Expected vertical resolution of input stream | Number (pixels, e.g., 480) | #### Companion Stream Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `companion_stream_type` | Camera type and protocol for the secondary stream | 0 = disabled, 1-35 for types | | `companion_stream_address` | Network address of the companion camera | String or empty | | `companion_stream_tcp_port` | TCP port for companion RTSP stream | Number | | `companion_stream_username` | Username for companion camera | String or empty | | `companion_stream_password` | Password for companion camera | String or empty | | `companion_stream_resx` | Expected horizontal resolution of companion stream | Number (pixels) | | `companion_stream_resy` | Expected vertical resolution of companion stream | Number (pixels) | #### Reporting Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `reporting_url` | URL endpoint for sending counting event reports | HTTP URL string or empty | | `reporting_duplicate_url` | Secondary URL for redundant reporting | HTTP URL string or empty | | `reporting_check_action_id` | Application identifier included in reports | Number (e.g., 420) | | `reporting_check_action_authkey` | Authentication key for report verification | String (e.g., "597SX5D4") | #### Live View Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `live_view_active` | Enable or disable live view feature | 0 = disabled, 1 = enabled | | `live_view_url` | URL for the live view streaming endpoint | HTTP URL string or empty | #### External Trigger Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `external_trigger_type` | Type of external trigger input | 0=None, 1-4=Barix inputs, 5=Virtual | | `external_trigger_seconds` | Timeout in seconds for trigger detection | Number (e.g., 1) | #### Image Processing Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `engine_working_mode` | How the detection engine operates | 0=Continuous, 1=Started by Trigger | | `recognition_enhancement` | Detection sensitivity level | 0=Low, 1=Medium, 2=Normal, 3=High, 4=Ultra, 5=Insane | | `objects_type` | Type of objects to detect | 0=People, 1=People(fast), 2=Heads, 3=Heads(fast) | | `bounding_boxes_reduction` | Percentage to reduce bounding box size | 0-9 (0=None, 9=90%) | | `counter_change_delay` | Delay before counting changes (1/100 sec) | Number (e.g., 1) | | `image_mode` | Single or dual sensor processing | 0=Single, 1=Dual | | `status_change_delay` | Delay before status changes (alternative setting) | Number (seconds) | #### Counting Zones | Setting Name | Description | Values | |--------------|-------------|--------| | `counting_zones_list` | List of defined counting zones with coordinates | Zone data format: ID,x1,y1,x2,y2,x3,y3,x4,y4,counter; | > **Counting Zones Format:** Each zone is represented by: `ID,x1,y1,x2,y2,x3,y3,x4,y4,counter;` > > Example: `1,0.978957,0.028057,0.982617,0.942970,0.523750,0.940000,0.513750,0.033333;` > > This creates Zone 1 with coordinates for the four corners and an initial counter value of 0.033333. #### Thermal Measurement Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `thermal_sensor` | Which thermal sensor(s) to use | 0=Right, 1=Left, 2=Both | | `thermal_algorithm` | Temperature calculation method | 0=Average, 1=Avg10%, 2=Avg1%, 3=Hottest | | `alarm_min_temperature` | Minimum temperature threshold for alarms | Number (e.g., 36.0) | | `alarm_max_temperature` | Maximum temperature threshold for alarms | Number (e.g., 40.0) | | `temperature_calibration` | Calibration method | 0=None, 1=Static, 2=BlackBody | | `temperature_static_deviation` | Fixed temperature offset for calibration | Number (positive or negative, e.g., -3.3) | | `temperature_bbody_x` | Black body bounding box X position (0-1 normalized) | Decimal (e.g., 0.500391) | | `temperature_bbody_y` | Black body bounding box Y position (0-1 normalized) | Decimal (e.g., 0.003125) | | `temperature_bbody_w` | Black body bounding box width (0-1 normalized) | Decimal (e.g., 0.0890625) | | `temperature_bbody_h` | Black body bounding box height (0-1 normalized) | Decimal (e.g., 0.204167) | | `temperature_bbody_t` | Known temperature of black body reference | Number (e.g., 40.0) | #### Barrier Control Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `open_barrier_url` | HTTP URL to open the barrier/gate | HTTP URL string or empty | | `close_barrier_url` | HTTP URL to close the barrier/gate | HTTP URL string or empty | | `open_close_barrier_delay` | Time in seconds barrier stays open | Number (e.g., 3) | #### Display Settings | Setting Name | Description | Values | |--------------|-------------|--------| | `fullscreen` | Start application in fullscreen mode | 0=windowed, 1=fullscreen | ### Manually Editing the INI File While the application automatically creates and updates the INI file when you save settings, you can also edit it manually for advanced configurations or bulk changes. > **Warning:** Be careful when manually editing the INI file. Incorrect values may cause the application to malfunction or fail to start. Always make a backup before making changes. #### Best Practices for INI File Editing - **Make a backup:** Copy the INI file before making changes - **Use a text editor:** Use a plain text editor (not a word processor) - **Preserve format:** Keep the same line format (key=value) - **Restart application:** Application usually takes automatically the new settings after saving changes ### INI File for Multiple Instances When running multiple instances of the application on the same system, each instance uses a separate INI file based on its application ID: - Instance with `app_id=0` uses `0.ini` - Instance with `app_id=1` uses `1.ini` - Instance with `app_id=2` uses `2.ini` - And so on... This allows each instance to have completely independent configurations, including different camera connections, counting zones, and reporting settings. ### Transferring Configuration To transfer your configuration to another system or create identical setups on multiple machines: 1. Copy the entire application directory including the INI file 2. Ensure the same application ID is used on the new system 3. Update IP addresses if cameras are at different network locations 4. Test the configuration after transfer ## Troubleshooting ### Connection Issues #### Camera Not Connecting - Verify the camera IP address is correct and accessible - Check that the stream type matches your camera model - Ensure username and password are correct - Check network connectivity and firewall settings - Try using generic stream types if your camera brand isn't listed #### Intermittent Connection - Reduce the FPS limit to decrease network bandwidth - Check for network stability issues ### Detection Issues #### No Objects Detected - Verify the video stream is being received properly - Check that the recognition enhancement level is appropriate - Ensure the correct object type is selected - Verify counting zones are properly defined and visible #### False Positives - Increase the recognition enhancement level - Reduce bounding box overlap by increasing bounding box reduction - Adjust counting zones #### Double Counting - Increase the counter change delay setting - Make counting zones narrower or better defined ### Performance Issues #### Slow Frame Rate - Enable GPU acceleration if available - Reduce the recognition enhancement level - Limit FPS to a lower value - Use a faster object type (e.g., "People (fast)") - Add processing threads if you have multiple CPU cores #### High CPU Usage - Enable GPU acceleration - Lower the recognition enhancement level ## Glossary | Term | Definition | |------|------------| | **Thermal Camera** | A camera that detects infrared radiation to create temperature-based images | | **RTSP** | Real-Time Streaming Protocol - standard for streaming video over networks | | **GPU** | Graphics Processing Unit - hardware for accelerated computing | | **OpenCL** | Open Computing Language - framework for GPU acceleration | | **Black Body** | A reference temperature source used for thermal camera calibration | | **Trigger** | A signal (from hardware or software) that causes the system to take action | | **Counting Zone** | A defined area in the video where objects are tracked and counted | ## Technical Support For additional help, please contact Metrici technical support team at **support@metrici.ro**. **Version:** Metrici Thermal Analyzer v1.2 # Metrici Snapshot v1.0 User Manual for End Users and System Administrators --- > **Important!** This documentation is currently in beta and is a work in progress. Content may change as features are finalized. ## Table of Contents 1. [Introduction](#introduction) 2. [Getting Started](#getting-started) 3. [Main Window Overview](#main-window-overview) 4. [Settings Configuration](#settings-configuration) 5. [Connecting Your Camera](#connecting-your-camera) 6. [Command Line Options](#command-line-options) 7. [Configuration File (INI)](#configuration-file-ini) 8. [Troubleshooting](#troubleshooting) 9. [Frequently Asked Questions](#frequently-asked-questions) 10. [Glossary](#glossary) 11. [Technical Support](#technical-support) ## Introduction Metrici Snapshot is an event-driven image capture application that connects to IP cameras and automatically captures snapshots when triggered. When a trigger signal is received, the application takes a picture from the video stream and sends it to your reporting server for logging and storage. This type of application is commonly used for: - **Event documentation** - Capturing images when external sensors detect activity - **Security triggering** - Taking pictures when alarms or motion detectors are triggered - **Process monitoring** - Recording images when manufacturing or processing events occur - **Access logging** - Capturing images when doors, gates, or barriers are activated - **External system integration** - Responding to triggers from other software or hardware systems The application supports a wide variety of IP camera brands and can process video from two cameras simultaneously (primary and companion streams). ## Getting Started ### Installation 1. Ensure your system meets the minimum requirements 2. Copy the application files to your desired installation directory 3. Ensure the library file `libhasp_linux_x86_64_*.so` is present (required for license verification) ### Starting the Application You can start Metrici Snapshot in two modes: - **Graphical Mode (Default):** Run without any arguments to see the main window ```bash ./snapshot ``` - **Background Mode (No GUI):** Run with the `-nogui` flag for headless operation on servers ```bash ./snapshot -nogui ``` ### First Run On first run, the application will create a settings file (named based on the app_id, default is "0.ini"). The application will attempt to connect to your configured camera(s) and wait for trigger signals. When triggers are received, it will capture and send snapshots. ## Main Window Overview The main window displays the video feeds from your connected cameras with captured snapshots shown when triggers occur. ### Primary Video Display The large central area shows your primary camera feed. This is the video stream from which snapshots are captured when triggers occur. You can watch the live video to verify your camera is positioned correctly and working properly. ### Companion Video Display If configured, a smaller secondary video display shows your companion camera stream. When a trigger is received, the application can capture images from both cameras simultaneously, giving you two angles of the same event. ### Connection Status Indicators Below each video display, you'll see status information: 1. **Connection Status:** Shows whether you're connected, disconnected, or connecting to the camera 2. **Stream Type:** Displays the protocol being used (RTSP, HTTP, etc.) 3. **Stream Address:** Shows the camera's IP address or URL 4. **FPS:** Frames per second - indicates video quality 5. **Resolution:** The video resolution (width x height) ### Trigger Status When a trigger is received, the application indicates this visually: - **Trigger Active:** A trigger signal is currently being processed - **Trigger Key:** Displays the identifier of the trigger that was received - **Snapshots Captured:** Images are captured from both (or all) configured streams ### Control Buttons The bottom of the window contains the following buttons: - **Quit:** Closes the application - **Settings:** Opens the configuration window where you set up cameras, triggers, and reporting - **About:** Shows version information and license details - **Minimize/Maximize:** Toggles between windowed and full-screen modes ## Settings Configuration Click the **Settings** button to open the configuration window. This is where you set up your cameras, triggers, and reporting options. The settings are organized into several sections. ### Engine Working Mode This setting controls when the application processes video and responds to triggers: | Mode | Description | |------|-------------| | Started by Trigger | The application only records events from the camera when a trigger signal is received. After capturing the snapshot and sending it to the server, the application stops monitoring and waits for the next trigger. | ### Primary Input Stream The primary input stream is your main camera that provides the video from which snapshots are captured. #### Stream Type Select the protocol and brand of your camera. The application supports many camera manufacturers: | Category | Camera Brands/Types | |----------|---------------------| | **Major Brands** | AXIS, HIKVISION, Samsung, Sony, Bosch, Dahua | | **Industrial** | ACTi, Arecont Vision, DIVIOTEC, Novus, Pelco, Vivotek | | **Specialized** | Mobotix (MxPEG), Roseek RAW | | **Generic** | Generic MJPEG over HTTP, Generic H264 over RTSP, Generic JPEG pictures | | **Software** | VLC streams, Android camera streams | > **Tip:** If your camera brand isn't listed, try the "Generic Camera" options. Most modern IP cameras support standard MJPEG or H264 protocols. #### Stream Address Enter the network address of your camera. This depends on your camera type: - **For HTTP cameras:** Enter the IP address or hostname, e.g., `192.168.1.100` or `camera.mydomain.com` - **For RTSP cameras:** Enter the full RTSP URL, e.g., `rtsp://192.168.1.100:554/stream1` #### TCP Port The network port your camera uses for video streaming: - **HTTP cameras:** Usually port `80` - **RTSP cameras:** Usually port `554` or `8554` - Check your camera documentation for the correct port #### Username and Password Enter the credentials required to access your camera. Most IP cameras require authentication to view video streams. If your camera doesn't require authentication, leave these fields blank. > **Security Note:** Always use strong passwords for your cameras. Default passwords are a common security vulnerability. #### FPS Limit This setting limits how many frames per second the application requests from the camera. Enter `0` to use the camera's default frame rate, or enter a specific number like `3` or `9` to limit it. Lower FPS limits reduce bandwidth usage but higher FPS gives you more up-to-date images when triggers occur. ### Companion Stream The companion stream is an optional secondary camera. When a trigger is received, the application captures snapshots from BOTH the primary and companion cameras simultaneously, giving you two views of the same event. Common uses for companion streams include: - Using a wide-angle camera as primary and a zoomed-in camera as companion - Viewing the same scene from a different angle (e.g., front and side views) - Having a different type of camera (e.g., regular and thermal) for comprehensive coverage All the same settings apply as the primary stream (type, address, port, username, password). > **Note:** Both cameras will be captured whenever a trigger occurs. ### Live View Live view allows the application to automatically send video frames to a web server, enabling live video streaming through a web browser. #### Enable Live View Check this box to activate live view functionality. When enabled, the application will periodically send images to your live view server. #### Live View URL Enter the web address where live view images should be sent. This is typically a PHP script or similar endpoint on your web server. Example: `http://yourserver.com/io/eer/live_view.php` The live view feature allows you or others to monitor the camera feed through a web browser in real-time. ### Reporting Settings When the application captures a snapshot after receiving a trigger, it sends the image and event data to your reporting server. #### Reporting URL The web address where captured snapshots and event data are sent. This should be a server-side script (PHP, Python, etc.) that accepts and processes the image data. Example: `http://yourserver.com/path/new_event.php, usually http://localhost/io/eer/new_event.php` The receiving server saves the image and logs the event with a timestamp and other information. #### Duplicate Reporting URL (Optional) You can specify a second URL where the same snapshot and event data will be sent. This provides redundancy if you need events logged or stored in two different systems simultaneously. #### Authentication Key A security key that validates the event data being sent. It is the communication between engine and database. It is generated by Metrici in the Interface when creating the location and adding the cameras. > **Important:** Keep this key secure. Anyone with this key could potentially send fake events to your reporting system. ### External Trigger An external trigger tells the application when to capture a snapshot. This is the core functionality - the application waits for these signals and then immediately captures and sends images. #### Trigger Type | Trigger Type | Description | |--------------|-------------| | **Barix Barionet 50 (Inputs 1-4)** | Uses a Barix Barionet 50 hardware device. This device has 4 inputs that can trigger the application. When the specified input is activated (e.g., by a door sensor, motion detector, or button press), the application captures a snapshot. | | **Metrici Virtual Trigger** | A software-based trigger. The application listens for trigger signals sent over the network using UDP protocol. This allows other software or systems to control when snapshots are captured. Useful for integration with other applications or automation systems. | #### How Triggers Work When a trigger is configured: 1. The application monitors for trigger signals 2. When a trigger signal is received, the application captures a snapshot from the primary camera (and companion camera if configured) 3. The captured image(s) are sent to your configured reporting URL(s) 4. The trigger is logged and the application returns to monitoring for the next trigger ## Connecting Your Camera Follow these steps to connect your camera to Metrici Snapshot: ### Step 1: Find Your Camera's Information Before configuring the application, gather this information from your camera: - Camera IP address or hostname - Video stream protocol (RTSP or HTTP) - Stream URL or path - Port number (usually 80 for HTTP, 554 for RTSP) - Username and password for camera access > **Tip:** Check your camera's documentation or web interface to find the correct streaming URL. Many cameras have a "Stream" or "Video" section in their settings that shows the RTSP/HTTP URL. ### Step 2: Open Settings Click the **Settings** button in the main window. ### Step 3: Configure Primary Input Stream 1. Find the "Input Stream" section 2. Select the appropriate "Stream Type" from the dropdown list 3. Enter the camera's address in "Stream Address" 4. Set the correct port number 5. Enter the username and password if required ### Step 4: Configure External Trigger 1. Find the "External Trigger" section 2. Select the trigger type that matches your setup 3. For Barix devices, the application will automatically use the appropriate port 4. For virtual triggers, no additional configuration is needed - the settings are done in the sending engine ### Step 5: Configure Reporting 1. Find the "Reporting" section 2. Enter your reporting server URL 3. Set an action ID if needed 4. Enter an authentication key if your server requires one ### Step 6: Test the Connection Click **Save** to apply the settings. The application will attempt to connect to your camera. Watch the status indicators below the video display: - **Connecting:** Attempting to establish connection - **Connected:** Successfully receiving video - **Disconnected:** Connection failed (check your settings) ### Camera-Specific Examples #### AXIS Camera (RTSP) ``` Stream Type: AXIS H264 RTSP Stream Address: 192.168.1.100 TCP Port: 554 Username: admin Password: password123 ``` #### HIKVISION Camera (HTTP) ``` Stream Type: HIKVISION MJPEG HTTP Stream Address: 192.168.1.101 TCP Port: 80 Username: admin Password: admin123 ``` #### Generic RTSP Camera ``` Stream Type: Generic Camera H264 RTSP Stream Address: rtsp://192.168.1.102:554/Streaming/Channels/101 TCP Port: 554 Username: (if required) Password: (if required) ``` ## Command Line Options When starting Metrici Snapshot from the command line, you can use various options to customize behavior: | Option | Description | |--------|-------------| | `-nogui` | Run without graphical interface. Useful for servers or headless systems. | | `-debug` | Enable debug mode with additional diagnostic information. | | `-disable_gpu` | Disable GPU acceleration even if available. | | `-gpu ` | Specify which GPU to use (0 = first GPU, 1 = second GPU, etc.). | | `-app_id ` | Set the application ID (0-254). Used when multiple instances run simultaneously. | | `-app_name ` | Set a custom application name for identification. | | `-log_level ` | Set logging verbosity: 0=None, 1=Low, 2=Medium, 3=High. | | `-v` | Display version information and exit. | ### Example Commands ```bash # Run with GUI, showing version ./snapshot -v # Run in background mode (no GUI) ./snapshot -nogui # Run with debug logging enabled ./snapshot -debug # Run with high log level ./snapshot -log_level 3 # Run with custom app ID for multiple instances ./snapshot -app_id 1 -nogui ``` ## Configuration File (INI) All application settings are stored in a configuration file called `.ini`. For example, if you use the default app_id of 0, the file will be named `0.ini`. If you run multiple instances with different app_ids, each will have its own separate configuration file. ### INI File Location The configuration file is created in the same directory where the Metrici Snapshot application is installed. You can manually edit this file with a text editor if needed, or use the Settings window within the application. ### INI File Structure The INI file uses a simple text format with sections and key-value pairs. Here's an example of what the configuration file looks like: ```ini [General] input_stream_type=5 input_stream_address=192.168.1.100 input_stream_tcp_port=80 input_stream_username=admin input_stream_password=password123 input_stream_fps_limit=0 companion_stream_type=0 companion_stream_address= companion_stream_tcp_port=80 companion_stream_username= companion_stream_password= reporting_check_action_authkey= reporting_check_action_id=0 reporting_url=http://localhost/io/eer/new_event.php reporting_duplicate_url= input_stream_resx=1920 input_stream_resy=1080 companion_stream_resx=640 companion_stream_resy=480 live_view_active=1 live_view_url=http://localhost/io/eer/live_view.php external_trigger_type=0 external_trigger_seconds=1 engine_working_mode=0 ``` ### Configuration Values Reference #### Primary Input Stream Settings | Setting | Values | Description | |---------|--------|-------------| | `input_stream_type` | 0-33 | The type of camera protocol. 0=Undefined, 1=ACTi MJPEG HTTP, 5=AXIS MJPEG HTTP, 17=HIKVISION MJPEG HTTP, etc. | | `input_stream_address` | IP address or hostname | The network address of your primary camera | | `input_stream_tcp_port` | Port number (default: 80 for HTTP, 554 for RTSP) | The TCP port the camera uses for streaming video | | `input_stream_username` | String or empty | Username for camera authentication | | `input_stream_password` | String or empty | Password for camera authentication | | `input_stream_fps_limit` | 0=unlimited, or specific FPS value | Limits the frames per second processed from the camera | | `input_stream_resx` | Width in pixels (e.g., 1920, 1280, 640) | The horizontal resolution of the primary camera stream | | `input_stream_resy` | Height in pixels (e.g., 1080, 720, 480) | The vertical resolution of the primary camera stream | #### Companion Stream Settings | Setting | Values | Description | |---------|--------|-------------| | `companion_stream_type` | 0-33 | The camera type for the companion stream. Set to 0 to disable | | `companion_stream_address` | IP address, hostname, RTSP URL, or empty | The network address of your companion camera | | `companion_stream_tcp_port` | Port number (default: 80) | The TCP port for the companion camera stream | | `companion_stream_username` | String or empty | Username for companion camera authentication | | `companion_stream_password` | String or empty | Password for companion camera authentication | | `companion_stream_resx` | Width in pixels | The horizontal resolution of the companion camera stream | | `companion_stream_resy` | Height in pixels | The vertical resolution of the companion camera stream | #### Reporting Settings | Setting | Values | Description | |---------|--------|-------------| | `reporting_url` | URL string | The web address where captured snapshots and event data are sent | | `reporting_duplicate_url` | URL string or empty | An optional second URL where the same data is sent | | `reporting_check_action_id` | Integer (default: 0) | An identifier used to categorize or route events on the receiving server | | `reporting_check_action_authkey` | String or empty | A security key sent with events for validation | #### Live View Settings | Setting | Values | Description | |---------|--------|-------------| | `live_view_active` | 0=disabled, 1=enabled | Enables or disables the live view feature | | `live_view_url` | URL string | The web address where live view images are periodically sent | #### Trigger and Engine Settings | Setting | Values | Description | |---------|--------|-------------| | `external_trigger_type` | 0-5 | Type of external trigger: 0=None, 1-4=Barix inputs, 5=Virtual | | `external_trigger_seconds` | Number of seconds | Timeout value for external trigger detection | | `engine_working_mode` | 0=Continuous, 1=Started by Trigger | Controls when the application processes video | ### Stream Type Values Reference | Value | Stream Type | |-------|-------------| | 0 | Undefined | | 1 | ACTi MJPEG HTTP | | 2 | ACTi H264 RTSP | | 3 | Android MJPEG HTTP | | 4 | Arecont MJPEG HTTP | | 5 | AXIS MJPEG HTTP | | 6 | HIKVISION MJPEG HTTP | | 7 | Bosch MJPEG RTSP | | 8 | Novus MJPEG HTTP | | 9 | DAHUA MJPEG HTTP | | 10 | Vivotek MJPEG HTTP | | 11 | Generic MJPEG HTTP | | 12 | Sony H264 RTSP | | 13 | Bosch H264 RTSP | | 14 | Pelco MJPEG RTSP | | 15 | Samsung H264 RTSP | | 16 | Generic JPEG Picture HTTP | | 17 | HIKVISION H264 RTSP | | 18 | Mobotix MJPEG HTTP | | 19 | Generic MJPEG RTSP | | 20 | Generic H264 RTSP | | 21 | AXIS MJPEG RTSP | | 22 | AXIS H264 RTSP | | 23 | Uniview H264 RTSP | | 24 | Novus H264 RTSP | | 25 | ACTi H264 RTSP | | 26 | DIVIOTEC MJPEG HTTP | | 27 | DIVIOTEC H264 RTSP | | 28 | Mobotix Move H264 RTSP | | 29 | Samsung MJPEG HTTP | | 30 | Mobotix MxPEG HTTP | | 31 | Mobotix H264 RTSP | | 32 | Sony MJPEG HTTP | | 33 | VLC MJPEG HTTP | ### Backing Up and Restoring Settings To back up your configuration: 1. Stop the application if it is running 2. Copy the INI file (e.g., `0.ini`) to a safe location To restore a configuration: 1. Stop the application if it is running 2. Copy the saved INI file back to the application directory 3. Start the application ### Multiple Instances When running multiple instances of Metrici Snapshot, each instance must have a unique app_id. Each instance creates its own INI file: - app_id 0 uses `0.ini` - app_id 1 uses `1.ini` - app_id 2 uses `2.ini` - And so on... Start different instances with different app_ids: ```bash # Instance 1 (uses 0.ini) ./snapshot # Instance 2 (uses 1.ini) ./snapshot -app_id 1 # Instance 3 in background mode (uses 2.ini) ./snapshot -app_id 2 -nogui ``` ## Troubleshooting ### Camera Connection Issues | Problem | Possible Solution | |---------|-------------------| | Camera won't connect | Verify the IP address is correct. Check that the camera is powered on and accessible on the network. | | "Disconnected" status | Check username and password are correct. Ensure the camera's streaming URL is correct. Verify the port is not blocked by a firewall. | | No video but connected | Some cameras have multiple streams. Try a different stream type (MJPEG instead of H264). | | Intermittent connection | Check network stability. Consider using "Started by Trigger" mode if connections are unreliable. | ### Trigger Issues | Problem | Possible Solution | |---------|-------------------| | Triggers not being detected | Verify trigger type is set correctly. For virtual triggers, ensure UDP packets are being sent to the correct port (base port 3500 + app_id). | | Barix trigger not working | Check that the Barix device is on the network and accessible. Verify the input configuration on the Barix device. | | Virtual trigger not working | Check that UDP packets are being sent to the correct IP address and port. Verify any firewall rules allow UDP traffic. | ### Reporting Issues | Problem | Possible Solution | |---------|-------------------| | Snapshots not being sent | Verify the reporting URL is correct and accessible from the application. Check network connectivity to the server. | | Server not receiving images | Check server logs for incoming requests. Verify the receiving script is properly configured. | | Duplicate events being logged | Check that the duplicate reporting URL is correctly configured or empty if not needed. | ### Performance Issues | Problem | Possible Solution | |---------|-------------------| | Slow response to triggers | Check network latency to camera. Ensure camera can provide frames quickly when requested. | | High resource usage | Reduce camera resolution. Consider switching between MJPEG and H264 if bandwidth is limited. | ## Frequently Asked Questions ### Q: How does the trigger system work? When you configure an external trigger, the application monitors for trigger signals. When a signal is received (either from a hardware device like a Barix or from network UDP packets), the application immediately captures a snapshot from your camera and sends it to the reporting server. ### Q: Can I run multiple instances of Metrici Snapshot? Yes. Each instance must have a unique app_id (0-254). Use the `-app_id ` command line option. Each instance will maintain its own settings file (named `.ini`) and respond to triggers on different UDP ports (3500 + app_id). ### Q: What cameras are supported? The application supports any IP camera that outputs video over RTSP or HTTP protocols. Major brands like AXIS, HIKVISION, Samsung, Sony, Bosch, Dahua, Vivotek, and many others have specific support. For cameras not listed, the generic options usually work well. ### Q: What triggers can I use? The application supports Barix Barionet 50 hardware triggers (4 inputs) and Metrici Virtual triggers sent via UDP network packets. ## Glossary | Term | Definition | |------|------------| | **Snapshot** | A still image captured from a video stream at a specific moment | | **RTSP** | Real-Time Streaming Protocol - standard for streaming video over networks | | **HTTP** | Hypertext Transfer Protocol - standard web communication protocol | | **MJPEG** | Motion JPEG - video format where each frame is a separate JPEG image | | **H.264** | Video compression standard used by most modern IP cameras | | **Trigger** | A signal (from hardware or software) that causes the system to take action | | **UDP** | User Datagram Protocol - a fast network protocol for sending trigger signals | | **Barix** | A brand of network-connected I/O devices used for hardware triggering | ## Technical Support For additional help, please contact Metrici technical support team at **support@metrici.ro**. **Version:** Metrici Snapshot v1.0 --- # Additional Resources The following resources are available but not inlined in this file (external pages, marketing content, or non-markdown content): - Romanian Documentation Hub: https://docs.metrici.ro/ro/indexro.html - Metrici Marketing Website: https://www.metrici.ro - Demo Request: https://www.metrici.ro/demo - Change Log: https://www.metrici.ro/change-log - FAQ: https://www.metrici.ro/faq - Downloads (datasheets, tested cameras, integration files): https://www.metrici.ro/downloads - Presentations and Brochures: https://www.metrici.ro/metrici-presentations