The E2E sample implements aspects of smart city sensing, analytics and management features as follows:
- Camera Provisioning: Tag and calibrate cameras for installation locations, calibration parameters and other usage pattern information.
- Camera Discovery: Discover and registr IP cameras on specified IP blocks. Registered cameras automatically participate into the analytics activities. See Sensor README for additional details.
- Recording: Record and manage segmented camera footage for preview or review (at a later time) purpose.
- Analytics: Perform analytics on the live/recorded camera streams. Latency-sensitive analytics are performed on Edge while others are on cloud.
- Triggers and Alerts: Manage triggers on analytics data. Respond with actions on triggered alerts.
- Smart Upload and Archive: Transcode and upload only critical data to cloud for archival or further offline analysis.
- Stats: Calculate satistics for planning/monitoring purpose on analytical data.
- UI: Present above data to users/administrators/city planners.
The sample showcases the following pipeline operations using the Open Visual Cloud software stacks:
- Edge Low-latency Analytics:
- Smart Upload with Transcoding:
The following diagram illustrates how the sample is constructed: a set of services each retrieves the work order by querying the database and submits the processing results back into the database. See also content search.
(1) Install docker engine.
(2) Install docker compose, if you plan to deploy through docker compose. Version 1.20+ is required.
(3) Setup docker swarm, if you plan to deploy through docker swarm. See docker swarm setup for additional setup details.
(4) sudo mkdir -p /etc/systemd/system/docker.service.d
(5) printf "[Service]\nEnvironment=\"HTTPS_PROXY=$https_proxy\" \"NO_PROXY=$no_proxy\"\n" | sudo tee /etc/systemd/system/docker.service.d/proxy.conf
(6) sudo systemctl daemon-reload
(7) sudo systemctl restart docker
(1) mkdir build
(2) cd build
(3) cmake ..
(4) make
Use the following commands to start/stop services via docker swarm:
(1) make start_docker_swarm
(2) make stop_docker_swarm
Use the following commands to start/stop services via docker-compose:
(1) make start_docker_compose
(2) make stop_docker_compose
Launch your browser and point to https://localhost
. Note that if you see a browser warning of self-signed certificate, please accept it to proceed to the sample UI.