Due to the COVID-19 pandemic, the ability for one to flex their travels to exotic destinations is virtually non-existent. Fear not, for Fakecation is here to save your Instagram feeds. Simply pick a location, upload a headshot, and this web app will generate an image of you living your best life anywhere around the world!

What it does

This web application accepts a user-uploaded headshot and stitches it using OpenCV to a variety of vacation photos from around the world. The user simply has to select on the map where they wish to travel and in the blink of an eye, a high quality image of themselves is available for immediate posting to all social network profiles.

How we built it

The frontend is built using JavaScript, CSS and HTML, while the backend is controlled by Python and Flask. Vacation images were obtained through scraping public Instagram posts, with a record of their geographic coordinates, country, and city. These images are stored in a PostgreSQL database for retrieval based on how close they are to the user's target destination. A selection of images is then provided, which are combined with the user's headshots using Python's OpenCV2 library. The final edited image is then displayed to the user, who may decide to choose another image or save the image to their local system.

Challenges that we ran into

Restrictive API usage from Instagram, passing of information between frontend and backend, and the accurate fusion of images using OpenCV2.

Accomplishments that we're proud of

The high quality results of our computer vision algorithm!

What we learned

We learned a lot about computer vision and web development technologies.

What's next for Fakecation

Possible addition of extraterrestrial vacation destinations

Share this project: