hello
- I have executed the previous code, but I encountered the error that I sent you earlier.
cap = cv2.VideoCapture(“rtsp://admin:[email protected]:554/Streaming/Channels/1/”)
cap = cv2.VideoCapture(“speed3.mp4”)
device = hailo.Device()
pipeline = hailo.create_pipeline(device)
while True:
success, frame = cap.read()
if not success:
break
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
try:
roi = hailo.get_roi_from_buffer(frame)
detections = roi.get_objects_typed(hailo.HAILO_DETECTION)
print('hailo while ',detections)
Process detections…
except Exception as e:
print(f"Error occurred: {e}")
break
cap.release()