Giter Club home page Giter Club logo

piccoku's Introduction

Piccoku

Piccoku uses computer vision, synonyms, grammar, and syntax rules to write you a haiku based on user-generated photos, attempting to distill the artistic essence of smartphone snapshots into poetry. The haiku is a style of poetry characterized by 3 lines in specific syllable patterns.

The haiku is generated by our algorithm, then overlaid onto your image, creating your "piccoku" (picture + haiku), which can easily be shared through social media channels or messaging applications.

To see a gallery of all piccokus, check piccoku.com.

Inspiration

We all know a picture is worth a thousand words, but how about 17 syllables? This project was born from the synthesis of computer science, photography, and poetry. We really wanted to explore the possibilities of applying machine learning to artistic creations.

How we built it

We used Microsoft Azure's Computer Vision API to extract keywords from the user-submitted images. Then, the keywords were added to phrases from DataMuse API (synonyms, syntax, grammar, syllable count). We had a web app built through Rails, primarily for data persistence. Communication between the iOS app and web app is facilitated by exposed endpoints that acted as RESTful APIs.

https://ancient-plateau-48847.herokuapp.com/

GET /

Example Response 200 OK: {
    "id"         : 92,
    "user_name"  : null,
    "url"        : "<insert encoded base64String here>",
    "created_at" : "2018-03-04T23:23:34.401Z",
    "updated_at" : "2018-03-04T23:23:34.401Z",
    "line1"      : "other small inside",
    "line2"      : "The Black elegant warm ",
    "line3"      : "indoor floats and slept"
}

POST /images/create

Example Data: {
    "url"   : "<insert encoded base64String here>",
    "name"  : "Billy",
    "line1" : "other small inside",
    "line2" : "The Black elegant warm ",
    "line3" : "indoor floats and slept"
}

We built the iOS application entirely in Swift.

The web app is running on Heroku due to the ease of configuration and usage. The design was created using HTML/CSS, and uses Javascript to retrieve information from the API.

piccoku's People

Contributors

emily-yu avatar kevinfang2 avatar kothariaditya avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

emily-yu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.