-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No type "Moments" in namespace "cv" #2
Comments
You should use opencv v2.x. Please paste the error message when failing to build the project cloned with |
git clone --recursive git@github.com:noradaiko/caffe-ios-sample.git Please make sure you have the correct access rights |
I'm trying to build you app with already pre-trained caffe's network, which already worked on Linux. Also not sure what should be in labels.txt file (have only *.prototxt and *.caffemodel) |
You should have your SSH key registered on GitHub to clone it. The classifier needs the binaryproto of mean file. Not sure if it works without the mean file. |
Facing problems with building your project.
After adding opencv2.framework(made from opencv 3.0.0) into project and running build it interrupts with errors like:
"~/projects/opencv2.framework/Headers/imgproc/types_c.h:405:21: No type named 'Moments' in namespace 'cv'; did you mean 'CvMoments'?", but replacing it to 'CvMoments' didn't helped.
also I get
Semantic Issues like "~/projects/opencv2.framework/Headers/imgproc/imgproc_c.h:994:42: Redefinition of default argument" in imgproc_c.h's
CVAPI(void) cvLine( CvArr* img, CvPoint pt1, CvPoint pt2,
CvScalar color, int thickness CV_DEFAULT(1),
int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0) );
I'm a bit new to iOS programming so I couldn't find the solution. Maybe I'm using wrong version of opencv? Which have you used? Or, maybe, you know which caused such errors.
Would appreciate any help. Thanks.
BTW. For some reason "git clone --recursive git@github.com:noradaiko/caffe-ios-sample.git" - haven't worked. So i had to separately clone your repo, aleph7's caffe and xcconfigs and revert them to needed versions
The text was updated successfully, but these errors were encountered: