New
Clarifai is recognized as a Leader in The Forrester Wave™: Computer Vision Tools, Q1 2024
June 2, 2017

Clarifai Featured Hack: Typ Helps You Automatically Sort Large Photo Libraries Into New Folders

Table of Contents:

Any shutterbug can attest – taking photos is the fun part, sorting through photos at the end can be a hassle. Most digital cameras upload all your photos into a folder on your computer by date. TYP is an app that lets you sort pictures on your computer into descriptive folders by the actual content in your pics!

Large, general photo libraries can be a pain to sort through. For the most part, digital cameras upload photos onto your computer in folders sorted by date. You can’t search for a specific photo, like the one where your dog is humping a stuffed bear (what, just me?), and you can’t easily sort your pics into more relevant folders based on subject matter. Well, TaggedYourPic (TYP) is an app that allows you to do just that!


TYP works by taking a folder that has pictures in it and getting words that describe those pictures via the Clarifai API. Then, it lets the user choose which words are most important to them, where to create new folders, and then copies each picture into a new, descriptive folder for easy sorting and searching.


WHY WE ❤ IT
Productivity hacks are always a win, particularly when they’re solving a problem that many people have. Check out the GitHub repo for TYP to try it on your own pics!


HOW YOU DO IT
We caught up with Myles Bradley, student at Coe College studying mathematics and computer science, to talk about his inspiration for TYP.


Clarifai: What inspired your idea for TYP?
Myles: We were inspired by the great opportunity to save a lot of people a lot of time and strife thanks to the great information that Clarifai’s API provided.


How did you build the app?
We used python 2.7. We imported tkinter, os, and shutil. We struggled with sorting the tags for the user to choose from based on how often the tag appeared between the group of photos. We also struggled with coding the program to put the photo in the tag that was most strongly correlated to it when there was more than one chosen tag that applied to a photo.


What was the best part about working with the Clarifai API?
The Clarifai API was super easy to use once we had the right software installed. It was a lot of fun and made our project very easy to accomplish for us. We couldn’t have asked for a better API when it came to this project.


Thanks for sharing, Myles!
To learn more, check out our documentation and sign-up for a free Clarifai account to start using our API – all it takes is three lines of code to get up and running! We’re super excited to share all the cool things built by our developer community, so don’t forget to tweet @Clarifai to show us your apps.
And give Myles some props in the comments below. Until next time!