Giter Club home page Giter Club logo

-jetson-nano's Introduction

Real-Time-Object-Counting-by-Jetson-Nano

  • Object Counting Crossing Area
  • Base Layout Bootstrap
  • Layouting - Livestream
    • start & stop stream
    • reset counter
    • change counter mode
  • Run flask app as Systemd service

1. Object Counting Crossing Area

  • 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 creating counter object,
  • Run object_counter/object_counting_flask_async.py,
    python3 object_counter/object_counting_flask_async.py
    

2. Base Layout Bootstrap

  • Wireframe UI
    • Home screen :
  • Project directory :
    • base_layout/
  • Run application :
    python3 base_layout/app.py
    
  • Layout :

3. Layouting - Livestream (part 1)

  • Merge with Object Detection service
  • Project directory :
    • layouting_livestream/
  • Run application :
    python3 layouting_livestream_p1/app.py
    
  • Layout :

4. Layouting - Livestream (part 2)

  • Add control button
  • Project directory :
    • layouting_livestream/
  • Run application :
    python3 layouting_livestream_p2/app.py
    

5. Layouting - Livestream (part 4)

  • Add Card output
  • Project directory :
    • layouting_livestream/
  • Run application :
    python3 layouting_livestream_p3/app.py
    
  • Layout :

6. Run Flask App as Systemd Service

  • 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

-jetson-nano's People

Contributors

r-mahmoudi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.