Priyam26
while True:
inRgb: dai.ImgFrame = qRgb.get() # blocking call, will wait until a new data has arrived
inRgb.getLensPosition()
# Retrieve 'bgr' (opencv format) frame
cv2.imshow("rgb", inRgb.getCvFrame())
if cv2.waitKey(1) == ord('q'):
break
At boot time, you can set the focus value in the pipeline creation code. Here is an example:
pipeline = dai.Pipeline()
rgbCam = pipeline.create(dai.node.ColorCamera)
rgbCam.initialControl.setManualFocus(100) # 0..255
Thanks,
Jaka