Calibrating a Camera

Calibration is defining the areas in a camera’s video picture for traffic detection. These detection areas, which are plotted to scale, are depicted by outlines superimposed over the camera video.

Camera Calibration

The traffic in a camera’s video cannot be detected until the camera is calibrated; uncalibrated cameras are essentially inactive.

Starting Calibration

Select the Video tab and then select the Presets subtab. Click one of the Preset green Add buttons to begin calibrating a camera:

Add Preset

Using The Calibration Windows

A Preset represents calibration of a camera at one fixed position.

The camera calibration window is displayed:

Calibration
This window has a large grayscale picture generated from the video output of the camera. You will plot calibration on this picture, so vehicles are removed to reduce distractions.

Steps For Calibrating A Camera

To calibrate a camera:

  1. Select the Video tab.

  2. Select the Presets subtab.

  3. Select the camera to calibrate.

  4. Click a green Add button for an unused Preset.

    The Calibrate Preset window (shown in the previous section) opens.

  5. Click the green Step 1 button.

    The Calibrate Preset window now provides step-by-step instructions for calibration.

  6. Enter the camera calibration parameters in the fields to the left of the picture as follows:

Field Grouping Field Action
Preset Name Preset Name Enter a name for your Preset
Travel Lanes (Step 1) Far Side (optional) (Selected by default) Select this check box to monitor both sides of the road (both directions of traffic). Deselect this check box to monitor only the near side traffic.
# of Lanes: Enter the number of traffic lanes (1-9) to monitor on each side or click the up and down arrows.
Lane Width: Enter the width for one lane.
Known Length: Enter a known distance according to local roadway standards along the course of the road. You will plot this length on the grayscale picture. For accurate speed information, this measurement must be exact, to calculate an image pixel to distance ratio. Camera heights and angles vary greatly, and this allows the TMC software to adapt to the varying fields of view.
Traffic Flow Direction (Step 2) Start Time Select the start time for special traffic flow directions from the pulldown menu.
End Time Select the end time for special traffic flow directions from the pulldown menu.
Days of the Week Select the check boxes for the day(s) of the week when these times apply.
Extended Detection Zones (Step 3) Shoulders: Enter the shoulder/margin width(s) to be plotted around the monitored lanes. This will set the width of the zone(s) where you want to detect incidents such as stopped vehicles or pedestrians.
Zone Length: Enter the shoulder/margin length(s) to be plotted around the monitored lanes. This will set the length of the zones(s) where you want to detect incidents such as stopped vehicles and pedestrians.
Exclusion Zones (Step 4) Add Zone Select the “Add Zone” button to create a new Exclusion Zone and then click on the image where you want to add the corners of the area to be excluded from monitoring. A zone must have at least three corners.
Finish Zone Select the “Finish Zone” button to finish creating a new zone. You may create up to 32 Exclusion Zones per calibration preset.

7 . When you finish entering the Travel Lanes calibration parameters, click the green Calibrate button.

This turns the picture into an interactive drawing area:

Calibration
Notice the following changes/additions:

Notes You can hide the instructions by clicking the red x icon (redx_icon.png) in the top right corner. You can click and drag the panel to move it to a different position.

8 . Follow the on-screen instructions. Here are additional comments for each of the steps:

Picture Comments
Calibration
On-Screen Instruction: Click on the nearest travel lane edge of the near side road. For cameras facing the middle of the road straight on, with both sides equidistant, the LEFT side is assumed to be the near side, indicated in the initial instructions displayed on top of the road image as shown below.
Calibration
Calibration
On-Screen Instruction: Click on the other travel lane edge of the near side road. After you click the mouse, a plot line that automatically follows the travel lane edge displays. Note the instruction panel has changed for the next step.
Calibration
On-Screen Instruction: Click the start point of the known length on the near side road. Plot this length carefully. It affects the accuracy of speeds and classification data. The second two-point plot line has been set along the far travel lane edge of the near side road. You can click and drag the line end points (marked as squares) to fine-tune the plot lines. All lines should be parallel to the respective lines of the roads.
Calibration
On-Screen Instruction: Click the end point of the known length on the near side road. Plot this length carefully. It affects the accuracy of speeds and classification data. The start point for the known length (yellow line) has already been clicked. The mouse cross-hairs indicate that the end point has not yet been set. (The on-screen instructions remain the same until you click the end point.)
Calibration
On-Screen Instruction: Click the farthest travel lane edge of the far side road. The yellow dashed line indicates the known length of the road. The mouse cross-hairs are correctly positioned to carry out the current instruction. You can click and drag the line end points (marked as squares) to fine-tune the plot lines. All lines should be parallel to the respective lines of the roads.
Calibration
On-Screen Instruction: Click the Step 2 button to start configuring the traffic flow directions of each lane. After you click the mouse, the parameters you entered before calibration determine what happens next. Because both Near Side and Far Side are selected for calibration. lanes to monitor traffic on both sides of the road are shown in this example.
Calibration
On-Screen Instruction: Click the Step 2 button to start configuring the traffic flow directions of each lane. You can see the calibration is complete when the following occurs: - Black travel lane boundary lines display on the grayscale picture as shown. - Two more check boxes, User Inputs and Travel Lanes, are activated below the grayscale picture. With these you can show or hide the travel lane lines and plot lines or make any last adjustments to the plot lines. - The green Step 2 (Traffic Flow Directions) button is activated.
Calibration
On-Screen Instruction: Click Add to add a new traffic flow direction entry for this preset: Click on an entry in the table to show the traffic flow directions on the right, Clicking the green circle for a lane will toggle its traffic flow direction. Click the Step 3 button to start configuring the extended detection zones. The Traffic Flow Directions step allows you to define varying traffic flow patterns by days of the week and times of day. This is useful for reversible lanes, express lanes, or contraflow lane reversal for emergency evacuation or routine maintenance activities.
Calibration
After adding the days and times for the new Traffic Flow Direction, select the line from the list of Traffic Flow Directions. Click the green Save button on the bottom right to save the new Traffic Flow Direction schedule. In this example, the far side lanes are scheduled for no traffic from 9-11:59 PM on Saturday and Sunday nights, as indicated by the green circles.
Calibration
Click the green circles for the lanes to change, and the direction will toggle. A plain green circle with no arrows indicates no traffic is scheduled, such as for maintenance.
Calibration
On-Screen Instruction: You can change the sizes of the near and far size zones. Extended Detection Zones are used for detecting stopped vehicles/debris. When you click the Step 3 button, green extended detection zone lines are automatically drawn for the default shoulder widths and zone length. You may change the widths of the shoulders for both near side and far side in the Shoulders entry boxes. Enter a new number, or use the up and down arrows to move to the desired number. When you place your cursor over a Shoulders entry box, the linked detection zone side line turns from green to thick yellow to help you identify the zone you are editing. You may change the length of the extended detection zones in the Zone Length entry box in the same manner.
Calibration
On-Screen Instruction: Click the Step 4 button to start configuring exclusion zones. When you finish adjusting these dimensions, click the Refresh View button to redraw the extended detection zones overlay lines. In this example, the length of the extended detection zones was changed to 300 feet, and the width of the median shoulders was changed to 6 feet to eliminate overlapping zones.
Calibration
On-Screen Instruction: Exclusion Zones are used to mask regions. No incidents will be detected in those regions. Press the Add Zone button to begin adding an exclusion zone. Click on the image where you want to add the corners of the zone. A zone must have at least three corners. Press the Finish Zone button to finish creating the zone. When you’re done, click the Save button to save this calibration. Exclusion zones are an option to clearly omit specific areas from detection. You may add up to 32 exclusion zones per calibration. To add an exclusion zone, press the Add Zone button in Step 4. Use the cursor to select the points defining the exclusion zone, and press the Finish Zone button when you are done. The exclusion zone will display as a darkened area with white outlines and red circles at the corners. To delete a zone, click within the zone’s polygon to select it and press the X Delete Zone button. To edit a zone, click and drag the zone to reposition, or click and drag the red circle handles to change its shape.
Calibration Error
Calibration Error Message You may see a green message box in the top right of the window similar to this example. If you see this, you may need to adjust positions of the travel lane edge markers or adjust the camera angle. Although the TMC product software is designed to work with many camera angles, optimal angles will ensure the most accurate results.
Calibration Error
Traffic Data When you have finished calibrating the preset, click the Save button. The Calibrate Preset window closes, displaying the Video tab. TMC will begin to display information about traffic in the monitored lanes in the table to the right of the video. If you want to add notes about the camera, click the down arrow to expand the Camera Notes pane below the traffic data.
Calibration Error
Camera Notes Enter notes for the camera in the text entry field. Copy and Paste icons allow easy copying of notes from one camera to another. Clicking the Date icon enters the current date and time at the cursor position. Clicking the Undo icon removes your entered content and restores any prior content. Click the green Save button when you are finished entering camera notes.

9 . When calibration is complete, the Video tab now overlays calibration markers and vehicle detection boxes on the traffic video for the camera, as well as traffic data in the table to the right of the video.

Calibration Finished

TrafficVision