Setup Guide
Steps to connect to and setup your Traffic Monitor.
Last updated
Was this helpful?
Steps to connect to and setup your Traffic Monitor.
Last updated
Was this helpful?
At this point you have your traffic monitor and it is running. Nice job!
This guide will walk you though configuring your device based on your sensors (required), adjust it for roadway conditions (recommended), optimize your data capture, and connect with the ThingsBoard platform (optional).
The default configuration files have disabled all sensors until you follow these steps. There will be no data captured until you enable your sensors using the following steps.
Physical access to the device is a less-convenient method but will allow the most control to address issues.
See for more information on connecting your Raspberry Pi. It should be as simple as plugging in a USB keyboard, USB mouse, and micro HDMI cable to your monitor. In this case, you can use localhost
as the RPi IP address or use the host name.
If your Traffic Monitor uses the default Raspberry Pi installation method, you will have an that contains all your system files. If necessary, you can insert the card into a micro-SD card reader to access the entire Raspberry Pi OS directory structure.
You will need to know the Traffic Monitor / Raspberry Pi IP address or host name to connect to the various configuration environments.
Frigate controls and generates object detection events with the camera.
Frigate has a well-developed front-end user interface that can be accessed by visiting http://<TM_IP_ADDRESS>:5000
in a browser.
Set up or modify the following zones, overlaying any temporary or permanent stationary objects:
zone_capture - Set to capture the entire roadway, including sidewalks that are clearly in view for counting objects.
zone_near - Paired with zone_near
, this will determine if an object moves "outbound" or "inbound". Set this to be roughly the further half of the zone_capture
region.
zone_far - Paired with zone_far
, this will determine if an object moves "outbound" or "inbound". Set this to be roughly the closer half of the zone_capture
region.
zone_radar - (for units equipped with radar) - This should correspond to the field of view for the radar (where it can pick up accurate measurements) on the street. It will roughly make a rectangle in the center of the camera field of view from curb to curb.
After changes are made, you will need to restart Frigate before they take effect. You can do this via Frigate > Settings > Restart Frigate.
Optional step for reducing false-positives, creating private areas, and refining your configuration.
Motion Masks: may be designated to prevent unwanted types of motion from triggering detection.
Object filter masks: filter out false positives for a given object type based on location.
The object detection model accuracy and detection ability may vary depending on a number of factors including mounting conditions such as height and angles to the roadway, different cameras and camera settings, and environmental conditions.
Node-RED controls most of the workflow logic and data collection.
You will need to #connect-to-your-device to edit the Node-RED Config files.
Open up the terminal or via SSH enter the command: nano ~/.node-red/config.yml
to begin editing the config file.
Change the deployment location information to represent the current deployment. Get your latitude and longitude from any map service, such as Google Maps and enter bearing with the single-letter cardinal direction the traffic monitor is facing.
Modify sensors to reflect currently installed components. For example, with a single Raspberry Pi Camera and Radar, it may look like this:
To save changes, press Ctr+o (hold control and o)
To exit, press Ctr+x (hold control and x)
You will need to restart Node-RED for setting to take effect. Do this by entering the command systemctl restart nodered
into the terminal.
Remote access allows you to control various parts of your Raspberry Pi without connecting it to a monitor, keyboard, or mouse. This must be done from another computer, e.g. a laptop. See docs for a full rundown of options.
If you chose the Build Your Own Device (DIY) route, we recommend you set up WiFi credentials by following the and it will automatically be accessible the network you specified. Find the RPi IP address via your router, or if your router supports DNS host names, you can use the host name set on the RPi.
If you received a pre-built device, check with your provider for specific instructions. To get you started, it may be available as a Hotspot that will . Connect to it like any WiFi network, look for the host name as the SSID. The IP address of the Raspberry Pi will be the Gateway IP address or you may use the host name set on the RPi.
See for more options.
This section describes setting up Frigate with the Traffic Monitor Recommended Hardware. If you have alternative or optional camera(s) or other components, you may need additional configuration. Reference the official for more details.
The Traffic Monitor will be expecting the following specifically named to work properly with all dashboards and workflow logic. These need to manually drawn based on your deployment.
Ensure following are manually configured each time a the traffic monitor is re-positioned or relocated, based on your unique deployment and roadway conditions.
Use masks sparingly. Over-masking will make it more difficult for objects to be tracked. See for more detailed explanation of how masks work and how to use them.
For more information view and detailed info at .
The generalized model available in the base version works well at a variety of angles, but is particularly suited for an oblique angle that has a good side-view of objects as they pass through the frame. have a variety of score and threshold parameters that may be set to be more effective with your deployment.