def init(runner, device):
    calibration = device.readCalibration()
    left_intrinsics = np.array(calibration.getCameraIntrinsics(dai.CameraBoardSocket.LEFT, 1280, 720))
    right_intrinsics = np.array(calibration.getCameraIntrinsics(dai.CameraBoardSocket.RIGHT, 1280, 720))
    runner.custom_arguments['focal_length_left'] = left_intrinsics[(0, 0)]
    runner.custom_arguments['focal_length_right'] = right_intrinsics[(0, 0)]
    runner.custom_arguments['size_left'] = left_intrinsics[(0, 2)]
    runner.custom_arguments['size_right'] = right_intrinsics[(0, 2)]
    runner.custom_arguments['visualizer'] = HumanPoseVisualizer(300, 300, [runner.left_camera_location, runner.right_camera_location], colors=colors, pairs=pairs)
    runner.custom_arguments['visualizer'].start()
def init(runner, device):
    calibration = device.readCalibration()
    left_intrinsics = np.array(calibration.getCameraIntrinsics(dai.CameraBoardSocket.LEFT, 1280, 720))
    right_intrinsics = np.array(calibration.getCameraIntrinsics(dai.CameraBoardSocket.RIGHT, 1280, 720))
    runner.custom_arguments['focal_length_left'] = left_intrinsics[(0, 0)]
    runner.custom_arguments['focal_length_right'] = right_intrinsics[(0, 0)]
    runner.custom_arguments['size_left'] = left_intrinsics[(0, 2)]
    runner.custom_arguments['size_right'] = right_intrinsics[(0, 2)]
    runner.custom_arguments['visualizer'] = HumanPoseVisualizer(300, 300, [runner.left_camera_location, runner.right_camera_location], colors=colors, pairs=pairs)
    runner.custom_arguments['visualizer'].start()