Joe-KI333 / Yolov7-Object-Counter

Object Counting with the newest yolov7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please read first "README" before browsing the code

Ready-to-use Google Colab file exists. you can copy this file and run it on your colab. File: https://colab.research.google.com/drive/1Bezq6IpAraT8Ee0v8flEJco6wsLn0T3I?usp=sharing

  • There are steps for applying object counter on images and videos

Yolov7-Object-Counter

Object Counting with the newest yolov7

videoo.mp4

Features

  • Count all objetcs by classes and works perfetcly on every image or on a video
  • Code can run on Both (CPU & GPU)
  • Video/WebCam/External Camera/IP Stream Supported

It is super easy to run

  • We are going to copy offical yolov7 github page and just add "detect_and_count.py" file. That is all
  • When you use Google Colab for codes, it will be way easier than working on the local computer

Steps to run Code

  • clone the repository:
  • git clone https://github.com/WongKinYiu/yolov7
  • %cd yolov7
  • install yolov7 model
  • !wget "https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt"

Upgrade pip with mentioned command below.

pip install --upgrade pip

Install requirements with mentioned command below.

pip install -r requirements.txt

Using counter

!python detect_and_count.py --weights /content/yolov7/yolov7.pt --conf 0.1 --source /content/yolov7/inference/images

Results!

ffdsfdfd indir

References

About

Object Counting with the newest yolov7

License:Apache License 2.0


Languages

Language:Jupyter Notebook 80.2%Language:Python 19.7%Language:Shell 0.1%Language:Dockerfile 0.0%