Coder Social home page Coder Social logo

highlightedtextdetector's Introduction

HighlightedTextDetector

Extracts highlighted text from the image of a page

Process an image of a page taken by a handheld device to detect the highlighted portion of the text, and then running OCR for extracting the highlighted text.

Bengali Sample Image English Sample Image

Running The Project

  1. Clone the project from GitHub and import (File > Open) it into PyCharm.

  2. Now install (File > Settings > Project > Python Interpreter > [+] button) following modules into the project: opencv-python, google-cloud-vision, numpy, and Pillow. You may also use commands:

pip install opencv-python 
pip install google-cloud-vision
pip install numpy
pip install Pillow
  1. Setup Google Vision Server:

    a. Create Project: Login into your Google account > Open the Google-Cloud page > Create a project with name- 'HighlightedTextDetector' (you may give any name).

    b. Enable Vision API for The Project & Download Credentials: Go to Vision-Api page > Select your project 'HighlightedTextDetector' > Continue > Are you planning to use this API with App Engine: No > What Credentials do I need? > Service account name: HighlightedTextDetector > Role: Owner > Key type: JSON > Continue > Save (Now, place this JSON file somewhere safe; we will need it for authentication)

    c. Billing Account (Free): Open Billing Page > Add Billing Account > Enter billing account details > Continue > Enter credit-card info > Submit and Enable Billing

For details, visit the official guide.

  1. Open main.py > update the variable GOOGLE_VISION_API_KEY_PATH with your API Key (downloaded JSON) file path > then run processStepByStep.py

highlightedtextdetector's People

Contributors

minhaskamal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

swannedlakee

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.