Just got our OAK 1-W for testing. Generally a great device, but I can't get much working beyond the generic preview applications. When it try to run other camera types, I'm seeing failures. Trying to run a python script to connect to the MonoCamera and seeing this error:
[MonoCamera(0)] [error] Camera not detected on socket: 1
I downloaded depthai-ptyhon
and ran the cam_test.py
utility with the stock configuraiton, and I'm seeing the following output.
2024-03-08 09:53:18.298 Python[17668:484545] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Enabled cameras:
rgb : color
left : mono
right : mono
camd : color
DepthAI version: 2.24.0.0.dev0+f190ba191cea196f611fe98b9fe9713e4d2079eb
DepthAI path: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/depthai.cpython-311-darwin.so
/Users/cjn/src/depthai-python/utilities/cam_test.py:320: DeprecationWarning: Use constructor taking 'UsbSpeed' instead
with dai.Device(*dai_device_args) as device:
[18443010B1D8630E00] [2.1] [0.928] [ColorCamera(9)] [error] Camera not detected on socket: 3
[18443010B1D8630E00] [2.1] [0.929] [MonoCamera(7)] [error] Camera not detected on socket: 2
[18443010B1D8630E00] [2.1] [0.929] [MonoCamera(5)] [error] Camera not detected on socket: 1
Connected cameras:
-socket CAM_A : IMX378 4056 x 3040 focus:fixed - COLOR
USB speed: HIGH
IR drivers: []
Cam: rgb left right camd [host | capture timestamp]
FPS: 0.00| 0.00 0.00| 0.00 0.00| 0.00 0.00| 0.00 2024-03-08 09:53:40.044 Python[17671:484748] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
FPS: 13.02| 16.37 0.00| 0.00 0.00| 0.00 0.00| 0.00
Essentially, it looks like only 1 of the 4 initialized cameras is detected (rgb color).
Am I doing something wrong or do I have a defective camera?
Thanks so much,
Chris