jakaskerl
It is still not working.
I am using this definition for linking:
nnOut = pipeline.create(dai.node.XLinkOut)
nnOut.setStreamName("nn")
nn.out.link(nnOut.input)
nnPass = pipeline.create(dai.node.XLinkOut)
nnPass.setStreamName("pass")
nn.passthrough.link(nnPass.input)
objectTracker=pipeline.create(dai.node.ObjectTracker)
objectTracker.setTrackerType(dai.TrackerType.ZERO_TERM_COLOR_HISTOGRAM)
objectTracker.setTrackerIdAssignmentPolicy(dai.TrackerIdAssignmentPolicy.SMALLEST_ID)
nn.passthrough.link(objectTracker.inputTrackerFrame)
nn.passthrough.link(objectTracker.inputDetectionFrame)
nn.out.link(objectTracker.inputDetections)
trackerOut=pipeline.create(dai.node.XLinkOut)
trackerOut.setStreamName("tracklets")
objectTracker.out.link(trackerOut.input)
then I created the queues
qIn = device.getInputQueue(name="inFrame")
qDet = device.getOutputQueue(name="nn", maxSize=6, blocking=True)
qPass = device.getOutputQueue("pass")
tracklets = device.getOutputQueue("tracklets", 4, False)
and finally to get the frame:
frame = qPass.get().getCvFrame()
Still it is not working when I try to use the tracker. How can I solve it ? Thank you for all your support