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

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.
主站蜘蛛池模板: 九江市| 高密市| 溧阳市| 隆德县| 开远市| 孝义市| 阳泉市| 玉环县| 永善县| 鹿邑县| 个旧市| 沂源县| 天镇县| 南昌县| 鸡东县| 武隆县| 古浪县| 九龙县| 彰化市| 若羌县| 清河县| 石家庄市| 陈巴尔虎旗| 宁德市| 佛学| 新竹县| 开平市| 文安县| 玛曲县| 城固县| 聊城市| 霍城县| 尤溪县| 太仆寺旗| 昔阳县| 乌拉特后旗| 新乐市| 西和县| 奈曼旗| 建宁县| 霍林郭勒市|