ahmetozlu / tensorflow_object_counting_api

🚀 The TensorFlow Object Counting API is an open source framework built on top of TensorFlow and Keras that makes it easy to develop object counting systems!
https://www.youtube.com/watch?v=yT_1eKJTdfk
MIT License
1.32k stars 546 forks source link

Problems in counting #38

Closed b-thebest closed 5 years ago

b-thebest commented 5 years ago

If we are counting some object and when object passes through a line which counts passing of any object. But when any object stays on line, so it's keep on counting that object again and again. Please suggest a change to fix that

ahmetozlu commented 5 years ago

You can check the counted object center pixel coordinate in each frame to avoid counting the same object more than one.

For example, if the counted object center coordinate does not change more than threshold value in next frame, your code will not count it so you can avoid to count same object more than one by this way!

b-thebest commented 5 years ago

No arguments like centroid of image are passed to function in api as well as not to function of file "object_counter.py". Pls suggest me a change in any file or function particularly, I will do it quickly then.