GithubHelp home page GithubHelp logo

dogank01 / yolov7-object-counter Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 6.0 33.58 MB

Object counting with Yolov7.

License: Apache License 2.0

Python 1.20% Shell 0.01% Jupyter Notebook 98.79% Dockerfile 0.01%
artificial-intelligence classification computer-vision deep-learning machine-learning object-classification object-counting object-detection object-recognition python

yolov7-object-counter's Introduction

YOLOV7-OBJECT-COUNTER

How to run Code

  • clone the repository:
  • git clone https://github.com/DoganK01/YOLOV7-OBJECT-COUNTER
  • %cd content/YOLOV7-OBJECT-COUNTER/yolov7-main
  • %%bash
  • wget https://raw.githubusercontent.com/WongKinYiu/yolov7/u5/requirements.txt
  • pip install -r requirements.txt
  • wget -P /content/YOLOV7-OBJECT-COUNTER/yolov7-main/weights https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7x.pt

Upgrade pip

  • pip install --upgrade pip

Using counter example:

  • For Object Counter 1:

  • !python detect.py --weights /content/YOLOV7-OBJECT-COUNTER/yolov7-main/weights/yolov7x.pt --conf 0.5 --img-size 640 --source YOLOSample.mp4 --no-trace

  • For Object Counter 2:

  • !python detect_and_count.py --weights /content/YOLOV7-OBJECT-COUNTER/yolov7-main/weights/yolov7x.pt --conf 0.5 --img-size 640 --source YOLOSample.mp4 --no-trace

Result:

detect.py (Object Counter 1)

image

detect_and_count.py (Object Counter 2) (This code is without red lines and "Close People in Pairs" text.)

You can find the mentiond project here: https://github.com/DoganK01/YOLOV7-OBJECT-COUNTER-V1.2

203449682-0fe883a2-d7eb-4398-95e5-96be797b0f5f.1.mp4

Sample Videos

Sample 1 : https://www.youtube.com/watch?v=d2_-UikpuLc

Sample 2 : https://www.youtube.com/watch?v=dhr5JtKD774

yolov7-object-counter's People

Contributors

dogank01 avatar

Stargazers

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

Watchers

 avatar  avatar

yolov7-object-counter's Issues

Count with Increment

Hello Dogan,

great Repo. I have a question. I want to count the total amount of classes that were detected and increment the number and not just count the amount that is currently seen. So it should only increase.
I want to do this on my Jetson Nano and would appreciate your help.

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.