Skip to content
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

运行报错 #45

Closed
kassol opened this issue Jul 6, 2015 · 1 comment
Closed

运行报错 #45

kassol opened this issue Jul 6, 2015 · 1 comment

Comments

@kassol
Copy link

kassol commented Jul 6, 2015

平台:OS X 10.10.4

OpenCV 版本:2.4.11

运行命令:./easypr_test recognize -p ../resources/image/plate_recognize.jpg --svm ../resources/model/svm.xml -ann ../resources/model/ann.xml

目录结构:以上命令路径没错

错误信息:OpenCV Error: Assertion failed (layer_sizes != 0) in predict, file /tmp/opencv20150611-92017-pixpdt/opencv-2.4.11/modules/ml/src/ann_mlp.cpp, line 1611
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv20150611-92017-pixpdt/opencv-2.4.11/modules/ml/src/ann_mlp.cpp:1611: error: (-215) layer_sizes != 0 in function predict

@micooz
Copy link
Collaborator

micooz commented Jul 6, 2015

--ann not -ann :)

@micooz micooz closed this as completed Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants