3

I am developing a C++ project with OpenCV. I was thinking to use Boost library to do a simple ls, but I would like to follow opencv standars..

How can I do a cross plataform listing files with opencv?

dynamic
  • 45,586
  • 54
  • 150
  • 229

2 Answers2

2

OpenCV is not created to solve such problems - you have to use another API. Look at this stacloverflow discussion. It seems that it's cross-platform.

Community
  • 1
  • 1
ArtemStorozhuk
  • 8,660
  • 4
  • 32
  • 52
1

There is a header

opencv2\contrib\contrib.hpp

It contains a class called Directory and few functions like GetListFiles,

GetListFolders and GetListFilesR.

You can try it out, but it's not available in Opencv3.