• DepthAI-v2
  • Is it possible to run yolo recognition only on a part of the frame?

Hi, I just bought an oak-1 and I want to use it to identify the number of cars on my doorstep. But there will be a long parking area in front of my door. Yolo will constantly recognize the cars parked there. I would like to ask if there is any way to run Yolo only on motor roads without using the whole image, or even if only a part of the whole image is used but still be able to filter out the parking areas that are not of interest, for example, add a mask to the parking area, or some other method? Thanks a lot.

  • erik replied to this.

    Hi Alex ,
    Yep, it's possible🙂 You can link ColorCamera to ImageManip node, do cropping there, and forward the cropped frame to YoloDetectionNetowrk node. This example crops the frame into two frames, but you can specify a ROI that is only the road in front of your doorstep. Thoughts on such an approach?
    Thanks, Erik

      Hi erik ,
      Thanks very much! That solved my problems. I used 'depthai.ImageManipConfig' to determine my interesting region.