Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by wibis ( 6 years ago )
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/ml/ml.hpp"
#include "opencv2/objdetect/objdetect.hpp"
void main()
{
cv::Mat img; //variabel img
img = cv::imread("img.jpg",1); //baca gambar + mode 1 gambar -BGR-
cv::namedWindow("DISPLAY"); //membuat window untuk output bernama DISPLAY
cv::imshow("DISPLAY", img); //Menampilkan gambar ke window DISPLAY
cv::waitKey(10000); //jeda program menunggu 10000 ms
}
Revise this Paste