Book Image

Python Automation Cookbook - Second Edition

By : Jaime Buelta
Book Image

Python Automation Cookbook - Second Edition

By: Jaime Buelta

Overview of this book

In this updated and extended version of Python Automation Cookbook, each chapter now comprises the newest recipes and is revised to align with Python 3.8 and higher. The book includes three new chapters that focus on using Python for test automation, machine learning projects, and for working with messy data. This edition will enable you to develop a sharp understanding of the fundamentals required to automate business processes through real-world tasks, such as developing your first web scraping application, analyzing information to generate spreadsheet reports with graphs, and communicating with automatically generated emails. Once you grasp the basics, you will acquire the practical knowledge to create stunning graphs and charts using Matplotlib, generate rich graphics with relevant information, automate marketing campaigns, build machine learning projects, and execute debugging techniques. By the end of this book, you will be proficient in identifying monotonous tasks and resolving process inefficiencies to produce superior and reliable systems.
Table of Contents (16 chapters)
14
Other Books You May Enjoy
15
Index

Analyzing images with Google Cloud Vision AI

We will acquire basic access to Google Cloud Vision AI to detect what broad categories can be inferred from pictures automatically. These categories are called labels by the API. These labels identify objects (such as a box), locations (such as a landscape), animal species (such as a cat), and other things. We will use images already presented in Chapter 4, Searching and Reading Local Files.

In this recipe, we will set up a Google Cloud account to use its APIs. This process will work as the basis for other recipes in this chapter.

Getting ready

We first need to set up our account with Google, so go to the Google Cloud site at https://cloud.google.com/vision:

Figure 11.1: Main Vision AI page

From there, you can go to Get started for free and set up your account:

Figure 11.2: Registration page

You'll need to set up your credit card information as part of the setup. You should get some free credit...