May 19, 2016

Clarifai Featured Hack: Make Any Picture Punny with PicAPun

Table of Contents:

PicAPun is an app that turns any image into a hilarious and groan-worthy pun. Like, if you submit a picture of a field of wheat, you’ll get back a quote about how ‘grainy’ it looks. Get it? So punny!

There are hacks that try to change the world, cure diseases, end world hunger, solve the mysteries of the universe, etc., etc. Then, there are hacks like PicAPun, an app that delivers a relevant and punny witticism every time you feed it an image. Sometimes, the best hacks are the ones that make you laugh! If you’re in need of some levity today, check out the GitHub repo to try PicAPun.





We love it when people ‘build’ punny apps, especially when they’re open to ‘constructive’ criticism. Sometimes when you’re a developer, you just need a <br> from the serious things! You can read all about PicAPun’s development on Devpost.


We asked Andrew Sack, Jose Bohorques, Joseph Cacioppo, Marcial Abrahantes, and Carl Amko, all University of Florida students, to explain how they built the PicAPun app.



Clarifai: What inspired your idea for PicAPun?

PicAPun Team: Swamphacks gave us the opportunity to use Clarifai for our 24 hours of hacking. One of our pun-loving members brilliantly thought that we could use the tags that Clarifai produces to create puns about pictures. Then, we made it happen!

What did you use to build your app?

Using one of our amazing resources, Clarifai, we created a Python API hosted on DigitalOcean that makes requests on the Clarifai API to analyze a picture and return its most confident tags. The same Python API then submits some of these tags into a pun generator website. The Python script then obtains the website source code and, with BeautifulSoup, parses the HTML content to obtain the different generated puns and places the image submitted, along with one of the random puns, into our own domain domain.

What was the best part about working with Clarifai’s image recognition API?

This is such a remarkable API. It wasn’t too difficult to use, and its results were impressively correct. We had a great time using it.

Thanks for sharing, pun-dits!

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 Andrew, Jose, Joseph, Marcial, and Carl some props in the comments below. Until next time!