Git Product home page Git Product logo

hack-a-thing-1-snakes's Introduction

Agastya Gupta & Kevin Tan - Image Text Recognition App

Components: Django OCR Server & iOS CoreML App

We attempted to build an app that would allow one to recognize text in images. Workflow is as follows:

  1. photo taken and processed via iOS app
  2. photo encoded to base64 and sent to django server
  3. photo decoded on django server and processed with tesseract ocr api
  4. text in photo returned to iOS app

What works:

  • the Django server (Agastya)
  • the iOS app's photo and CoreML functionality to some extent (Kevin)

What didn't work:

  • Django version issues
  • Swift version issues caused certain functionalities of the app to be pretty buggy. For instance, image recognition output appears only sometimes in Xcode. Photo taking and saving functionality is not working properly, primarily because we believe the tutorial we followed was in Swift 3 while the current Swift is version 4.

What we learned:

  • iOS development for camera apps (storyboard and Swift)
  • coreML for iOS
  • No cheap computer vision labelling API

Next steps:

  • host Django server on Heroku
  • configure iOS app to send http requests to Heroku server & integrate

Guides referenced:

Django/Tesseract:
https://docs.djangoproject.com/en/2.1/intro/tutorial01/
https://www.bogotobogo.com/python/Django/Python_Django_Image_Files_Uploading_Example.php
https://pypi.org/project/pytesseract/

iOS:
https://www.youtube.com/watch?v=Zv4cJf5qdu0
https://www.youtube.com/watch?v=p6GA8ODlnX0

Resolving CSRF issues:
https://www.fir3net.com/Web-Development/Django/csrf-verification-failed-request-aborted.html
https://stackoverflow.com/questions/38305269/when-tested-http-post-with-chrome-postman-it-doesnt-work-in-django

hack-a-thing-1-snakes's People

Contributors

agastyag avatar kevintanwy avatar

Watchers

 avatar  avatar  avatar

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.