• DepthAI-v2
  • OakCamera function stopping python command-line arguments

I'm having trouble sending command line arguments while running the camera using the OakCamera function in python. I keep getting this error :

error: unrecognized arguments:

When all the code using OakCamera is commented out it works fine. I also notice this problem occuring when trying to run example code like the depthai-experiments/gen2-yolo/car-detection. Trying to set the model in the command will also lead to this error.

    What do you mean by 'command line arguments'? Are you using an input prompt or are you setting flags using argv?

    erik Wish I had known about that, I have been using opt and resetting argv…