I have trained a model using Roboflow work space. The model works fine with web cam web interface and with depth_sdk example:
from depthai_sdk import OakCamera
import depthai
with OakCamera() as oak:
color = oak.create_camera(‘color’)
model_config = {
‘source’: ‘roboflow’, # Specify that we are downloading the model from Roboflow
‘model’:‘person-snpao/1’,
‘key’:‘xx’ # FAKE Private API key, replace with your own!
}
nn = oak.create_nn(model_config, color)
oak.visualize(nn, fps=True)
oak.start(blocking=True)
When I use the code from this link Luxonis OAK | Roboflow Docs, I get empty prediction printed in the console.
Some details:
- Object Detection
- MacOS
- project ID:person-snpao
I’m using roboflowoak version 0.0.12
Any ideas?
If this method of deployment is not working, I’d highly recommend using one of the officially supported devices for running Roboflow Inference via our inference server: Local Installation - Roboflow Inference.
Could you try deploying your model with a method here, and seeing if you are able to get the expected results?