diff --git a/OpenCV_test/main.cpp b/OpenCV_test/main.cpp deleted file mode 100644 index 4ca28b2..0000000 --- a/OpenCV_test/main.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include -using namespace cv; - -int main(int argc,char ** argv){ - //If no image file name, throw a error - if(argc != 2){ - std::cout<<"Usage:OpenCV_test "< +#include +#include +#include +using namespace cv; + +int main(int argc,char ** argv){ + std::fstream infile; + char filename[128]; + + infile.open("filename.txt",std::ios_base::in); + if(infile.is_open()){ + infile.read(filename, sizeof(filename)); + } + + // //If no image file name, throw a error + // if(argc != 2){ + // std::cout<<"Usage:OpenCV_test "<