Deployment#
Customize Location#
The default configurations and sample streams are designed for a specific location. To deploy the blueprint for your own location, you must complete the following steps:
Create calibration files: Generate calibration files for your cameras. Refer to Calibration for detailed instructions.
Update configuration files: Modify the relevant configuration files to reflect your environment settings, see details below for each deployment method.
Configure your video streams: Obtain and configure the video streams for your deployment location.
The sections below describe the configuration changes required for each deployment method.
Docker Compose#
Update location information for the city in the
deployments/smartcities/smc-app/vss-behavior-analytics/configs/vss-behavior-analytics-kafka-config.jsonfileIn this file, update the
osmQueryPlaceparameter to the name of your city. The value here is based on the OSM naming scheme. If this is incorrectly set, you will see errors in thevss-behavior-analytics-smccontainer logs and will not see any behavior output in Kibana.
Replace the
calibration.jsonandroad-network.jsonfiles indeployments/smartcities/smc-app/calibration/sample-datawith the files generated by the Calibration process.Alternatively, you can upload these via the UI or API once the deployment is up. To use the UI, go to the
http://<HOST_IP>:3002endpoint and upload the files. For the API, make a POST request tohttp://<HOST_IP>:8081/config/upload-file/calibrationwith the json as a payload for calibration andhttp://<HOST_IP>:8081/config/upload-file/road-networkwith the json as a payload for road-network.
Delete (or move) all video files in the
$(MDX_DATA_DIR)/videos/smc-appdirectory so that they are not auto loaded on deployment. You can then either replace the videos here with your own or keep this directory empty. Make sure that the file name matches exactly what you have in the calibration file otherwise the videos will not be mapped correctly by Analytics.Redeploy the blueprint.
Navigate to VST at
http://<HOST_IP>:30888/vst/#/dashboardand add your RTSP streams.If you copied streams to the folder mentioned above, those streams should automatically show up here. If you have video files instead and did not copy them to the above folder, you can upload them to NVStreamer via the UI at
http://<HOST_IP>:31000then use the RTSP stream link provided and add to VST.Make sure that if you are manually adding streams to VST that the sensor name set matches exactly what you have in the calibration file otherwise the videos will not be mapped correctly by Analytics.
For additional details on how to use VST, check the VST docs page and for additional details on how to use NVStreamer, check the NVStreamer docs page.