Monday, 26 September 2022

How to get list of files inside a folder using cpp opencv glob?

 const int getTotalFiles()
{
    vector<cv::String> fn;
    glob("/workspace/temp/*.jpg", fn, false);
    int count = fn.size(); //number of png files in images folder
    return count;
}

No comments:

Post a Comment