acf icon indicating copy to clipboard operation
acf copied to clipboard

acf::Detector can return cv::Rect with slighlty out of bounds pixels

Open headupinclouds opened this issue 6 years ago • 0 comments

In some cases the acf::Detector can return a cv::Rect with out of bounds pixels. This could be happening in the scaling from the detection resolution back to the full resolution image. Enforcing (detection_roi & frame_roi).area() == detection_roi.area() is a reasonable post condition for the main API calls. A near term workaround is simply to clip the output detection rectangles before any cropping is performed.

headupinclouds avatar Apr 27 '18 15:04 headupinclouds