├── .idea
├── .gitignore
├── .name
├── CS 591 - 3rd Year Project (Anirban Laxman).iml
├── inspectionProfiles
│ └── profiles_settings.xml
├── misc.xml
├── modules.xml
└── vcs.xml
├── Crowd_Report.pdf
├── Images
├── Crowd_Report.docx
├── Crowd_Report.png
├── IMG.jpg
├── Screenshot_20210918-145120_Chrome.jpg
├── Screenshot_20210918-145240_Chrome.jpg
├── Screenshot_20210918-145710_Chrome.jpg
├── Template Image.jpg
├── f1.jpg
├── f2.jpg
├── front1.png
├── front2.png
├── icon.ico
├── icon.jpg
├── image1.jpg
├── image2.png
├── image3.jpg
├── img1.jpg
├── img2.jpg
├── img3.jpg
├── pdf_logo.png
└── pdf_logo_down.png
├── LICENSE
├── PPT + Report
├── Final PPT.ppt
├── Final Report.docx
├── Final Report.pdf
├── JETIR2205586.pdf
├── JETIR2205586_Certificate.pdf
├── Project_proposal.docx
├── Project_proposal.pdf
└── Weekly Update.ppt
├── README.md
├── Sample Images and Videos
├── Screenshot_20210918-145120_Chrome.jpg
├── Screenshot_20210918-145240_Chrome.jpg
├── Screenshot_20210918-145710_Chrome.jpg
├── img1.jpg
├── img2.jpg
├── img3.jpg
├── vid.webm
├── vid1.mp4
├── vid2.mp4
├── vid3.mp4
├── vid4.mp4
└── vid5.mp4
├── Screenshots
├── 1.jpg
├── 10.jpg
├── 11.jpg
├── 12.jpg
├── 13.jpg
├── 14.jpg
├── 15.jpg
├── 16.jpg
├── 17.jpg
├── 18.jpg
├── 19.jpg
├── 2.jpg
├── 20.jpg
├── 21.jpg
├── 22.jpg
├── 23.jpg
├── 3.jpg
├── 4.jpg
├── 5.jpg
├── 6.jpg
├── 7.jpg
├── 8.jpg
└── 9.jpg
├── __pycache__
├── persondetection.cpython-310.pyc
├── persondetection.cpython-311.pyc
├── persondetection.cpython-38.pyc
└── persondetection.cpython-39.pyc
├── frozen_inference_graph.pb
├── haarcascade_fullbody.xml
├── main.py
├── persondetection.py
└── requirements.txt
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | main.py
--------------------------------------------------------------------------------
/.idea/CS 591 - 3rd Year Project (Anirban Laxman).iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Crowd_Report.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Crowd_Report.pdf
--------------------------------------------------------------------------------
/Images/Crowd_Report.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Crowd_Report.docx
--------------------------------------------------------------------------------
/Images/Crowd_Report.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Crowd_Report.png
--------------------------------------------------------------------------------
/Images/IMG.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/IMG.jpg
--------------------------------------------------------------------------------
/Images/Screenshot_20210918-145120_Chrome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Screenshot_20210918-145120_Chrome.jpg
--------------------------------------------------------------------------------
/Images/Screenshot_20210918-145240_Chrome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Screenshot_20210918-145240_Chrome.jpg
--------------------------------------------------------------------------------
/Images/Screenshot_20210918-145710_Chrome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Screenshot_20210918-145710_Chrome.jpg
--------------------------------------------------------------------------------
/Images/Template Image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/Template Image.jpg
--------------------------------------------------------------------------------
/Images/f1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/f1.jpg
--------------------------------------------------------------------------------
/Images/f2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/f2.jpg
--------------------------------------------------------------------------------
/Images/front1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/front1.png
--------------------------------------------------------------------------------
/Images/front2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/front2.png
--------------------------------------------------------------------------------
/Images/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/icon.ico
--------------------------------------------------------------------------------
/Images/icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/icon.jpg
--------------------------------------------------------------------------------
/Images/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/image1.jpg
--------------------------------------------------------------------------------
/Images/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/image2.png
--------------------------------------------------------------------------------
/Images/image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/image3.jpg
--------------------------------------------------------------------------------
/Images/img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/img1.jpg
--------------------------------------------------------------------------------
/Images/img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/img2.jpg
--------------------------------------------------------------------------------
/Images/img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/img3.jpg
--------------------------------------------------------------------------------
/Images/pdf_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/pdf_logo.png
--------------------------------------------------------------------------------
/Images/pdf_logo_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/Images/pdf_logo_down.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Akash Rajak
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/PPT + Report/Final PPT.ppt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Final PPT.ppt
--------------------------------------------------------------------------------
/PPT + Report/Final Report.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Final Report.docx
--------------------------------------------------------------------------------
/PPT + Report/Final Report.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Final Report.pdf
--------------------------------------------------------------------------------
/PPT + Report/JETIR2205586.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/JETIR2205586.pdf
--------------------------------------------------------------------------------
/PPT + Report/JETIR2205586_Certificate.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/JETIR2205586_Certificate.pdf
--------------------------------------------------------------------------------
/PPT + Report/Project_proposal.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Project_proposal.docx
--------------------------------------------------------------------------------
/PPT + Report/Project_proposal.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Project_proposal.pdf
--------------------------------------------------------------------------------
/PPT + Report/Weekly Update.ppt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akash-rajak/Real-Time-Human-Detection-Counting/d7c9a6beeba27f6dd6ff7722a841de82c00074c6/PPT + Report/Weekly Update.ppt
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## ✔ REAL TIME HUMAN DETECTION & COUNTING
2 | - A tensorflow based `Faster RCNN inception v2` python model to detect and count humans in real time images, videos & camera.
3 | - Used pre-trained `frozen_inference_graph.pb` frozen graph to handle the detection.
4 | - Visualize the data using `Enumeration Plot` and `Avg. Accuracy Plot`.
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
69 |
70 | ****
71 |
72 | ### 📌REQUIREMENTS :
73 | - python 3
74 | - tkinter
75 | - messagebox
76 | - PIL
77 | - cv2
78 | - argparse
79 | - matplotlib.pyplot
80 | - numpy
81 | - time
82 | - os
83 | - tensorflow
84 | - fpdf
85 |
86 | ****
87 |
88 | ### 📌How this Script works :
89 | - User just need to download the file and run the main.py on their local system.
90 | - On the starting window of the application, user will be able to see START and EXIT option, using which user can start the application or exit from the application.
91 | - When user starts the application using START button, a new window will open, which allows user with options like, DETECT FROM IMAGE, DETECT FROM VIDEO or DETECT FROM CAMERA.
92 | - When user selects any of the first two option, he/she needs to select the respective files using SELECT button.
93 | - User can preview the selected file using PREVIEW button, and detect and count the humans using DETECT button.
94 | - And when user selects, the last option of detecting through camera, user need to open the Camera, using OPEN CAMERA button, As soon as camera opens, detection process will start.
95 | - After detection process gets completed or user manually completes it, two graph get plotted,
96 | - 1.) Enumeration Plot(Human Count Vs. time) and
97 | - 2.) Avg. Accuracy Plot(Avg. Accuracy Vs. time).
98 | - Along with this two plots, an option to generate crowd report also appears, On clicking on it, a crowd report in form of PDF is generated ans saved autmatically at the project file location.
99 | - In the crowd report genrated, there will be information like, What is Max Human Count, Max Accuracy, Max Avg. Accuracy, and also a two line status about crowd.
100 |
101 | ### 📌Purrpose :
102 | - This scripts helps user to easily get the count of human through real time image, video or camera, and thereafter also analysis of crowd through crowd report.
103 |
104 | ### 📌Compilation Steps :
105 | - Install all the required libraries.
106 | - After that download the code file, and run main.py on local system.
107 | - Then the script will start running and user can explore it by detecting the human and also getting the count of it.
108 |
109 | ****
110 |
111 | ### 📌SCREENSHOTS :
112 |
113 |