Default properties of luxonis OAK-1 lite camera

How can i change default properties of luxonis OAK-1 lite camera like, resolution, autofocus etc for object detection ??

from roboflowoak import RoboflowOak
import cv2

if name == ‘main’:
# instantiating an object (rf) with the RoboflowOak module
rf = RoboflowOak(model=“advertising-graphic-detection”, confidence=0.05, overlap=0.5,
version=“2”, api_key=“----”, rgb=True,
depth=False, device=None, blocking=True)

# Running our model and displaying the video output with detections
while True:
    result, frame, raw_frame, depth = rf.detect()
    predictions = result["predictions"]
    print("PREDICTIONS ", [p.json() for p in predictions])

    # displaying the video feed as successive frames
    cv2.imshow("frame", frame)

    # how to close the OAK inference window / stop inference: CTRL+q or CTRL+c
    if cv2.waitKey(1) == ord('q'):
        break

Hi Vijay,
I’ve done some development with the OAK/OAK-D family of cameras.
I don’t think that these parameters are exposed in the Roboflow API. You would need to set them with the depthai or depthai_sdk libraries from Luxonis.
Here’s an example of how to control the features of a mono camera using depthai:
https://docs.luxonis.com/projects/api/en/latest/samples/MonoCamera/mono_camera_control/

You will, of course, need to install the depthai API(s) for Python first before running that example.

Hope that helps you…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.