Page 304 - AI Computer 10
P. 304
Step 5: Click the Export button to save image in animated form in your computer.
Step 6: Click the Download button. The image will start downloading.
Once finished, open the image from the Downloads folder.
OPEN SOURCE COMPUTER VISION
OpenCV or Open Source Computer Vision Library is a tool developed by Intel in 1999. This tool helps a computer
extract features from images. It is used for all kinds of images and video processing and analysis. It helps in processing
images and videos to identify objects, faces, or even handwriting. In this chapter, we will use OpenCV for basic image
processing operations on images such as resizing, cropping, and many more.
Install OpenCV library
To install OpenCV library, open Anaconda prompt and write the following command:
pip install opencv-python
The imread() Function
The imread( ) function reads an image and loads it into the computer’s memory. The basic syntax of imread( ) function
is:
cv2.imread(path, fl ag)
170
170