Get Started         Best Practices         Developer Guide         FAQ        
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

OpenCV conflict

Michele Jan 12, 2017

Hi,

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?

Thanks,

Michele


( Agent )
Luis Martinell

Jan 13, 2017

Hi Michele,

Just download the latest version again. We did a minor update recently which includes a fix for this.

Best regards,
Catchoom Team

0 rated
Michele

Jan 13, 2017

Thank you Luis,

I re-downloaded the SDK from the same link that was first sent me via eMail.
Unfortunately, the error still remains, and disappears when I take OpenCV out of my project.

Any other idea?

Thanks
0 rated
( Agent )
Luis Martinell

Jan 19, 2017

Hi Michele,

We have reproduced the issue. We are working on a fix to include in the next release of the SDK.

Thanks for the feedback.
Catchoom Team

0 rated
Romeo

Jun 26, 2017

Hi,
I have the same issue and after searching for a solution I have seen this post of January.
My version of ios-image-recognition-on-device-sdk downloaded in May still present the conflict between OpenCV and your Framework.
Have you fixed the SDK? Or Is there a workaround or any kind of solution to fix this issue?
Thank You
Romeo
0 rated
( Agent )
Luis Martinell

Jun 27, 2017

Hi,
We will include this in the new version of the SDK which is scheduled for mid-July.

Best regards!

1 rated
Romeo

Jun 29, 2017

Hi,

This is a very good news.
I can not wait to download it.

Thank you very much.
0 rated

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Couldn't find what you were looking for?

support@catchoom.com
https://cdn.desk.com/
false
catchoom
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete