Module: Tesseract

Defined in:
lib/tesseract-ocr.rb,
lib/tesseract/c.rb,
lib/tesseract/api.rb,
lib/tesseract/engine.rb,
lib/tesseract/version.rb,
lib/tesseract/iterator.rb,
lib/tesseract/api/image.rb,
lib/tesseract/c/baseapi.rb,
lib/tesseract/c/iterator.rb,
lib/tesseract/c/leptonica.rb,
lib/tesseract/api/iterator.rb,
lib/tesseract/engine/baseline.rb,
lib/tesseract/engine/iterator.rb,
lib/tesseract/engine/orientation.rb,
lib/tesseract/engine/bounding_box.rb,
lib/tesseract/engine/font_attributes.rb

Overview

– Copyright 2011 meh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of
   conditions and the following disclaimer.

THIS SOFTWARE IS PROVIDED BY meh ”AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of meh. ++

Defined Under Namespace

Modules: C Classes: API, Engine, Iterator

Class Method Summary collapse

Class Method Details

.prefixObject



26
27
28
# File 'lib/tesseract-ocr.rb', line 26

def self.prefix
	ENV['TESSDATA_PREFIX']
end

.prefix=(path) ⇒ Object



30
31
32
# File 'lib/tesseract-ocr.rb', line 30

def self.prefix=(path)
	ENV['TESSDATA_PREFIX'] = path
end

.versionObject



26
27
28
# File 'lib/tesseract/version.rb', line 26

def self.version
	'0.1.8'
end