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