Hi, I am using the MobileNetDetectionNetwork which uses a 300x300 input. I want to feed a square crop anywhere from the full 16x9 OAK frame into the NN. This square crop would be downsized to 300x300. Is there a simple way to do this onboard the OAK itself when configuring the OAK pipeline?

I want to pursue this path because MobileNetDetectionNetwork is unable to detect vehicles that are too small when the full frame is used as input to the NN. By getting a square crop of the ROI in the frame to feed to the NN, the NN would receive larger vehicles thus improving detection performance.

Thanks,
Gautam

  • erik replied to this.

    Hello gbanuru, you could use ImageManip node to crop a small square from the color frame.
    As for the configuration of the ImageManip, you could use something like this:

    manip.initialConfig.setCropRect(0.4, 0.4, 0.6, 0.6)
    manip.initialConfig.setResize(300, 300)

    I hope this helps!
    Thanks, Erik