balena-io-experimental / sense-people

Count people passing by, display it nicely with a Grafana dashboard.
7 stars 3 forks source link
aai alwaysai balena balena-sense balenacloud balenaos computer-vision

People counter + balenaSense demo

This project combines balenaSense with the people counter demo from alwaysAI. It creates a grafana dashboard that shows the video stream from alwaysAI with aditional metrics.

Required hardware

Before you start

  1. Plug the USB webcam (unless you are using an IP camera) and the USB WiFi dongle into the Jetson Nano
  2. Fit a jumper to J48 on the Jetson Nano board (instructions)
  3. Flash the SD card, and you are good to go!

Usage: Visualization

To visualize statistics and a video stream:

Note that the grafana dashboard will show both stats and the alwaysAI stream so it's better for a live demo.

Usage: Change object detection model

You can change the model that is used to perform object detection via the OBJECT_DETECTION_MODEL environment variable:

Neural Network Framework Dataset Model OBJECT_DETECTION_MODEL value  Reference inference time
caffe COCO MobileNet SSD mobilenet_ssd (default) 400 msec
darknet COCO Yolo v2 tiny yolo_v2_tiny 60 msec
darknet VOC0712 Yolo v2 tiny yolo_v2_tiny_voc 70 msec
darknet COCO Yolo v3 tiny yolo_v3_tiny 60 msec

Usage: Use an IP camera

You can add an RSTP feed url via the IP_CAMERA_FEED environment variable. Examples:

rtsp://192.168.1.10:88

With a video stream defined:

rtsp://192.168.1.10:88/mainVideo

Feed with authentication:

rtsp://username:password@192.168.1.10