cloudmersive-ocr-api-client 1.4.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -4
  3. data/docs/BusinessCardRecognitionResult.md +8 -8
  4. data/docs/FieldResult.md +2 -2
  5. data/docs/FormDefinitionTemplate.md +2 -1
  6. data/docs/FormFieldDefinition.md +13 -13
  7. data/docs/FormRecognitionResult.md +3 -2
  8. data/docs/FormTableColumnDefinition.md +13 -0
  9. data/docs/FormTableDefinition.md +11 -0
  10. data/docs/ImageOcrApi.md +5 -3
  11. data/docs/ImageToLinesWithLocationResult.md +1 -1
  12. data/docs/ImageToWordsWithLocationResult.md +1 -1
  13. data/docs/OcrPageResultWithLinesWithLocation.md +1 -1
  14. data/docs/OcrPageResultWithWordsWithLocation.md +1 -1
  15. data/docs/OcrPhotoTextElement.md +1 -0
  16. data/docs/PdfToLinesWithLocationResult.md +2 -2
  17. data/docs/PdfToTextResponse.md +2 -2
  18. data/docs/PdfToWordsWithLocationResult.md +2 -2
  19. data/docs/PhotoToWordsWithLocationResult.md +1 -1
  20. data/docs/Point.md +9 -0
  21. data/docs/PreprocessingApi.md +55 -0
  22. data/docs/ReceiptLineItem.md +2 -2
  23. data/docs/ReceiptRecognitionResult.md +8 -8
  24. data/docs/TableCellResult.md +9 -0
  25. data/docs/TableResult.md +9 -0
  26. data/docs/TableRowResult.md +8 -0
  27. data/lib/cloudmersive-ocr-api-client.rb +6 -0
  28. data/lib/cloudmersive-ocr-api-client/api/image_ocr_api.rb +6 -3
  29. data/lib/cloudmersive-ocr-api-client/api/preprocessing_api.rb +56 -0
  30. data/lib/cloudmersive-ocr-api-client/models/business_card_recognition_result.rb +8 -0
  31. data/lib/cloudmersive-ocr-api-client/models/field_result.rb +2 -0
  32. data/lib/cloudmersive-ocr-api-client/models/form_definition_template.rb +17 -4
  33. data/lib/cloudmersive-ocr-api-client/models/form_field_definition.rb +13 -0
  34. data/lib/cloudmersive-ocr-api-client/models/form_recognition_result.rb +18 -4
  35. data/lib/cloudmersive-ocr-api-client/models/form_table_column_definition.rb +239 -0
  36. data/lib/cloudmersive-ocr-api-client/models/form_table_definition.rb +221 -0
  37. data/lib/cloudmersive-ocr-api-client/models/image_to_lines_with_location_result.rb +1 -0
  38. data/lib/cloudmersive-ocr-api-client/models/image_to_words_with_location_result.rb +1 -0
  39. data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_lines_with_location.rb +11 -10
  40. data/lib/cloudmersive-ocr-api-client/models/ocr_page_result_with_words_with_location.rb +11 -10
  41. data/lib/cloudmersive-ocr-api-client/models/ocr_photo_text_element.rb +13 -1
  42. data/lib/cloudmersive-ocr-api-client/models/pdf_to_lines_with_location_result.rb +2 -0
  43. data/lib/cloudmersive-ocr-api-client/models/pdf_to_text_response.rb +2 -0
  44. data/lib/cloudmersive-ocr-api-client/models/pdf_to_words_with_location_result.rb +2 -0
  45. data/lib/cloudmersive-ocr-api-client/models/photo_to_words_with_location_result.rb +1 -0
  46. data/lib/cloudmersive-ocr-api-client/models/point.rb +199 -0
  47. data/lib/cloudmersive-ocr-api-client/models/receipt_line_item.rb +2 -0
  48. data/lib/cloudmersive-ocr-api-client/models/receipt_recognition_result.rb +8 -0
  49. data/lib/cloudmersive-ocr-api-client/models/table_cell_result.rb +201 -0
  50. data/lib/cloudmersive-ocr-api-client/models/table_result.rb +201 -0
  51. data/lib/cloudmersive-ocr-api-client/models/table_row_result.rb +191 -0
  52. data/lib/cloudmersive-ocr-api-client/version.rb +1 -1
  53. data/spec/api/image_ocr_api_spec.rb +2 -1
  54. data/spec/api/preprocessing_api_spec.rb +12 -0
  55. data/spec/models/form_definition_template_spec.rb +6 -0
  56. data/spec/models/form_recognition_result_spec.rb +6 -0
  57. data/spec/models/form_table_column_definition_spec.rb +72 -0
  58. data/spec/models/form_table_definition_spec.rb +60 -0
  59. data/spec/models/ocr_page_result_with_lines_with_location_spec.rb +2 -2
  60. data/spec/models/ocr_page_result_with_words_with_location_spec.rb +2 -2
  61. data/spec/models/ocr_photo_text_element_spec.rb +6 -0
  62. data/spec/models/point_spec.rb +48 -0
  63. data/spec/models/table_cell_result_spec.rb +48 -0
  64. data/spec/models/table_result_spec.rb +48 -0
  65. data/spec/models/table_row_result_spec.rb +42 -0
  66. metadata +20 -2
@@ -44,5 +44,11 @@ describe 'FormRecognitionResult' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "table_value_extraction_results"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  end
48
54
 
@@ -0,0 +1,72 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::FormTableColumnDefinition
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FormTableColumnDefinition' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::FormTableColumnDefinition.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FormTableColumnDefinition' do
31
+ it 'should create an instance of FormTableColumnDefinition' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::FormTableColumnDefinition)
33
+ end
34
+ end
35
+ describe 'test attribute "column_id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "top_anchor"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "anchor_mode"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "data_type"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "minimum_character_count"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "allow_numeric_digits"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
72
+
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::FormTableDefinition
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FormTableDefinition' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::FormTableDefinition.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FormTableDefinition' do
31
+ it 'should create an instance of FormTableDefinition' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::FormTableDefinition)
33
+ end
34
+ end
35
+ describe 'test attribute "table_id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "column_definitions"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "target_table_height_relative"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "target_row_height_relative"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
60
+
@@ -32,13 +32,13 @@ describe 'OcrPageResultWithLinesWithLocation' do
32
32
  expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::OcrPageResultWithLinesWithLocation)
33
33
  end
34
34
  end
35
- describe 'test attribute "successful"' do
35
+ describe 'test attribute "page_number"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "page_number"' do
41
+ describe 'test attribute "successful"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
@@ -32,13 +32,13 @@ describe 'OcrPageResultWithWordsWithLocation' do
32
32
  expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::OcrPageResultWithWordsWithLocation)
33
33
  end
34
34
  end
35
- describe 'test attribute "successful"' do
35
+ describe 'test attribute "page_number"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "page_number"' do
41
+ describe 'test attribute "successful"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
@@ -62,6 +62,12 @@ describe 'OcrPhotoTextElement' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "bounding_points"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  describe 'test attribute "confidence_level"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::Point
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Point' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::Point.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Point' do
31
+ it 'should create an instance of Point' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::Point)
33
+ end
34
+ end
35
+ describe 'test attribute "x"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "y"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::TableCellResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'TableCellResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::TableCellResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TableCellResult' do
31
+ it 'should create an instance of TableCellResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::TableCellResult)
33
+ end
34
+ end
35
+ describe 'test attribute "column_id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "cell_values"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::TableResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'TableResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::TableResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TableResult' do
31
+ it 'should create an instance of TableResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::TableResult)
33
+ end
34
+ end
35
+ describe 'test attribute "table_definition"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "table_rows_result"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #ocrapi
3
+
4
+ #The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveOcrApiClient::TableRowResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'TableRowResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveOcrApiClient::TableRowResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TableRowResult' do
31
+ it 'should create an instance of TableRowResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveOcrApiClient::TableRowResult)
33
+ end
34
+ end
35
+ describe 'test attribute "table_row_cells_result"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
42
+
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.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -206,6 +206,8 @@ files:
206
206
  - "./docs/FormDefinitionTemplate.md"
207
207
  - "./docs/FormFieldDefinition.md"
208
208
  - "./docs/FormRecognitionResult.md"
209
+ - "./docs/FormTableColumnDefinition.md"
210
+ - "./docs/FormTableDefinition.md"
209
211
  - "./docs/GetPageAngleResult.md"
210
212
  - "./docs/ImageOcrApi.md"
211
213
  - "./docs/ImageToLinesWithLocationResult.md"
@@ -222,10 +224,14 @@ files:
222
224
  - "./docs/PdfToTextResponse.md"
223
225
  - "./docs/PdfToWordsWithLocationResult.md"
224
226
  - "./docs/PhotoToWordsWithLocationResult.md"
227
+ - "./docs/Point.md"
225
228
  - "./docs/PreprocessingApi.md"
226
229
  - "./docs/ReceiptLineItem.md"
227
230
  - "./docs/ReceiptRecognitionResult.md"
228
231
  - "./docs/ReceiptsApi.md"
232
+ - "./docs/TableCellResult.md"
233
+ - "./docs/TableResult.md"
234
+ - "./docs/TableRowResult.md"
229
235
  - "./git_push.sh"
230
236
  - "./lib/cloudmersive-ocr-api-client.rb"
231
237
  - "./lib/cloudmersive-ocr-api-client/api/image_ocr_api.rb"
@@ -240,6 +246,8 @@ files:
240
246
  - "./lib/cloudmersive-ocr-api-client/models/form_definition_template.rb"
241
247
  - "./lib/cloudmersive-ocr-api-client/models/form_field_definition.rb"
242
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"
243
251
  - "./lib/cloudmersive-ocr-api-client/models/get_page_angle_result.rb"
244
252
  - "./lib/cloudmersive-ocr-api-client/models/image_to_lines_with_location_result.rb"
245
253
  - "./lib/cloudmersive-ocr-api-client/models/image_to_text_response.rb"
@@ -254,8 +262,12 @@ files:
254
262
  - "./lib/cloudmersive-ocr-api-client/models/pdf_to_text_response.rb"
255
263
  - "./lib/cloudmersive-ocr-api-client/models/pdf_to_words_with_location_result.rb"
256
264
  - "./lib/cloudmersive-ocr-api-client/models/photo_to_words_with_location_result.rb"
265
+ - "./lib/cloudmersive-ocr-api-client/models/point.rb"
257
266
  - "./lib/cloudmersive-ocr-api-client/models/receipt_line_item.rb"
258
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"
259
271
  - "./lib/cloudmersive-ocr-api-client/version.rb"
260
272
  - "./spec/api/image_ocr_api_spec.rb"
261
273
  - "./spec/api/pdf_ocr_api_spec.rb"
@@ -268,6 +280,8 @@ files:
268
280
  - "./spec/models/form_definition_template_spec.rb"
269
281
  - "./spec/models/form_field_definition_spec.rb"
270
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"
271
285
  - "./spec/models/get_page_angle_result_spec.rb"
272
286
  - "./spec/models/image_to_lines_with_location_result_spec.rb"
273
287
  - "./spec/models/image_to_text_response_spec.rb"
@@ -282,8 +296,12 @@ files:
282
296
  - "./spec/models/pdf_to_text_response_spec.rb"
283
297
  - "./spec/models/pdf_to_words_with_location_result_spec.rb"
284
298
  - "./spec/models/photo_to_words_with_location_result_spec.rb"
299
+ - "./spec/models/point_spec.rb"
285
300
  - "./spec/models/receipt_line_item_spec.rb"
286
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"
287
305
  - "./spec/spec_helper.rb"
288
306
  homepage: https://www.cloudmersive.com/ocr-api
289
307
  licenses: