ComfyUI Node
CV Load Camera Params (JSON)
Reads a camera matrix + distortion coefficients back from a JSON file written by 'CV Save Camera Params (JSON)'. The dropdown lists '.json' files in the output folder (where Save writes) and then the input folder. Outputs feed cv2.undistort, cv2.solvePnP, projectPoints, stereoRectify... image_width / image_height / rms_error are 0 when the file did not record them. Refresh the node definitions (reload the page) to pick up files saved during the same session.
CV Load Camera Params (JSON)
- camera_matrix
- dist_coeffs
- image_width
- image_height
- rms_error
◄file▾►
Categoryimage/CV/low-level
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| file | COMBO | Saved camera-params JSON to load (output folder first, then input folder). |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| camera_matrix | NPARRAY | 3x3 float64 intrinsic matrix K. |
| dist_coeffs | NPARRAY | Distortion coefficients as stored (float64). |
| image_width | INT | Recorded image width in px, or 0 if absent. |
| image_height | INT | Recorded image height in px, or 0 if absent. |
| rms_error | FLOAT | Recorded reprojection RMS in px, or 0.0 if absent. |