I tried the same file with VS Code straight out of the box and it's different. Here are a few of the entries in the VS Code problem log.
"message": "\"node\" is not a known member of module",
"message": "Cannot access member \"setStreamName\" for type \"AprilTag\"
"message": "Cannot access member \"setBoardSocket\" for type \"AprilTag\"
"message": "Cannot access member \"setResolution\" for type \"AprilTag\"
"message": "Cannot access member \"setMaxOutputFrameSize\" for type \"AprilTag\"
"message": "Cannot access member \"getVideoWidth\" for type \"AprilTag\"
"message": "Cannot access member \"getVideoHeight\" for type \"AprilTag\"
There are a quite a few more entries in practice which suggests to me that VS Code requires some manual configuration to get the indexer set up properly. So the VS Code aspect may be a distraction, as it works in my depthai environment for C++ .
I would like to get PyCharm setup correctly as it is recommended as the IDE of choice in the installation section...
https://docs.luxonis.com/projects/api/en/latest/install/?highlight=pycharm#test-installation
For development machines like Mac/Windows/Ubuntu/etc., we recommend the PyCharm IDE, as it automatically makes/manages virtual environments for you, along with a bunch of other benefits.
As I say it's a minor annoyance rather than a real issue, as all of the code works. It's just bothers me that something's not quite right with the indexing, and I'd like to understand it in order to fix it.
Any thoughts appreciated.