Hi Asa ,
WRT camRgb.setSensorCrop(x,y)
, it's used for ISP
->video
cropping (img below). By default, it will be center cropped (so setSensorCrop(0.25, 0.25)
), but you could also configure it to get top-left quarter of the img (.setSensorCrop(0, 0)
), or bottom-right quarter of the img (.setSensorCrop(0.5, 0.5)
).
camRgb.setResolution(dai.ColorCameraProperties.SensorResolution.THE_4_K)
# camRgb,setSensorCrop(0.25, 0.25) # By default already, center crop
camRgb.setVideoSize(1920, 1080)
It doesn't actually do on-sensor crop (and MIPI stream only that region), but it does crop in postprocessing on RVC. I will update the documentation for this function as well.
Thoughts?
Thanks, Erik