From 7201cda8bb44ecc3eafc2ba70f0c243998e786f0 Mon Sep 17 00:00:00 2001 From: Thomas Boy <thomas-boy@idiv.de> Date: Mon, 27 Aug 2018 15:22:59 +0200 Subject: [PATCH] try next bug fix, huge work around for corrupted file test --- Demo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Demo.cpp b/Demo.cpp index 6ab12a8..cc605d3 100644 --- a/Demo.cpp +++ b/Demo.cpp @@ -690,7 +690,7 @@ int main(int argc, char * argv[]) std::string nameOutErrorList = outputDir + "fileErrorList.yml"; cout <<"amount of file errors: "<< myFileErrorList.size()<<endl; FileStorage fs2(nameOutErrorList.c_str(), FileStorage::WRITE); - fs2 << "fileErrorIO" << myFileErrorList; + fs2 << "fileErrorIOs" << myFileErrorList; //we write error list no contours found in file cout <<"amount contour errors with canny edge: "<< myFileListNoContour.size()<<endl; @@ -698,7 +698,13 @@ int main(int argc, char * argv[]) //we write error list no contours found in file cout <<"amount contour errors after selection: "<< myFileListAfterContourSelection.size()<<endl; - fs2 << "fileErrorNoContoursAfterSelection" << myFileListAfterContourSelection; + fs2 << "fileErrorNoContoursAfterSelections" << myFileListAfterContourSelection; + + + //we write error list no contours found in file + cout <<"amount of corrupted jpg files: "<< myFileListCorrupted.size()<<endl; + fs2 << "fileErrorIOcorruptFiles" << myFileListCorrupted; + fs2.release(); -- GitLab