ComfyUI Node
CV Optical Flow Flags
Authors a flags value once and fans it out: wire the 'flags' STRING output into the flags input of any number of cv2_calcOpticalFlowPyrLK / cv2_calcOpticalFlowFarneback nodes so they all share one configuration. Each toggle ORs one bit in. Each function ignores the other's bit (LK_GET_MIN_EIGENVALS is PyrLK-only, FARNEBACK_GAUSSIAN is Farneback-only). The 'value' INT output is the resolved integer for raw int flag params or MathExpression.
CV Optical Flow Flags
- flags
- value
◄flagsnone (0)►
Categoryimage/CV/low-level
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| flags | STRING | none (0) | Pipe-joined cv2 constant names, e.g. "none (0) | OPTFLOW_USE_INITIAL_FLOW". In the UI this renders as a base dropdown with one toggle per flag. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| flags | STRING | The pipe-joined flags string - wire it into the flags input of cv2_calcOpticalFlowPyrLK / cv2_calcOpticalFlowFarneback nodes. |
| value | INT | The resolved integer (constants OR-ed together). |