Improve detection box filtering strategies
We can improve detections using:
- Scene priors
- Background/Foreground subtraction and modeling
@alpha-carinae29 & @mrn-mln I suggest you take a look at this.
@mhejrati please move this issue to fine-tuning and calibration milestone
I worked on this issue in last days.
I have implemented a background subtraction with cv.createBackgroundSubtractorMOG2 module.
here is a result on Oxford Town Center:
Now I am trying to filter object detection's output based on this information. To doing this I will filter boxes that the percentage of background pixels more than a threshold.
Also I am implementing a prior distribution of bounding boxes for each pixel in the image. (only mean and variance not the whole distribution.) To this end I computed the average and variance of width and height of bounding boxes for the centroids of the boxes recurrently with Welford algorithm. After the training Phase, for each detected bounding box we compare its width and height with the prior mean and variance and if we detect an outlier we eliminate the bounding box.
@mhejrati please mark it as "in progress".