depthai
depthai copied to clipboard
OAK-D-Lite calibration
I have tried OAK-D-Lite calibration with both main and lite_calibration branches and found some problems.
Firstly, I ran calibrate.py in main branch with option -brd OAK-D-LITE then got the following message.
OAK-D-Lite Calibration is not supported on main yet. Please use `lite_calibration` branch to calibrate your OAK-D-Lite!!
Secondly, I switched branch to lite_calibration and ran calibrate.py again.
The program progressed halfway, but I got an error “EEprom Write Failed!!”.
I compared the two branches and found that this error was caused by calibration_handler.setBoardInfo() because this property is protected.
https://github.com/luxonis/depthai/blob/lite_calibration/calibrate.py#L531
Finally, I removed this function and added calibration_handler = self.device.readCalibration() with reference to the main branch so that it works correctly.
https://github.com/luxonis/depthai/blob/main/calibrate.py#L551
My questions are as follows.
In the first place, why doesn't the main branch support calibration with OAK-D-Lite?
Is it the correct way to use the likte_calibration branch to calibrate OAK-D-Lite?
As mentioned above, the current implementation does not work correctly.
Hi @hyaguchi947d ,
Sorry about the trouble and the delay. Our calibration lead is on vacation this week. Will be back July 5th. So we'll circle back then.
Sorry again about the delay.
And in the meantime - why are you needing to calibrate OAK-D-Lite? It comes factory calibrated which is why we haven't (yet) put much time into supporting mainlined calibration by the end user.
Thanks again and sorry again about the trouble, Brandon
Hello Brandon,
Thank you for your kind reply. I was trying to calibrate to increase the density of the depth map for stereo measurement. I understand that it is recommended to use the factory default calibration.
Hi! Just commenting to be in on the rest of the discussion -- I was also trying to calibrate Oak-D-lite and ran into the same error. As an FYI / use case you might be interested in: I'm re-calibrating because I replaced the depth cameras with the NOIR versions (and will be adding long-pass filters in the housing).
@2ktsch / @hyaguchi947d
Please install the depthai version in that branch before using the calibration.
Here are the steps.
git checkout lite_calibrationpython3 install_requirements.pypython3 calibrate.py ...
Well, that does it xD it was easy to overlook.
Thank you!