Hey @flash,
Thanks for sending the calibration dump from the camera that’s failing.
Could you please run the updated calibration bundle script below on your working OAK-D Lite as well?
import depthai as dai, json
from pathlib import Path
def to_obj(x): # dict vs str across versions
return x if isinstance(x, dict) else json.loads(x)
with dai.Device() as dev:
devid = dev.getDeviceId()
eff = to_obj(dev.readCalibration2().eepromToJson())
fac = None
try:
fac = to_obj(dev.readFactoryCalibration().eepromToJson())
except dai.EepromError:
fac = None # factory partition not present/invalid is OK on some units
bundle = {
"meta": {"deviceId": devid, "depthai_version": getattr(dai, "__version__", "unknown")},
"USER CALIBRATION": eff,
"FACTORY CALIBRATION": fac,
}
out = Path(f"{devid}_calibration_bundle.json")
out.write_text(json.dumps(bundle, indent=2))
print(f"Wrote {out} "
f"(user bytes={len(json.dumps(eff))}, "
f"factory bytes={len(json.dumps(fac)) if fac is not None else 0})")
Once we have the dump from the working camera too, we can compare the two and confirm the next steps.
Thanks!
Oskar