Hello,

I am getting the following error when running "calibration_factory_reset.py" from the depthai-python repository:

"Factory reset calibration FAIL: Missing or corrupted factory default calibration"

How do I fix the corrupted factory calibration?

Thanks in advance.

  • erik replied to this.

    Hi nskde99 ,
    OAK-D-Lite is a bit older device, and back then we didn't have "user" and "factory" calibration - we just had one (user), which is being used by default for your camera as well. Thoughts?
    Thanks, Erik

      erik

      Thanks for the answer.

      I have tried recalibrating the camera, and it seems to have updated the camera parameters. Is there any way to get the default parameters back? The default ones seemed to be working better than the current recalibrated ones.

      Thanks.

      • erik replied to this.

        nskde99 I believe calibrate.py backups your current calibration at depthai/resources/[mxid].json. You can take that json and flash it to the device, eg. via calibration flash script.
        Thanks, Erik

          erik

          Thanks for the answer.

          I have lost that file. Is there any other way to get those parameters back?

          Thanks

          • erik replied to this.

            Hi nskde99 ,
            Unfortunately no - how did you lose it? We intentionally added the backup capability to calibrate in exactly these cases.
            Thanks, Erik

              erik

              I ran the calibrate.py script twice, which overwrote the json file.

              Thanks.

              • erik replied to this.

                nskde99 That's unfortunate. With the newer devices (manufactured after mid 2022) this wouldn't happen, as they have separate user and factory calibration. In your case, you can only try calibrating again until you get a good enough calibration.
                Thanks, Erik

                  erik

                  Okay. I will check that. But aren't the camera intrinsic parameters same for all OAK-D Lite, as they are not hand assembled?

                  Thanks

                  • erik replied to this.

                    nskde99 They should be, yes, but I am not sure whether we store factory calibrations of all manufactured cameras at our factory.