February 2020
Intermediate to advanced
372 pages
9h 26m
English
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: "OpenCV provides the VideoCapture and VideoWriter classes, which support various video file formats."
A block of code is set as follows:
import cv2grayImage = cv2.imread('MyPic.png', cv2.IMREAD_GRAYSCALE)cv2.imwrite('MyPicGray.png', grayImage)
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 cv2cameraCapture = cv2.VideoCapture(0)fps = 30 # An assumptionsize = (int(cameraCapture.get(cv2.CAP_PROP_FRAME_WIDTH)), ...