0% found this document useful (0 votes)
51 views4 pages

1 People - Counting - Project

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

PEOPLE COUNTING PROJECT REPORT

TEAM MEMBERS
Abhinav A 4NM19IS002
Adithi Bhakta 4NM19IS006
Adithi Putturaya 4NM19IS007

MENTOR
Dr. Bola Sunil Kamath
Assistant Professor Gd – III
Department of ISE
In this python project, we are going to build the Human Detection and
Counting System through video or images. This is an intermediate level
deep learning project on computer vision, which will help us to master the
concepts.

The libraries that we have used:


• OpenCV: A strong library used for machine learning
• Imutils: To Image Processing
• Numpy: Used for Scientific Computing. Image is stored in a
numpy array.
• Argparse: Used to give input in command line.

Histogram of Oriented Gradient Descriptor

HOG is a feature descriptor used in computer vision and image processing


for the purpose of object detection. This is one of the most popular
techniques for object detection, to our fortune, OpenCV has already been
implemented in an efficient way to combine the HOG Descriptor
algorithm with Support Vector Machine or SVM.

Steps To Build People Counting Project

1.Import the libraries

2. Create a model which will detect Humans:


We will use HOGDescriptor with SVM already implemented in OpenCV.

3. Detect() method:
Video: A video combines a sequence of images to form a moving picture.
We call these images as Frame. So in general we will detect the person in
the frame. And show it one after another that it looks like a video.
That is exactly what our Detect() method will do. It will take a frame to
detect a person in it. Make a box around a person and show the frame and
return the frame with person bounded by a green box.

4. HumanDetector() method
There are two ways of getting Video.

1. Web Camera
2. Path of file stored

In this project, we can take images also. So our method will check if a path
is given then search for the video or image in the given path and operate.

5. DetectByPathVideo() method
This method is very similar to the previous method except we will give a
path to the Video. First, we check if the video on the provided path is found
or not.

6. DetectByPathimage() method
This method is used if a person needs to be detected from an image.

7. Argparse() method
The function argparse() simply parses and returns as a dictionary the
arguments passed through your terminal to our script. There will be Three
arguments within the Parser:

1. Image: The path to the image file inside your system


2. Video: The path to the Video file inside your system
3. Camera: A variable that if set to ‘true’ will call the cameraDetect()
method.
Project output:

Conclusion:

In this deep learning project, we have learned how to create a people


counter using HOG and OpenCV to generate an efficient people counter.
We developed the project where you can supply the input as: video, image,
or even live camera. This is an intermediate level project, which will surely
help you in mastering python and deep learning libraries

References: https://data-flair.training/blogs/python-project-real-time-
human-detection-counting/

You might also like