The following are some additional steps that I took that finally worked for me. The above posts are really good and got me close but not all the way through. WaitKey(0) // Wait for a keystroke in the window Imshow( "Display window", image ) // Show our image inside it. NamedWindow( "Display window", WINDOW_AUTOSIZE ) // Create a window for display. If(! image.data ) // Check for invalid inputĬout << "Could not open or find the image" << std::endl Image = imread(argv, CV_LOAD_IMAGE_COLOR) // Read the file You can use the following code as a test : #include Ĭout <<" Usage: display_image ImageToLoadAndDisplay" << endl Opencv_photo245 opencv_stitching245 opencv_video245 opencv_videostab245Īdd the built OpenCV library folder, opencv_src_folder/Mingw_build/install/lib to Library search path (-L). Opencv_calib3d245 opencv_contrib245 opencv_core245 opencv_features2d245 opencv_flann245 opencv_gpu245 opencv_highgui245 opencv_imgproc245 opencv_legacy245 opencv_ml245 opencv_nonfree245 opencv_objdetect245 Go to Project > Properties > C/C++ Build > Settings > MinGW C++ Linker > Libraries, and add to the Libraries (-l) separately : (Don't forget to change the 245 to whichever number they use for the lib files)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |