Nodes/comfyui_cv/cv2.getValidDisparityROI
ComfyUI Node

cv2.getValidDisparityROI

Raw wrapper of cv2.getValidDisparityROI(roi1, roi2, minDisparity, numberOfDisparities, blockSize). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.getValidDisparityROI
    • roi
    roi1_x0
    roi1_y0
    roi1_w0
    roi1_h0
    roi2_x0
    roi2_y0
    roi2_w0
    roi2_h0
    minDisparity0
    numberOfDisparities0
    blockSize0
    Categoryimage/CV/low-level/cv2 G

    Inputs (11)

    NameTypeDefaultDescription
    roi1_xINT0-2147483648–2147483647Rectangle top-left corner X in pixels.
    roi1_yINT0-2147483648–2147483647Rectangle top-left corner Y in pixels.
    roi1_wINT00–2147483647Rectangle width in pixels (>= 0).
    roi1_hINT00–2147483647Rectangle height in pixels (>= 0).
    roi2_xINT0-2147483648–2147483647Rectangle top-left corner X in pixels.
    roi2_yINT0-2147483648–2147483647Rectangle top-left corner Y in pixels.
    roi2_wINT00–2147483647Rectangle width in pixels (>= 0).
    roi2_hINT00–2147483647Rectangle height in pixels (>= 0).
    minDisparityINT0-2147483648–2147483647 - - -
    numberOfDisparitiesINT0-2147483648–2147483647 - - -
    blockSizeINT0-2147483648–2147483647 - - -

    Outputs (1)

    NameTypeDescription
    roiBOUNDING_BOX- - - A cv2 Rect as core BOUNDING_BOX data ({x, y, width, height}, nested one group per frame) - feed 'Crop By Bounding Boxes', 'Draw BBoxes', or 'CV Split Tuple' for x/y/w/h.