How would I go about Saving of a Trained Model of a Person's Set of Face Images to an SQL RDBMs Database?

asked 2015-05-29 15:17:24 -0600

muithi gravatar image

updated 2015-05-29 17:18:08 -0600

I would like to know the best way of saving the face images of a person to an SQL database after training a model of the person's face images.

Would it be OK to serialize the person_images.yml file and save it as field value in a SQL relation or is there a way I can get it as a string, byte array and save it to SQL relation in a RDBMs database?

I am using OpenCv with Java and this is the function I am looking at FaceRecognizer.save("person_images.yml") to FaceRecognizer.save("how_can_I save_this_to_SQL_Database?")

edit retag flag offensive close merge delete

Comments

hmm, could you clarify, which java wrapper api you're using here ?

berak gravatar imageberak ( 2015-05-29 15:29:39 -0600 )edit

Hi berak, I am using javacv from javacv-0.11 binary bundles.Is that what you were inquiring about?

muithi gravatar imagemuithi ( 2015-05-29 17:06:53 -0600 )edit

yes, exactly. because now this means, that you're using a unsupported 3rd party api, which is unfortunately totally different and incompatible to opencv's own .

berak gravatar imageberak ( 2015-05-30 02:23:53 -0600 )edit

Both opencv and javacv save to a file. I know with javacv I am on my own unlike if I was using opencv where there's adequate support and documentation. I think I figured out how to go about it. I just need some little time to accomplish it then I share it here for anyone else looking for the same to freely use it.

muithi gravatar imagemuithi ( 2015-05-30 02:39:09 -0600 )edit