Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

OpenCV + Swift 2 + CvVideoCameraDelegate

$
0
0
Hello guys, I've been studying OpenCV for the last couple of weeks. I'm developing a project using OpenCV 3, Swift 2, iOS 9. It needs real time camera image acquisition. I've followed several tutorials in internet (even in japanese, using translator!). But I couldn't use the CvVideoCameraDelegate in the project :/ My Objective C++ wrapper header (called Camera.h) must implement the CvVideoCameraDelegate. But, to be able to know it, I need to include the file opencv2/videoio/cap_ios.h. The image below shows my project and this header file: ![image description](/upfiles/14399450981009675.png) My bridge file it only contains this wrapper header (called Camera.h). ![image description](/upfiles/14399450602392952.png) But, when I try to build, some errors occurs: Core.hpp/Base.hpp header must be compiled as C++; climits not found. ![image description](/upfiles/14399450456626422.png) This happens because the cap_ios.h is inside the .h header. If I don't use the delegate, and include the cap_ios.h only in the .mm, there is no problem. Well, does anybody knows how to handle this? Thanks for your support. If there is questions about the problem, please ask.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>