Giter VIP home page Giter VIP logo

jetson_nano_people_counting's Introduction

Real-Time People Tracking and Counting on Jetson Nano

MobileNetV1-SSD based Person Detection + SORT Tracking

Prerequisite

Jetson Nano - JetPack 4.5

Install Dependencies

  1. Clone this repository.

    $ git clone https://github.com/JardinRyu/Jetson_Nano_People_Counting
    $ cd Jetson_Nano_People_Counting/
  2. Install requirements.

    # The installation process can take several hours. So be patient...
    # ${HOME}/Jetson_Nano_People_Counting/
    $ ./install.sh
    $ cd ssd/
    # ${HOME}/Jetson_Nano_People_Counting/ssd/
    $ ./install.sh
    $ ./build_engines.sh

Usage

  1. Run from USB Camera

    # CameraID = 0  
    $ python3 usbcam_tracking.py
  2. Run from MIPI Camera (ex. Raspberry pi Cam v2)

    $ python3 mipicam_tracking.py

References

jetson_nano_people_counting's People

Contributors

jardinryu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jetson_nano_people_counting's Issues

cannot import InvalidSchemeCombination

Hi, when I tried to install requirements I got ;
Import Error : cannot import InvalidSchemeCombination errror and I searched it but I can not find any solution about it, could you help me?
Python version : 3.6
Ubuntu version 18.4 and it says that latest pip version is 19. sth .

SSD_mobilenet_v1_coco not building under tensorrt 8.*

Hi. Trying to build this project for my 4gb model Jetson Nano.
The image comes with tensorrt 8.* ,
When the time comes to build SSD_mobilenet_v1_coco, it fails.

error seems to be the builder creation in build_engine.py

I need paid help from this code.

Hello,

Iam want use your code in a production project but, after same hours the script crash and not working anymore (the script fills up all the jetson's RAM causing it to crash.).

Could you help me? I can pay you for it, it's a very important project, I appreciate your help.

Sorry for open this issue but, i tried contact in: [email protected] but without success.

Please contact-me at, [email protected]

If I use my own yolov5 detecotr

I have run this repo with SSD mobilenet successfully. Now I want to use my own yolov5 tensorrt model.
I changed utils/ssd.py line 49-57 to

def _load_plugins(self):
        if trt.__version__[0] < '7':
            # ctypes.CDLL("ssd/libflattenconcat.so")
            PLUGIN_LIBRARY = "yolov5/libmyplugins.so"
            ctypes.CDLL(PLUGIN_LIBRARY)
        trt.init_libnvinfer_plugins(self.trt_logger, '')
def _load_engine(self):
        TRTbin = "yolov5/best.engine"
        # TRTbin = 'ssd/TRT_%s.bin' % self.model
        with open(TRTbin, 'rb') as f, trt.Runtime(self.trt_logger) as runtime:
            return runtime.deserialize_cuda_engine(f.read())

Should I change something else to make sure the code can run?

ImportError: cannot import name 'InvalidSchemeCombination' Jetpack 4.6

Hello, install.sh is not successful with this error, any help?

File "/usr/local/lib/python3.6/dist-packages/pip/_internal/locations/init.py", line 14, in
from . import _distutils, _sysconfig
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/locations/_sysconfig.py", line 8, in
from pip._internal.exceptions import InvalidSchemeCombination, UserInstallationInvalid
ImportError: cannot import name 'InvalidSchemeCombination'

Jetson nano -- Getting error

Getting following error while running progarm on Jetson Nano B01
(Linux -------nvidia 4.9.253-tegra #1 SMP PREEMPT Mon Jul 26 12:13:06 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux). Please help how to solve the error.

sudo python3 mipicam_tracking.py
Traceback (most recent call last):
File "mipicam_tracking.py", line 8, in
from filterpy.kalman import KalmanFilter
File "/usr/local/lib/python3.6/dist-packages/filterpy/kalman/init.py", line 22, in
from .EKF import *
File "/usr/local/lib/python3.6/dist-packages/filterpy/kalman/EKF.py", line 28, in
from filterpy.stats import logpdf
File "/usr/local/lib/python3.6/dist-packages/filterpy/stats/init.py", line 22, in
from .stats import *
File "/usr/local/lib/python3.6/dist-packages/filterpy/stats/stats.py", line 32, in
from scipy.stats import norm, multivariate_normal
File "/usr/lib/python3/dist-packages/scipy/stats/init.py", line 348, in
from .stats import *
File "/usr/lib/python3/dist-packages/scipy/stats/stats.py", line 177, in
from . import distributions
File "/usr/lib/python3/dist-packages/scipy/stats/distributions.py", line 13, in
from . import _continuous_distns
File "/usr/lib/python3/dist-packages/scipy/stats/_continuous_distns.py", line 15, in
from scipy._lib._numpy_compat import broadcast_to
File "/usr/lib/python3/dist-packages/scipy/_lib/_numpy_compat.py", line 10, in
from numpy.testing.nosetester import import_nose
ModuleNotFoundError: No module named 'numpy.testing.nosetester'

JEtpack

/Does it apply to jetpack 4.4

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.