Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Android saving enormous Mat object (Java)

$
0
0
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 - `Mat(1000, 40 000, CvType.CV_32FC1);` I try to convert this Mat to byte[] and save it to SharedPreferences but I got outOfMemory exception... Have you any suggestion to speed up or save data? Thx for help.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>