Nodes/comfyui_cv/cv2.estimateChessboardSharpness
ComfyUI Node

cv2.estimateChessboardSharpness

Raw wrapper of cv2.estimateChessboardSharpness(image, patternSize, corners, rise_distance?, vertical?). 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.estimateChessboardSharpness
  • image
  • patternSize
  • corners
  • sharpness
  • sharpness_map
rise_distance0.8000
verticalfalse
Categoryimage/CV/low-level/cv2 E

Inputs (5)

NameTypeDefaultDescription
imageNPARRAY,IMAGE,MASKGray image used to find chessboard corners 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,0Size of a found chessboard pattern 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.
cornersNPARRAYCorners found by #findChessboardCornersSB A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
rise_distanceoptFLOAT0.8000-1e+38–1e+38Rise distance 0.8 means 10% ... 90% of the final signal strength Preset to the OpenCV default (0.8).
verticaloptBOOLEANfalseBy default edge responses for horizontal lines are calculated Preset to the OpenCV default (False).

Outputs (2)

NameTypeDescription
sharpnessSTRINGScalar(average sharpness, average min brightness, average max brightness,0) A cv2 Scalar as the pack's literal spelling "(c0, c1, c2, c3)" - one value per channel, and exactly what every colour / borderValue input takes.
sharpness_mapNPARRAY