Greetings. I have been trying to run some sample programs found in the C:\DepthAI\depthai-main\depthai_sdk\docs\source\examples directory.
When I run the examples using the NNetManager, I get an error:

C:\DepthAI\depthai-main\depthai_sdk\docs\source\examples>python3 mobile_net_ssd.py
Traceback (most recent call last):
File "C:\DepthAI\depthai-main\depthai_sdk\docs\source\examples\mobile_net_ssd.py", line 40, in <module>
nm.draw(pv, nnData)
TypeError: draw() takes 2 positional arguments but 3 were given

The draw() method only takes is defined as
def draw(self, source)

Am I doing something wrong? Or are all the example programs incorrect?
How can I get these to run?` I am somewhat confused.

Thanks for any help . . .

  • erik replied to this.

    Hello Steve ,
    We apologize for this - depthai-sdk is still very much WIP and the API changes a lot. If you install depthai-sdk 1.1.8 is should work as expected (python3 -mpip install depthai-sdk==1.1.8). I would also suggest checking API exmaples, which are "battle tested"🙂
    Thanks, Erik