Files
PhotonVision/test-resources/calibration/laptop.json
Matt 7f09f9e4f5 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 16:32:04 -05:00

50 lines
912 B
JSON

{
"resolution": {
"width": 640.0,
"height": 480.0
},
"cameraIntrinsics": {
"rows": 3,
"cols": 3,
"type": 6,
"data": [
410.4028898545882,
0.0,
350.95291341589126,
0.0,
410.8726634829675,
280.32598718320787,
0.0,
0.0,
1.0
]
},
"distCoeffs": {
"rows": 1,
"cols": 5,
"type": 6,
"data": [
-0.021269487457462776,
0.042073800232098744,
-0.0010656307739283326,
-1.8898612331202133E-4,
-0.05103793785091001
]
},
"perViewErrors": [
0.3271556904771105,
0.4077292650048617,
0.23269324227751076,
0.2606465268737996,
0.26207218581423936,
0.22892033260696723,
0.3804725205197434,
0.29928180370583635,
0.22597187049584028,
0.20595629853718903,
0.29375120435163166,
0.1575525605544652
],
"standardDeviation": 0.06929862097246627
}