First off, I've been fighting to calibrate one of these for a while and recently managed it, I've not worked with camera kit like this before though so if you've more experience you may avoid a load of the issues I hit… My thread is here though, if you get stuck you may want to have a look through it as I may have already hit whatever problem you are.
What branch are you trying to calibrate from? That looks like the older format of config file is all, there are loads of updates to the calibration procedure since then on depthai
\main
.
For the command line, you also need to specify the size of the markers. the -ih
option is just for your preference, it mirrors the video
python calibrate.py -s 3.4 -ms 2.1 -brd FFC-3P -nx 11 -ny 8
I have a 3P I've been learning to calibrate and my board definition is below for you to use as a reference:
FFC-3P.json
{
"board_config": {
"name": "FFC-3P",
"revision": "R1M0E1",
"cameras": {
"CAM_A": {
"name": "rgb",
"hfov": 69,
"type": "color",
"extrinsics": {
"to_cam": "CAM_C",
"specTranslation": {
"x": -2.85,
"y": 0,
"z": 0
},
"rotation": {
"r": 0,
"p": 0,
"y": 0
}
}
},
"CAM_B": {
"name": "left",
"hfov": 120,
"type": "color",
"extrinsics": {
"to_cam": "CAM_C",
"specTranslation": {
"x": -5.7,
"y": 0,
"z": 0
},
"rotation": {
"r": 0,
"p": 0,
"y": 0
}
}
},
"CAM_C": {
"name": "right",
"hfov": 120,
"type": "color"
}
},
"stereo_config": {
"left_cam": "CAM_B",
"right_cam": "CAM_C"
}
}
}