April 2019
Intermediate to advanced
336 pages
8h 22m
English
Let's create a new folder for Lazy Eyes and, in this folder, create copies of or links to the ResizeUtils.py and WxUtils.py files from any of our previous Python projects, such as The Living Headlights from Chapter 5, Equipping Your Car with a Rearview Camera and Hazard Detection. Alongside the copies or links, let's create a new file, LazyEyes.py. Edit it and enter the following import statements:
import collectionsimport threadingimport timeitimport numpyimport cv2import wximport pyfftw.interfaces.cachefrom pyfftw.interfaces.scipy_fftpack import fftfrom pyfftw.interfaces.scipy_fftpack import ifftfrom scipy.fftpack import fftfreqimport ResizeUtilsimport WxUtils
Besides the modules that we have used in the previous ...
Read now
Unlock full access