Counting Close People with Yolov7
- Censoring and counting all cigarettes on the screen and saving smoker's faces in the folder or any database
- Useful for public non-smoking areas
- Code can run on Both (CPU & GPU)
- Video/WebCam/External Camera/IP Stream Supported
- clone the repository:
!git clone https://github.com/DoganK01/YOLOV7-OBJECT-COUNTER-V1.2.git
cd /content/YOLOV7-OBJECT-COUNTER-V1.2
pip install --upgrade pip
!pip install -r requirements.txt
%%bash
wget -P /content/YOLOV7-OBJECT-COUNTER-V1.2/weights https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7x.pt
!pip install --upgrade pyyaml==5.3.1
!python detect.py --weights /content/Yolov7-Close-People-Counter/weights/yolov7x.pt --source /content/Yolov7-Close-People-Counter/inference/images/bus.jpg --no-trace