keke77 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

huge (2 GB) facedata.xml file size !! #345

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.cvWrite function in facerecognition sample causes a facedata.xml of very huge 
sizes (1.5-3 GB !! )

What is the expected output? What do you see instead?
I'm using several image files before reducing their sizes the xml file was 2.7 
GB I shrinked each to about 300-500 KB but the xml file is still very huge at 
1.7 GB. I know the images are converted and stored in the xml file itself but 
should it really be this large ?!

What version of the product are you using? On what operating system?
Latest JavaCV compiled using Maven running on windows 8 x64

Please provide any additional information below.
This is the part that is making the xml file so large:
   for (i = 0; i < nEigens; i++) {
      String varname = "eigenVect_" + i;
      cvWrite(
              fileStorage, // fs
              varname, // name
              eigenVectArr[i]); // value
   }

Original issue reported on code.google.com by amirhose...@gmail.com on 29 Jul 2013 at 11:50

GoogleCodeExporter commented 9 years ago
I don't know if this is normal, but is it smaller if we do it from C++ without 
JavaCV?

Original comment by samuel.a...@gmail.com on 15 Aug 2013 at 2:59

GoogleCodeExporter commented 9 years ago
Given the lack of feedback, I'm assuming OpenCV produces the same results so 
this issue is unrelated to JavaCV. Please let me know if this only happens with 
JavaCV though and we'll look into that, thanks!

Original comment by samuel.a...@gmail.com on 16 Sep 2013 at 11:27