#include <opencv2/opencv.hpp>
int main() {
// Load image
cv::Mat image = cv::imread("face.jpg", cv::IMREAD_COLOR);
// Check if image was loaded successfully
if (image.empty()) {
cout << "Could not load image." << endl;
return -1;
}
// Create window to display image
cv::namedWindow("Face", cv::WINDOW_NORMAL);
// Show image in window
cv::imshow("Face", image);
// Wait for user to press any key
cv::waitKey(0);
return 0;
}
#why this code is not running. They give a error in first line.
5 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
come on we just told you to be more specific
don't go splitting your problem across 2 places and then ignore comments on it
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.