Ask Your Question
0

how to extract car features from video of moving car?

asked 2014-11-10 04:48:57 -0500

coco gravatar image

i applied background subtraction but i cant identify that whether is car or man or vehicle. I want to extract particular car from traffic video and count for it.

edit retag flag offensive close merge delete

Comments

berak hey dude can you please help me on this? it's urgent.I can't extract car feature from any video either man or vehicle it detect as same. i used only SURF method but it is not working properly and my code become tedious.

coco gravatar imagecoco ( 2014-11-11 04:32:11 -0500 )edit

@thdrksdfthmn@abhishek Kumar Annamraju @GilLevi Hey guys please help me on this topic. Its' urgent. I already used bgs method but can't get my goal. I wan to detect only car from traffic and eliminate other like pedestrian and two wheeler . for that i want to detect only car feature. I include car xml but it gives me bad result for top view camera. My camera is at around 60 to 70 degree angle from bottom. and also i tried SURF method but don't know how to use it for my project. please help me on this. please. Thank you in advance

coco gravatar imagecoco ( 2014-11-12 00:32:33 -0500 )edit
1

Can you post some code, first?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-11-12 02:28:28 -0500 )edit

@thdrksdfthmn can you send me your email id . so that i can send you my code. I actually perform two option in parallel 1) to do surf method on video. 2)use car.xml file and then run code In 1st option I can successfully run code for image in that code I give one image as input and then it compare exact key-points in image and recognize same car from it. the same code in video i can't detect. and for 2nd option i use car.xml file it detect only top view car and only applicable to 1video for live purpose and different angle camera it is not working. So please help me on this. Thanx in advance.

coco gravatar imagecoco ( 2014-11-12 04:47:01 -0500 )edit
1

I am afraid that posting my email on the forum is not a clever thing.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-11-12 06:20:31 -0500 )edit
1

coco, whatever you use, you will have to get train data in the most similar situation to your test case.

you can't train with a frontal view, and test from 60° down.

also, please let's keep the discussion here on the qa site, so other folks can profit reading it or can comment with fresh ideas.

berak gravatar imageberak ( 2014-11-12 07:14:54 -0500 )edit
1

btw, see e.g. here

both mentioned waldboost detector and TLD tracker are available in opencv3.0 in the contrib repo.

berak gravatar imageberak ( 2014-11-12 07:32:22 -0500 )edit

@berak hey my code is round 300line. that's why i can't put it here. and i tried surf method it works..but one biggest constraint is that i can detect only one car and only one view so it will generate bad result. now what to do?

coco gravatar imagecoco ( 2014-11-18 01:03:17 -0500 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2014-11-12 06:45:08 -0500

thdrksdfthmn gravatar image

IMHO the problems are the following:

  1. car.xml is trained by you? If so, then that is the problem; it recognizes just the poses that you gave to training. And more: it can also detect some other cars.
  2. If you are using SURF features from one car and you are trying to detect other different cars, this will not work. But you are saying that you want to detect one specific car and count it, so the SURF features approach is good.

You have applied the background subtraction, so you have now detections (ore regions of interest). So I am thinking of an approach like this for each detection:

  1. detect features
  2. match them
  3. if the matching is higher than a threshold, you say it is the car you want

For this you shall have some database of some images of that car in different positions and do the matching with all the features in your database. The matching threshold should be set based on some test. You have used a kalman filter for tracking, so you can use it for tracking, if you do not want to count the detection in each frame, but every time it enters in your field of view after it's out. Hope it is helpful.

edit flag offensive delete link more

Comments

@thdrksdfthmn hey thnx for reply and sorry for late. I tried surf method but it is limited to only one view and only one car. so now confused that how can i detect any car with any view. is there possible to use combination of methods? but i don't know how exactly work? Please Reply if you get my question. and thnx in advance.

coco gravatar imagecoco ( 2014-11-18 01:08:05 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-11-10 04:48:57 -0500

Seen: 813 times

Last updated: Nov 12 '14