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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Load Camera Params (JSON)
    • camera_matrix
    • dist_coeffs
    • image_width
    • image_height
    • rms_error
    file
    Categoryimage/CV/low-level

    Inputs (1)

    NameTypeDefaultDescription
    fileCOMBOSaved camera-params JSON to load (output folder first, then input folder).

    Outputs (5)

    NameTypeDescription
    camera_matrixNPARRAY3x3 float64 intrinsic matrix K.
    dist_coeffsNPARRAYDistortion coefficients as stored (float64).
    image_widthINTRecorded image width in px, or 0 if absent.
    image_heightINTRecorded image height in px, or 0 if absent.
    rms_errorFLOATRecorded reprojection RMS in px, or 0.0 if absent.