Is it possible to check status of loading a big size file?
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();
model->load("fisherface.yml");
Something like:
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
Your question was not very clear. If you want to do concurrent tasks you may want to load the file in another thread.
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.