ComfyUI Node
cv2.drawChessboardCorners
Raw wrapper of cv2.drawChessboardCorners(source, patternSize, corners, patternWasFound). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.drawChessboardCorners
- source
- patternSize
- corners
- result
◄patternWasFoundfalse►
Categoryimage/CV/low-level/cv2 D
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| source | COMFY_MATCHTYPE_V3 | The image output(s) echo this input's format. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| patternSize | CV_TUPLE | 0,0 | Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)). One value with 2 components (w, h) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| corners | NPARRAY | Array of detected corners, the output of #findChessboardCorners. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| patternWasFound | BOOLEAN | false | Parameter indicating whether the complete board was found or not. The return value of #findChessboardCorners should be passed here. The function draws individual chessboard corners detected either as red circles if the board was not found, or as colored corners connected with lines if the board was found. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'source' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |