6주차 수업 끝

This commit is contained in:
USW
2025-04-02 12:07:31 +09:00
parent 86a66bbeff
commit f2f018da0c
50 changed files with 2399 additions and 51 deletions

20
ch01/HelloCV/main.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <iostream>
#include "opencv2/opencv.hpp"
int main(int argv, char* argc[]) {
std::cout << "Hello, OpenCV " << CV_VERSION << std::endl;
cv::Mat img;
img = cv::imread("..\\..\\resources\\images\\lenna.bmp");
if (img.empty()) {
std::cerr << "Image load failed!" << std::endl;
return -1;
}
cv::namedWindow("image");
cv::imshow("image", img);
cv::waitKey();
return 0;
}