Hello @jakaskerl
You are right, it does not. I tried to attempt to add synchronization functionality to the code, with no success unfortunately.
#!/usr/bin/env python3
import cv2
import depthai as dai
import numpy as np
import mediapipe as mp
from datetime import timedelta
# Initialize MediaPipe Hand solution
mp_hands = mp.solutions.hands
mp_drawing = mp.solutions.drawing_utils
hands = mp_hands.Hands(
max_num_hands=1,
min_detection_confidence=0.5,
min_tracking_confidence=0.5)
# Closer-in minimum depth, disparity range is doubled (from 95 to 190):
extended_disparity = False
# Better accuracy for longer distance, fractional disparity 32-levels:
subpixel = False
# Better handling for occlusions:
lr_check = True
# Create pipeline
pipeline = dai.Pipeline()
# Define sources and outputs
monoLeft = pipeline.create(dai.node.MonoCamera)
monoRight = pipeline.create(dai.node.MonoCamera)
depth = pipeline.create(dai.node.StereoDepth)
spatialLocationCalculator = pipeline.create(dai.node.SpatialLocationCalculator)
color = pipeline.create(dai.node.ColorCamera)
# Configure camera nodes
monoLeft.setResolution(dai.MonoCameraProperties.SensorResolution.THE_400_P)
monoLeft.setBoardSocket(dai.CameraBoardSocket.CAM_B)
monoRight.setResolution(dai.MonoCameraProperties.SensorResolution.THE_400_P)
monoRight.setBoardSocket(dai.CameraBoardSocket.CAM_C)
color.setBoardSocket(dai.CameraBoardSocket.CAM_A)
color.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
color.setPreviewSize(640, 400)
# Setup depth node
depth.setDefaultProfilePreset(dai.node.StereoDepth.PresetMode.HIGH_DENSITY)
depth.initialConfig.setMedianFilter(dai.MedianFilter.KERNEL_7x7)
depth.setLeftRightCheck(lr_check)
depth.setExtendedDisparity(extended_disparity)
depth.setSubpixel(subpixel)
depth.setDepthAlign(dai.CameraBoardSocket.CAM_A)
# Message Demultiplexer and sync
sync = pipeline.create(dai.node.Sync)
sync.setSyncThreshold(timedelta(milliseconds=100))
color.preview.link(sync.inputs['color'])
depth.disparity.link(sync.inputs['disparity'])
spatialLocationCalculator.out.link(sync.inputs['spatialData'])
# Create output queues
demux = pipeline.create(dai.node.MessageDemux)
sync.out.link(demux.input) # sync -> demux
xout = pipeline.create(dai.node.XLinkOut)
xout.setStreamName("disparity")
xoutSpatialData = pipeline.create(dai.node.XLinkOut)
xoutSpatialData.setStreamName("spatialData")
xoutColor = pipeline.create(dai.node.XLinkOut)
xoutColor.setStreamName("color")
demux.outputs['disparity'].link(xout.input)
demux.outputs['spatialData'].link(xoutSpatialData.input)
demux.outputs['color'].link(xoutColor.input)
# Linking
monoLeft.out.link(depth.left)
monoRight.out.link(depth.right)
depth.disparity.link(xout.input)
color.preview.link(xoutColor.input)
# SpatialLocationCalculator configuration
config = dai.SpatialLocationCalculatorConfigData()
config.depthThresholds.lowerThreshold = 100
config.depthThresholds.upperThreshold = 10000
# Define a ROI in normalized coordinates (the whole image here)
config.roi = dai.Rect(0, 0, 1, 1)
spatialLocationCalculator.initialConfig.addROI(config)
depth.depth.link(spatialLocationCalculator.inputDepth)
# Before the main loop, when setting up the pipeline
spatialConfigIn = pipeline.create(dai.node.XLinkIn)
spatialConfigIn.setStreamName("spatialConfig")
spatialConfigIn.out.link(spatialLocationCalculator.inputConfig)
# Link spatial location calculator output to the output stream
spatialLocationCalculator.out.link(xoutSpatialData.input)
# Connect to device and start pipeline
with dai.Device(pipeline) as device:
qDisparity = device.getOutputQueue(name="disparity", maxSize=4, blocking=False)
qSpatialData = device.getOutputQueue(name="spatialData", maxSize=4, blocking=False)
qColor = device.getOutputQueue(name="color", maxSize=4, blocking=False)
spatialConfigQueue = device.getInputQueue("spatialConfig")
while True:
incolor = qColor.get()
colorFrame = incolor.getCvFrame()
# Convert color frame to RGB (MediaPipe requirement)
colorFrameRgb = cv2.cvtColor(colorFrame, cv2.COLOR_BGR2RGB)
results = hands.process(colorFrameRgb)
# Convert back to BGR for OpenCV
colorFrame = cv2.cvtColor(colorFrameRgb, cv2.COLOR_RGB2BGR)
if results.multi_hand_landmarks:
for hand_landmarks in results.multi_hand_landmarks:
mp_drawing.draw_landmarks(
colorFrame, hand_landmarks, mp_hands.HAND_CONNECTIONS)
hand_mid_coord = hand_landmarks.landmark[mp_hands.HandLandmark.MIDDLE_FINGER_MCP]
# Convert normalized coordinates to pixel coordinates
x, y = int(hand_mid_coord.x * colorFrame.shape[1]), int(hand_mid_coord.y * colorFrame.shape[0])
# Define a ROI around the finger tip
roi = dai.Rect(hand_mid_coord.x - 0.01, hand_mid_coord.y - 0.01, 0.02, 0.02)
# Draw a rectangle around the ROI
cv2.rectangle(colorFrame, (int(roi.x * colorFrame.shape[1]), int(roi.y * colorFrame.shape[0])), (int((roi.x + roi.width) * colorFrame.shape[1]), int((roi.y + roi.height) * colorFrame.shape[0])), (0, 255, 0), 2)
# Prepare the ROI in normalized coordinates for SpatialLocationCalculator
roi = dai .Rect(roi.x, roi.y, roi.width, roi.height)
# Send the new ROI to the device
config = dai.SpatialLocationCalculatorConfig()
configdata = dai.SpatialLocationCalculatorConfigData()
configdata.roi = roi
config.addROI(configdata)
spatialConfigQueue.send(config)
# Retrieve and print spatial data for the ROI
spatialData = qSpatialData.get().getSpatialLocations()
for data in spatialData:
coords = data.spatialCoordinates
# Write the spatial coordinates on the frame on top left corner
cv2.putText(colorFrame, f"X: {coords.x:.2f} mm, Y: {coords.y:.2f} mm, Z: {coords.z:.2f} mm",
(10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0,255,0), 2)
# Display the frame
cv2.imshow("color", colorFrame)
if cv2.waitKey(1) == ord('q'):
break
# Release MediaPipe resources
hands.close()
It is giving me these errors
[1844301041AD8E0F00] [169.254.1.222] [1709516595.076] [host] [warning] Monitor thread (device: 1844301041AD8E0F00 [169.254.1.222]) - ping was missed, closing the device connection
[1844301041AD8E0F00] [169.254.1.222] [1709516608.446] [host] [warning] Device crashed. Crash dump saved to C:\Users\...\AppData\Local\Temp\1844301041AD8E0F00-depthai_crash_dump.json
depthai_crash_dump.json :
{"crashReports":[{"crashedThreadId":184614950,"errorSource":"RTEMS_FATAL_SOURCE_EXCEPTION","errorSourceInfo":{"assertContext":{"fileName":"","functionName":"","line":0},"errorId":0,"trapContext":{"trapAddress":2204819656,"trapName":"Bad trap","trapNumber":9}},"processor":0,"threadCallstack":[{"callStack":[{"callSite":2204802648,"calledTarget":2204818364,"context":"","framePointer":2212167296},{"callSite":2204794812,"calledTarget":2204802392,"context":"","framePointer":2212167392},{"callSite":2200734700,"calledTarget":2204794724,"context":"","framePointer":2212167528},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2212167640},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2212167736},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2212167832}],"instructionPointer":2204802648,"stackBottom":2212036856,"stackPointer":2212167296,"stackTop":2212167927,"threadId":167837697,"threadName":"CBTH","threadStatus":"WAITING_FOR_MESSAGE"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2212823712},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2212823816},{"callSite":2200813896,"calledTarget":2204793340,"context":"","framePointer":2212823936},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2212824040},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2212824136},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2212824232}],"instructionPointer":2204793632,"stackBottom":2212693256,"stackPointer":2212823712,"stackTop":2212824327,"threadId":167837698,"threadName":"TWDG","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2213217848},{"callSite":2204798532,"calledTarget":2204793468,"context":"","framePointer":2213217952},{"callSite":2204801500,"calledTarget":2204798424,"context":"","framePointer":2213218072},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213218176},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213218272},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213218368}],"instructionPointer":2204793632,"stackBottom":2213087392,"stackPointer":2213217848,"stackTop":2213218463,"threadId":167837699,"threadName":"TIME","threadStatus":"WAITING_FOR_SYSTEM_EVENT"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2213349072},{"callSite":2204798532,"calledTarget":2204793468,"context":"","framePointer":2213349176},{"callSite":2204716880,"calledTarget":2204798424,"context":"","framePointer":2213349296},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213349400},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213349496},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213349592}],"instructionPointer":2204793632,"stackBottom":2213218616,"stackPointer":2213349072,"stackTop":2213349687,"threadId":167837700,"threadName":"IRQS","threadStatus":"WAITING_FOR_SYSTEM_EVENT"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2213480296},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2213480400},{"callSite":2204373880,"calledTarget":2204793340,"context":"","framePointer":2213480520},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213480624},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213480720},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213480816}],"instructionPointer":2204793632,"stackBottom":2213349840,"stackPointer":2213480296,"stackTop":2213480911,"threadId":167837701,"threadName":"swi6","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2213611528},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2213611632},{"callSite":2204381664,"calledTarget":2203619372,"context":"","framePointer":2213611728},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213611848},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213611944},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213612040}],"instructionPointer":2203676836,"stackBottom":2213481064,"stackPointer":2213611528,"stackTop":2213612135,"threadId":167837702,"threadName":"config","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2213742752},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2213742856},{"callSite":2203677836,"calledTarget":2203619372,"context":"","framePointer":2213742952},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213743072},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213743168},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213743264}],"instructionPointer":2203676836,"stackBottom":2213612288,"stackPointer":2213742752,"stackTop":2213743359,"threadId":167837703,"threadName":"kqueue","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2213873968},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2213874072},{"callSite":2204373880,"calledTarget":2204793340,"context":"","framePointer":2213874192},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2213874296},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213874392},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213874488}],"instructionPointer":2204793632,"stackBottom":2213743512,"stackPointer":2213873968,"stackTop":2213874583,"threadId":167837704,"threadName":"swi5","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2214005200},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2214005304},{"callSite":2203677836,"calledTarget":2203619372,"context":"","framePointer":2214005400},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2214005520},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214005616},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214005712}],"instructionPointer":2203676836,"stackBottom":2213874736,"stackPointer":2214005200,"stackTop":2214005807,"threadId":167837705,"threadName":"thread","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2214136416},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2214136520},{"callSite":2204373880,"calledTarget":2204793340,"context":"","framePointer":2214136640},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2214136744},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214136840},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214136936}],"instructionPointer":2204793632,"stackBottom":2214005960,"stackPointer":2214136416,"stackTop":2214137031,"threadId":167837706,"threadName":"swi6","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2214277888},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2214277992},{"callSite":2204373880,"calledTarget":2204793340,"context":"","framePointer":2214278112},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2214278216},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214278312},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214278408}],"instructionPointer":2204793632,"stackBottom":2214147432,"stackPointer":2214277888,"stackTop":2214278503,"threadId":167837707,"threadName":"swi1","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2214409736},{"callSite":2204798532,"calledTarget":2204793468,"context":"","framePointer":2214409840},{"callSite":2200714000,"calledTarget":2204798424,"context":"","framePointer":2214409960},{"callSite":2200715944,"calledTarget":2200713752,"context":"","framePointer":2214410064},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2214410168},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214410264},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214410360}],"instructionPointer":2204793632,"stackBottom":2214279384,"stackPointer":2214409736,"stackTop":2214410455,"threadId":167837708,"threadName":"MMCD","threadStatus":"WAITING_FOR_SYSTEM_EVENT"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2214541072},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2214541176},{"callSite":2204381664,"calledTarget":2203619372,"context":"","framePointer":2214541272},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2214541392},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214541488},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214541584}],"instructionPointer":2203676836,"stackBottom":2214410608,"stackPointer":2214541072,"stackTop":2214541679,"threadId":167837709,"threadName":"softirq","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2215465896},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2215466064},{"callSite":2205005872,"calledTarget":2204787624,"context":"","framePointer":2215466160},{"callSite":2204446104,"calledTarget":2205005852,"context":"","framePointer":2215466272},{"callSite":2204447188,"calledTarget":2204443980,"context":"","framePointer":2215466608},{"callSite":2204030436,"calledTarget":0,"context":"Thread handler","framePointer":2215466720},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2215466824},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2215466920},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2215467016}],"instructionPointer":2204787220,"stackBottom":2215336040,"stackPointer":2215465896,"stackTop":2215467111,"threadId":167837710,"threadName":"BSDr","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2216120368},{"callSite":2203677336,"calledTarget":2203676324,"context":"","framePointer":2216120472},{"callSite":2203619900,"calledTarget":2203677332,"context":"","framePointer":2216120568},{"callSite":2203607880,"calledTarget":2203619372,"context":"","framePointer":2216120664},{"callSite":2203610212,"calledTarget":2203607568,"context":"","framePointer":2216120840},{"callSite":2203610952,"calledTarget":2203609920,"context":"","framePointer":2216121456},{"callSite":2204222556,"calledTarget":2203610744,"context":"","framePointer":2216121616},{"callSite":2204214088,"calledTarget":2204222352,"context":"","framePointer":2216121808},{"callSite":2204448196,"calledTarget":0,"context":"Thread handler","framePointer":2216122216},{"callSite":2204449060,"calledTarget":0,"context":"Thread handler","framePointer":2216122312},{"callSite":2204449388,"calledTarget":2204448692,"context":"","framePointer":2216122424},{"callSite":2204210908,"calledTarget":2204449320,"context":"","framePointer":2216122536},{"callSite":2204817476,"calledTarget":0,"context":"Thread handler","framePointer":2216122640},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2216122736},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2216122832}],"instructionPointer":2203676836,"stackBottom":2215991856,"stackPointer":2216120368,"stackTop":2216122927,"threadId":167837711,"threadName":"DHCP","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2212427656},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2212427824},{"callSite":2198103284,"calledTarget":2204787624,"context":"","framePointer":2212427920},{"callSite":2198274660,"calledTarget":2198103228,"context":"","framePointer":2212428032},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2212429936},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2212430032},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2212430128}],"instructionPointer":2204787220,"stackBottom":2212168080,"stackPointer":2212427656,"stackTop":2212430223,"threadId":184614913,"threadName":"main","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2212691976},{"callSite":2199342884,"calledTarget":2204796836,"context":"","framePointer":2212692112},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2212692232},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2212692328},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2212692424}],"instructionPointer":2204796988,"stackBottom":2212430376,"stackPointer":2212691976,"stackTop":2212692519,"threadId":184614914,"threadName":"rmtPool","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2213085752},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2213085920},{"callSite":2197952728,"calledTarget":2204787624,"context":"","framePointer":2213086016},{"callSite":2198316800,"calledTarget":2197952628,"context":"","framePointer":2213086128},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2213086240},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2213086336},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2213086432},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2213086528}],"instructionPointer":2204787220,"stackBottom":2212824480,"stackPointer":2213085752,"stackTop":2213086623,"threadId":184614915,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204793632,"calledTarget":1881154236,"context":"","framePointer":2214803048},{"callSite":2204793444,"calledTarget":2204793468,"context":"","framePointer":2214803152},{"callSite":2204032768,"calledTarget":2204793340,"context":"","framePointer":2214803272},{"callSite":2204033480,"calledTarget":2204032596,"context":"","framePointer":2214803392},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2214803592},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2214803688},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2214803784},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2214803880}],"instructionPointer":2204793632,"stackBottom":2214541832,"stackPointer":2214803048,"stackTop":2214803975,"threadId":184614916,"threadName":"","threadStatus":"WAITING_FOR_EVENT"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2215064896},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2215065000},{"callSite":2204389960,"calledTarget":2203619372,"context":"","framePointer":2215065096},{"callSite":2203731796,"calledTarget":2204389892,"context":"","framePointer":2215065216},{"callSite":2203721968,"calledTarget":0,"context":"Thread handler","framePointer":2215065320},{"callSite":2203739632,"calledTarget":2203721920,"context":"","framePointer":2215065416},{"callSite":2203740132,"calledTarget":2203739428,"context":"","framePointer":2215065560},{"callSite":2197953048,"calledTarget":2203740032,"context":"","framePointer":2215065696},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2215065888},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2215065984},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2215066080},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2215066176}],"instructionPointer":2203676836,"stackBottom":2214804128,"stackPointer":2215064896,"stackTop":2215066271,"threadId":184614917,"threadName":"","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2215334712},{"callSite":2200164872,"calledTarget":2204796836,"context":"","framePointer":2215334848},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2215334944},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2215335040},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2215335136}],"instructionPointer":2204796988,"stackBottom":2215073088,"stackPointer":2215334712,"stackTop":2215335231,"threadId":184614918,"threadName":"RmtBarrThrd","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2215728704},{"callSite":2200828240,"calledTarget":2204796836,"context":"","framePointer":2215728840},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2215729024},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2215729120},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2215729216},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2215729312}],"instructionPointer":2204796988,"stackBottom":2215467264,"stackPointer":2215728704,"stackTop":2215729407,"threadId":184614919,"threadName":"","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204828992,"calledTarget":2204818364,"context":"","framePointer":2215990304},{"callSite":2204829204,"calledTarget":2204828944,"context":"","framePointer":2215990400},{"callSite":2197840640,"calledTarget":2204829176,"context":"","framePointer":2215990536},{"callSite":2197841728,"calledTarget":2197840504,"context":"","framePointer":2215990664},{"callSite":2197842060,"calledTarget":2197841608,"context":"","framePointer":2215990784},{"callSite":2197842224,"calledTarget":2197841932,"context":"","framePointer":2215991224},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2215991320},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2215991416},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2215991512},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2215991608}],"instructionPointer":2204828992,"stackBottom":2215729560,"stackPointer":2215990304,"stackTop":2215991703,"threadId":184614920,"threadName":"","threadStatus":"WAITING_FOR_CONDITION_VARIABLE"},{"callStack":[{"callSite":2204830188,"calledTarget":2204818364,"context":"","framePointer":2216602576},{"callSite":2204792812,"calledTarget":2204830104,"context":"","framePointer":2216602712},{"callSite":2200137824,"calledTarget":2204792772,"context":"","framePointer":2216602808},{"callSite":2200139792,"calledTarget":2200137764,"context":"","framePointer":2216602904},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2216603400},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2216603496},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2216603592}],"instructionPointer":2204830188,"stackBottom":2216341544,"stackPointer":2216602576,"stackTop":2216603687,"threadId":184614921,"threadName":"Scheduler00Thr","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2203676836,"calledTarget":1881154236,"context":"","framePointer":2216864184},{"callSite":2203619604,"calledTarget":2203677320,"context":"","framePointer":2216864288},{"callSite":2204389960,"calledTarget":2203619372,"context":"","framePointer":2216864384},{"callSite":2203729108,"calledTarget":2204389892,"context":"","framePointer":2216864504},{"callSite":2203721968,"calledTarget":0,"context":"Thread handler","framePointer":2216864640},{"callSite":2204384204,"calledTarget":2203721920,"context":"","framePointer":2216864736},{"callSite":2204747284,"calledTarget":0,"context":"Thread handler","framePointer":2216864872},{"callSite":2200131132,"calledTarget":2204747172,"context":"","framePointer":2216864968},{"callSite":2200145844,"calledTarget":2200131048,"context":"","framePointer":2216865064},{"callSite":2200143308,"calledTarget":0,"context":"Thread handler","framePointer":2216865240},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2216865552},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2216865648},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2216865744}],"instructionPointer":2203676836,"stackBottom":2216603696,"stackPointer":2216864184,"stackTop":2216865839,"threadId":184614922,"threadName":"EventRead00Thr","threadStatus":"WAITING_FOR_BSD_WAKEUP"},{"callStack":[{"callSite":2204828992,"calledTarget":2204818364,"context":"","framePointer":2217127112},{"callSite":2204829152,"calledTarget":2204828944,"context":"","framePointer":2217127208},{"callSite":2205277592,"calledTarget":2204829128,"context":"","framePointer":2217127344},{"callSite":2197960232,"calledTarget":2205277584,"context":"","framePointer":2217127440},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2217127608},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2217127704},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2217127800},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2217127896}],"instructionPointer":2204828992,"stackBottom":2216865848,"stackPointer":2217127112,"stackTop":2217127991,"threadId":184614923,"threadName":"Logg","threadStatus":"WAITING_FOR_CONDITION_VARIABLE"},{"callStack":[{"callSite":2204830188,"calledTarget":2204818364,"context":"","framePointer":2217388680},{"callSite":2204792812,"calledTarget":2204830104,"context":"","framePointer":2217388816},{"callSite":2200143720,"calledTarget":2204792772,"context":"","framePointer":2217388912},{"callSite":2200132160,"calledTarget":2200143612,"context":"","framePointer":2217389008},{"callSite":2200132268,"calledTarget":2200131884,"context":"","framePointer":2217389120},{"callSite":2200133860,"calledTarget":2200132244,"context":"","framePointer":2217389256},{"callSite":2200150784,"calledTarget":2200133664,"context":"","framePointer":2217389552},{"callSite":2198099960,"calledTarget":2200150776,"context":"","framePointer":2217389648},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2217389760},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2217389856},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2217389952},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2217390048}],"instructionPointer":2204830188,"stackBottom":2217128000,"stackPointer":2217388680,"stackTop":2217390143,"threadId":184614924,"threadName":"","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2217651432},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2217651600},{"callSite":2198103284,"calledTarget":2204787624,"context":"","framePointer":2217651696},{"callSite":2198103424,"calledTarget":2198103228,"context":"","framePointer":2217651808},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2217651912},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2217652008},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2217652104},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2217652200}],"instructionPointer":2204787220,"stackBottom":2217390152,"stackPointer":2217651432,"stackTop":2217652295,"threadId":184614925,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2217913440},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2217913608},{"callSite":2198161228,"calledTarget":2204787624,"context":"","framePointer":2217913704},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2217914064},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2217914160},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2217914256},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2217914352}],"instructionPointer":2204787220,"stackBottom":2217652304,"stackPointer":2217913440,"stackTop":2217914447,"threadId":184614926,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2218175736},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2218175904},{"callSite":2197952728,"calledTarget":2204787624,"context":"","framePointer":2218176000},{"callSite":2198100228,"calledTarget":2197952628,"context":"","framePointer":2218176112},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2218176216},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2218176312},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2218176408},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2218176504}],"instructionPointer":2204787220,"stackBottom":2217914456,"stackPointer":2218175736,"stackTop":2218176599,"threadId":184614927,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2218437800},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2218437968},{"callSite":2198103284,"calledTarget":2204787624,"context":"","framePointer":2218438064},{"callSite":2198161836,"calledTarget":2198103228,"context":"","framePointer":2218438176},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2218438368},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2218438464},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2218438560},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2218438656}],"instructionPointer":2204787220,"stackBottom":2218176608,"stackPointer":2218437800,"stackTop":2218438751,"threadId":184614928,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2205657452,"calledTarget":1881154280,"context":"","framePointer":2218698912},{"callSite":2198442200,"calledTarget":0,"context":"Thread handler","framePointer":2218699008},{"callSite":2198445724,"calledTarget":2204959440,"context":"","framePointer":2218699280},{"callSite":2199484608,"calledTarget":2198445612,"context":"","framePointer":2218699376},{"callSite":2198304972,"calledTarget":2199484544,"context":"","framePointer":2218699480},{"callSite":2197839216,"calledTarget":0,"context":"Thread handler","framePointer":2218699640},{"callSite":2198182048,"calledTarget":2197839188,"context":"","framePointer":2218699736},{"callSite":2198182184,"calledTarget":2198182044,"context":"","framePointer":2218699848},{"callSite":2197987160,"calledTarget":0,"context":"Thread handler","framePointer":2218699976},{"callSite":2197988104,"calledTarget":2197985408,"context":"","framePointer":2218700328},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2218700520},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2218700616},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2218700712},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2218700808}],"instructionPointer":2205657452,"stackBottom":2218438760,"stackPointer":2218698912,"stackTop":2218700903,"threadId":184614929,"threadName":"XLin","threadStatus":"READY"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2218962280},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2218962448},{"callSite":2199421812,"calledTarget":2204787624,"context":"","framePointer":2218962544},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2218962672},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2218962768},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2218962864},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2218962960}],"instructionPointer":2204787220,"stackBottom":2218700912,"stackPointer":2218962280,"stackTop":2218963055,"threadId":184614930,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204787220,"calledTarget":2204818364,"context":"","framePointer":2219224056},{"callSite":2204787640,"calledTarget":2204787132,"context":"","framePointer":2219224224},{"callSite":2197952728,"calledTarget":2204787624,"context":"","framePointer":2219224320},{"callSite":2200110216,"calledTarget":2197952628,"context":"","framePointer":2219224432},{"callSite":2205492412,"calledTarget":0,"context":"Thread handler","framePointer":2219224824},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2219224920},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2219225016},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2219225112}],"instructionPointer":2204787220,"stackBottom":2218963064,"stackPointer":2219224056,"stackTop":2219225207,"threadId":184614932,"threadName":"","threadStatus":"UNKNOWN"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2219748968},{"callSite":2199342884,"calledTarget":2204796836,"context":"","framePointer":2219749104},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2219749224},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2219749320},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2219749416}],"instructionPointer":2204796988,"stackBottom":2219487368,"stackPointer":2219748968,"stackTop":2219749511,"threadId":184614934,"threadName":"rmtPool","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2221591472},{"callSite":2198439956,"calledTarget":2204796836,"context":"","framePointer":2221591608},{"callSite":2198439980,"calledTarget":2198439872,"context":"","framePointer":2221591736},{"callSite":2198448752,"calledTarget":0,"context":"Thread handler","framePointer":2221591840},{"callSite":2198439160,"calledTarget":0,"context":"Thread handler","framePointer":2221591952},{"callSite":2198442916,"calledTarget":2198439128,"context":"","framePointer":2221592048},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2221592392},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2221592488},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2221592584},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2221592680}],"instructionPointer":2204796988,"stackBottom":2221330632,"stackPointer":2221591472,"stackTop":2221592775,"threadId":184614940,"threadName":"RmtO","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2221854192},{"callSite":2198462696,"calledTarget":2204796836,"context":"","framePointer":2221854328},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2221854544},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2221854640},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2221854736},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2221854832}],"instructionPointer":2204796988,"stackBottom":2221592784,"stackPointer":2221854192,"stackTop":2221854927,"threadId":184614941,"threadName":"RmtI","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2222116344},{"callSite":2198462696,"calledTarget":2204796836,"context":"","framePointer":2222116480},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2222116696},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2222116792},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2222116888},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2222116984}],"instructionPointer":2204796988,"stackBottom":2221854936,"stackPointer":2222116344,"stackTop":2222117079,"threadId":184614942,"threadName":"MRmI","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2222910432},{"callSite":2198439956,"calledTarget":2204796836,"context":"","framePointer":2222910568},{"callSite":2198439980,"calledTarget":2198439872,"context":"","framePointer":2222910696},{"callSite":2198448752,"calledTarget":0,"context":"Thread handler","framePointer":2222910800},{"callSite":2198439160,"calledTarget":0,"context":"Thread handler","framePointer":2222910912},{"callSite":2198442916,"calledTarget":2198439128,"context":"","framePointer":2222911008},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2222911352},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2222911448},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2222911544},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2222911640}],"instructionPointer":2204796988,"stackBottom":2222649592,"stackPointer":2222910432,"stackTop":2222911735,"threadId":184614945,"threadName":"RmtO","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2223173152},{"callSite":2198462696,"calledTarget":2204796836,"context":"","framePointer":2223173288},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2223173504},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2223173600},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2223173696},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2223173792}],"instructionPointer":2204796988,"stackBottom":2222911744,"stackPointer":2223173152,"stackTop":2223173887,"threadId":184614946,"threadName":"RmtI","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2223435304},{"callSite":2198462696,"calledTarget":2204796836,"context":"","framePointer":2223435440},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2223435656},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2223435752},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2223435848},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2223435944}],"instructionPointer":2204796988,"stackBottom":2223173896,"stackPointer":2223435304,"stackTop":2223436039,"threadId":184614947,"threadName":"MRmI","threadStatus":"WAITING_FOR_SEMAPHORE"},{"callStack":[{"callSite":2200157840,"calledTarget":2200154316,"context":"","framePointer":2210435608},{"callSite":2204824832,"calledTarget":0,"context":"Thread handler","framePointer":2210435704},{"callSite":1881154788,"calledTarget":0,"context":"Thread handler","framePointer":2210435800},{"callSite":2204824984,"calledTarget":1881154720,"context":"","framePointer":2210435920},{"callSite":2204711580,"calledTarget":2204824964,"context":"","framePointer":2210436024},{"callSite":2205657368,"calledTarget":0,"context":"Thread handler","framePointer":2210436128},{"callSite":2204831436,"calledTarget":0,"context":"Thread handler","framePointer":2224220816},{"callSite":2204818444,"calledTarget":0,"context":"Thread handler","framePointer":2224221088},{"callSite":2204796988,"calledTarget":2204818364,"context":"","framePointer":2224221192},{"callSite":2198439956,"calledTarget":2204796836,"context":"","framePointer":2224221328},{"callSite":2198439980,"calledTarget":2198439872,"context":"","framePointer":2224221456},{"callSite":2198448752,"calledTarget":0,"context":"Thread handler","framePointer":2224221560},{"callSite":2198439160,"calledTarget":0,"context":"Thread handler","framePointer":2224221672},{"callSite":2198442916,"calledTarget":2198439128,"context":"","framePointer":2224221768},{"callSite":2200165532,"calledTarget":0,"context":"Thread handler","framePointer":2224222112},{"callSite":2204817500,"calledTarget":0,"context":"Thread handler","framePointer":2224222208},{"callSite":1881154668,"calledTarget":0,"context":"Thread handler","framePointer":2224222304},{"callSite":1881154572,"calledTarget":0,"context":"Thread exit","framePointer":2224222400}],"instructionPointer":2200157840,"stackBottom":2223960352,"stackPointer":2210435608,"stackTop":2224222495,"threadId":184614950,"threadName":"RmtO","threadStatus":"READY"}]}],"depthaiCommitHash":"a95f582a61ec9bdbd0f72dec84822455872ffaf7","deviceId":"1844301041AD8E0F00"}
The code I have managed working for hand tracking in the first post, works fine, but it is not synchronized. I would appreciate any hints for making me create a hand coordinate tracker.