Monday, August 1, 2016

People Counter using OpenCV and Python

People counter system is counting system based on Image processing techniques to count human traffic at various places like Retail shops, Malls, Public places etc. The module was made using an RTSP stream from an overhead CCTV camera and processed through OpenCV library for Python. This Module was made at my internship.


 



fig.1 Snap of the people counter GUI



 The live video feed is taken frame by frame to process and morphological operations were applied to each frame to get rid of noises and get proper blobs. Next, using contours method we extract the co-ordinates of each blob and track them so that the blob can be counted in a region of frame. The accuracy of the counting depends on a number of factor such as height of camera, field of vision, camera angle, lighting etc..

Take a look at the video:





24 comments:

  1. Hello great job, I am very surprised at the work you've done, I would like to know a little more of this project and implement it for the university.

    We would like to know if you can share the source code to investigate and learn about image processing

    I am very grateful

    Thanks in advance,
    Christian

    ReplyDelete
    Replies
    1. Thank you very much Christian. I would surely like to assist you in any way i can. Mail me on kartikmadhira1@gmail.com

      Delete
    2. I have mailed you but didn't get any response from your end

      Delete
  2. Hi Kartik,

    I'm doing project- people counter using opencv as final year project. Bt mujhe to kuch jyada samaz nai aata, kya and kaise karna h. Bas jaise taise Python & OpenCV install kiya h....please yar aange help karde. Kaise karna h? ya code share kar de? Thank you!

    ReplyDelete
    Replies
    1. Mail me on kartikmadhira1@gmail.com
      Cheers!
      Kartik

      Delete
    2. hi karthik i am currently working on counting the number of people inside a class room can u help me

      Delete
  3. hi can you please share me the code. I need it badly.

    ReplyDelete
    Replies
    1. Hi, i cant share the code. However i can help you in making one. You can seek my help by writing to kartikmadhira1@gmail.com

      Delete
  4. can you send it to my email hehe ddeveza9@gmail.com

    ReplyDelete
    Replies
    1. Sorry bro. can't :). Any further enquiries you could directly mail me at kartikmadhira1@gmail.com

      Delete
  5. hi kartik
    i have gone through your counting video i am going a project based on human counting with unique object recognition could u please help me with the python codes if possible mail me mandiprocks@hotmail.com

    ReplyDelete
  6. Hello friend, I admire your work, I am currently doing something similar for a class, you could share your code to modify it// andres.heredia444@gmail.com

    ReplyDelete
  7. Hello
    Great work this done with count of people,
    I'm trying to implement an android version a few days ago.
    I saw that you did with python and android.
    I would like to know if you would like to send me the source codes to take a look, and so maybe I can make my version work.

    Thank you.
    Eduardo

    antaresgames@gmail.com

    ReplyDelete
  8. Hi karthik i am working on people counting project need your support

    ReplyDelete
  9. Hey It would be nice if you could share your code, I have been working on the same but my implementation is not that much accurate.

    ReplyDelete
  10. Great work...could you please send me the source code .

    ReplyDelete
  11. hello
    i am juhi savaliya. i am working on autonomous stair lightning system. for this i am using raspberry pi 3B + with python-open cv. i saw your video on youtube based on people counting system. i need help regarding to how you add virtual lines in real time video stream and logic about bi directional counter.
    Replay me please at juhisavaliya@gmail.com
    thank you

    ReplyDelete
  12. please let me know the source code of people counter

    ReplyDelete
  13. I need these source code can you help me please

    ReplyDelete
  14. Replay me please at gokselalankaya26@gmail.com
    thanks

    ReplyDelete
  15. I need this source code. Can you help me?

    ReplyDelete
  16. Thanks for taking the time to discuss this, we will wait for your next article so only. Starting at 99! Looking to buy an Electronic Door or People Counter Our product designers can personally help 20 years in business! 5 Year Warranty!

    ReplyDelete

Featured Post

ROS Autonomous Navigation Bot - [Clerkbot] - Initial Tests

Finally it took me three months to fully come up with this robot and just a fun fact, it took me a month to just tune the ocean of paramet...