There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The cv2.flip function is used for mirroring images."
A block of code is set as follows:
import argparse
import cv2
parser = argparse.ArgumentParser()
parser.add_argument('--path', default='../data/Lena.png', help='Image path.')
params = parser.parse_args()
img = cv2.imread(params.path)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
import argparse
import cv2 parser = argparse.ArgumentParser() parser.add_argument('--path', ...