Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Doesn't look and OpenCV question... agree ? Anyway:

  • DBMS is a way. SQLite works very good also for large record count and it can easily enclosed in your C++ application. Binary blob is supported too but it's up to you to store the images into the DB or use img files.
  • You could use cv::FileStorage but you can't have DB like query funcs.

Some hard coded way (not really flexible)

  • You could save some meta data directly into the image file, EXIF for example, but this is not supported directly by OpenCV. Queries will be hard to do
  • At the end you could save the meta data casting your record as uchar and writing bytes at the bottom of your image (may be adding some rows) but this will be break if you save the image with lossy file format like .jpg