Nodes/comfyui_cv/CV Save Camera Params (JSON)
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Save Camera Params (JSON)
  • camera_matrix
  • dist_coeffs
    filenamecamera_params
    image_width0
    image_height0
    rms_error0.00
    Categoryimage/CV/low-level

    Inputs (6)

    NameTypeDefaultDescription
    camera_matrixNPARRAY3x3 intrinsic matrix K (e.g. from Calibrate Camera or CV Camera Matrix).
    dist_coeffsNPARRAYDistortion coefficients (k1, k2, p1, p2, k3...).
    filenameSTRINGcamera_paramsOutput file name; '.json' is appended if missing. Path components are stripped - the file always lands directly in the output folder.
    image_widthoptINT00–100000Calibration image width in px, recorded as metadata. 0 = omit.
    image_heightoptINT00–100000Calibration image height in px, recorded as metadata. 0 = omit.
    rms_erroroptFLOAT0.000–1000000000Reprojection RMS (px) from Calibrate Camera, recorded as metadata. 0 = omit.

    Outputs (0)

    No outputs