Giter Site home page Giter Site logo

image-text-summarizer's Introduction

Image-Text-Summarizer

It mainly comes in use when the reader is reading Novels, Stories or anything which contains large set of paragraphs. The reader can take an image of the paragraph and input it to the model. And the model will result in a summary of that paragraph. Basically, the model makes reading easy and time saving for the readers.

Technologies Used

  • Optical Text Recognition
  • Natural Language preprocessing

Make a file ocr.py in the project folder.

Setup Virual Environment

$ virtualenv venv --python=python3.6

$ source venv/bin/activate

Install dependencies

  • Pillow pip3 install Pillow
  • Pytesseract pip3 install pytesseract
  • OpenCV pip3 install opencv-python
  • NLTK pip3 install nltk

Run ocr.py

python3 ocr.py --image images/story1.jpg > story.txt

story.txt

This file contains all the text from the image story1.jpg using OCR with pytesseract.

Make a new file summarize.py

summarize.py

In this file we used python's NLTK for removing stop_words, puctuations. And also word & sentence tokenizers from the NLTK library.

Run summarize.py

python3 summarize.py story.txt > summary.txt

summary.txt

This file contains the summary of the the text file story.txt.

image-text-summarizer's People

Contributors

euno257 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.