initial commit

This commit is contained in:
USW
2025-03-12 11:59:15 +09:00
commit 41b9b0217f
63 changed files with 1623 additions and 0 deletions

20
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("c:\\coding\\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;
}