Git Product home page Git Product logo

people_counting_basic's Introduction

People_counting_basic

Download YOLO v3 weights here

Test video here

python counting_people.py --video D:/pycharmprojects/Counting-People/test.mp4

Output video

Reference

people_counting_basic's People

Contributors

bakingbrains avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

people_counting_basic's Issues

Unable to run

python3 counting_people.py --video test.mp4 โ”€โ•ฏ
[INFO] loading model...
Traceback (most recent call last):
File "counting_people.py", line 223, in
outs = net.forward(getOutputsNames(net))
File "counting_people.py", line 62, in getOutputsNames
return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()]
File "counting_people.py", line 62, in
return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()]
IndexError: invalid index to scalar variable.

Fps is very slow

Sir how to increase the speed of video while finding the result it is very slow.I changed the height and width to 288 to increase but still not working.

Unable to run

I tried running it but i encountered this error

from utils.centroidtracker import CentroidTracker
from utils.trackableobject import TrackableObject

For some reason, it cannot identify

ModuleNotFoundError: No module named 'utils.centroidtracker'

IndexError: invalid index to scalar variable.

Hello @BakingBrains

First of all, thank you for your code. I tried your code for testing, but I think you edited it after uploading to github.
I made the following changes for your code to work, but the detect operation was not successful. Can you check to see if there is an incorrect operation?

Arrangements:

  1. In the "counting_people.py" file, I wrote the 7th and 8th lines as follows:
    from utils.centroidtracker import CentroidTracker
    from utils.trackableobject import TrackableObject

  2. I wrote line 65 in the "counting_people.py" file as "return [layersNames[i-1] for i in net.getUnconnectedOutLayers()]".

  3. I deleted line 101 "i=i[0]" in "counting_people.py" file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.