VNGenerateOpticalFlowRequest
An object that generates directional change vectors for each pixel in the targeted image.
Declaration
class VNGenerateOpticalFlowRequestOverview
This request operates at a pixel level, so both images need to have the same dimensions to successfully perform the analysis. Setting a region of interest limits the region in which the analysis occurs. However, the system reports the resulting observation at full resolution.
Optical flow requests are resource-intensive, so create only one request at a time, and release it immediately after generating optical flows.
Topics
Configuring the Request
computationAccuracyVNGenerateOpticalFlowRequest.ComputationAccuracyoutputPixelFormatkeepNetworkOutput