ComfyUI Node
CV Save Camera Params (JSON)
Writes a camera matrix + distortion coefficients to a human-readable JSON file in ComfyUI's output folder, so a calibration done once ('Calibrate Camera (Chessboard)') can be reloaded later with 'CV Load Camera Params (JSON)' instead of recalibrating. Arrays are stored as nested lists (shapes preserved); image size and RMS error are optional metadata (leave at 0 to omit). This is an output node: it has no outputs at all and still runs - the file name it wrote is shown on the node.
CV Save Camera Params (JSON)
- camera_matrix
- dist_coeffs
◄filenamecamera_params►
◄image_width0►
◄image_height0►
◄rms_error0.00►
Categoryimage/CV/low-level
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| camera_matrix | NPARRAY | 3x3 intrinsic matrix K (e.g. from Calibrate Camera or CV Camera Matrix). | |
| dist_coeffs | NPARRAY | Distortion coefficients (k1, k2, p1, p2, k3...). | |
| filename | STRING | camera_params | Output file name; '.json' is appended if missing. Path components are stripped - the file always lands directly in the output folder. |
| image_widthopt | INT | 00–100000 | Calibration image width in px, recorded as metadata. 0 = omit. |
| image_heightopt | INT | 00–100000 | Calibration image height in px, recorded as metadata. 0 = omit. |
| rms_erroropt | FLOAT | 0.000–1000000000 | Reprojection RMS (px) from Calibrate Camera, recorded as metadata. 0 = omit. |
Outputs (0)
No outputs