- Object Counting Crossing Area
- Base Layout Bootstrap
- Layouting - Livestream
- start & stop stream
- reset counter
- change counter mode
- Run flask app as Systemd service
- New mode,
multiline
- Abble to append multiple line as counter crossing.
- just define
counter = Counter(classes, mode='multiline', lines=lines)
, - and add multiple lien using
lines.append()
before creatingcounter
object, - Run
object_counter/object_counting_flask_async.py
,python3 object_counter/object_counting_flask_async.py
- Merge with Object Detection service
- Project directory :
layouting_livestream/
- Run application :
python3 layouting_livestream_p1/app.py
- Layout :
- Add control button
- Project directory :
layouting_livestream/
- Run application :
python3 layouting_livestream_p2/app.py
- Add Card output
- Project directory :
layouting_livestream/
- Run application :
python3 layouting_livestream_p3/app.py
- Layout :
- Create systemd service with name
object-counter.service
using nano editor :
sudo nano /lib/systemd/system/object-counter.service
- Paste systemd config below,
[Unit]
Description=Object Counter Service
After=multi-user.target
[Service]
WorkingDirectory=<directory location of app.py>
User=<jetson nano user>
Type=idle
ExecStart=/usr/bin/python3 layouting_livestream_p3/app.py
Restart=always
[Install]
WantedBy=multi-user.target
- Change
User=<jetson nano user>
to your jetson nano user. - Change
WorkingDirectory=<directory location of app.py>
to directory location, - Close and save using CTRL + X followed by CTRL + Y
- Run bellow command to activate service,
sudo systemctl daemon-reload
sudo systemctl enable object-counter.service
sudo systemctl start object-counter.service
- Check Service status,
sudo systemctl status object-counter.service
- Restrat Service,
sudo systemctl restart object-counter.service
- Stop Service,
sudo systemctl stop object-counter.service