1 | initial version |
I know this is an old question, but it was at the top of the searches when I encountered the same issue, so I thought I would attempt to clarify the problem and solution for others that may hit this in a search result:
The problem encountered is a conflict between similar type names declared in OpenCV and iOS, for example - Ptr, Size, Rect, etc.
In order to rectify these conflicts, make sure that the OpenCV imports are declared before any iOS imports, and make sure that there is not a using namespace cv declared before the iOS imports. If this error occurs, the most likely culprit is that the statement "using namespace cv" is declared before the iOS imports, which causes the ambiguous reference in the compiler.