1 | initial version |
unfortunately, there's no appropriate operator >>
for cv::Mat, that's why reading back your txt-file fails.
you could use the FileStorage for this ( like the eigen reco saves/reads it's mats, look at the top of contrib/src/facerec.cpp ),
but i'd recommend, you store your images as images (imwrite/imread), and keep a txt-file with the filenames and label-id's
this will be much faster and take less space