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

An introduction to handling files and images

Before going deeper in handling files and images, we are going to give you an overview of what we will look at in this chapter. This overview is summarized in the following diagram:

In the preceding diagram, you can see that a computer vision project (for example, an OpenCV and Python project) should deal with some input files (for example, files and images). Additionally, after some processing, the project can output some files (for example, images and files). So, in this chapter, we are going to see how to cope with these requirements and how to implement this flow (input-processing-output) properly.

A primary and necessary step to execute a program is to properly cope with command-line arguments, which are parameters that are given to a program or script containing some kind of parameterized information. For example, if you write a script to add two numbers, a common approach is to have two arguments, which are the two numbers that are necessary to perform the addition. In computer vision projects, images and different types of files are usually passed to the script as command-line arguments.

Command-line arguments are a common and simple way to parameterize the execution of programs.
主站蜘蛛池模板: 迁西县| 平和县| 上犹县| 镇巴县| 汕尾市| 庆元县| 孝义市| 昌都县| 龙州县| 万年县| 通山县| 乌鲁木齐县| 彝良县| 石台县| 个旧市| 宝应县| 金阳县| 商水县| 五台县| 泗水县| 拉孜县| 花莲县| 望奎县| 神农架林区| 曲周县| 宝应县| 禹州市| 木里| 宁河县| 宝山区| 屏边| 香港 | 文水县| 盐亭县| 宁波市| 百色市| 余姚市| 阜阳市| 天长市| 永济市| 灌云县|