Hi all,
As the title suggests, I have been having trouble getting blazepose to work in 'edge' mode on an Oak-D camera. I have spent a lot of time scouring the internet, to little avail. Now I'm hoping you guys might be able to help me.
I'm on Windows 11, using VSCode with Python 3.10. I'm looking into doing real-time pose detection on a Raspberry Pi using blazepose. To make sure it works with okay speed, I want the pose detection software to do as much work as possible on the processor inside the Oak-D. To do this, I want to use blazepose in edge mode.
I made sure to download blazepose into its own virtual environment. Its dependencies were then installed. With this, I have had success running the blazepose demo in host mode. However, edge mode gives me the error described below. Usually, it works for a few frames before crashing.
Traceback (most recent call last):
File "d:\BMT_2024-2025\Stage_2025\Code\Prototype\depthai_blazepose-main\demo.py", line 67, in <module>
frame, body = tracker.next_frame()
File "d:\BMT_2024-2025\Stage_2025\Code\Prototype\depthai_blazepose-main\BlazeposeDepthaiEdge.py", line 487, in next_frame
res = marshal.loads(self.q_manager_out.get().getData())
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'manager_out' (X_LINK_ERROR)'
I do not believe the issue is with a faulty USB cable. Its speed is 'super'. To make sure, I bought a new cable, which resulted in the same error. I have also tried running blazepose on a smaller laptop, because I might have a faulty USB port, but there was the same error as well.
Now, I suspect the issue is that I'm not powering the oak-d using the barrel jack port that it has. But I'd read earlier that the USB cable could supply it with sufficient power and that the barrel jack was only 'recommended'. Unfortunately, I do not currently have this cable (I borrowed the oak-d from someone who'd already borrowed it from someone else).
This is where I would like to ask your advice. Does it require powering through the barrel jack for my purposes? Or could the issue be caused by something else? I do have the crash reports if those might be of any use.
Thanks in advance for any help you all can provide me.