You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
487 B
16 lines
487 B
#include <opencv2/opencv.hpp>
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
std::cout << "OpenCV Version: " << CV_VERSION << std::endl;
|
|
|
|
// Create a simple test image
|
|
cv::Mat img = cv::Mat::zeros(300, 300, CV_8UC3);
|
|
cv::putText(img, "OpenCV Works!", cv::Point(30, 150),
|
|
cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 255, 0), 2);
|
|
|
|
cv::imwrite("test_output.jpg", img);
|
|
std::cout << "Test image saved to test_output.jpg" << std::endl;
|
|
|
|
return 0;
|
|
}
|
|
|