SlideShare a Scribd company logo
1 of 25
7th Semester PROJECT (CS702D)
Mentored By – Mr. KRISHNA
KANT PRASAD
REAL-TIME HUMAN
DETECTION
& COUNTING
Submitted to….
Degreeof Bachelor of Technologyin Computer Science & Engineering
Name Reg No.
ARBAZ AHMAD 20040440009
MD.NAUSHAD ANSARI 20040440019
VINEET KUMAR 20040440042
UJJWAL KUMAR 20040440040
SHUBHAM BHAGAT 20040445019
MEMBERS
 A real life application of human object detection model.
 Use of Image Processing, Video Processing, Object
Detection and Deep neural networks are used which are
rigorous parts of modern Artificial Intelligence.
 The project will focus on human object detection and
count of people in an image or in a real time video
through camera or some other source.
 We’ve worked on three different methods and
algorithms to detect a human object in order of their
increasing accuracy.
INTRODUCTION
 The first one is Haar Cascade Classifier method in which
classifier for some objects are predefined.
 This method uses a xml file consisting of functions and
definitions of Image and Video processing.
 Since the most popular programming language featuring
AI is Python hence it is used.
 Usage of cv2 library helped linking with the xml cascade
file easily.
HAAR CASCADE CLASSIFIER
CREATING OUR OWN HAAR CLASSIFIER
THERE ARE FOUR SIMPLE STEPS O CREATE OUR OWN
CUSTOMIZED HAAR CASCADE CLASSIFIER FOR A
PARTICULAR OBJECT.
1.)CALCULATING HAAR FEATURES
2.)CREATING INTEGRAL IMAGES
3.)USING ADABOOST
4.)IMPLEMENTING CASCADING CLASSIFIERS
 An additional library Open CV is used to detect and
make program understand functions related to object
detection.
 Some of these functions are cvtColor(),
detectMultiScale(), rectangle() etc.
 The program is flexible and can be used with any video
extension(.mp4, .mkv, .ovi, etc.) which is taken as input
for human detection.
 First test video is used of a open area covering a large
number of people.
HAAR CASCADE CLASSIFIER
SAMPLE OUTPUT
• Further we have improved some user interfaces and added
some additional features.
• Used additional libraries like
• Imutils - a series of convenience functions to make basic image
processing functions such as translation, rotation, resizing,
skeletonization, and displaying Matplotlib images easier with OpenCV
and Python.
• Argparse – this module makes it easy to write user-friendly command-
line interfaces.
• Also worked on the labelling of the human body detected by
the program by the counter which tells us the count of the
number of people at that particular instance in the video.
FURTHER IMPROVEMENT
• Executed the program and got the output as
below with more accuracy on numbers
detected and got the labelling also.
FURTHER IMPROVEMENT
SAMPLE OUTPUT
• Added frontend part in the project. For this we used Tkinter
GUI and added different buttons and labels.
• Additional Libraries used:
• Tkinter – for frontend GUI window
• PIL – for adding images to the tkinter GUI window
• Messagebox from tkinter – to show any message using dialog box
• Filedialog – to select images and video using select buttons.
• When we run the code, a GUI window will open with START
and EXIT button on it.
GUI
GUI SAMPLE OUTPUT
GUI SAMPLE OUTPUT
• When we click on select button on image option, we get
option to select image from the local system and when click
on the detect button, an output image is shown which
detected human and their count.
GUI SAMPLE OUTPUT
• In the same way when we select video from the local system,
it will give the output by detecting the humans in the video.
DETECTION IN AN IMAGE
• We studied on how to increase the accuracy of no. of people
count in videos or images.
1. Using Haar Cascade Classifier
• Here we make use of .xml file for human detection, and using that we
detect the humans in real time videos and images.
• At the first we used this method to detect the persons, but the
accuracy was not good.
2. Using Histograms of Oriented Gradients (HOG)
• is a feature descriptor used in computer vision and image processing
for the purpose of object detection.
• We used this method, but got no measurable difference in accuracy
as in Haar Cascade Classifier method.
ANALYSIS OF FIRST TWO METHODS
• Along with HOG descriptor we also added the preview
button, with which it allows us to see the preview of the
image, video selected.
• After detecting, we also printed the max human count in the
window.
• And finally we’ve used a third method using tensorflow which
uses deep learning and convolutional neural network.
ANALYSIS OF FIRST TWO METHODS
3. Using TensorFlow and CNN with Deep Learning
• This is the for various computer vision problems such
as Image Classification , Object Detection and Object
Localization.
 TensorFlow is an open-source API from Google, which
is widely used for solving machine learning tasks that
involve Deep Neural Networks.
• CNNs were widely adapted third method which we are
learning to detect the humans using Deep Learning.
• This method gives better accuracy as compared to first
two methods, so further we are going to apply this
method for detecting and will definitely see some positive
result on the accuracy.
• We implemented the tensorflow method of detecting the
human using neural networks.
• And we got better accuracy as compared to the 1st method
that was Haar Cascade Classifier and the 2nd method that
was using HOG descriptor.
• Both the earlier method, gave almost the same accuracy and
only few humans are only getting detected but with tensorflow
method, accuracy increased very much and almost all the
humans got detected.
• And along with detecting and counting no. of humans, we
also got the accuracy of each human with which it is getting
detected.
3.Using TensorFlow and CNN with Deep Learning
• The sample screenshot accuracy increased with tensorflow is
as follows:
• Here for each detected human, the first term is count and the
second term is the accuracy of detection.
SAMPLE OUTPUT
• After detection and counting process, we plotted the two
following plot using the data collected.
• 1st is Enumeration Plot :
GRAPH PLOTTING
• 2nd is Avg. Accuracy plot :
GRAPH PLOTTING
• And finally we are
preparing a pdf report
in which we are
putting max. human
detected, max.
accuracy and max.
average accuracy.
• In the final pdf report,
we are commenting
according to the
crowd status in that
particular real time
video.
CROWD REPORT
CONCLUSION
• Conclusively, the project was a real fun
throughout the semester. We have learned a lot
in the field of computer vision and object
detection techniques.
• this can be implemented in the commercial and
rushed areas for having an accurate human data
and for controlling the crowd.
REFRENCES
[1] Programming Computer Vision with Python, 1st Edition,
Jan Eric Solem, 2012, O’ Reily
[2] Learning OpenCv, Adrian Kaehler and Gary Rost
Bradski, 2008, O’Reily
[3] Deep Learning with Tensorflow, Giancarlo Zaccone, Md.
Rezaul Karim, Ahmed Menshawy, 2017
[4] Python GUI Programming with Tkinter, Alan D. Moore,
2018
[5] Python Standard Library, Fredrik Lundh, 2001, O’ Reily
THANK YOU

More Related Content

Similar to Final PPT.ppt about human detection and counting

Activity Recognition Using RGB-Depth Sensors-Final report
Activity Recognition Using RGB-Depth Sensors-Final reportActivity Recognition Using RGB-Depth Sensors-Final report
Activity Recognition Using RGB-Depth Sensors-Final reportnazlitemu
 
Real Time Sign Language Detection
Real Time Sign Language DetectionReal Time Sign Language Detection
Real Time Sign Language DetectionIRJET Journal
 
Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Vidyut Singhania
 
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Rohan Karunaratne
 
502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptxshrey4922
 
Yoga pose detection using deep learning project PPT.pptx
Yoga pose detection using deep learning project PPT.pptxYoga pose detection using deep learning project PPT.pptx
Yoga pose detection using deep learning project PPT.pptxssuser4f92fb
 
Emotion recognition using image processing in deep learning
Emotion recognition using image     processing in deep learningEmotion recognition using image     processing in deep learning
Emotion recognition using image processing in deep learningvishnuv43
 
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch  synopsis Minor project pptxTransfer Leaning Using Pytorch  synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptxAnkit Gupta
 
Emotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.pptEmotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.pptGopi Naidu
 
A Framework for Human Action Detection via Extraction of Multimodal Features
A Framework for Human Action Detection via Extraction of Multimodal FeaturesA Framework for Human Action Detection via Extraction of Multimodal Features
A Framework for Human Action Detection via Extraction of Multimodal FeaturesCSCJournals
 
AI UNIT 4 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 4 - SRCAS JOC.pptx enjoy this pptAI UNIT 4 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 4 - SRCAS JOC.pptx enjoy this pptPavankalayankusetty
 
Intelligent Video Surveillance System using Deep Learning
Intelligent Video Surveillance System using Deep LearningIntelligent Video Surveillance System using Deep Learning
Intelligent Video Surveillance System using Deep LearningIRJET Journal
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptxpranaykusuma
 
mini project report on visual writing.pptx
mini project report on visual writing.pptxmini project report on visual writing.pptx
mini project report on visual writing.pptxfreespace000xd
 

Similar to Final PPT.ppt about human detection and counting (20)

Activity Recognition Using RGB-Depth Sensors-Final report
Activity Recognition Using RGB-Depth Sensors-Final reportActivity Recognition Using RGB-Depth Sensors-Final report
Activity Recognition Using RGB-Depth Sensors-Final report
 
Face recognition system
Face recognition systemFace recognition system
Face recognition system
 
Python Open CV
Python Open CVPython Open CV
Python Open CV
 
Traffic Violation Detector using Object Detection
Traffic Violation Detector using Object DetectionTraffic Violation Detector using Object Detection
Traffic Violation Detector using Object Detection
 
Real Time Sign Language Detection
Real Time Sign Language DetectionReal Time Sign Language Detection
Real Time Sign Language Detection
 
Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Final Report on Optical Character Recognition
Final Report on Optical Character Recognition
 
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
 
502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx502021435-12345678Minor-Project-Ppt.pptx
502021435-12345678Minor-Project-Ppt.pptx
 
Yoga pose detection using deep learning project PPT.pptx
Yoga pose detection using deep learning project PPT.pptxYoga pose detection using deep learning project PPT.pptx
Yoga pose detection using deep learning project PPT.pptx
 
Emotion recognition using image processing in deep learning
Emotion recognition using image     processing in deep learningEmotion recognition using image     processing in deep learning
Emotion recognition using image processing in deep learning
 
Transfer Leaning Using Pytorch synopsis Minor project pptx
Transfer Leaning Using Pytorch  synopsis Minor project pptxTransfer Leaning Using Pytorch  synopsis Minor project pptx
Transfer Leaning Using Pytorch synopsis Minor project pptx
 
CV machine learning freelancer
CV machine learning freelancerCV machine learning freelancer
CV machine learning freelancer
 
Emotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.pptEmotion recognition and drowsiness detection using python.ppt
Emotion recognition and drowsiness detection using python.ppt
 
A Framework for Human Action Detection via Extraction of Multimodal Features
A Framework for Human Action Detection via Extraction of Multimodal FeaturesA Framework for Human Action Detection via Extraction of Multimodal Features
A Framework for Human Action Detection via Extraction of Multimodal Features
 
gyu.docx
gyu.docxgyu.docx
gyu.docx
 
AI UNIT 4 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 4 - SRCAS JOC.pptx enjoy this pptAI UNIT 4 - SRCAS JOC.pptx enjoy this ppt
AI UNIT 4 - SRCAS JOC.pptx enjoy this ppt
 
Intelligent Video Surveillance System using Deep Learning
Intelligent Video Surveillance System using Deep LearningIntelligent Video Surveillance System using Deep Learning
Intelligent Video Surveillance System using Deep Learning
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptx
 
Object recognition
Object recognitionObject recognition
Object recognition
 
mini project report on visual writing.pptx
mini project report on visual writing.pptxmini project report on visual writing.pptx
mini project report on visual writing.pptx
 

Recently uploaded

Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 

Recently uploaded (20)

Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 

Final PPT.ppt about human detection and counting

  • 1. 7th Semester PROJECT (CS702D) Mentored By – Mr. KRISHNA KANT PRASAD REAL-TIME HUMAN DETECTION & COUNTING Submitted to…. Degreeof Bachelor of Technologyin Computer Science & Engineering
  • 2. Name Reg No. ARBAZ AHMAD 20040440009 MD.NAUSHAD ANSARI 20040440019 VINEET KUMAR 20040440042 UJJWAL KUMAR 20040440040 SHUBHAM BHAGAT 20040445019 MEMBERS
  • 3.  A real life application of human object detection model.  Use of Image Processing, Video Processing, Object Detection and Deep neural networks are used which are rigorous parts of modern Artificial Intelligence.  The project will focus on human object detection and count of people in an image or in a real time video through camera or some other source.  We’ve worked on three different methods and algorithms to detect a human object in order of their increasing accuracy. INTRODUCTION
  • 4.  The first one is Haar Cascade Classifier method in which classifier for some objects are predefined.  This method uses a xml file consisting of functions and definitions of Image and Video processing.  Since the most popular programming language featuring AI is Python hence it is used.  Usage of cv2 library helped linking with the xml cascade file easily. HAAR CASCADE CLASSIFIER
  • 5. CREATING OUR OWN HAAR CLASSIFIER THERE ARE FOUR SIMPLE STEPS O CREATE OUR OWN CUSTOMIZED HAAR CASCADE CLASSIFIER FOR A PARTICULAR OBJECT. 1.)CALCULATING HAAR FEATURES 2.)CREATING INTEGRAL IMAGES 3.)USING ADABOOST 4.)IMPLEMENTING CASCADING CLASSIFIERS
  • 6.  An additional library Open CV is used to detect and make program understand functions related to object detection.  Some of these functions are cvtColor(), detectMultiScale(), rectangle() etc.  The program is flexible and can be used with any video extension(.mp4, .mkv, .ovi, etc.) which is taken as input for human detection.  First test video is used of a open area covering a large number of people. HAAR CASCADE CLASSIFIER
  • 8. • Further we have improved some user interfaces and added some additional features. • Used additional libraries like • Imutils - a series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python. • Argparse – this module makes it easy to write user-friendly command- line interfaces. • Also worked on the labelling of the human body detected by the program by the counter which tells us the count of the number of people at that particular instance in the video. FURTHER IMPROVEMENT
  • 9. • Executed the program and got the output as below with more accuracy on numbers detected and got the labelling also. FURTHER IMPROVEMENT
  • 11. • Added frontend part in the project. For this we used Tkinter GUI and added different buttons and labels. • Additional Libraries used: • Tkinter – for frontend GUI window • PIL – for adding images to the tkinter GUI window • Messagebox from tkinter – to show any message using dialog box • Filedialog – to select images and video using select buttons. • When we run the code, a GUI window will open with START and EXIT button on it. GUI
  • 14. • When we click on select button on image option, we get option to select image from the local system and when click on the detect button, an output image is shown which detected human and their count. GUI SAMPLE OUTPUT
  • 15. • In the same way when we select video from the local system, it will give the output by detecting the humans in the video. DETECTION IN AN IMAGE
  • 16. • We studied on how to increase the accuracy of no. of people count in videos or images. 1. Using Haar Cascade Classifier • Here we make use of .xml file for human detection, and using that we detect the humans in real time videos and images. • At the first we used this method to detect the persons, but the accuracy was not good. 2. Using Histograms of Oriented Gradients (HOG) • is a feature descriptor used in computer vision and image processing for the purpose of object detection. • We used this method, but got no measurable difference in accuracy as in Haar Cascade Classifier method. ANALYSIS OF FIRST TWO METHODS
  • 17. • Along with HOG descriptor we also added the preview button, with which it allows us to see the preview of the image, video selected. • After detecting, we also printed the max human count in the window. • And finally we’ve used a third method using tensorflow which uses deep learning and convolutional neural network. ANALYSIS OF FIRST TWO METHODS
  • 18. 3. Using TensorFlow and CNN with Deep Learning • This is the for various computer vision problems such as Image Classification , Object Detection and Object Localization.  TensorFlow is an open-source API from Google, which is widely used for solving machine learning tasks that involve Deep Neural Networks. • CNNs were widely adapted third method which we are learning to detect the humans using Deep Learning. • This method gives better accuracy as compared to first two methods, so further we are going to apply this method for detecting and will definitely see some positive result on the accuracy.
  • 19. • We implemented the tensorflow method of detecting the human using neural networks. • And we got better accuracy as compared to the 1st method that was Haar Cascade Classifier and the 2nd method that was using HOG descriptor. • Both the earlier method, gave almost the same accuracy and only few humans are only getting detected but with tensorflow method, accuracy increased very much and almost all the humans got detected. • And along with detecting and counting no. of humans, we also got the accuracy of each human with which it is getting detected. 3.Using TensorFlow and CNN with Deep Learning
  • 20. • The sample screenshot accuracy increased with tensorflow is as follows: • Here for each detected human, the first term is count and the second term is the accuracy of detection. SAMPLE OUTPUT
  • 21. • After detection and counting process, we plotted the two following plot using the data collected. • 1st is Enumeration Plot : GRAPH PLOTTING
  • 22. • 2nd is Avg. Accuracy plot : GRAPH PLOTTING
  • 23. • And finally we are preparing a pdf report in which we are putting max. human detected, max. accuracy and max. average accuracy. • In the final pdf report, we are commenting according to the crowd status in that particular real time video. CROWD REPORT
  • 24. CONCLUSION • Conclusively, the project was a real fun throughout the semester. We have learned a lot in the field of computer vision and object detection techniques. • this can be implemented in the commercial and rushed areas for having an accurate human data and for controlling the crowd.
  • 25. REFRENCES [1] Programming Computer Vision with Python, 1st Edition, Jan Eric Solem, 2012, O’ Reily [2] Learning OpenCv, Adrian Kaehler and Gary Rost Bradski, 2008, O’Reily [3] Deep Learning with Tensorflow, Giancarlo Zaccone, Md. Rezaul Karim, Ahmed Menshawy, 2017 [4] Python GUI Programming with Tkinter, Alan D. Moore, 2018 [5] Python Standard Library, Fredrik Lundh, 2001, O’ Reily THANK YOU