Ask Your Question

OpenCV and CardIO conflict in iOS

asked 2017-09-20 02:40:23 -0500

Biowolf gravatar image

updated 2017-09-20 04:46:55 -0500

Please, help me! I have both OpenCV and CardIO frameworks in one project. Without CardIO it's work great, but with CardIO i receive follow error: EXC_BAD_ACCESS in cv::cvtColor function.

What are the ways to solve this problem?

Can I build a CardIO with the included dynamic OpenCV framework in order not to connect the OpenCV separately?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-20 06:09:35 -0500

Looking at it seems one of the dependencies of the framework is OpenCV itself. My best guess, it uses a different version of OpenCV than you are using and thus generating issues. Probably they are also using the cv namespace, leading to these problems.

It seems they integrated only part of the OpenCV library, by simply copying the functionality and headers, which is just a bad way of working and generating issues for you now!

edit flag offensive delete link more


Thank you for answer. Yes, they integrated libopencv_core.a and libopencv_imgproc.a that i am using too in my project.

Can I build an OpenCV in the form of a static library with header files to later add it to CardIO?

Biowolf gravatar imageBiowolf ( 2017-09-20 06:25:42 -0500 )edit

what they do is just plain wrong, instead of building a depencency on OpenCV, they grabbed part of it and never updated anymore. Therefore they have similar and conflicting functionality. How to solve those, probably removing their opencv part and trying to integrate with a working dependency.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-09-20 06:27:49 -0500 )edit

Tell me, please, how can I create OpenCV in the form of a static library so that later I can integrate it? Earlier I tried python script to do this.

Biowolf gravatar imageBiowolf ( 2017-09-20 06:38:35 -0500 )edit

Question Tools

1 follower


Asked: 2017-09-20 02:40:23 -0500

Seen: 212 times

Last updated: Sep 20 '17