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

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.

主站蜘蛛池模板: 广平县| 溆浦县| 乡城县| 朝阳区| 和硕县| 平原县| 宁晋县| 辛集市| 祥云县| 溧阳市| 尉犁县| 吉林市| 和田市| 常宁市| 宿州市| 凯里市| 平乡县| 日照市| 新营市| 明溪县| 达孜县| 乐昌市| 岗巴县| 任丘市| 竹北市| 龙岩市| 个旧市| 岑溪市| 尼木县| 老河口市| 延庆县| 武山县| 河西区| 张掖市| 德保县| 蓬安县| 石棉县| 陵川县| 鄯善县| 华阴市| 清新县|