Figure 1. The official OpenCV logo

OpenCV, short for Open Computer Vision (see Figure 1), is a widely used open-source library for computer vision, machine learning, and imaging applications. It provides a comprehensive set of functions and tools to carry out various operations on images and videos, such as reading and writing images.

In this section we will discuss how OpenCV is used, the important information that OpenCV cannot be used by itself, and the additional programming language is needed such as Python programming language.

For example, we have an image stored in the specific folder path in D:\lab_inside (see Figure 2). The image in this example is called DSC02918.jpg and has a resolution of 1016 x 1816 pixels.

Figure 2. The sample of images colour.

To read the image file with the purpose to get each pixel from the image file can use the source code that is described below;