Nodes/comfyui_cv/cv2.drawMarker
ComfyUI Node

cv2.drawMarker

Raw wrapper of cv2.drawMarker(source, position, color, markerType?, markerSize?, thickness?, line_type?). 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.drawMarker
  • source
  • position
  • result
color(0, 0, 0, 0)
markerTypeMARKER_CROSS
markerSize20
thickness1
line_typeLINE_AA
Categoryimage/CV/low-level/cv2 D

Inputs (7)

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.
positionCV_TUPLE0,0The point where the crosshair is positioned. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place.
colorSTRING(0, 0, 0, 0)Line color. cv2 Scalar as a literal, e.g. "(0, 255, 0)" (BGR) or "(0, 255, 0, 64)" (BGRA). A bare number broadcasts to every component, so "255" means (255, 255, 255, 255). Components past the target's channel count are ignored by OpenCV.
markerTypeoptCOMBOMARKER_CROSSThe specific type of marker you want to use, see #MarkerTypes
markerSizeoptINT20-2147483648–2147483647The length of the marker axis [default = 20 pixels] Preset to the OpenCV default (20).
thicknessoptINT1-2147483648–2147483647Line thickness. Preset to the OpenCV default (1).
line_typeoptCOMBOLINE_AAType of the line, See #LineTypes

Outputs (1)

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