官术网_书友最值得收藏!

Inbuilt data structures and input/output

One of the best things about OpenCV is that it provides a lot of in-built primitives to handle operations related to image processing and computer vision. If you have to write something from scratch, you will have to define Image, Point, Rectangle, and so on. These are fundamental to almost any computer vision algorithm.

OpenCV comes with all these basic structures out of the box, contained in the core module. Another advantage is that these structures have already been optimized for speed and memory, and so you don't have to worry about the implementation details.

The imgcodecs module handles reading and writing of image files. When you operate on an input image and create an output image, you can save it as a .jpg or a .png file with a simple command.

You will be dealing with a lot of video files when you work with cameras. The videoio module handles everything related to the input and output of video files. You can easily capture a video from the webcam or read a video file in many different formats. You can even save a bunch of frames as a video file by setting properties such as frames per second, frame size, and so on.

主站蜘蛛池模板: 防城港市| 东山县| 肥东县| 天气| 佛坪县| 长海县| 巫山县| 红安县| 台南县| 嘉鱼县| 博野县| 封丘县| 崇礼县| 桂东县| 衡水市| 青田县| 许昌县| 东莞市| 绥江县| 鄂尔多斯市| 六盘水市| 达拉特旗| 平远县| 平凉市| 邢台市| 昌平区| 阜平县| 松桃| 桃江县| 丽江市| 贵州省| 咸阳市| 曲麻莱县| 综艺| 开远市| 古丈县| 汉阴县| 新兴县| 瓦房店市| 东乌珠穆沁旗| 社会|