In this section, we will look at the important functions of the OpenCV library. After that, we will write a simple C++ program using the OpenCV libraries and perform different image-processing operations on an image.
Image processing with OpenCV
Important functions in OpenCV
Before writing any OpenCV program, it is important to understand some of the main functions in OpenCV and the output that these functions can give us. Let's start by looking at the functions:
- imread(): The imread() function is used to read an image or a video feed from the Pi camera or webcam. Inside the imread() function, we have to provide the location of the image. If the image and program files are in the same folder, we only need to provide...