mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-26 17:37:34 +00:00
scripts: Add setBoardInfo to the DepthAI calibration upload script
This commit is contained in:
parent
1472bdf6b6
commit
345ac9c635
|
@ -171,6 +171,15 @@ with dai.Device(pipeline) as device:
|
|||
|
||||
calh = dai.CalibrationHandler()
|
||||
|
||||
current_eeprom = device.readCalibration().getEepromData()
|
||||
|
||||
# currently only copies whatever is on the device to the new calibration
|
||||
calh.setBoardInfo(productName = current_eeprom.productName, boardName = current_eeprom.boardName,
|
||||
boardRev = current_eeprom.boardRev, boardConf = current_eeprom.boardConf,
|
||||
hardwareConf = current_eeprom.hardwareConf, batchName = current_eeprom.batchName,
|
||||
batchTime = current_eeprom.batchTime, boardOptions = current_eeprom.boardOptions,
|
||||
boardCustom = current_eeprom.boardCustom)
|
||||
|
||||
calh.setCameraExtrinsics(dai.CameraBoardSocket.LEFT, dai.CameraBoardSocket.RIGHT,
|
||||
R, translation=T, specTranslation=[args.baseline, 0, 0])
|
||||
|
||||
|
|
Loading…
Reference in a new issue