#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main() {
// Read an image from file
Mat image = imread("input.jpg", IMREAD_COLOR);
// Check if image data is loaded successfully
if (image.empty()) {
cout << "Error: Unable to load image!" << endl;
return -1;
}
// Display the image
imshow("Image", image);
// Wait for a key press to exit
waitKey(0);
return 0;
}
sudo apt-get install libopencv-dev
g++ opencv01.cpp -o cv1 `pkg-config --cflags --libs opencv4`