I am trying to make a tutorial found here for processing ios videos using openCv framework.
I have successfully downloaded the iOS openCv framework into my project - but there seems to be a mismatch between my wireframe and the one presented in the tutorial, and I hope someone can help me.
OpenCv uses the cv::Mat type to represent images. When using delegation of AV-solutions for processing images from the camera - I will need to convert all CMSampleBufferRef to this type.
It seems that the openCV framework presented in the tutorial provides a library using
#import <opencv2/highgui/cap_ios.h>
with the new delegate command:
Can someone tell me where I can find this structure or maybe a quick conversion between CMSampleBufferRef and cv::Mat
EDIT
There are many segmentations in the opencv framework (at least for ios). I downloaded it through various "official" sites, and also used tools like fink and brew using THEIR instructions. I even compared the header files that were installed in / usr / local / include / opencv /. Each time they were different. When loading an openCV project in one project, there are different cmake files and conflicting readme files. I think I managed to create a good version for IOS with the avcapture function built into the framework (with this header <opencv2/highgui/cap_ios.h> ) through this link and then building the library using a python script in the ios directory - using the command python opencv/ios/build_framework.py ios . I will try to update
ios frameworks opencv
Avner barr
source share