Nodes/comfyui_cv/CV Array To Numbers
ComfyUI Node

CV Array To Numbers

Emits an array's values as a ComfyUI LIST of FLOATs - the bridge into the helper packs. Downstream executes once per value, which is how an Inspire foreach iterates detections, and 'Basic data handling: convert Data List to LIST' turns it into that pack's whole sort/filter/min/max surface. For arrays, not images: keep the count small (each value is a separate execution). 'CV Numbers To Array' is the return leg; to iterate whole ROWS as arrays use 'CV Unstack Batch' instead.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Array To Numbers
  • nparray
  • value
  • count
column-1
max_items1024
Categoryimage/CV/low-level

Inputs (3)

NameTypeDefaultDescription
nparrayNPARRAYArray to read. A 2-D array is read row by row unless 'column' picks one column out of it.
columnINT-1-1–4095For a 2-D array: which column to emit (-1 = every value, row by row). Column 4 of a detection table is its score, so this is how a score column reaches the list nodes.
max_itemsoptINT10241–100000Safety cap on the number of values emitted. Each one is a separate downstream execution, so a whole image here would run the rest of the graph a million times.

Outputs (2)

NameTypeDescription
valueFLOATOne FLOAT per value, in order. Cast with 'Basic data handling: to INT' if a consumer needs an integer - INT and FLOAT sockets do not auto-coerce.
countINTHow many values were emitted (after the cap).