Page 266 - AI Ver 1.0 Class 10
P. 266

Copying a Portion of the Image on to another Image
              This can be done by copying a portion extracted by using cropping and then pasting in a pixel area of another
              image by using img[rows range,columns range] as shown below:




































              Resizing an Image
              Resizing means increasing or decreasing the size of the image in the given frame. It can be done by using
              resize() function:


































              Copy the Image to a Drive
              The image copy can be created on the drive by using imwrite() function.



                        264   Touchpad Artificial Intelligence-X
   261   262   263   264   265   266   267   268   269   270   271