RealOrangeOne / zoloto

A fiducial marker system powered by OpenCV - Supports ArUco and April
https://zoloto.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

Ensure calibration resolution matches camera #292

Closed RealOrangeOne closed 2 years ago

RealOrangeOne commented 2 years ago

As it turns out, the calibrations are directly tied to their resolution, and capturing in a different once causes many strange issues.

This PR not only exposes both the resolution of the camera and the resolution of the calibrations, but adds a check to ensure they are the same.

I've gone with the idea that them differing is an error (exception) rather than a warning, but happy to be told I'm wrong.