monjha b3430e70e1 nvdsmeta_5.1 | 2 years ago | |
---|---|---|
bin | 4 years ago | |
config | 3 years ago | |
images | 4 years ago | |
includes | 2 years ago | |
LICENSE.md | 4 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
deepstream_nvdsanalytics_meta.cpp | 4 years ago | |
deepstream_test5_app_main.c | 4 years ago |
People count application With Deepstream SDK and Transfer Learning Toolkit
This is a sample application for counting people entering/leaving in a building using NVIDIA Deepstream SDK, Transfer Learning Toolkit (TLT) and pre-trained models. This application can be used to build real-time occupancy analytics application for smart buildings, hospitals, retail, etc. The application is based on deepstream-test5 sample application.
It takes streaming video as input, counts the number of people crossing a tripwire and sends the live data to the cloud. In this application, you will learn:
You can extend this application to change region of interest, use cloud-to-edge messaging to trigger record in the DeepStream application or build analytic dashboard or database to store the metadata.
To learn how to build this demo step-by-step, check out the on-demand webinar on Creating Intelligent places using DeepStream SDK.
Install Deepstream: [https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide/deepstream_quick_start.html#]
Download PeopleNet model: [https://ngc.nvidia.com/catalog/models/nvidia:tlt_peoplenet]
This application is based on deepstream-test5 application. More about test5 application: [https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide/deepstream_reference_app_test5.html]
Install Kafka: [https://kafka.apache.org/quickstart] and create the kafka topic:
tar -xzf kafka_2.13-2.6.0.tgz
cd kafka_2.13-2.6.0
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
cd deepstream-occupancy-analytics/config && ./model.sh
cd deepstream-occupancy-analytics && make
./deepstream-test5-analytics -c config/test5_config_file_src_infer_tlt.txt
In another terminal run this command to see the kafka messages:
bin/kafka-console-consumer.sh --topic quickstart-events --from-beginning --bootstrap-server localhost:9092
The output will look like this:
Where you can see the kafka messages for entry and exit count.