Giter Site home page Giter Site logo

angelsmreyes / creating-a-searchable-database-with-text-extracted-from-scanned-pdfs-or-images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opokualbert/creating-a-searchable-database-with-text-extracted-from-scanned-pdfs-or-images

1.0 0.0 0.0 233 KB

Jupyter Notebook 100.00%

creating-a-searchable-database-with-text-extracted-from-scanned-pdfs-or-images's Introduction

Creating a searchable database with text extracted from scanned Pdfs or images

In this short tutorial I show how to extract text from images and scanned PDFs and store the results in a database to make the document searchable.

PDF documents and images with text are difficult to work with. Most business people manually read through multiple pages to retrieve the information they are looking for. We want to use a python program that will take a pdf, whether scanned or not as well as any image that contains text and extract the text by page and index each page in a DataFrame which can be stored in any database of your choice and be made available for users to write a search query against the table.

The example we will use is a pdf document with a mini course on Weka by machine learning mastery. The pdf has 23 pages. We will use python packages wand, pillow and pytesseract to convert it to image and then extract each page text , all in one program.

For the package pytesseract to work, download and install tesseract-ocr from this link https://github.com/UB-Mannheim/tesseract/wiki and then run this line pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe" in python. I want to give credit to Ratul Doley.

creating-a-searchable-database-with-text-extracted-from-scanned-pdfs-or-images's People

Contributors

opokualbert avatar

Stargazers

Mariangel Reyes 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.