In file GenData.cpp
Opened this issue · 3 comments
error: non-aggregate type 'std::vector' cannot be initialized with an initializer list
std::vector intValidChars = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have tried running GenData with the same examples, and the classifications.xml and images.xml change. The program say than the training is good and show in red rectangles the characters but the xmls are empty like that:
Clasifications.xml:
< ? xml version = "1.0" ? >
<opencv_storage>
< classifications type_id = "opencv-matrix" >
< rows> 0 < / rows >
< cols> 0 < /cols >
< dt> u< /dt>
< data>< /data >< /classifications>
< /opencv_storage>
Images.xml:
< ?xml version = "1.0"?>
< opencv_storage >
< images type_id = "opencv-matrix">
< rows> 0 < /rows>
< cols> 0< /cols>
< dt> u < /dt>
< data>< /data>< /images>
< /opencv_storage>
I want to adapt your code to handwritten examples with 1, 2, 3 and A, B , C. Any sugestion?
My email: alu0100693737@ull.edu.es I'm a University student.
Thanks in advance
Hi,guys.
I have the same problem.Does any one know why xml files empty after run the the gendata ?
Hi,guys.
I have the same problem.Does any one know why xml files empty after run the the gendata ?
Hi, I can generate the .xml files after run the gendata.
I assume you guys have not typing any key when run gendata,
In fact, you guys need to typing the corresponding key when data training.