This guide will walk through the steps required to port an RTSP stream into the DNNNode for data collection using the Web UI, the Data Acquisition service, and an AI application.
As most IP cameras have login requirements for connections to the RTSP stream, you will need to format the RTSP stream URL in the following way:
rtsp://{username}:{password}@{ipAddress}/{path}
For example, an Avigilon camera with the login of u:admin, pw:admin, IP:192.168.1.123 would have the following RTSP URL:
rtsp://admin:admin@192.168.1.123/defaultPrimary?streamType=u
When powered up and connected to the network, the DNNNode will produce a Web UI client. This can be accessed by visiting the device’s IP address in a browser. The default page should be the ‘Live View’ page, and will be empty when no streams are added.
Now, navigate to the ‘Live View’ page and verify that the stream preview has populated properly, as shown in the image below.
Once the RTSP connection has been established and verified via the Web UI, we can move onto getting the services configured.
The data acquisition container is used to pull frames from the RTSP stream that will later be used in the virtual sensor configuration tool.
Navigate to the Boulder AI Platform and login to your account. From the devices page, choose your DNNNode from the list to open the Device Details page for your Node.
In the Data Acquisition configuration page, choose the proper codec, set the input type to rtsp, and enter the formatted RTSP URL in the Input Source field. Make sure that the image uploads are turned on and set the Crontab Direct Entry to pull a frame every minute. A frame should populate in the next few minutes after saving this configuration. (after configuration, feel free to turn down the frequency of uploads)
After entering the configuration, scroll down to the bottom and select ‘Save and Export Settings.’
The Data Acquisition container will now upload a from from the RTSP stream on the next Crontab trigger (the next minute in this case). You can refresh the Device Page until you see the image come up at the top left of the page after a couple minutes.
Under the services panel, locate your AI application and open it's configuration page. (i.e. TrafficCounter, PeopleCounter, or Mobility Services/ObjectDetector
Now, go to the 'Sensor Configuration' page. Here, set the Input Type to rtsp and set the Input Source field to the formatted RTSP URL from before.
After entering your configuration, click the 'Save' button at the top right to save the config to your device.