ComfyUI Node
cv2.optflow.calcOpticalFlowSF (1/2)
Raw wrapper of cv2.optflow.calcOpticalFlowSF(from_, to, layers, averaging_block_size, max_flow). Parameters marked '?' are optional; blank means OpenCV default. From the opencv-contrib 'optflow' module. See the OpenCV documentation for details.
cv2.optflow.calcOpticalFlowSF (1/2)
- from_
- to
- nparray
◄layers0►
◄averaging_block_size0►
◄max_flow0►
Categoryimage/CV/low-level/optflow
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| from_ | NPARRAY,IMAGE,MASK | - - - 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. | |
| to | NPARRAY,IMAGE,MASK | - - - 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. | |
| layers | INT | 0-2147483648–2147483647 | - - - |
| averaging_block_size | INT | 0-2147483648–2147483647 | - - - |
| max_flow | INT | 0-2147483648–2147483647 | - - - |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |