PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
260 stars 169 forks source link

Add option to create SimCameraProperties from exported calibration JSON #1274

Closed srimanachanta closed 4 months ago

srimanachanta commented 4 months ago

Is your feature request related to a problem? Please describe. There should be an API option to create a SimCameraProperties object from an exported JSON file. If not the whole thing, as much as possible.

Describe the solution you'd like JSON parser for loading the file and then setting the properties, Jackson is already included?

Describe alternatives you've considered Manually adding coefficients to constants.

Additional context This would be for SIM only so it makes sense to allow people to quickly change settings.

srimanachanta commented 4 months ago

NVM this exists, im dumb

mcm001 commented 4 months ago

It does? Would be good to get an example in the docs/examples if not

Best, Matthew Morley BSME candidate, Northeastern University (408) 368-2815

On Mon, Mar 11, 2024 at 11:45 PM Sriman Achanta @.***> wrote:

NVM this exists, im dumb

— Reply to this email directly, view it on GitHub https://github.com/PhotonVision/photonvision/issues/1274#issuecomment-1990104565, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCW3GIHDHJQZVUJMYEG7JLYX2B5RAVCNFSM6AAAAABEROQSNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJQGEYDINJWGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>