Trying to run the following code on OAK 1 (Without Depth)
The model was custom dataset trained using Google Collab Roboflow Notebook
from depthai_sdk import OakCamera
import depthai
Download & deploy a model from Roboflow universe:
#American Sign Language Letters Object Detection Dataset (v6, raw) by David Lee
#from roboflow import Roboflow
#rf=Roboflow(api_key=“API_KEY”)
#project = rf.workspace(“hjhn-j”).project(“drowning-detection”)
with OakCamera() as oak:
color = oak.create_camera(‘color’)
model_config = {
‘source’: ‘roboflow’, # Specify that we are downloading the model from Roboflow
'model':'drowning-detection-qvlpo/1',
'depth':'False',
'key':'API_KEY' # Fake API key, replace with your own!
}
nn = oak.create_nn(model_config, color)
oak.visualize(nn, fps=True)
oak.start(blocking=True)
But getting this error:
(camera_test) user1@RaspberryPi5:~/depthai $ python3 my_test.py
[14442C10913ECAD600] [3.1] [4.766] [system] [warning] Calibration Data on device is empty
We recommend using a lighter version of the model to get a better performance!
Downloading ‘Drowning detection’ model from Roboflow server
Closing OAK camera
Traceback (most recent call last):
File “/home/user1/depthai/my_test.py”, line 18, in
oak.start(blocking=True)
File “/home/user1/.local/lib/python3.9/site-packages/depthai_sdk/oak_camera.py”, line 286, in start
self.build() # Build the pipeline
File “/home/user1/.local/lib/python3.9/site-packages/depthai_sdk/oak_camera.py”, line 380, in build
component.on_init(self._pipeline, self._oak.device, self._pipeline.getOpenVINOVersion())
File “/home/user1/.local/lib/python3.9/site-packages/depthai_sdk/components/nn_component.py”, line 124, in on_init
path = self._roboflow.device_update(device)
File “/home/user1/.local/lib/python3.9/site-packages/depthai_sdk/components/integrations/roboflow.py”, line 53, in device_update
zipFileReq.raise_for_status()
File “/home/user1/miniconda3/envs/camera_test/lib/python3.9/site-packages/requests/models.py”, line 953, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https: //storage.googleapis.com/roboflow-platform-train/1OkCHezNxMZhjltMJlw7lXNJZOE3/xqWxmEuQTIViJookYSOn/1/roboflow.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=481589474394-compute%40developer.gserviceaccount.com%2F2024051