module TesseractFFI
module TesseractFFI
module TesseractFFI
Quick API
module with version
Constants
- DEFAULT
- LEGACY
OCR Engine Modes
OEM
- LEGACY_LTSM
- LTSM
- VERSION
Public Class Methods
to_pdf(in_file_name, out_file_root)
click to toggle source
# File lib/tesseract_ffi/quick.rb, line 11 def self.to_pdf(in_file_name, out_file_root) t = Tesseract.new(file_name: in_file_name) t.convert_to_pdf(out_file_root) t.utf8_text end
to_text(file_name, language = 'eng')
click to toggle source
# File lib/tesseract_ffi/quick.rb, line 5 def self.to_text(file_name, language = 'eng') t = Tesseract.new(file_name: file_name, language: language) t.recognize t.utf8_text end