2015-10-15 13:34:23 -0600 | commented answer | Android saving enormous Mat object (Java) I convert each image (to train) to binary, and save it to file, but it is 140 MB... Maybe I should use lower size each image (now, I have 200x200 px). PS. I wrote app to hand sign recognioton. |
2015-10-12 09:29:51 -0600 | asked a question | Android saving enormous Mat object (Java) I'm writting andorid app where I use KNearest. I wrote code to train model, but every restart app, I must train data again, so I would like to save train data - Have you any suggestion to speed up or save data? Thx for help. |
2015-08-09 12:25:49 -0600 | answered a question | Saving an image using OpenCV & Android If you have Mat, you can convert this to Bitmap: |
2015-08-06 15:36:47 -0600 | commented question | Digit recognition : training responses I think, k value should be lower than number of classes. So when you put k=32 you have result 0.0 |
2015-08-06 14:29:16 -0600 | commented question | KNN findNearest() return always 0.0 openCV4Android 3.0.0 @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 |
2015-08-05 15:24:41 -0600 | asked a question | KNN findNearest() return always 0.0 openCV4Android 3.0.0 I'm writting apk, which recognise hand sign. It's my function to train KNearest model. I'm using 5 images 200x200 px. And my function which test model: variable f is always 0.0, although I pass the same frame_3 (image in png) in train model and findnearest. I have no idea what I am doing wrong |
2015-08-05 09:54:12 -0600 | received badge | ● Critic (source) |
2015-08-05 09:01:23 -0600 | commented answer | How to use KNearest and ANN in OpenCV 3.0 @berak, I check KNearest.java file and actually isn't there save function, but when I write knn. CTRL+Space I have prompt with save function... But it isn't work |
2015-08-05 07:10:23 -0600 | commented answer | How to use KNearest and ANN in OpenCV 3.0 In Android version knn.save("filename") isn't work, apk crash... |
2015-07-23 13:48:13 -0600 | received badge | ● Enthusiast |
2015-07-20 16:14:28 -0600 | received badge | ● Supporter (source) |
2015-07-18 11:35:54 -0600 | asked a question | openCV4Android v.3.0.0 hand sign recognition in Java I would like to write an application on Android, which recognise a sign, in my case alphabet. I have done detection a hand (background substraction), with find biggest contours, convex hull and convexity defects. I was reading about K-Nearest Neighborhood, but how to train date? In Android version of openCV I found method findNearest(Mat samples, int k, Mat results, Mat neighborResponses, Mat dist), but I have no idea how to use that. Anybody help me? |