Giter Site home page Giter Site logo

pdf-ocr's Introduction

pdf-ocr

Recognize page content of a PDF as text Tesseract and Ghostscript.

Prerequisites

Installation

  • Clone or download this repository.
  • Open the solution in Visual Studio and run Install-Package Tesseract -Version 3.0.2 from the Package Manager Console.
  • Download language data files for tesseract 3.04 from the tessdata repository and add them to the tessdata folder of your project. Set Copy to output directory to Always for all the copied files. You can copy only the language files you are interested in (e.g. all the files that starts with eng for English language).

Configuration

Variable name Default Description
Input PDF file inputPdfFile test.pdf, included in the repository The PDF file whose selected page's content will be recognized as text.
Page number pageNumber 1 The number of the page whose content will be recognized as text.
Recognition language ocrLanguage "eng" The language used from tesseract to recognize text. When you change this value, make shure you add the language data files to the tessdata folder. See Installation section.
DPI converting PDF page to image pdfToImageDPI 150 Tesseract can't recognize text from PDF pages. This is way we have to convert the PDF page to an image. This property indicates the DPI when making this convertion.

Tesseract usage

If you need more information on Tesseract usage, please visit its own repository.

pdf-ocr's People

Contributors

omaxel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zencn

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.