Hi,
I am using a basic example from the DepthAI SKD. I am using a YOLO model that I made in Roboflow to perform inference with the OakD-Lite.
My question is, how to retrieve the output from the model? I would like to access the predicted label, confidence, and everything else. I have taken a look at packets but its very complex.
This is my code:
from depthai_sdk import OakCamera
with OakCamera() as oak:
color = oak.create_camera('color')
model_config = {
'source': 'roboflow', # Specify that we are downloading the model from Roboflow
'model':'my model',
'key': 'mykey'
}
nn = oak.create_nn(model_config, color)
#retrive here somehow the output from the inference
print(oak.device.getUsbSpeed())
oak.visualize(nn, fps=True)
oak.start(blocking=True)
Thanks in advance