Added the OpenCV with Visual Studio tutorial. Enhanced, extended the Windows Installation one. Some minor CSS changes to avoid unnecessary large spaces inside enumerations in the tutorials.
Esse commit está contido em:
@@ -0,0 +1,24 @@
|
||||
#include <opencv2/core/core.hpp>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace cv;
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
Mat image;
|
||||
image = imread("opencv-logo.png"); // Read the file
|
||||
|
||||
if(! image.data ) // Check for invalid input
|
||||
{
|
||||
std::cout << "Could not open or find the image" << std::endl ;
|
||||
return -1;
|
||||
}
|
||||
|
||||
namedWindow( "Display window", CV_WINDOW_FREERATIO );// Create a window for display.
|
||||
imshow( "Display window", image ); // Show our image inside it.
|
||||
|
||||
waitKey(0); // Wait for a keystroke in the window
|
||||
|
||||
return 0;
|
||||
}
|
||||
Arquivo binário não exibido.
|
Depois Largura: | Altura: | Tamanho: 14 KiB |
Referência em uma Nova Issue
Bloquear um usuário