tensorflow_object_counting_api icon indicating copy to clipboard operation
tensorflow_object_counting_api copied to clipboard

Inaccurate count

Open ShaoDu opened this issue 6 years ago • 12 comments

When I run vehicle_counting. py,so I would like to ask where in the code the range of counts changes and I found that the pedestrian count was accurate and the car count was not. In addition, I would like to ask what is the benchmark for counting cars through the line, and how can I achieve count=1? I feel that there is something wrong with the benchmark of this range

ShaoDu avatar Aug 16 '19 01:08 ShaoDu

The vehicle_counting.py fixed, can you try again to run?

"In addition, I would like to ask what is the benchmark for counting cars through the line, and how can I achieve count=1? I feel that there is something wrong with the benchmark of this range" -> What do you mean? Can you specify it more, please?

ahmetozlu avatar Aug 16 '19 05:08 ahmetozlu

@ahmetozlu I found the output video: the count is 3 when a car passes, which is not accurate, so I would like to ask how to modify the counting area,and hit the second car past time to become 5 I noticed that there was a purple box marked "surfboard" when the car passed. I don't know what it means. Is it the designated area of interest when the car passes

ShaoDu avatar Aug 16 '19 06:08 ShaoDu

https://github.com/ahmetozlu/tensorflow_object_counting_api/issues/44#issuecomment-521876648

ahmetozlu avatar Aug 16 '19 06:08 ahmetozlu

@ahmetozlu Thank you. I just tried to change deviation and it has some effect. I will change the model later In addition, I would like to ask how the count is counted. I did not understand the code. My understanding is that when the car passes, the ROI line turns green and count plus one. Because the next frame may also be when a car passes, and these two adjacent frames are when a car passes, how do you determine that it's the same car

ShaoDu avatar Aug 16 '19 07:08 ShaoDu

This is a great question, thanks: "Because the next frame may also be when a car passes, and these two adjacent frames are when a car passes, how do you determine that it's the same car"

My answer: The current version tensorflow_object_counting_api can not understand that is same car/object or a different car/object because it has not a tracker system yet. However, I almost finalize the "multiple object tracker module", which is a Kalman Filter based multiple object tracker implementation, and after I integrate it to the tensorflow_object_counting_api then API will be able identify/track multiple objects and it will not count the same object more than 1.

ahmetozlu avatar Aug 17 '19 13:08 ahmetozlu

@ahmetozlu Thank you for your reply. I would like to know how to mark the car as completely passed or start to pass the kalman filter principle marked as 1 when it passes the ROI line. Do you have any related papers for this project? Because the code I do not quite understand why you have set (top+bottom)/ 2-roi

ShaoDu avatar Aug 17 '19 15:08 ShaoDu

one car is calculated many times

vanilla000 avatar Sep 06 '19 04:09 vanilla000

@vanilla000 yeah,Have you figured out how to solve the problem

ShaoDu avatar Sep 08 '19 02:09 ShaoDu

me too,If someone stands nearby the roi line, there will be a lot of count, and this problem will be even more serious if it is counted through webcam or ipcamera

Hey-Jobs avatar Sep 14 '19 12:09 Hey-Jobs

@cranehovers yeah,Have you figured out how to solve the problem

ShaoDu avatar Sep 14 '19 12:09 ShaoDu

@cranehovers yeah,Have you figured out how to solve the problem

I think we can solve this problem through multiple object tracking (MOT),and i'm trying it

Hey-Jobs avatar Sep 14 '19 14:09 Hey-Jobs

@cranehovers I'm doing it, too. Can you tell me if it works

ShaoDu avatar Sep 15 '19 01:09 ShaoDu