Yes it happens most of the time. And also sometimes it works.
from roboflowoak import RoboflowOak
import cv2
import time
import numpy as np
if name == 'main':
# instantiating an object (rf) with the RoboflowOak module
rf = RoboflowOak(model="graphics_detection", confidence=0.05, overlap=0.5,
version="3", api_key="lzDsVETPIbgjb3iy3Ae0", rgb=True,
depth=False, device=None, blocking=True)
# Running our model and displaying the video output with detections
while True:
t0 = time.time()
# The rf.detect() function runs the model inference
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