cloudmersive-ocr-api-client 1.5.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -109
  3. data/Gemfile +0 -7
  4. data/README.md +0 -150
  5. data/Rakefile +0 -8
  6. data/cloudmersive-ocr-api-client.gemspec +0 -45
  7. data/docs/BusinessCardRecognitionResult.md +0 -15
  8. data/docs/FieldResult.md +0 -9
  9. data/docs/FormDefinitionTemplate.md +0 -9
  10. data/docs/FormFieldDefinition.md +0 -25
  11. data/docs/FormRecognitionResult.md +0 -12
  12. data/docs/FormTableColumnDefinition.md +0 -13
  13. data/docs/FormTableDefinition.md +0 -11
  14. data/docs/GetPageAngleResult.md +0 -9
  15. data/docs/ImageOcrApi.md +0 -571
  16. data/docs/ImageToLinesWithLocationResult.md +0 -9
  17. data/docs/ImageToTextResponse.md +0 -9
  18. data/docs/ImageToWordsWithLocationResult.md +0 -9
  19. data/docs/OcrLineElement.md +0 -9
  20. data/docs/OcrPageResult.md +0 -10
  21. data/docs/OcrPageResultWithLinesWithLocation.md +0 -10
  22. data/docs/OcrPageResultWithWordsWithLocation.md +0 -10
  23. data/docs/OcrPhotoTextElement.md +0 -14
  24. data/docs/OcrWordElement.md +0 -18
  25. data/docs/PdfOcrApi.md +0 -191
  26. data/docs/PdfToLinesWithLocationResult.md +0 -9
  27. data/docs/PdfToTextResponse.md +0 -9
  28. data/docs/PdfToWordsWithLocationResult.md +0 -9
  29. data/docs/PhotoToWordsWithLocationResult.md +0 -10
  30. data/docs/Point.md +0 -9
  31. data/docs/PreprocessingApi.md +0 -338
  32. data/docs/ReceiptLineItem.md +0 -9
  33. data/docs/ReceiptRecognitionResult.md +0 -16
  34. data/docs/ReceiptsApi.md +0 -63
  35. data/docs/TableCellResult.md +0 -9
  36. data/docs/TableResult.md +0 -9
  37. data/docs/TableRowResult.md +0 -8
  38. data/git_push.sh +0 -55
  39. data/lib/cloudmersive-ocr-api-client.rb +0 -70
  40. data/lib/cloudmersive-ocr-api-client/api/image_ocr_api.rb +0 -605
  41. data/lib/cloudmersive-ocr-api-client/api/pdf_ocr_api.rb +0 -212
  42. data/lib/cloudmersive-ocr-api-client/api/preprocessing_api.rb +0 -359
  43. data/lib/cloudmersive-ocr-api-client/api/receipts_api.rb +0 -79
  44. data/lib/cloudmersive-ocr-api-client/api_client.rb +0 -389
  45. data/lib/cloudmersive-ocr-api-client/api_error.rb +0 -38
  46. data/lib/cloudmersive-ocr-api-client/configuration.rb +0 -209
  47. data/lib/cloudmersive-ocr-api-client/models/business_card_recognition_result.rb +0 -259
  48. data/lib/cloudmersive-ocr-api-client/models/field_result.rb +0 -201
  49. data/lib/cloudmersive-ocr-api-client/models/form_definition_template.rb +0 -203
  50. data/lib/cloudmersive-ocr-api-client/models/form_field_definition.rb +0 -361
  51. data/lib/cloudmersive-ocr-api-client/models/form_recognition_result.rb +0 -235
  52. data/lib/cloudmersive-ocr-api-client/models/form_table_column_definition.rb +0 -239
  53. data/lib/cloudmersive-ocr-api-client/models/form_table_definition.rb +0 -221
  54. data/lib/cloudmersive-ocr-api-client/models/get_page_angle_result.rb +0 -199
  55. data/lib/cloudmersive-ocr-api-client/models/image_to_lines_with_location_result.rb +0 -201
  56. data/lib/cloudmersive-ocr-api-client/models/image_to_text_response.rb +0 -199
  57. data/lib/cloudmersive-ocr-api-client/models/image_to_words_with_location_result.rb +0 -201
  58. data/lib/cloudmersive-ocr-api-client/models/ocr_line_element.rb +0 -201
  59. data/lib/cloudmersive-ocr-api-client/models/ocr_page_result.rb +0 -209
  60. data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_lines_with_location.rb +0 -211
  61. data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_words_with_location.rb +0 -211
  62. data/lib/cloudmersive-ocr-api-client/models/ocr_photo_text_element.rb +0 -251
  63. data/lib/cloudmersive-ocr-api-client/models/ocr_word_element.rb +0 -289
  64. data/lib/cloudmersive-ocr-api-client/models/pdf_to_lines_with_location_result.rb +0 -201
  65. data/lib/cloudmersive-ocr-api-client/models/pdf_to_text_response.rb +0 -201
  66. data/lib/cloudmersive-ocr-api-client/models/pdf_to_words_with_location_result.rb +0 -201
  67. data/lib/cloudmersive-ocr-api-client/models/photo_to_words_with_location_result.rb +0 -227
  68. data/lib/cloudmersive-ocr-api-client/models/point.rb +0 -199
  69. data/lib/cloudmersive-ocr-api-client/models/receipt_line_item.rb +0 -199
  70. data/lib/cloudmersive-ocr-api-client/models/receipt_recognition_result.rb +0 -271
  71. data/lib/cloudmersive-ocr-api-client/models/table_cell_result.rb +0 -201
  72. data/lib/cloudmersive-ocr-api-client/models/table_result.rb +0 -201
  73. data/lib/cloudmersive-ocr-api-client/models/table_row_result.rb +0 -191
  74. data/lib/cloudmersive-ocr-api-client/version.rb +0 -15
  75. data/spec/api/image_ocr_api_spec.rb +0 -169
  76. data/spec/api/pdf_ocr_api_spec.rb +0 -78
  77. data/spec/api/preprocessing_api_spec.rb +0 -107
  78. data/spec/api/receipts_api_spec.rb +0 -47
  79. data/spec/api_client_spec.rb +0 -226
  80. data/spec/configuration_spec.rb +0 -42
  81. data/spec/models/business_card_recognition_result_spec.rb +0 -84
  82. data/spec/models/field_result_spec.rb +0 -48
  83. data/spec/models/form_definition_template_spec.rb +0 -48
  84. data/spec/models/form_field_definition_spec.rb +0 -144
  85. data/spec/models/form_recognition_result_spec.rb +0 -66
  86. data/spec/models/form_table_column_definition_spec.rb +0 -72
  87. data/spec/models/form_table_definition_spec.rb +0 -60
  88. data/spec/models/get_page_angle_result_spec.rb +0 -48
  89. data/spec/models/image_to_lines_with_location_result_spec.rb +0 -48
  90. data/spec/models/image_to_text_response_spec.rb +0 -48
  91. data/spec/models/image_to_words_with_location_result_spec.rb +0 -48
  92. data/spec/models/ocr_line_element_spec.rb +0 -48
  93. data/spec/models/ocr_page_result_spec.rb +0 -54
  94. data/spec/models/ocr_page_result_with_lines_with_location_spec.rb +0 -54
  95. data/spec/models/ocr_page_result_with_words_with_location_spec.rb +0 -54
  96. data/spec/models/ocr_photo_text_element_spec.rb +0 -78
  97. data/spec/models/ocr_word_element_spec.rb +0 -102
  98. data/spec/models/pdf_to_lines_with_location_result_spec.rb +0 -48
  99. data/spec/models/pdf_to_text_response_spec.rb +0 -48
  100. data/spec/models/pdf_to_words_with_location_result_spec.rb +0 -48
  101. data/spec/models/photo_to_words_with_location_result_spec.rb +0 -54
  102. data/spec/models/point_spec.rb +0 -48
  103. data/spec/models/receipt_line_item_spec.rb +0 -48
  104. data/spec/models/receipt_recognition_result_spec.rb +0 -90
  105. data/spec/models/table_cell_result_spec.rb +0 -48
  106. data/spec/models/table_result_spec.rb +0 -48
  107. data/spec/models/table_row_result_spec.rb +0 -42
  108. data/spec/spec_helper.rb +0 -111
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbf6fe8d17fcebe4636f0b87918956b8a596a3a0f8f902cd0fc907e0ad8a2159
4
- data.tar.gz: c14e9e2d3a617121f5078a76b2963fbd2645610947c820b776627522eb0512e6
3
+ metadata.gz: 79cf3a109c96e84cb291c36c1d9da7c68c439b5edcc2e244359d02054e0b6006
4
+ data.tar.gz: 8e8d9c616dd048e8cce35ed4b2ac98a292d420fc4971b04f247af3e96eb19738
5
5
  SHA512:
6
- metadata.gz: 63e15f6dc0f5fbf2065e2ce1f07a4147a69a92b46d5e655c19a642b6b2ebcf2d9d7782c6276d80a783b91fd973b4ddf542bd93a35af382043192a4322201e064
7
- data.tar.gz: d4671f97cdde8304a5a0bf3fdadfd4146c45bccbd05724230c748ab8af6f3187d3d064177aa7d723adc7ce023183e140a5e494df6c9dbcee172628136a0d8dcb
6
+ metadata.gz: 421a5bcad0c2114ef508399685945042e3a464460ca7512733e34baae71e8a79fb948cf9f4e54a1baa71b84dfb3f67fd011f882aaa3f80e2adc5742d6e0034c9
7
+ data.tar.gz: '03682de619588b64c3cb7501a4e210cdfc3482924dd3e5ea0436f08d2600bd83baaa335bafc8f5b54620235dd6a2f957aba4a32ff3f176c459893b61c8b00583'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-ocr-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -196,113 +196,7 @@ email:
196
196
  executables: []
197
197
  extensions: []
198
198
  extra_rdoc_files: []
199
- files:
200
- - "./Gemfile"
201
- - "./README.md"
202
- - "./Rakefile"
203
- - "./cloudmersive-ocr-api-client.gemspec"
204
- - "./docs/BusinessCardRecognitionResult.md"
205
- - "./docs/FieldResult.md"
206
- - "./docs/FormDefinitionTemplate.md"
207
- - "./docs/FormFieldDefinition.md"
208
- - "./docs/FormRecognitionResult.md"
209
- - "./docs/FormTableColumnDefinition.md"
210
- - "./docs/FormTableDefinition.md"
211
- - "./docs/GetPageAngleResult.md"
212
- - "./docs/ImageOcrApi.md"
213
- - "./docs/ImageToLinesWithLocationResult.md"
214
- - "./docs/ImageToTextResponse.md"
215
- - "./docs/ImageToWordsWithLocationResult.md"
216
- - "./docs/OcrLineElement.md"
217
- - "./docs/OcrPageResult.md"
218
- - "./docs/OcrPageResultWithLinesWithLocation.md"
219
- - "./docs/OcrPageResultWithWordsWithLocation.md"
220
- - "./docs/OcrPhotoTextElement.md"
221
- - "./docs/OcrWordElement.md"
222
- - "./docs/PdfOcrApi.md"
223
- - "./docs/PdfToLinesWithLocationResult.md"
224
- - "./docs/PdfToTextResponse.md"
225
- - "./docs/PdfToWordsWithLocationResult.md"
226
- - "./docs/PhotoToWordsWithLocationResult.md"
227
- - "./docs/Point.md"
228
- - "./docs/PreprocessingApi.md"
229
- - "./docs/ReceiptLineItem.md"
230
- - "./docs/ReceiptRecognitionResult.md"
231
- - "./docs/ReceiptsApi.md"
232
- - "./docs/TableCellResult.md"
233
- - "./docs/TableResult.md"
234
- - "./docs/TableRowResult.md"
235
- - "./git_push.sh"
236
- - "./lib/cloudmersive-ocr-api-client.rb"
237
- - "./lib/cloudmersive-ocr-api-client/api/image_ocr_api.rb"
238
- - "./lib/cloudmersive-ocr-api-client/api/pdf_ocr_api.rb"
239
- - "./lib/cloudmersive-ocr-api-client/api/preprocessing_api.rb"
240
- - "./lib/cloudmersive-ocr-api-client/api/receipts_api.rb"
241
- - "./lib/cloudmersive-ocr-api-client/api_client.rb"
242
- - "./lib/cloudmersive-ocr-api-client/api_error.rb"
243
- - "./lib/cloudmersive-ocr-api-client/configuration.rb"
244
- - "./lib/cloudmersive-ocr-api-client/models/business_card_recognition_result.rb"
245
- - "./lib/cloudmersive-ocr-api-client/models/field_result.rb"
246
- - "./lib/cloudmersive-ocr-api-client/models/form_definition_template.rb"
247
- - "./lib/cloudmersive-ocr-api-client/models/form_field_definition.rb"
248
- - "./lib/cloudmersive-ocr-api-client/models/form_recognition_result.rb"
249
- - "./lib/cloudmersive-ocr-api-client/models/form_table_column_definition.rb"
250
- - "./lib/cloudmersive-ocr-api-client/models/form_table_definition.rb"
251
- - "./lib/cloudmersive-ocr-api-client/models/get_page_angle_result.rb"
252
- - "./lib/cloudmersive-ocr-api-client/models/image_to_lines_with_location_result.rb"
253
- - "./lib/cloudmersive-ocr-api-client/models/image_to_text_response.rb"
254
- - "./lib/cloudmersive-ocr-api-client/models/image_to_words_with_location_result.rb"
255
- - "./lib/cloudmersive-ocr-api-client/models/ocr_line_element.rb"
256
- - "./lib/cloudmersive-ocr-api-client/models/ocr_page_result.rb"
257
- - "./lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_lines_with_location.rb"
258
- - "./lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_words_with_location.rb"
259
- - "./lib/cloudmersive-ocr-api-client/models/ocr_photo_text_element.rb"
260
- - "./lib/cloudmersive-ocr-api-client/models/ocr_word_element.rb"
261
- - "./lib/cloudmersive-ocr-api-client/models/pdf_to_lines_with_location_result.rb"
262
- - "./lib/cloudmersive-ocr-api-client/models/pdf_to_text_response.rb"
263
- - "./lib/cloudmersive-ocr-api-client/models/pdf_to_words_with_location_result.rb"
264
- - "./lib/cloudmersive-ocr-api-client/models/photo_to_words_with_location_result.rb"
265
- - "./lib/cloudmersive-ocr-api-client/models/point.rb"
266
- - "./lib/cloudmersive-ocr-api-client/models/receipt_line_item.rb"
267
- - "./lib/cloudmersive-ocr-api-client/models/receipt_recognition_result.rb"
268
- - "./lib/cloudmersive-ocr-api-client/models/table_cell_result.rb"
269
- - "./lib/cloudmersive-ocr-api-client/models/table_result.rb"
270
- - "./lib/cloudmersive-ocr-api-client/models/table_row_result.rb"
271
- - "./lib/cloudmersive-ocr-api-client/version.rb"
272
- - "./spec/api/image_ocr_api_spec.rb"
273
- - "./spec/api/pdf_ocr_api_spec.rb"
274
- - "./spec/api/preprocessing_api_spec.rb"
275
- - "./spec/api/receipts_api_spec.rb"
276
- - "./spec/api_client_spec.rb"
277
- - "./spec/configuration_spec.rb"
278
- - "./spec/models/business_card_recognition_result_spec.rb"
279
- - "./spec/models/field_result_spec.rb"
280
- - "./spec/models/form_definition_template_spec.rb"
281
- - "./spec/models/form_field_definition_spec.rb"
282
- - "./spec/models/form_recognition_result_spec.rb"
283
- - "./spec/models/form_table_column_definition_spec.rb"
284
- - "./spec/models/form_table_definition_spec.rb"
285
- - "./spec/models/get_page_angle_result_spec.rb"
286
- - "./spec/models/image_to_lines_with_location_result_spec.rb"
287
- - "./spec/models/image_to_text_response_spec.rb"
288
- - "./spec/models/image_to_words_with_location_result_spec.rb"
289
- - "./spec/models/ocr_line_element_spec.rb"
290
- - "./spec/models/ocr_page_result_spec.rb"
291
- - "./spec/models/ocr_page_result_with_lines_with_location_spec.rb"
292
- - "./spec/models/ocr_page_result_with_words_with_location_spec.rb"
293
- - "./spec/models/ocr_photo_text_element_spec.rb"
294
- - "./spec/models/ocr_word_element_spec.rb"
295
- - "./spec/models/pdf_to_lines_with_location_result_spec.rb"
296
- - "./spec/models/pdf_to_text_response_spec.rb"
297
- - "./spec/models/pdf_to_words_with_location_result_spec.rb"
298
- - "./spec/models/photo_to_words_with_location_result_spec.rb"
299
- - "./spec/models/point_spec.rb"
300
- - "./spec/models/receipt_line_item_spec.rb"
301
- - "./spec/models/receipt_recognition_result_spec.rb"
302
- - "./spec/models/table_cell_result_spec.rb"
303
- - "./spec/models/table_result_spec.rb"
304
- - "./spec/models/table_row_result_spec.rb"
305
- - "./spec/spec_helper.rb"
199
+ files: []
306
200
  homepage: https://www.cloudmersive.com/ocr-api
307
201
  licenses:
308
202
  - Apache 2.0
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rake', '~> 12.0.0'
7
- end
data/README.md DELETED
@@ -1,150 +0,0 @@
1
- # cloudmersive-ocr-api-client
2
-
3
- CloudmersiveOcrApiClient - the Ruby gem for the ocrapi
4
-
5
- The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
6
-
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
-
9
- - API version: v1
10
- - Package version: 1.5.0
11
- - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
-
13
- ## Installation
14
-
15
- ### Build a gem
16
-
17
- To build the Ruby code into a gem:
18
-
19
- ```shell
20
- gem build cloudmersive-ocr-api-client.gemspec
21
- ```
22
-
23
- Then either install the gem locally:
24
-
25
- ```shell
26
- gem install ./cloudmersive-ocr-api-client-1.5.0.gem
27
- ```
28
- (for development, run `gem install --dev ./cloudmersive-ocr-api-client-1.5.0.gem` to install the development dependencies)
29
-
30
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
-
32
- Finally add this to the Gemfile:
33
-
34
- gem 'cloudmersive-ocr-api-client', '~> 1.5.0'
35
-
36
- ### Install from Git
37
-
38
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39
-
40
- gem 'cloudmersive-ocr-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41
-
42
- ### Include the Ruby code directly
43
-
44
- Include the Ruby code directly using `-I` as follows:
45
-
46
- ```shell
47
- ruby -Ilib script.rb
48
- ```
49
-
50
- ## Getting Started
51
-
52
- Please follow the [installation](#installation) procedure and then run the following code:
53
- ```ruby
54
- # Load the gem
55
- require 'cloudmersive-ocr-api-client'
56
-
57
- # Setup authorization
58
- CloudmersiveOcrApiClient.configure do |config|
59
- # Configure API key authorization: Apikey
60
- config.api_key['Apikey'] = 'YOUR API KEY'
61
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
62
- #config.api_key_prefix['Apikey'] = 'Bearer'
63
- end
64
-
65
- api_instance = CloudmersiveOcrApiClient::ImageOcrApi.new
66
-
67
- image_file = File.new("/path/to/file.txt") # File | Image file to perform OCR on. Common file formats such as PNG, JPEG are supported.
68
-
69
- opts = {
70
- language: "language_example", # String | Optional, language of the input document, default is English (ENG). Possible values are ENG (English), ARA (Arabic), ZHO (Chinese - Simplified), ZHO-HANT (Chinese - Traditional), ASM (Assamese), AFR (Afrikaans), AMH (Amharic), AZE (Azerbaijani), AZE-CYRL (Azerbaijani - Cyrillic), BEL (Belarusian), BEN (Bengali), BOD (Tibetan), BOS (Bosnian), BUL (Bulgarian), CAT (Catalan; Valencian), CEB (Cebuano), CES (Czech), CHR (Cherokee), CYM (Welsh), DAN (Danish), DEU (German), DZO (Dzongkha), ELL (Greek), ENM (Archaic/Middle English), EPO (Esperanto), EST (Estonian), EUS (Basque), FAS (Persian), FIN (Finnish), FRA (French), FRK (Frankish), FRM (Middle-French), GLE (Irish), GLG (Galician), GRC (Ancient Greek), HAT (Hatian), HEB (Hebrew), HIN (Hindi), HRV (Croatian), HUN (Hungarian), IKU (Inuktitut), IND (Indonesian), ISL (Icelandic), ITA (Italian), ITA-OLD (Old - Italian), JAV (Javanese), JPN (Japanese), KAN (Kannada), KAT (Georgian), KAT-OLD (Old-Georgian), KAZ (Kazakh), KHM (Central Khmer), KIR (Kirghiz), KOR (Korean), KUR (Kurdish), LAO (Lao), LAT (Latin), LAV (Latvian), LIT (Lithuanian), MAL (Malayalam), MAR (Marathi), MKD (Macedonian), MLT (Maltese), MSA (Malay), MYA (Burmese), NEP (Nepali), NLD (Dutch), NOR (Norwegian), ORI (Oriya), PAN (Panjabi), POL (Polish), POR (Portuguese), PUS (Pushto), RON (Romanian), RUS (Russian), SAN (Sanskrit), SIN (Sinhala), SLK (Slovak), SLV (Slovenian), SPA (Spanish), SPA-OLD (Old Spanish), SQI (Albanian), SRP (Serbian), SRP-LAT (Latin Serbian), SWA (Swahili), SWE (Swedish), SYR (Syriac), TAM (Tamil), TEL (Telugu), TGK (Tajik), TGL (Tagalog), THA (Thai), TIR (Tigrinya), TUR (Turkish), UIG (Uighur), UKR (Ukrainian), URD (Urdu), UZB (Uzbek), UZB-CYR (Cyrillic Uzbek), VIE (Vietnamese), YID (Yiddish)
71
- preprocessing: "preprocessing_example" # String | Optional, preprocessing mode, default is 'Auto'. Possible values are None (no preprocessing of the image), and Auto (automatic image enhancement of the image before OCR is applied; this is recommended).
72
- }
73
-
74
- begin
75
- #Convert a scanned image into words with location
76
- result = api_instance.image_ocr_image_lines_with_location(image_file, opts)
77
- p result
78
- rescue CloudmersiveOcrApiClient::ApiError => e
79
- puts "Exception when calling ImageOcrApi->image_ocr_image_lines_with_location: #{e}"
80
- end
81
-
82
- ```
83
-
84
- ## Documentation for API Endpoints
85
-
86
- All URIs are relative to *https://api.cloudmersive.com*
87
-
88
- Class | Method | HTTP request | Description
89
- ------------ | ------------- | ------------- | -------------
90
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_image_lines_with_location**](docs/ImageOcrApi.md#image_ocr_image_lines_with_location) | **POST** /ocr/image/to/lines-with-location | Convert a scanned image into words with location
91
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_image_words_with_location**](docs/ImageOcrApi.md#image_ocr_image_words_with_location) | **POST** /ocr/image/to/words-with-location | Convert a scanned image into words with location
92
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_recognize_business_card**](docs/ImageOcrApi.md#image_ocr_photo_recognize_business_card) | **POST** /ocr/photo/recognize/business-card | Recognize a photo of a business card, extract key business information
93
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_recognize_form**](docs/ImageOcrApi.md#image_ocr_photo_recognize_form) | **POST** /ocr/photo/recognize/form | Recognize a photo of a form, extract key fields and business information
94
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_recognize_form_advanced**](docs/ImageOcrApi.md#image_ocr_photo_recognize_form_advanced) | **POST** /ocr/photo/recognize/form/advanced | Recognize a photo of a form, extract key fields using stored templates
95
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_recognize_receipt**](docs/ImageOcrApi.md#image_ocr_photo_recognize_receipt) | **POST** /ocr/photo/recognize/receipt | Recognize a photo of a receipt, extract key business information
96
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_to_text**](docs/ImageOcrApi.md#image_ocr_photo_to_text) | **POST** /ocr/photo/toText | Convert a photo of a document into text
97
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_photo_words_with_location**](docs/ImageOcrApi.md#image_ocr_photo_words_with_location) | **POST** /ocr/photo/to/words-with-location | Convert a photo of a document or receipt into words with location
98
- *CloudmersiveOcrApiClient::ImageOcrApi* | [**image_ocr_post**](docs/ImageOcrApi.md#image_ocr_post) | **POST** /ocr/image/toText | Convert a scanned image into text
99
- *CloudmersiveOcrApiClient::PdfOcrApi* | [**pdf_ocr_pdf_to_lines_with_location**](docs/PdfOcrApi.md#pdf_ocr_pdf_to_lines_with_location) | **POST** /ocr/pdf/to/lines-with-location | Convert a PDF into text lines with location
100
- *CloudmersiveOcrApiClient::PdfOcrApi* | [**pdf_ocr_pdf_to_words_with_location**](docs/PdfOcrApi.md#pdf_ocr_pdf_to_words_with_location) | **POST** /ocr/pdf/to/words-with-location | Convert a PDF into words with location
101
- *CloudmersiveOcrApiClient::PdfOcrApi* | [**pdf_ocr_post**](docs/PdfOcrApi.md#pdf_ocr_post) | **POST** /ocr/pdf/toText | Converts an uploaded PDF file into text via Optical Character Recognition.
102
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_binarize**](docs/PreprocessingApi.md#preprocessing_binarize) | **POST** /ocr/preprocessing/image/binarize | Convert an image of text into a binarized (light and dark) view
103
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_binarize_advanced**](docs/PreprocessingApi.md#preprocessing_binarize_advanced) | **POST** /ocr/preprocessing/image/binarize/advanced | Convert an image of text into a binary (light and dark) view with ML
104
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_get_page_angle**](docs/PreprocessingApi.md#preprocessing_get_page_angle) | **POST** /ocr/preprocessing/image/get-page-angle | Get the angle of the page / document / receipt
105
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_unrotate**](docs/PreprocessingApi.md#preprocessing_unrotate) | **POST** /ocr/preprocessing/image/unrotate | Detect and unrotate a document image
106
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_unrotate_advanced**](docs/PreprocessingApi.md#preprocessing_unrotate_advanced) | **POST** /ocr/preprocessing/image/unrotate/advanced | Detect and unrotate a document image (advanced)
107
- *CloudmersiveOcrApiClient::PreprocessingApi* | [**preprocessing_unskew**](docs/PreprocessingApi.md#preprocessing_unskew) | **POST** /ocr/preprocessing/image/unskew | Detect and unskew a photo of a document
108
- *CloudmersiveOcrApiClient::ReceiptsApi* | [**receipts_photo_to_csv**](docs/ReceiptsApi.md#receipts_photo_to_csv) | **POST** /ocr/receipts/photo/to/csv | Convert a photo of a receipt into a CSV file containing structured information from the receipt
109
-
110
-
111
- ## Documentation for Models
112
-
113
- - [CloudmersiveOcrApiClient::BusinessCardRecognitionResult](docs/BusinessCardRecognitionResult.md)
114
- - [CloudmersiveOcrApiClient::FieldResult](docs/FieldResult.md)
115
- - [CloudmersiveOcrApiClient::FormDefinitionTemplate](docs/FormDefinitionTemplate.md)
116
- - [CloudmersiveOcrApiClient::FormFieldDefinition](docs/FormFieldDefinition.md)
117
- - [CloudmersiveOcrApiClient::FormRecognitionResult](docs/FormRecognitionResult.md)
118
- - [CloudmersiveOcrApiClient::FormTableColumnDefinition](docs/FormTableColumnDefinition.md)
119
- - [CloudmersiveOcrApiClient::FormTableDefinition](docs/FormTableDefinition.md)
120
- - [CloudmersiveOcrApiClient::GetPageAngleResult](docs/GetPageAngleResult.md)
121
- - [CloudmersiveOcrApiClient::ImageToLinesWithLocationResult](docs/ImageToLinesWithLocationResult.md)
122
- - [CloudmersiveOcrApiClient::ImageToTextResponse](docs/ImageToTextResponse.md)
123
- - [CloudmersiveOcrApiClient::ImageToWordsWithLocationResult](docs/ImageToWordsWithLocationResult.md)
124
- - [CloudmersiveOcrApiClient::OcrLineElement](docs/OcrLineElement.md)
125
- - [CloudmersiveOcrApiClient::OcrPageResult](docs/OcrPageResult.md)
126
- - [CloudmersiveOcrApiClient::OcrPageResultWithLinesWithLocation](docs/OcrPageResultWithLinesWithLocation.md)
127
- - [CloudmersiveOcrApiClient::OcrPageResultWithWordsWithLocation](docs/OcrPageResultWithWordsWithLocation.md)
128
- - [CloudmersiveOcrApiClient::OcrPhotoTextElement](docs/OcrPhotoTextElement.md)
129
- - [CloudmersiveOcrApiClient::OcrWordElement](docs/OcrWordElement.md)
130
- - [CloudmersiveOcrApiClient::PdfToLinesWithLocationResult](docs/PdfToLinesWithLocationResult.md)
131
- - [CloudmersiveOcrApiClient::PdfToTextResponse](docs/PdfToTextResponse.md)
132
- - [CloudmersiveOcrApiClient::PdfToWordsWithLocationResult](docs/PdfToWordsWithLocationResult.md)
133
- - [CloudmersiveOcrApiClient::PhotoToWordsWithLocationResult](docs/PhotoToWordsWithLocationResult.md)
134
- - [CloudmersiveOcrApiClient::Point](docs/Point.md)
135
- - [CloudmersiveOcrApiClient::ReceiptLineItem](docs/ReceiptLineItem.md)
136
- - [CloudmersiveOcrApiClient::ReceiptRecognitionResult](docs/ReceiptRecognitionResult.md)
137
- - [CloudmersiveOcrApiClient::TableCellResult](docs/TableCellResult.md)
138
- - [CloudmersiveOcrApiClient::TableResult](docs/TableResult.md)
139
- - [CloudmersiveOcrApiClient::TableRowResult](docs/TableRowResult.md)
140
-
141
-
142
- ## Documentation for Authorization
143
-
144
-
145
- ### Apikey
146
-
147
- - **Type**: API key
148
- - **API key parameter name**: Apikey
149
- - **Location**: HTTP header
150
-
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- begin
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
- task default: :spec
6
- rescue LoadError
7
- # no rspec available
8
- end
@@ -1,45 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- #
3
- =begin
4
- #ocrapi
5
-
6
- #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
7
-
8
- OpenAPI spec version: v1
9
-
10
- Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.3.1
12
-
13
- =end
14
-
15
- $:.push File.expand_path("../lib", __FILE__)
16
- require "cloudmersive-ocr-api-client/version"
17
-
18
- Gem::Specification.new do |s|
19
- s.name = "cloudmersive-ocr-api-client"
20
- s.version = CloudmersiveOcrApiClient::VERSION
21
- s.platform = Gem::Platform::RUBY
22
- s.authors = ["Cloudmersive"]
23
- s.email = [""]
24
- s.homepage = "https://www.cloudmersive.com/ocr-api"
25
- s.summary = "Convert scanned documents and images to text."
26
- s.description = "Convert scanned images of documents into rich text."
27
- s.license = "Apache 2.0"
28
- s.required_ruby_version = ">= 1.9"
29
-
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
-
33
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
-
41
- s.files = Dir['./**/*']
42
- s.test_files = `find spec/*`.split("\n")
43
- s.executables = []
44
- s.require_paths = ["lib"]
45
- end
@@ -1,15 +0,0 @@
1
- # CloudmersiveOcrApiClient::BusinessCardRecognitionResult
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
- **person_name** | **String** | The name of the person printed on the business card (if included on the business card) | [optional]
8
- **person_title** | **String** | The title of the person printed on the business card (if included on the business card) | [optional]
9
- **business_name** | **String** | The name of the business printed on the business card (if included on the business card) | [optional]
10
- **address_string** | **String** | The address printed on the business card (if included on the business card) | [optional]
11
- **phone_number** | **String** | The phone number printed on the business card (if included on the business card) | [optional]
12
- **email_address** | **String** | The email address printed on the business card (if included on the business card) | [optional]
13
- **timestamp** | **DateTime** | The date and time printed on the business card (if included on the business card) | [optional]
14
-
15
-
@@ -1,9 +0,0 @@
1
- # CloudmersiveOcrApiClient::FieldResult
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **target_field** | [**FormFieldDefinition**](FormFieldDefinition.md) | Target field to extract from the form | [optional]
7
- **field_values** | [**Array<OcrPhotoTextElement>**](OcrPhotoTextElement.md) | Result field value(s) extracted | [optional]
8
-
9
-
@@ -1,9 +0,0 @@
1
- # CloudmersiveOcrApiClient::FormDefinitionTemplate
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **field_definitions** | [**Array<FormFieldDefinition>**](FormFieldDefinition.md) | Field definitions in the template; a field is comprised of a key/value pair | [optional]
7
- **table_definitions** | [**Array<FormTableDefinition>**](FormTableDefinition.md) | Table definitions in the template; a table is comprised of columns and rows and exists in a 2-dimensional layout; a common example of a table would be an invoice | [optional]
8
-
9
-
@@ -1,25 +0,0 @@
1
- # CloudmersiveOcrApiClient::FormFieldDefinition
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **field_id** | **String** | The identifier of the field; use this to identify which field is being referenced. Set to SkipField if you do not wish to return the value of this field in the result. | [optional]
7
- **left_anchor** | **String** | Optional - the left-hand anchor of the field | [optional]
8
- **top_anchor** | **String** | Optional - the top anchor of the field | [optional]
9
- **bottom_anchor** | **String** | Optional - the bottom anchor of the field | [optional]
10
- **alternate_anchor** | **String** | Optional - alterate match text for the specified anchor | [optional]
11
- **anchor_mode** | **String** | Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match) and Horizontal (anchor must be laid out horizontally). Default is Partial. | [optional]
12
- **data_type** | **String** | The data type of the field; possible values are INTEGER (Integer value), STRING (Arbitrary string value, spaces are permitted), DATE (Date in a structured format), DECIMAL (Decimal number), ALPHANUMERIC (Continuous alphanumeric string with no spaces), STRINGNOWHITESPACE (A string that contains no whitespace characters), SERIALNUMBER (A serial-number style string that contains letters and numbers, and certain symbols; must contain at least one number), ALPHAONLY (Alphabet characters only, no numbers or symbols or whitespace) | [optional]
13
- **target_digit_count** | **Integer** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional]
14
- **minimum_character_count** | **Integer** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional]
15
- **allow_numeric_digits** | **BOOLEAN** | Optional - set to false to block values that contain numeric digits, set to true to allow numeric digits | [optional]
16
- **vertical_alignment_type** | **String** | Vertical alignment of target value area relative to the field anchor; Possible values are VCenter, Top, Bottom | [optional]
17
- **horizontal_alignment_type** | **String** | Horizontal alignment of target value area relative to the field anchor; Possible values are Left, Right | [optional]
18
- **target_field_width_relative** | **Float** | Optional - scale factor for target field width - relative to width of field title; a value of 1.0 indicates the target value area has the same width as the field value as occurring in the image; a value of 2.0 would indicate that the target value area has 2 times the width of the field value as occurring in the image. | [optional]
19
- **target_field_height_relative** | **Float** | Optional - scale factor for target field height - relative to height of field title | [optional]
20
- **target_field_horizontal_adjustment** | **Float** | Optional - horizontal adjestment in relative width of the field | [optional]
21
- **target_field_vertical_adjustment** | **Float** | Optional - vertical adjestment in relative height of the field | [optional]
22
- **ignore** | **Array<String>** | Optional - Ignore any result items that contain a partial or complete match with these text strings | [optional]
23
- **options** | **String** | Optional - additional options that can be set for this field definition, separated by commas. Possible values are AllowMultiMatch (allow the same anchor to be matched to multiple fields) | [optional]
24
-
25
-
@@ -1,12 +0,0 @@
1
- # CloudmersiveOcrApiClient::FormRecognitionResult
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
- **field_value_extraction_result** | [**Array<FieldResult>**](FieldResult.md) | Result of form field OCR data extraction | [optional]
8
- **table_value_extraction_results** | [**Array<TableResult>**](TableResult.md) | Result of form table OCR data extraction | [optional]
9
- **diagnostics** | **Array<String>** | Diagnostic images - default is null, enable diagnostics=true to populate this parameter with one image per field | [optional]
10
- **best_match_form_setting_name** | **String** | Optional; populated when using photo/recognize/form/advanced with the Setting Name of the best-matching highest-relevance form | [optional]
11
-
12
-
@@ -1,13 +0,0 @@
1
- # CloudmersiveOcrApiClient::FormTableColumnDefinition
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **column_id** | **String** | The identifier of the field; use this to identify which field is being referenced | [optional]
7
- **top_anchor** | **String** | Optional - the top anchor of the column heading | [optional]
8
- **anchor_mode** | **String** | Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match). Default is Partial. | [optional]
9
- **data_type** | **String** | The data type of the field; possible values are INTEGER (Integer value), STRING (Arbitrary string value, spaces are permitted), DATE (Date in a structured format), DECIMAL (Decimal number), ALPHANUMERIC (Continuous alphanumeric string with no spaces), STRINGNOWHITESPACE (A string that contains no whitespace characters), SERIALNUMBER (A serial-number style string that contains letters and numbers, and certain symbols; must contain at least one number), ALPHAONLY (Alphabet characters only, no numbers or symbols or whitespace) | [optional]
10
- **minimum_character_count** | **Integer** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional]
11
- **allow_numeric_digits** | **BOOLEAN** | Optional - set to false to block values that contain numeric digits, set to true to allow numeric digits | [optional]
12
-
13
-