Nodes/comfyui_cv/CV ArUco Detect Markers
ComfyUI Node

CV ArUco Detect Markers

Detects ArUco fiducial markers (cv2.aruco.ArucoDetector). Pick the dictionary the markers were printed from - it must match, or nothing is found. Outputs the four image corners of every marker and their integer ids. Finding no markers is a valid result (count = 0, empty arrays with the right dtype), never an error. Feed 'corners' into 'CV ArUco Draw Markers' to visualize, or into 'CV ArUco Board Pose' to recover the board's 3D pose for an augmented-reality overlay.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV ArUco Detect Markers
  • image
  • corners
  • ids
  • count
dictionaryDICT_6X6_250
Categoryimage/CV/features

Inputs (2)

NameTypeDefaultDescription
imageNPARRAY,IMAGEImage containing the markers (BGR or gray). 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.
dictionaryCOMBODICT_6X6_250ArUco dictionary the markers belong to. The NxN in the name is the marker's internal bit grid; the trailing number is the dictionary size. Must match the printed markers.

Outputs (3)

NameTypeDescription
cornersNPARRAYMarker corners, (N, 4, 2) float32 in clockwise order starting top-left. Empty (0, 4, 2) when none found.
idsNPARRAYMarker ids, (N,) int32. Empty (0,) when none found.
countINTNumber of markers detected.