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.
- 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?
- For detector try increasing the blob_radius_thresh, depending on the blob radius.
- For tracker try decreasing distance threshold.
Hope above steps helps in better detection and tracking. Good luck.
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.