depthai icon indicating copy to clipboard operation
depthai copied to clipboard

OAK-D-Lite calibration

Open hyaguchi947d opened this issue 3 years ago • 8 comments

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.

hyaguchi947d avatar Jun 28 '22 09:06 hyaguchi947d

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

Luxonis-Brandon avatar Jul 01 '22 23:07 Luxonis-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.

hyaguchi947d avatar Jul 02 '22 12:07 hyaguchi947d

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 avatar Jul 04 '22 22:07 2ktsch

@2ktsch / @hyaguchi947d
Please install the depthai version in that branch before using the calibration. Here are the steps.

  1. git checkout lite_calibration
  2. python3 install_requirements.py
  3. python3 calibrate.py ...

saching13 avatar Jul 05 '22 15:07 saching13

Well, that does it xD it was easy to overlook.

Thank you!

2ktsch avatar Jul 05 '22 17:07 2ktsch