tesseract-ocr 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,20 +1,14 @@
1
1
  ruby-tesseract - Ruby bindings and wrapper
2
2
  ==========================================
3
- This wrapper binds the TessBaseAPI object through ffi-inliner (which means it will work on JRuby too)
3
+ This wrapper binds the TessBaseAPI object through ffi-inline (which means it will work on JRuby too)
4
4
  and then proceeds to wrap said API in a more ruby-esque Engine class.
5
5
 
6
6
  Making it work
7
7
  --------------
8
8
  To make this library work you need tesseract-ocr and leptonica libraries and headers and a C++ compiler.
9
9
 
10
- For now you also need to install my own version of [ffi-inliner](https://github.com/meh/ffi-inliner)
11
- because it's still under review for upstream merging.
12
-
13
10
  The gem is called `tesseract-ocr`.
14
11
 
15
- If you're having any problem requiring tesseract or any dependencies, check the permissions of the installed
16
- gems.
17
-
18
12
  Examples
19
13
  --------
20
14
  Following are some examples that show the functionalities provided by tesseract-ocr.
data/lib/tesseract/c.rb CHANGED
@@ -24,12 +24,12 @@
24
24
 
25
25
  require 'ffi'
26
26
  require 'ffi/extra'
27
- require 'ffi/inliner'
27
+ require 'ffi/inline'
28
28
 
29
29
  module Tesseract
30
30
 
31
31
  module C
32
- extend FFI::Inliner
32
+ extend FFI::Inline
33
33
 
34
34
  inline 'C++' do |cpp|
35
35
  cpp.include 'tesseract/strngs.h'
@@ -25,7 +25,7 @@
25
25
  module Tesseract; module C
26
26
 
27
27
  module BaseAPI
28
- extend FFI::Inliner
28
+ extend FFI::Inline
29
29
 
30
30
  inline 'C++' do |cpp|
31
31
  cpp.include 'tesseract/baseapi.h'
@@ -25,7 +25,7 @@
25
25
  module Tesseract; module C
26
26
 
27
27
  module Iterator
28
- extend FFI::Inliner
28
+ extend FFI::Inline
29
29
 
30
30
  inline 'C++' do |cpp|
31
31
  cpp.include 'tesseract/resultiterator.h'
@@ -25,7 +25,7 @@
25
25
  module Tesseract; module C
26
26
 
27
27
  module Leptonica
28
- extend FFI::Inliner
28
+ extend FFI::Inline
29
29
 
30
30
  inline 'C++' do |cpp|
31
31
  cpp.include 'leptonica/allheaders.h'
@@ -24,6 +24,6 @@
24
24
 
25
25
  module Tesseract
26
26
  def self.version
27
- '0.1.3'
27
+ '0.1.4'
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tesseract-ocr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: call-me
16
- requirement: &20256180 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20256180
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: iso-639
27
- requirement: &20255060 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *20255060
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: ffi-extra
38
- requirement: &20254120 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *20254120
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: ffi-inline
49
- requirement: &20239460 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *20239460
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description:
59
79
  email: meh@paranoici.org
60
80
  executables:
@@ -220,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
240
  version: '0'
221
241
  requirements: []
222
242
  rubyforge_project:
223
- rubygems_version: 1.8.11
243
+ rubygems_version: 1.8.23
224
244
  signing_key:
225
245
  specification_version: 3
226
246
  summary: A wrapper library to the tesseract-ocr API.