srianant/kalman_filter_multi_object_tracking

Extension to vehicle detection

Closed this issue · 3 comments

Hi ! Great work .. I wanted to use the same code for vehicle tracking.. but it makes random detections . I tried to change a few parameters but i'm not getting any results.

What are the changes i need to make in order to use this for vehicle detection?

Hi @kabef94,
To help understand the problem better. Would recommend try following steps.

  1. Try tracking fewer objects (say..a video with 2 cars or 2 rolling balls) and its speed (probably display them in bounding box corner as text for easy evaluation) with default parameter values?
  2. For detector try increasing the blob_radius_thresh, depending on the blob radius.
  3. For tracker try decreasing distance threshold.
    Hope above steps helps in better detection and tracking. Good luck.

untitled1
I had already done the first two but even the third one does not help.. the detections look like this(PFA).. i even tried changing the parameters for canny edge detection an thresholding as well.. nothing is working. Sorry for bothering you but any more ideas??
untitled

Hope you followed below pipeline.
Convert2Gray --> BackgroundSubtract --> EdgeDetection --> FindContours.
Given your video frame it looks like backgroundSubtraction & edgeDetection may need some improvements. Capturing frames after EdgeDetection might help analyze. This repo was developed and tested using video with static background. You may want to consider other techniques to find contour or detect objects in general, if your background is constantly changing. Hope this helps.