Join Barron Stone for an in-depth discussion in this video Solution Overview, part of Code Clinic: Python.
- View Offline
- Exercise Files
- My solution for this Code Clinic challenge…is a Python script called captionsort.py…which interfaces with a third-party utility…for reading Exif data from images called ExifTool.…When you run the script it'll present you…with a simple user interface here.…You can use the Browse button next to the top entry field…to select the Source Directory, that is the directory…containing the image files to be sorted…and the program will search this directory recursively.…So if you have images buried in sub-folders…within that folder, it'll still find them and sort them.…
The entry field below that functions the same way…and lets you specify the Destination Directory…which is where the program will create…the sort folders and put the images.…If you leave the box below it checked…then the program will copy the images…from the source directory into their appropriate folders…in the destination directory, and if you uncheck it…then the images will be moved rather than copied.…Now before I run this script, I wanna show you…
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
Problem One: Exploring Lake Pend Oreille
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.