OpenCV Tutorial
* import cv2 VGA = 640 width x 480 height HD = 1280 width x 720 height FHD = 1920 width x 1080 height 4k = 3840 width x 2160 height Binary image - 2 levels of the image with pixels 0 black and 1 white For normal images we are using 8-bit values, 2 8 which is 256. So we have 254 colors of gray and 0 is black and 256 is white. Now it is known as a grayscale image. In RGB images, we have 3 layers of grayscale images with R, G, B pixels which give the full-color images. So, RGB VHD image is 640 width x 480 height x 3 pixels Import Images cv2.imread(“path of the image”) #imports the image Now we have to see what it imported cv2.imshow(“image window name”, define image we want to display) #displays the image Now, the image will be shown but it’ll vanish within milliseconds. So we need to add delay. cv2.waitKey(“milliseconds”) ...