• Calibration KeyError: 'left_to_right_distance_cm'

Calibration terminates with error KeyError: 'left_to_right_distance_cm'

File "C:\Users\gstern\AppData\Local\Programs\DepthAI\depthai\calibrate.py", line 570, in calibrate

- self.board_config['board_config']['left_to_right_distance_cm'], 0.0, 0.0]

What are some likely causes?

Is there a way change the board rectangle to a different color than black? It is often difficult to see in the black and white image preview.

Thank you.

Using 2, OV9282-M12s on left/right B/C and an AR0234-M12 on CAM_A.

python3 calibrate.py -s 14.81 -brd bdcfg.txt -db -drgb

bdcfg.txt:

{

"board_config":

{

    "cameras":{

        "CAM_A": {

            "name": "rgb",

            "hfov": 90,

            "type": "color"

        },

        "CAM_B": {

            "name": "left",

            "hfov": 75,

            "type": "mono",

            "extrinsics": {

                "to_cam": "CAM_A",

                "specTranslation": {

                    "x": -14.0,

                    "y": 0,

                    "z": 0

                },

                "rotation":{

                    "r": 0,

                    "p": 0,

                    "y": 0

                }

            }

        },

        "CAM_C": {

            "name": "right",

            "hfov": 75,

            "type": "mono",

            "extrinsics": {

                "to_cam": "CAM_A",

                "specTranslation": {

                    "x": 49,

                    "y": 0,

                    "z": 0

                },

                "rotation":{

                    "r": 0,

                    "p": 0,

                    "y": 0

                }

            }

        }

    },

    "stereo_config":{

        "left_cam": "CAM_B",

        "right_cam": "CAM_C"

    }

}

}

    Hi bob
    What versions of depthai repo and depthai library are you using?
    Also, the values for specTranslation are in cm; surely you are not using a baseline of 63cm?

    Thanks,
    Jaka

    Version 2.20.2.0 and tag v3.4.0.

    I am currently using a 63cm baseline and potentially trying to increase it to 100cm making full use of the 50cm flexes you offer.

      Hi bob
      I'm talking about the version of the https://github.com/luxonis/depthai repo you have installed, which has calibrate.py. Try updating that, seems like you have the older version which still expects left_to_right_distance.

      Thanks,
      Jaka

      Thank you; much better! It would be helpful if calibration files didn't require an SSH key and chocolatey pointed to a newer code base.

      Yes, I know.. You can fix it by changing the ssh to https. We need to change that though.

      Thanks,
      Jaka