Nodes/comfyui_cv/CV Detect Features
ComfyUI Node

CV Detect Features

Detects local features and computes their descriptors (cv2.ORB/SIFT/AKAZE/BRISK detectAndCompute). Color input is converted to grayscale internally; enable CLAHE to equalize contrast first for low-contrast or unevenly lit images. Chain into 'CV Match Features'. Finding zero keypoints is a valid result (count = 0), not an error - the downstream match/homography nodes handle it, so a failed detection never halts the workflow.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Detect Features
  • image
  • mask
  • keypoints
  • descriptors
  • count
detectorORB
max_features2000
clahefalse
Categoryimage/CV/features

Inputs (5)

NameTypeDefaultDescription
imageNPARRAY,IMAGEImage to detect features in (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.
detectorCOMBOORBORB is fast and free; SIFT is slower but more robust to scale/rotation changes. AKAZE/BRISK ignore max_features.
max_featuresINT20000–100000Maximum keypoints to keep (ORB/SIFT only). ORB: 0 means keep 0 features (empty output); SIFT: 0 means unlimited (keep all detected features). AKAZE/BRISK ignore this input.
claheBOOLEANfalseApply CLAHE contrast equalization before detection - helps on dim or low-contrast images.
maskoptNPARRAY,MASKOptional mask: detect only where mask > 0. 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.

Outputs (3)

NameTypeDescription
keypointsCV_KEYPOINTS
descriptorsNPARRAY
countINT