In this first chapter, we covered the main steps to set upOpenCV and Python tobuildyour computer vision projects. At the beginning of this chapter, we quickly looked at the main concepts in this book – Artificial Intelligence, machine learning, neural networks, and deep learning.Then we explored theOpenCVlibrary, including the history of the library and its main modules. AsOpenCVand other packages can be installed in many operating systems and in different ways, we covered the main approaches.
Specifically, we saw how to install Python,OpenCV,and other packages globally or in a virtual environment. In connection with the installation of the packages, we introduced Anaconda/MinicondaandConda, because we can also create and manage virtual environments.Additionally, Anaconda/Minicondacomes with many open source scientific packages, includingSciPy andNumPy.
We explored the main packages for scientific computing, data science, machine learning, and computer vision, because they offer powerful computational tools. Then we discussed the Python-specificIDEs, includingPyCharm(the defacto PythonIDEenvironment).PyCharm(and otherIDEs) can help us create virtual environments in a very intuitive way. We also looked atJupyterNotebooks, because it can be a good tool for the readers of this book. In the next chapters, moreJupyterNotebooks will be created to give you a better understanding of this useful tool. Finally, we explored anOpenCVand Python project structure, covering the main files that should be included. Then we built our first Python andOpenCV sample project, where we saw the commands to build, run, and test this project.
In the next chapter, you will start to write your first scripts as you get better acquainted with the OpenCV library. You will see some basic concepts necessary to start coding your computer vision projects (for example, understanding main image concepts, the coordinate system in OpenCV, and accessing and manipulating pixels in OpenCV).