-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to train? #5
Comments
@Nurgle87 |
@xc-racer99 |
thanks @gheinrich for the project . Stuck at the same stage , as @Nurgle87 . The command to train is not working , throwing below exception. OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /build/opencv-ys8xiq/opencv-2.4.9.1+dfsg/modules/core/src/matrix.cpp, line 323 Appreciate any help on this . Thanks . |
Hi @gheinrich,
first of all, many thanks for this project :)!
Can you send me the commands you used in order to generate the file "svm-prom1.xml" and specify the set of pictures you used to do it? Can you help me @gheinrich ?
I tried several times to create it with the pictures you provide in the project, but I get this error: OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /home/nurgle/Scrivania/opencv-2.4.9/modules/core/src/matrix.cpp, line 323
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nurgle/Scrivania/opencv-2.4.9/modules/core/src/matrix.cpp:323: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat.
I use this command: "../../bibnumber/Debug/bibnumber -train . ." in a folder with the "prom*.jpg" pictures, since I believed you used the "prom*.jpg" pictures to create the aforementioned "*.xml".
Many thanks in advance for your attention.
Best regards,
@Nurgle87
The text was updated successfully, but these errors were encountered: