Background subtraction to detect cars on a road

asked 2017-01-07 10:18:49 -0500

Yasser Akram gravatar image

I've implemented the background subtraction method to detect moving blobs but the issue is that it doesn't detect the far objects and sometimes the moving cars are not accurately detected as a single blob (sometimes it splits into 2 or 3, sometimes it doesn't detect it). I've also implemented the code here: https://github.com/MicrocontrollersAn...

Is there any sophisticated read solution to do the needful and it does the job perfectly (detecting car blob and tag it with ID)?

edit retag flag offensive close merge delete

Comments

have you try this ?

LBerger gravatar imageLBerger ( 2017-01-07 10:44:06 -0500 )edit

Yes I did. The results were worst since the video is having some pixels changes over time due to lightning and air (there are some trees)

Yasser Akram gravatar imageYasser Akram ( 2017-01-08 06:23:36 -0500 )edit

Try it !

hoang anh tuan gravatar imagehoang anh tuan ( 2017-01-08 19:44:28 -0500 )edit

the link you've mentioned, what was the issue you were facing with that code?

abhijith gravatar imageabhijith ( 2017-01-09 04:50:41 -0500 )edit

I used it successfully

hoang anh tuan gravatar imagehoang anh tuan ( 2017-01-09 20:52:21 -0500 )edit

haha oops, sorry! I meant Yasser

abhijith gravatar imageabhijith ( 2017-01-09 23:08:13 -0500 )edit

@abhijith, It doesn't detect far objects, some cars are detected as 2 or more blobs instead of 1 (especially buses), sometimes if 2 cars moving side by side it will detect them as a single car.

Yasser Akram gravatar imageYasser Akram ( 2017-01-10 02:26:06 -0500 )edit

Without examples I don't think that somebody will give you an answer to your problem except if he is lucky

LBerger gravatar imageLBerger ( 2017-01-10 02:39:26 -0500 )edit

And do you try to my link?

hoang anh tuan gravatar imagehoang anh tuan ( 2017-01-10 03:01:32 -0500 )edit