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

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.
主站蜘蛛池模板: 茌平县| 云南省| 特克斯县| 宁乡县| 宝山区| 三台县| 五常市| 大英县| 曲麻莱县| 望江县| 普格县| 澄城县| 启东市| 奇台县| 南汇区| 徐闻县| 宣威市| 定西市| 土默特左旗| 房山区| 尖扎县| 富源县| 太康县| 齐河县| 徐汇区| 高邑县| 青铜峡市| 清镇市| 疏附县| 革吉县| 德格县| 奉化市| 天气| 牟定县| 周口市| 沙田区| 安阳县| 太谷县| 宾阳县| 亳州市| 乌鲁木齐市|