Image Pre-processing using Open CV
Using Jupyter Notebook
Image processing is a method to perform some operations on an image, in order to get an enhanced image or to extract some useful information from it. It is a type of signal processing in which input is an image and output may be image or characteristics/features associated with that image. Here we’re doing image-pre processing using open CV.
Nowadays, image processing is among rapidly growing technologies. It forms core research area within engineering and computer science disciplines too. The aim of pre-processing is an improvement of the image data that suppresses unwilling distortions or enhances some image features important for further processing, although geometric transformations of images (e.g. rotation, scaling, translation) are classified among pre-processing methods.
Firstly, we’ll import libraries.
Now read image, using Open CV.
To find type, we’ll use type method.
To find shape,
To view image, we’ll use ‘imshow’ method.
To view its original color:
To change its color to grayscale,
To change color to gray:
To change color into magma:
To resize image:
To change size of image, providing a specific ratio:
To flip image and having direction to right or left:
To save image with new name in folder:
Hi readers! this is image pre-processing using Open CV. If you like my work, don’t forget to clap.
Thank You.