Join Barron Stone for an in-depth discussion in this video Exploring the code, part of Code Clinic: Python.
In this video, I'll walk you through the section of code…that implements the ten-step process…I described in the previous video.…When you open the code for the sub-image.py script,…you first notice that the program is structured as a class.…My reason for doing this was to support the GUI program,…which we'll cover in the next video.…At the top of the code, there's a somewhat large section…of import statements.…There are a few specific ones worth pointing out…for this video.…I've imported the NumPy package as np.…This is something you'll commonly see done…when using NumPy.…
I've also imported the Pillow package down here.…Importing Pillow is a little strange.…Since it's a fork of the Python imaging library,…you'll actually reference it as PIL and import…the modules you want from it.…In this case, I've imported…the Image and ImageChops modules.…Finally, worth noting,…I've imported the match template function…from the skimage package, and actually from the…feature sub-package within the skimage package.…This package also requires a couple other modules,…
Barron introduce challenges and provides an overview of his solutions in Python. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, Java, PHP, and Ruby.
Skill Level Intermediate
Q: Why can't I access the Lake Pend Orielle site (http://lpo.dt.navy.mil)?
A: The Lake Pend Orielle site is not accessible in some geographical areas. We have contacted the owner of the server to try to resolve this issue.
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S