OpenCV 3 Computer Vision with Python Cookbook
上QQ阅读APP看书,第一时间看更新

Reading images from files

In this recipe, we will learn how to read images from files. OpenCV supports reading images in different formats, such as PNG, JPEG, and TIFF. Let's write a program that takes the path to an image as its first parameter, reads the image, and prints its shape and size.