I am using OpenCV iOS SDK.
While capturing with the device preset AVCaptureSessionPresetiFrame1280x720
, I would like to get motion vectors from h.264 frame, at 30 fps speed.
I want to get numerical vectors and I believe OpenCV can be helpful. But it's not easy for me to research about it quickly.
What OpenCV cv::Mat
methods should I use?
Is it more like finding correct iterator to extract motion vectors?
Does it involve encoding captured video data into h.264 frame before doing anything?