Nodes/comfyui_cv/cv2.drawChessboardCorners
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.drawChessboardCorners
  • source
  • patternSize
  • corners
  • result
patternWasFoundfalse
Categoryimage/CV/low-level/cv2 D

Inputs (4)

NameTypeDefaultDescription
sourceCOMFY_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.
patternSizeCV_TUPLE0,0Number 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.
cornersNPARRAYArray of detected corners, the output of #findChessboardCorners. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
patternWasFoundBOOLEANfalseParameter 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)

NameTypeDescription
resultCOMFY_MATCHTYPE_V3Echoes the 'source' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.