Thanks Erik for the fast response!
I'm using the tracker because I need this functionality. I did try the callback, but it seems that when I do
OakCamera.create_nn(…, …, tracker=True), my callback
def cb(packet: DetectionPacket):
needs to be changed to
def cb(packet: TrackerPacket):
So, according to the docs:
depthai_sdk.classes.packets.TrackerPacket(name, msg, tracklets, visualizer=None)
Output of Object Tracker node. Tracklets + Image frame. Inherits FramePacket.
But when I try to access
tracklets, I get
AttributeError: 'TrackerPacket' object has no attribute 'tracklets'
This is what I meant by "I'm finding that the docs are a bit lagging behind the features"
As for the eMMC, following the instructions from here, I ran the prerequisite code to enable the eMMC, but I don't get "Flash OK". So, I printed both
errmsg, so I got:
Flashing progress: 0.0%
No eMMC memory available
So, I thought maybe the eMMC is already enabled on my OAK-D-PoE (series 2), so I ran scriptemmcaccess.py but I got:
[1844301021A2970F00] [192.168.2.221] [6.090] [Script(2)] [warning] Saving to EMMC: /media/mmcsd-0-0/1000.jpg
[1844301021A2970F00] [192.168.2.221] [6.090] [Script(2)] [critical] FileNotFoundError: [Errno 2] N: '/media/mmcsd-0-0/1000.jpg'
Traceback (most recent call last):
File "/Users/alain/Luxonis/depthai-python/examples/Script/script_emmc_access.py", line 92, in <module>
inRgb = qRgb.tryGet()
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'rgb' (X_LINK_ERROR)'
Finally, just wondering if I can run all the above tasks together, i.e. do I need one script node for the webserver and one for writing to the eMMC, and if yes, how do I communicate between script nodes? (This is all standalone and nothing running on the host)