rtesseract 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -19
- data/lib/rtesseract/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa205feaeb6a538fbe70f6482e2ac8cd99c709b40f977d69addb38689045d9a9
|
4
|
+
data.tar.gz: 9216bd8d9aae244e8e6dd527e050a0281f940a8aeebfcfa3f7d696c1c830a1b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47df8a451610fbbae458851a626fb48a97ecb77a7eb32c24fcc29cb38465e4ac0d170f447cf557ade0ff8776bfee7fe5e102cb1bb32a2eacfbbc6eaf38a89a7d
|
7
|
+
data.tar.gz: 0540a33932743072a560a99ba5a0224ffd855df6dd8890fb2072582cc12af94f62c1aa6d2bf5b193e56bcf9e308f1daef85cd438da04aaffd9d083ba750d1c0a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -66,22 +66,22 @@ This will preserve the image colors, pictures and structure in the generated pdf
|
|
66
66
|
|
67
67
|
### Language
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
69
|
+
```ruby
|
70
|
+
RTesseract.new('test.jpg', lang: 'deu')
|
71
|
+
```
|
72
|
+
|
73
|
+
* eng - English
|
74
|
+
* deu - German
|
75
|
+
* deu-f - German fraktur
|
76
|
+
* fra - French
|
77
|
+
* ita - Italian
|
78
|
+
* nld - Dutch
|
79
|
+
* por - Portuguese
|
80
|
+
* spa - Spanish
|
81
|
+
* vie - Vietnamese
|
82
|
+
* or any other supported by tesseract.
|
83
|
+
|
84
|
+
Note: Make sure you have installed the language to tesseract
|
85
85
|
|
86
86
|
### Other options
|
87
87
|
|
@@ -96,11 +96,9 @@ This will preserve the image colors, pictures and structure in the generated pdf
|
|
96
96
|
```
|
97
97
|
|
98
98
|
### BOUNDING BOX: TO GET WORDS WITH THEIR POSITIONS
|
99
|
-
```ruby
|
100
|
-
RTesseract.new('test_words.png').to_box
|
101
|
-
```
|
102
99
|
|
103
100
|
```ruby
|
101
|
+
RTesseract.new('test_words.png').to_box
|
104
102
|
=> [
|
105
103
|
{:word => 'If', :x_start=>52, :y_start=>13, :x_end=>63, :y_end=>27},
|
106
104
|
{:word => 'you', :x_start=>69, :y_start=>17, :x_end=>100, :y_end=>31},
|
data/lib/rtesseract/version.rb
CHANGED