Nodes/opencv-comfyui/OpenCV reduceArgMin_1
ComfyUI Node

OpenCV reduceArgMin_1

ReduceArgMin_1 — the duplicate you can safely ignore

By geroldmeisinger·Created about a year ago·Updated about a year ago· 35
OpenCV reduceArgMin_1
  • src
  • dst
  • nparray
axis
lastIndex

reduceArgMin_1 is reduceArgMin_0 wearing a different numbered hat. Same inputs, same output, same behavior - a duplicate overload emitted by opencv-comfyui's (geroldmeisinger/opencv-comfyui) code generator, which creates one node per entry in OpenCV's type stubs and this entry shows up twice. You will not find a behavioral difference, because there isn't one.

For the record, the behavior: src (an NPARRAY) plus an axis int (0 → per-column row indices of the minimum, 1 → per-row column indices of the minimum), a lastIndex boolean that picks first vs last occurrence when values tie, and an optional dst out-parameter that exists because OpenCV loves call-by-reference. It outputs an nparray of integer indices - used to locate the darkest row or column for "find the empty strip" style analysis. The output isn't an image, so it doesn't belong in Nparrays2Image.

The full write-up with use cases and the axis-direction trap is in the reduceArgMin_0 article. This page is essentially a signpost.

Installing it

The standard pack install: ComfyUI Manager (search "opencv-comfyui"), or

cd ComfyUI/custom_nodes
git clone https://github.com/geroldmeisinger/opencv-comfyui

restart, then confirm OpenCV:

pip install opencv-contrib-python

No models, no GPU, nothing else. And one more time, the pack-wide rule that makes all these _0/_1 twins less confusing: the number is just the overload counter, not a version. Pick one, and if your search results keep showing you both, that's the generator's eccentricity, not a decision you need to make.

Categoryimage/OpenCV

Inputs (4)

NameTypeDefaultDescription
srcNPARRAY
axisINT
lastIndexBOOLEAN
dstoptNPARRAY

Outputs (1)

NameTypeDescription
nparrayNPARRAY