Monday , August 15 2022
Home / Computer Vision (page 2)

Computer Vision

Resizing the Image in Python using OpenCV

5 Resizing the Image Resizing the Image in Python using OpenCV¶ In [2]: import cv2 img = cv2.imread('machinelearning.png',cv2.IMREAD_COLOR) cv2.imshow('Machine Learning',img) cv2.waitKey(0) cv2.destroyAllWindows() Resize image to 200px 180px ( Width Height )¶ In [3]: import cv2 img = cv2.imread('machinelearning.png',cv2.IMREAD_COLOR) resize = cv2.resize(img, (200, 180)) cv2.imshow('Machine Learning',resize) cv2.waitKey(0) cv2.destroyAllWindows()

Read More »

Extracting the Image Region of Interest (ROI) in Python using OpenCV

4 Extracting the Region of Interest (ROI) Extracting the Image Region of Interest (ROI) in Python using OpenCV¶ Read Actual Image¶ In [2]: import cv2 img = cv2.imread('machinelearning.png',1) cv2.imshow('Machine Learning',img) cv2.waitKey(0) cv2.destroyAllWindows() Read Image from Height 100-200 Pixel and Width 200-400 Pixel¶ In [3]: import cv2 img = cv2.imread('machinelearning.png',1) roi = img[100 …

Read More »

Extracting The Image RGB Values of a Pixel in Python Using OpenCV

3 Extracting the RGB values of a pixel Extracting The Image RGB Values of a Pixel in Python Using OpenCV¶ In [2]: import cv2 img = cv2.imread('machinelearning.png',1) cv2.imshow('Machine Learning',img) cv2.waitKey(0) cv2.destroyAllWindows() Get RGB Value of a Single Pixel¶ In [3]: img[100,100] Out[3]: array([203, 190, 84], dtype=uint8) In [4]: B,G,R = img[100,100] print(B,G,R) 203 …

Read More »

Introduction to OpenCV Python Tutorials

1 Introduction to OpenCV Introduction to OpenCV Python Tutorials¶Getting Started with OpenCV-Python OpenCV is a huge open-source library for computer vision, machine learning, and image processing. It can process images and videos to identify objects, faces, or even the handwriting of a human. OpenCV was started at Intel in 1999 …

Read More »