This guide will explain how to configure virtual sensors using Boulder AI's configuration tool. This tool is currently used for all BAI Mobility Services, TrafficCounter, and PeopleCounter applications.
Virtual Sensor Service Functionality
There is not currently functionality built out for all of the available virtual sensors or all of the available object classes for each application. The functionality that is currently available per service is as follows:
- BAI Mobility Services - general application to use when looking to detect both vehicles and people.
- Virtual Sensors: Speed, Count, Presence
- Objects: Person, Bicycle, Truck, Car, Bus
- TrafficCounter - application to be used when looking to detect vehicles, higher accuracy pedestrian detection coming soon.
- Virtual Sensors: Count, Presence
- Objects: All vehicles counted as car, people
- PeopleCounter - application to be used in indoor people counting use cases
- Virtual Sensors: Count
- Objects: People
Reaching the Virtual Sensor Configuration Page
To access the device configuration page, first login to the
Boulder AI Platform and navigate to the device settings page for your target device by clicking on it in the devices page.
Now, from the services panel, click on the 'Gear' configuration icon to open the configuration page for the service.
Setting Up Virtual Sensors
There are three different types of sensors included across the three applications. We plan to build out functionality for each sensor type for each application.
Speed Sensor
The Speed Sensor is generally used to collect data on the speed of vehicles traveling through an intersection or on a road. To create a Speed Sensor, select
Speed
and the type of object you'd like to detect using the
drop-down
menu on the right side of the Mobility Service configuration screen. You can then click-and-drag to create two lines. The green line is the start of the sensor and the red line is the end of the sensor. Next, enter the distance between the two lines in the 'Distance' field on the right and click
Add Sensor
.
Count Sensor
The Count Sensor has many use cases. It will count the number of the chosen object (people, cars, trucks, bicycles, or busses) going through a specified location. To create a Count Sensor, select
Count
and the type of object you'd like to detect using the
drop-down
menus on the right side of the configuration screen. You can then click-and-drag to create one line. The configured application will count objects going across this line in both directions. When satisfied with your sensor, click
Add Sensor
to confirm your selection.
Presence Sensor
The Presence Sensor will count the number of the chosen object in a configured space of the image. To create a Presence Sensor, select
Presence
and the type of object you'd like to detect using the
drop-down
menus on the right side of the configuration screen. You can then click up to 10 corners (in clockwise order) of the desired location of the virtual Presence Sensor, as shown below. Next, press
Add Sensor
to confirm your selection.
Deleting a Sensor
You can delete an 'added' sensor by clicking on it and choosing 'Delete Sensor.'
Saving Configuration and Starting Service
Once you are satisfied with your virtual sensor configurations, click 'Save Config' at the top left of the configuration page and the configuration will be saved to the device. Once done, navigate back to the Device Settings page for the device and start the configured service by clicking the 'Play' arrow start button under the services section.
The service's status should now turn to 'RUNNING' and the device will begin collecting data.