Is it possible to check status of loading a big size file?

asked 2015-03-30 09:37:51 -0500

john_1282 gravatar image

updated 2015-03-30 09:46:06 -0500

Hello all, I am using the load function in opencv to load a big size file (about 64MB). It works well without error. However, when the application is loading the file, I cannot use any other task. Do we have any way to check that the file is loading? I want to show in the console that "File is loading". If it is finished, I want to show "Done". Could you suggest to me one way to do it? Thanks in advance. This is my code

cv::Ptr<cv::FaceRecognizer>  model;   
model = cv::createFisherFaceRecognizer();
edit retag flag offensive close merge delete



Something like:

std::cout << "File is loading" << std::endl;
std::cout << "Done" << std::endl;
boaz001 gravatar imageboaz001 ( 2015-03-30 10:13:17 -0500 )edit

Thank boaz001. I am developing a MFC application using opencv. It must load a huge size file. Do you have any idea to check that the application is finished loading or not. Your solution is not have any flag to determine it

john_1282 gravatar imagejohn_1282 ( 2015-03-30 22:36:25 -0500 )edit

Your question was not very clear. If you want to do concurrent tasks you may want to load the file in another thread.

boaz001 gravatar imageboaz001 ( 2015-03-31 02:17:13 -0500 )edit

There is no builting progress report on loading YML or XML files. I suggest you to crack open the source code, look where it handles for example nodes and output for example an asterix each time a node is handled to see if loading is still busy.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-31 04:09:02 -0500 )edit