cloudmersive-image-recognition-api-client 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/cloudmersive-image-recognition-api-client.gemspec +1 -1
- data/docs/FineTextDetectionResult.md +10 -0
- data/docs/FineTextItem.md +15 -0
- data/docs/RecognizeApi.md +104 -0
- data/docs/TextDetectionResult.md +10 -0
- data/docs/TextItem.md +11 -0
- data/lib/cloudmersive-image-recognition-api-client.rb +5 -1
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +104 -1
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +211 -0
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +259 -0
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +211 -0
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +219 -0
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
- data/spec/api/artistic_api_spec.rb +1 -1
- data/spec/api/edit_api_spec.rb +1 -1
- data/spec/api/face_api_spec.rb +1 -1
- data/spec/api/nsfw_api_spec.rb +1 -1
- data/spec/api/recognize_api_spec.rb +24 -1
- data/spec/api/resize_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/age_detection_result_spec.rb +1 -1
- data/spec/models/detected_license_plate_spec.rb +1 -1
- data/spec/models/detected_object_spec.rb +1 -1
- data/spec/models/draw_rectangle_instance_spec.rb +1 -1
- data/spec/models/draw_rectangle_request_spec.rb +1 -1
- data/spec/models/draw_text_instance_spec.rb +1 -1
- data/spec/models/draw_text_request_spec.rb +1 -1
- data/spec/models/face_compare_response_spec.rb +1 -1
- data/spec/models/face_locate_response_spec.rb +1 -1
- data/spec/models/face_locate_with_landmarks_response_spec.rb +1 -1
- data/spec/models/face_match_spec.rb +1 -1
- data/spec/models/face_point_spec.rb +1 -1
- data/spec/models/face_spec.rb +1 -1
- data/spec/models/face_with_landmarks_spec.rb +1 -1
- data/spec/models/fine_text_detection_result_spec.rb +54 -0
- data/spec/models/fine_text_item_spec.rb +84 -0
- data/spec/models/image_description_response_spec.rb +1 -1
- data/spec/models/nsfw_result_spec.rb +1 -1
- data/spec/models/object_detection_result_spec.rb +1 -1
- data/spec/models/person_with_age_spec.rb +1 -1
- data/spec/models/recognition_outcome_spec.rb +1 -1
- data/spec/models/text_detection_result_spec.rb +54 -0
- data/spec/models/text_item_spec.rb +60 -0
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +27 -16
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#imageapi
|
|
3
|
+
|
|
4
|
+
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveImageRecognitionApiClient::TextDetectionResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'TextDetectionResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveImageRecognitionApiClient::TextDetectionResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of TextDetectionResult' do
|
|
31
|
+
it 'should create an instance of TextDetectionResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::TextDetectionResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' 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 "text_items"' 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 "text_items_count"' 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
|
+
end
|
|
54
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#imageapi
|
|
3
|
+
|
|
4
|
+
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveImageRecognitionApiClient::TextItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'TextItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveImageRecognitionApiClient::TextItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of TextItem' do
|
|
31
|
+
it 'should create an instance of TextItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::TextItem)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "left_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 "top_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
|
+
describe 'test attribute "width"' 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 "height"' 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
|
+
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-image-recognition-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -34,42 +34,42 @@ dependencies:
|
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - "~>"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '2.1'
|
|
40
37
|
- - ">="
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: 2.1.0
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '2.1'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - "~>"
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: '2.1'
|
|
50
47
|
- - ">="
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: 2.1.0
|
|
50
|
+
- - "~>"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '2.1'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: rspec
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
|
-
- - "~>"
|
|
58
|
-
- !ruby/object:Gem::Version
|
|
59
|
-
version: '3.6'
|
|
60
57
|
- - ">="
|
|
61
58
|
- !ruby/object:Gem::Version
|
|
62
59
|
version: 3.6.0
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '3.6'
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- - "~>"
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.6'
|
|
70
67
|
- - ">="
|
|
71
68
|
- !ruby/object:Gem::Version
|
|
72
69
|
version: 3.6.0
|
|
70
|
+
- - "~>"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '3.6'
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: vcr
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -220,6 +220,8 @@ files:
|
|
|
220
220
|
- "./docs/FaceMatch.md"
|
|
221
221
|
- "./docs/FacePoint.md"
|
|
222
222
|
- "./docs/FaceWithLandmarks.md"
|
|
223
|
+
- "./docs/FineTextDetectionResult.md"
|
|
224
|
+
- "./docs/FineTextItem.md"
|
|
223
225
|
- "./docs/ImageDescriptionResponse.md"
|
|
224
226
|
- "./docs/NsfwApi.md"
|
|
225
227
|
- "./docs/NsfwResult.md"
|
|
@@ -228,6 +230,8 @@ files:
|
|
|
228
230
|
- "./docs/RecognitionOutcome.md"
|
|
229
231
|
- "./docs/RecognizeApi.md"
|
|
230
232
|
- "./docs/ResizeApi.md"
|
|
233
|
+
- "./docs/TextDetectionResult.md"
|
|
234
|
+
- "./docs/TextItem.md"
|
|
231
235
|
- "./docs/VehicleLicensePlateDetectionResult.md"
|
|
232
236
|
- "./git_push.sh"
|
|
233
237
|
- "./lib/cloudmersive-image-recognition-api-client.rb"
|
|
@@ -254,11 +258,15 @@ files:
|
|
|
254
258
|
- "./lib/cloudmersive-image-recognition-api-client/models/face_match.rb"
|
|
255
259
|
- "./lib/cloudmersive-image-recognition-api-client/models/face_point.rb"
|
|
256
260
|
- "./lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb"
|
|
261
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb"
|
|
262
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb"
|
|
257
263
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb"
|
|
258
264
|
- "./lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb"
|
|
259
265
|
- "./lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb"
|
|
260
266
|
- "./lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb"
|
|
261
267
|
- "./lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb"
|
|
268
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb"
|
|
269
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/text_item.rb"
|
|
262
270
|
- "./lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb"
|
|
263
271
|
- "./lib/cloudmersive-image-recognition-api-client/version.rb"
|
|
264
272
|
- "./spec/api/artistic_api_spec.rb"
|
|
@@ -283,11 +291,15 @@ files:
|
|
|
283
291
|
- "./spec/models/face_point_spec.rb"
|
|
284
292
|
- "./spec/models/face_spec.rb"
|
|
285
293
|
- "./spec/models/face_with_landmarks_spec.rb"
|
|
294
|
+
- "./spec/models/fine_text_detection_result_spec.rb"
|
|
295
|
+
- "./spec/models/fine_text_item_spec.rb"
|
|
286
296
|
- "./spec/models/image_description_response_spec.rb"
|
|
287
297
|
- "./spec/models/nsfw_result_spec.rb"
|
|
288
298
|
- "./spec/models/object_detection_result_spec.rb"
|
|
289
299
|
- "./spec/models/person_with_age_spec.rb"
|
|
290
300
|
- "./spec/models/recognition_outcome_spec.rb"
|
|
301
|
+
- "./spec/models/text_detection_result_spec.rb"
|
|
302
|
+
- "./spec/models/text_item_spec.rb"
|
|
291
303
|
- "./spec/models/vehicle_license_plate_detection_result_spec.rb"
|
|
292
304
|
- "./spec/spec_helper.rb"
|
|
293
305
|
homepage: https://www.cloudmersive.com/image-recognition-and-processing-api
|
|
@@ -309,8 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
309
321
|
- !ruby/object:Gem::Version
|
|
310
322
|
version: '0'
|
|
311
323
|
requirements: []
|
|
312
|
-
|
|
313
|
-
rubygems_version: 2.7.6
|
|
324
|
+
rubygems_version: 3.0.3
|
|
314
325
|
signing_key:
|
|
315
326
|
specification_version: 4
|
|
316
327
|
summary: Advanced Machine Learning APIs for recognizing and processing images.
|