Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@berak, You right, I put trainClasses.put(0, 0, myint); after the loop and I set k=1 (I tested k > 5, but I had only 5 images....) and it's work. I'm using float (labels), because when I'm using int I have an error: java.lang.UnsupportedOperationException: Mat data type is not compatible: 5 So now, it's work very well. Thx