Join Patrick Royal for an in-depth discussion in this video My solution: Reorganizing the images, part of Code Clinic: Java (2014).
- At this point we've covered how to work with files and…how to extract metadata.…The next step is to combine these concepts and use them to…rearrange the files themselves.…Most of the code for this reorganization is contained…within the reorganized method.…The goal for this function, as stated in the Code Clinic…description, is to take the images and sort them into…a series of buckets based on their captions.…All of the images with captions beginning with the…letter A, should go in the A bucket.…All images with captions starting with B, should go…in the B bucket, and so on.…In the get caption method, we retrieve the tag referring…to the caption but that tag also includes information…about the type of tag, so we need to trim it down a…little bit before we can use it.…
To see how we can do this, I'll add a print statement…to the get caption method that prints out a complete tag.…When I run the project, you can see the structure of…each tag.…Each tag starts with [Iptc] Caption/Abrtact - ,…which is a total of 26 characters before…
Patrick introduces challenges and provide an overview of his solutions in Java. 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++, PHP, Python, and Ruby.
Skill Level Intermediate
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
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.