AdamPolak Hey Adam. This works for me:
from depthai_sdk import OakCamera
synced_packets_combined = []
with OakCamera(replay='../videos/') as oak:
color = oak.create_camera('color', )
pdet = oak.create_nn(name='pdet', model='person-detection-retail-0013', input=color)
fdet = oak.create_nn(name='fdet', model='face-detection-retail-0004', input=color)
def callback(synced_packets):
synced_packets_combined.append(synced_packets['fdet_out;color'])
synced_packets_combined.append(synced_packets['pdet_out;color'])
print(synced_packets_combined)
oak.sync([pdet.out.main, fdet.out.main], callback=callback)
oak.start(blocking=True)
This is my output (with debug level)
[184430101176431300] [2.1] [5.736] [system] [info] Memory Usage - DDR: 79.91 / 340.34 MiB, CMX: 2.48 / 2.50 MiB, LeonOS Heap: 15.55 / 77.23 MiB, LeonRT Heap: 5.52 / 41.14 MiB
[184430101176431300] [2.1] [5.736] [system] [info] Temperatures - Average: 41.78C, CSS: 43.50C, MSS 40.51C, UPA: 41.43C, DSS: 41.66C
[184430101176431300] [2.1] [5.736] [system] [info] Cpu Usage - LeonOS 26.57%, LeonRT: 55.32%
[<depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CB9190>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B66B70710>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CAC550>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CAC5D0>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CADE10>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CADD90>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CAF650>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B63CACB10>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B4BBEAED0>, <depthai_sdk.classes.packets.DetectionPacket object at 0x0000026B4BBEA790>]
It keeps going...
Maybe this is useful to you?