Files
PhotonVision/test-resources/calibration/lifecam480p.json

2 lines
2.1 MiB
JSON
Raw Normal View History

Save calibration data and show preliminary GUI (#1078) * Serialize all calibration data * Run lint * typing nit * fix code * move these tables around some * Add cool formatting * add request to get snapshots by resolution and camera * re-enable all resolutions * add wip so i can change computers (SQUASH ME AND KILL ME AHHHH) * Get everything working but viewing snapshots * Update RequestHandler.java * Update CameraCalibrationInfoCard.vue * Update CameraCalibrationInfoCard.vue * add observation viewer * round * fix illiegal import * Swap to PNG and serialize insolution * move import/export buttons TO THE TOP * Update WebsocketDataTypes.ts * Add snapshotname to observation * Refactor to serialize snapshot image itself * Run lint * Use new base64 image data in info card * Update SettingTypes.ts * Create calibration json -> mrcal converter script * Update calibrationUtils.py * Fix calibrate NPEs in teest * Run lint * Always run cornersubpix * Update CameraCalibrationInfoCard.vue Update CameraCalibrationInfoCard.vue * Update OpenCVHelp.java * Update OpenCVHelp.java * Replace test mode camera JSONs * Run wpiformat * Revert intrinsics but keep other data * Remove misc comments * Rename JsonMat->JsonImageMat and add calobject_warp * Update Server.java * Rename cameraExtrinsics to distCoeffs * fix typing issues * use util methods * Formatting fixes * fix styling * move to devTools * remove unneeded or unused imports * Remove fixed-right css If its really that big of a deal, we can add it back later, kind of a drag to fix rn. * Create util method * Remove extra legacy calibration things --------- Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
2024-01-03 14:32:04 -07:00
{"resolution":{"width":640,"height":480},"cameraIntrinsics":{"rows":3,"cols":3,"type":6,"data":[699.3778103,0,345.6059345,0,677.7161226393,207.12741326,0,0,1]},"distCoeffs":{"rows":1,"cols":5,"type":6,"data":[0.17842191662635046,-1.5061050103964713,0.0045503870319334875,-0.001883521164583945,3.0777378558802435]},"observations":[{"locationInObjectSpace":[{"x":0,"y":0,"z":0},{"x":0.02539999969303608,"y":0,"z":0},{"x":0.05079999938607216,"y":0,"z":0},{"x":0.07620000094175339,"y":0,"z":0},{"x":0.10159999877214432,"y":0,"z":0},{"x":0.12700000405311584,"y":0,"z":0},{"x":0.15240000188350677,"y":0,"z":0},{"x":0.1777999997138977,"y":0,"z":0},{"x":0.20319999754428864,"y":0,"z":0},{"x":0.22859999537467957,"y":0,"z":0},{"x":0,"y":0.02539999969303608,"z":0},{"x":0.02539999969303608,"y":0.02539999969303608,"z":0},{"x":0.05079999938607216,"y":0.02539999969303608,"z":0},{"x":0.07620000094175339,"y":0.02539999969303608,"z":0},{"x":0.10159999877214432,"y":0.02539999969303608,"z":0},{"x":0.12700000405311584,"y":0.02539999969303608,"z":0},{"x":0.15240000188350677,"y":0.02539999969303608,"z":0},{"x":0.1777999997138977,"y":0.02539999969303608,"z":0},{"x":0.20319999754428864,"y":0.02539999969303608,"z":0},{"x":0.22859999537467957,"y":0.02539999969303608,"z":0},{"x":0,"y":0.05079999938607216,"z":0},{"x":0.02539999969303608,"y":0.05079999938607216,"z":0},{"x":0.05079999938607216,"y":0.05079999938607216,"z":0},{"x":0.07620000094175339,"y":0.05079999938607216,"z":0},{"x":0.10159999877214432,"y":0.05079999938607216,"z":0},{"x":0.12700000405311584,"y":0.05079999938607216,"z":0},{"x":0.15240000188350677,"y":0.05079999938607216,"z":0},{"x":0.1777999997138977,"y":0.05079999938607216,"z":0},{"x":0.20319999754428864,"y":0.05079999938607216,"z":0},{"x":0.22859999537467957,"y":0.05079999938607216,"z":0},{"x":0,"y":0.07620000094175339,"z":0},{"x":0.02539999969303608,"y":0.07620000094175339,"z":0},{"x":0.05079999938607216,"y":0.07620000094175339,"z":0},{"x":0.07620000094175339,"y":0.07620000094175339,"z":0},{"x":0.10159999877214432,"y":0.07620000094175339,"z":0},{"x":0.12700000405311584,"y":0.07620000094175339,"z":0},{"x":0.15240000188350677,"y":0.07620000094175339,"z":0},{"x":0.1777999997138977,"y":0.07620000094175339,"z":0},{"x":0.20319999754428864,"y":0.07620000094175339,"z":0},{"x":0.22859999537467957,"y":0.07620000094175339,"z":0},{"x":0,"y":0.10159999877214432,"z":0},{"x":0.02539999969303608,"y":0.10159999877214432,"z":0},{"x":0.05079999938607216,"y":0.10159999877214432,"z":0},{"x":0.07620000094175339,"y":0.10159999877214432,"z":0},{"x":0.10159999877214432,"y":0.10159999877214432,"z":0},{"x":0.12700000405311584,"y":0.10159999877214432,"z":0},{"x":0.15240000188350677,"y":0.10159999877214432,"z":0},{"x":0.1777999997138977,"y":0.10159999877214432,"z":0},{"x":0.20319999754428864,"y":0.10159999877214432,"z":0},{"x":0.22859999537467957,"y":0.10159999877214432,"z":0},{"x":0,"y":0.12700000405311584,"z":0},{"x":0.02539999969303608,"y":0.12700000405311584,"z":0},{"x":0.05079999938607216,"y":0.12700000405311584,"z":0},{"x":0.07620000094175339,"y":0.12700000405311584,"z":0},{"x":0.10159999877214432,"y":0.12700000405311584,"z":0},{"x":0.12700000405311584,"y":0.12700000405311584,"z":0},{"x":0.15240000188350677,"y":0.12700000405311584,"z":0},{"x":0.1777999997138977,"y":0.12700000405311584,"z":0},{"x":0.20319999754428864,"y":0.12700000405311584,"z":0},{"x":0.22859999537467957,"y":0.12700000405311584,"z":0},{"x":0,"y":0.15240000188350677,"z":0},{"x":0.02539999969303608,"y":0.15240000188350677,"z":0},{"x":0.05079999938607216,"y":0.15240000188350677,"z":0},{"x":0.07620000094175339,"y":0.15240000188350677,"z":0},{"x":0.10159999877214432,"y":0.15240000188350677,"z":0},{"x":0.12700000405311584,"y":0.15240000188350677,"z":0},{"x":0.15240000188350677,"y":0.15240000188350677,"z":0},{"x":0.1777999997138977,"y":0.15240000188350677,"z":0},{"x":0.20319999754428864,"y":0.15240000188350677,"z":0},{"x":0.22859999537467957,"y":0.15240000188350677,"z":0},{"x":0,"y":0.1777999997138977,"z":0},{"x":0.02539999969303608,"y":0.1777999997138977,"z":0},{"x":0.05079999938607216,"y":0.177799999