Michele Jan 12, 2017
I'm testing CraftAR On Device Image Recognition integration with my iOS app (written in Swift).
Unfortunately, my app already uses the OpenCV library to manipulate images and, in this case, image recognition always fails with the following error:
"Error loading image: ERR_CVLOADIMG" when calling the searchWithImage method. Also, the following message gets printed on the console: "CRE ERROR: Image '' could not be loaded!".
If I try to remove my own dependency from OpenCV, deleting its framework from my project, this error disappears and recognition works flawlessly.
Also, if I instead change the order of frameworks inside the "Link Binary With Libraries" Build Phase, bringing the OpenCV framework before CraftAR's one, CraftAR SDK fails initializing by throwing a EXC_BAD_ACCESS error when calling the sharedCraftARSDK method.
I suspect Craft includes a OpenCV version for its internal usages, which conflicts with mine.
Any clue on how to solve this out?