You can visualize some form of the result by reading the pixelBuffer from each VNPixelBufferObservation returned by the VNGenerateOpticalFlowRequest. For me, those results aren't super helpful, so I would also love to see the custom kernel that shows the magnitude and direction of the motion.
Has anyone been able to track it down?
Post
Replies
Boosts
Views
Activity
Thank you for your reply! I have no specific reason to use the Core Image pipeline besides ease of use with the API. I tried switching to a Metal pipeline, but am still seeing the image artifacts and this corresponding error:
metal Execution of the command buffer was aborted due to an error during execution. Internal Error (0000000e:Internal Error)
Another error mentioned the GPU was timing out, but I'm having trouble reproducing that one. Is there any way to make the command buffer wait longer?