cloudmersive-image-recognition-api-client 1.4.3 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +19 -16
  4. data/cloudmersive-image-recognition-api-client.gemspec +3 -3
  5. data/docs/ArtisticApi.md +2 -2
  6. data/docs/ConvertApi.md +13 -13
  7. data/docs/DrawTextInstance.md +1 -1
  8. data/docs/EditApi.md +188 -23
  9. data/docs/FaceApi.md +20 -20
  10. data/docs/FaceLocateResponse.md +1 -1
  11. data/docs/FilterApi.md +11 -11
  12. data/docs/ImageMetadata.md +2 -0
  13. data/docs/InfoApi.md +5 -5
  14. data/docs/NsfwApi.md +4 -4
  15. data/docs/RecognizeApi.md +17 -17
  16. data/docs/ResizeApi.md +10 -10
  17. data/lib/cloudmersive-image-recognition-api-client.rb +1 -1
  18. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
  19. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +35 -42
  20. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +215 -59
  21. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +39 -46
  22. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +36 -44
  23. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +12 -14
  24. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +8 -9
  25. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +41 -49
  26. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +20 -22
  27. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
  28. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  29. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
  30. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
  31. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
  32. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
  33. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
  34. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
  35. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
  36. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
  37. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
  38. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
  39. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
  40. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
  41. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
  42. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
  43. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +19 -21
  44. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
  45. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
  46. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
  47. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
  48. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
  49. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
  50. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
  51. data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
  52. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
  53. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +28 -11
  54. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
  55. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
  56. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
  57. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
  58. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
  59. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
  60. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
  61. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
  62. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
  63. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
  64. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  65. data/spec/api/artistic_api_spec.rb +2 -2
  66. data/spec/api/convert_api_spec.rb +9 -9
  67. data/spec/api/edit_api_spec.rb +51 -15
  68. data/spec/api/face_api_spec.rb +12 -12
  69. data/spec/api/filter_api_spec.rb +10 -10
  70. data/spec/api/info_api_spec.rb +4 -4
  71. data/spec/api/nsfw_api_spec.rb +3 -3
  72. data/spec/api/recognize_api_spec.rb +12 -12
  73. data/spec/api/resize_api_spec.rb +7 -7
  74. data/spec/api_client_spec.rb +52 -35
  75. data/spec/configuration_spec.rb +9 -9
  76. data/spec/models/age_detection_result_spec.rb +4 -5
  77. data/spec/models/color_result_spec.rb +4 -5
  78. data/spec/models/detected_license_plate_spec.rb +8 -9
  79. data/spec/models/detected_object_spec.rb +7 -8
  80. data/spec/models/dominant_color_result_spec.rb +3 -4
  81. data/spec/models/draw_polygon_instance_spec.rb +5 -6
  82. data/spec/models/draw_polygon_request_spec.rb +4 -5
  83. data/spec/models/draw_rectangle_instance_spec.rb +8 -9
  84. data/spec/models/draw_rectangle_request_spec.rb +4 -5
  85. data/spec/models/draw_text_instance_spec.rb +9 -10
  86. data/spec/models/draw_text_request_spec.rb +4 -5
  87. data/spec/models/face_compare_response_spec.rb +5 -6
  88. data/spec/models/face_locate_response_spec.rb +9 -10
  89. data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
  90. data/spec/models/face_match_spec.rb +7 -8
  91. data/spec/models/face_point_spec.rb +3 -4
  92. data/spec/models/face_spec.rb +5 -6
  93. data/spec/models/face_with_landmarks_spec.rb +14 -15
  94. data/spec/models/find_symbol_result_spec.rb +7 -8
  95. data/spec/models/fine_text_detection_result_spec.rb +4 -5
  96. data/spec/models/fine_text_item_spec.rb +12 -13
  97. data/spec/models/gender_detection_result_spec.rb +4 -5
  98. data/spec/models/image_description_response_spec.rb +5 -6
  99. data/spec/models/image_metadata_exif_value_spec.rb +4 -5
  100. data/spec/models/image_metadata_spec.rb +21 -10
  101. data/spec/models/nsfw_result_spec.rb +4 -5
  102. data/spec/models/object_detection_result_spec.rb +4 -5
  103. data/spec/models/person_with_age_spec.rb +5 -6
  104. data/spec/models/person_with_gender_spec.rb +4 -5
  105. data/spec/models/polygon_point_spec.rb +3 -4
  106. data/spec/models/recognition_outcome_spec.rb +3 -4
  107. data/spec/models/text_detection_result_spec.rb +4 -5
  108. data/spec/models/text_item_spec.rb +5 -6
  109. data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
  110. data/spec/spec_helper.rb +1 -1
  111. metadata +2 -2
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module CloudmersiveImageRecognitionApiClient
16
16
  class InfoApi
@@ -19,7 +19,6 @@ module CloudmersiveImageRecognitionApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Returns the dominant colors of the image
24
23
  # Uses advanced image processing to extract the top 5 dominant colors in the image, returned in the order of dominance with the most-dominant color first. These are the primary perceptual colors used in the image as perceived by a viewer.
25
24
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -27,7 +26,7 @@ module CloudmersiveImageRecognitionApiClient
27
26
  # @return [DominantColorResult]
28
27
  def info_get_dominant_color(image_file, opts = {})
29
28
  data, _status_code, _headers = info_get_dominant_color_with_http_info(image_file, opts)
30
- return data
29
+ data
31
30
  end
32
31
 
33
32
  # Returns the dominant colors of the image
@@ -37,14 +36,14 @@ module CloudmersiveImageRecognitionApiClient
37
36
  # @return [Array<(DominantColorResult, Fixnum, Hash)>] DominantColorResult data, response status code and response headers
38
37
  def info_get_dominant_color_with_http_info(image_file, opts = {})
39
38
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: InfoApi.info_get_dominant_color ..."
39
+ @api_client.config.logger.debug 'Calling API: InfoApi.info_get_dominant_color ...'
41
40
  end
42
41
  # verify the required parameter 'image_file' is set
43
42
  if @api_client.config.client_side_validation && image_file.nil?
44
43
  fail ArgumentError, "Missing the required parameter 'image_file' when calling InfoApi.info_get_dominant_color"
45
44
  end
46
45
  # resource path
47
- local_var_path = "/image/get-info/dominant-color"
46
+ local_var_path = '/image/get-info/dominant-color'
48
47
 
49
48
  # query parameters
50
49
  query_params = {}
@@ -58,7 +57,7 @@ module CloudmersiveImageRecognitionApiClient
58
57
 
59
58
  # form parameters
60
59
  form_params = {}
61
- form_params["imageFile"] = image_file
60
+ form_params['imageFile'] = image_file
62
61
 
63
62
  # http body (model)
64
63
  post_body = nil
@@ -75,32 +74,31 @@ module CloudmersiveImageRecognitionApiClient
75
74
  end
76
75
  return data, status_code, headers
77
76
  end
78
-
79
- # Returns the image metadata, including EXIF and resolution
77
+ # Returns the image metadata including EXIF and resolution
80
78
  # Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
81
79
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
82
80
  # @param [Hash] opts the optional parameters
83
81
  # @return [ImageMetadata]
84
82
  def info_get_metadata(image_file, opts = {})
85
83
  data, _status_code, _headers = info_get_metadata_with_http_info(image_file, opts)
86
- return data
84
+ data
87
85
  end
88
86
 
89
- # Returns the image metadata, including EXIF and resolution
87
+ # Returns the image metadata including EXIF and resolution
90
88
  # Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
91
89
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
92
90
  # @param [Hash] opts the optional parameters
93
91
  # @return [Array<(ImageMetadata, Fixnum, Hash)>] ImageMetadata data, response status code and response headers
94
92
  def info_get_metadata_with_http_info(image_file, opts = {})
95
93
  if @api_client.config.debugging
96
- @api_client.config.logger.debug "Calling API: InfoApi.info_get_metadata ..."
94
+ @api_client.config.logger.debug 'Calling API: InfoApi.info_get_metadata ...'
97
95
  end
98
96
  # verify the required parameter 'image_file' is set
99
97
  if @api_client.config.client_side_validation && image_file.nil?
100
98
  fail ArgumentError, "Missing the required parameter 'image_file' when calling InfoApi.info_get_metadata"
101
99
  end
102
100
  # resource path
103
- local_var_path = "/image/get-info/metadata"
101
+ local_var_path = '/image/get-info/metadata'
104
102
 
105
103
  # query parameters
106
104
  query_params = {}
@@ -114,7 +112,7 @@ module CloudmersiveImageRecognitionApiClient
114
112
 
115
113
  # form parameters
116
114
  form_params = {}
117
- form_params["imageFile"] = image_file
115
+ form_params['imageFile'] = image_file
118
116
 
119
117
  # http body (model)
120
118
  post_body = nil
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module CloudmersiveImageRecognitionApiClient
16
16
  class NsfwApi
@@ -19,32 +19,31 @@ module CloudmersiveImageRecognitionApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- # Not safe for work (NSFW) racy content classification
22
+ # Not safe for work NSFW racy content classification
24
23
  # Classify an image into Not Safe For Work (NSFW)/Porn/Racy content and Safe Content.
25
24
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
26
25
  # @param [Hash] opts the optional parameters
27
26
  # @return [NsfwResult]
28
27
  def nsfw_classify(image_file, opts = {})
29
28
  data, _status_code, _headers = nsfw_classify_with_http_info(image_file, opts)
30
- return data
29
+ data
31
30
  end
32
31
 
33
- # Not safe for work (NSFW) racy content classification
32
+ # Not safe for work NSFW racy content classification
34
33
  # Classify an image into Not Safe For Work (NSFW)/Porn/Racy content and Safe Content.
35
34
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
36
35
  # @param [Hash] opts the optional parameters
37
36
  # @return [Array<(NsfwResult, Fixnum, Hash)>] NsfwResult data, response status code and response headers
38
37
  def nsfw_classify_with_http_info(image_file, opts = {})
39
38
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: NsfwApi.nsfw_classify ..."
39
+ @api_client.config.logger.debug 'Calling API: NsfwApi.nsfw_classify ...'
41
40
  end
42
41
  # verify the required parameter 'image_file' is set
43
42
  if @api_client.config.client_side_validation && image_file.nil?
44
43
  fail ArgumentError, "Missing the required parameter 'image_file' when calling NsfwApi.nsfw_classify"
45
44
  end
46
45
  # resource path
47
- local_var_path = "/image/nsfw/classify"
46
+ local_var_path = '/image/nsfw/classify'
48
47
 
49
48
  # query parameters
50
49
  query_params = {}
@@ -58,7 +57,7 @@ module CloudmersiveImageRecognitionApiClient
58
57
 
59
58
  # form parameters
60
59
  form_params = {}
61
- form_params["imageFile"] = image_file
60
+ form_params['imageFile'] = image_file
62
61
 
63
62
  # http body (model)
64
63
  post_body = nil
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module CloudmersiveImageRecognitionApiClient
16
16
  class RecognizeApi
@@ -19,7 +19,6 @@ module CloudmersiveImageRecognitionApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Describe an image in natural language
24
23
  # Generate an English language text description of the image as a sentence.
25
24
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -27,7 +26,7 @@ module CloudmersiveImageRecognitionApiClient
27
26
  # @return [ImageDescriptionResponse]
28
27
  def recognize_describe(image_file, opts = {})
29
28
  data, _status_code, _headers = recognize_describe_with_http_info(image_file, opts)
30
- return data
29
+ data
31
30
  end
32
31
 
33
32
  # Describe an image in natural language
@@ -37,14 +36,14 @@ module CloudmersiveImageRecognitionApiClient
37
36
  # @return [Array<(ImageDescriptionResponse, Fixnum, Hash)>] ImageDescriptionResponse data, response status code and response headers
38
37
  def recognize_describe_with_http_info(image_file, opts = {})
39
38
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_describe ..."
39
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_describe ...'
41
40
  end
42
41
  # verify the required parameter 'image_file' is set
43
42
  if @api_client.config.client_side_validation && image_file.nil?
44
43
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_describe"
45
44
  end
46
45
  # resource path
47
- local_var_path = "/image/recognize/describe"
46
+ local_var_path = '/image/recognize/describe'
48
47
 
49
48
  # query parameters
50
49
  query_params = {}
@@ -58,7 +57,7 @@ module CloudmersiveImageRecognitionApiClient
58
57
 
59
58
  # form parameters
60
59
  form_params = {}
61
- form_params["imageFile"] = image_file
60
+ form_params['imageFile'] = image_file
62
61
 
63
62
  # http body (model)
64
63
  post_body = nil
@@ -75,7 +74,6 @@ module CloudmersiveImageRecognitionApiClient
75
74
  end
76
75
  return data, status_code, headers
77
76
  end
78
-
79
77
  # Detect and unskew a photo of a document
80
78
  # Detect and unskew a photo of a document (e.g. taken on a cell phone) into a perfectly square image. Great for document scanning applications; once unskewed, this image is perfect for converting to PDF using the Convert API or optical character recognition using the OCR API.
81
79
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -84,7 +82,7 @@ module CloudmersiveImageRecognitionApiClient
84
82
  # @return [String]
85
83
  def recognize_detect_and_unskew_document(image_file, opts = {})
86
84
  data, _status_code, _headers = recognize_detect_and_unskew_document_with_http_info(image_file, opts)
87
- return data
85
+ data
88
86
  end
89
87
 
90
88
  # Detect and unskew a photo of a document
@@ -95,14 +93,14 @@ module CloudmersiveImageRecognitionApiClient
95
93
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
96
94
  def recognize_detect_and_unskew_document_with_http_info(image_file, opts = {})
97
95
  if @api_client.config.debugging
98
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_and_unskew_document ..."
96
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_and_unskew_document ...'
99
97
  end
100
98
  # verify the required parameter 'image_file' is set
101
99
  if @api_client.config.client_side_validation && image_file.nil?
102
100
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_and_unskew_document"
103
101
  end
104
102
  # resource path
105
- local_var_path = "/image/recognize/detect-document/unskew"
103
+ local_var_path = '/image/recognize/detect-document/unskew'
106
104
 
107
105
  # query parameters
108
106
  query_params = {}
@@ -117,7 +115,7 @@ module CloudmersiveImageRecognitionApiClient
117
115
 
118
116
  # form parameters
119
117
  form_params = {}
120
- form_params["imageFile"] = image_file
118
+ form_params['imageFile'] = image_file
121
119
 
122
120
  # http body (model)
123
121
  post_body = nil
@@ -134,32 +132,31 @@ module CloudmersiveImageRecognitionApiClient
134
132
  end
135
133
  return data, status_code, headers
136
134
  end
137
-
138
- # Detect objects, including types and locations, in an image
135
+ # Detect objects including types and locations in an image
139
136
  # Identify the position, size and description of objects in an image, along with a recognition confidence level. Detects both human people and objects in an image.
140
137
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
141
138
  # @param [Hash] opts the optional parameters
142
139
  # @return [ObjectDetectionResult]
143
140
  def recognize_detect_objects(image_file, opts = {})
144
141
  data, _status_code, _headers = recognize_detect_objects_with_http_info(image_file, opts)
145
- return data
142
+ data
146
143
  end
147
144
 
148
- # Detect objects, including types and locations, in an image
145
+ # Detect objects including types and locations in an image
149
146
  # Identify the position, size and description of objects in an image, along with a recognition confidence level. Detects both human people and objects in an image.
150
147
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
151
148
  # @param [Hash] opts the optional parameters
152
149
  # @return [Array<(ObjectDetectionResult, Fixnum, Hash)>] ObjectDetectionResult data, response status code and response headers
153
150
  def recognize_detect_objects_with_http_info(image_file, opts = {})
154
151
  if @api_client.config.debugging
155
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_objects ..."
152
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_objects ...'
156
153
  end
157
154
  # verify the required parameter 'image_file' is set
158
155
  if @api_client.config.client_side_validation && image_file.nil?
159
156
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_objects"
160
157
  end
161
158
  # resource path
162
- local_var_path = "/image/recognize/detect-objects"
159
+ local_var_path = '/image/recognize/detect-objects'
163
160
 
164
161
  # query parameters
165
162
  query_params = {}
@@ -173,7 +170,7 @@ module CloudmersiveImageRecognitionApiClient
173
170
 
174
171
  # form parameters
175
172
  form_params = {}
176
- form_params["imageFile"] = image_file
173
+ form_params['imageFile'] = image_file
177
174
 
178
175
  # http body (model)
179
176
  post_body = nil
@@ -190,32 +187,31 @@ module CloudmersiveImageRecognitionApiClient
190
187
  end
191
188
  return data, status_code, headers
192
189
  end
193
-
194
- # Detect people, including locations, in an image
190
+ # Detect people including locations in an image
195
191
  # Identify the position, and size of human people in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
196
192
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
197
193
  # @param [Hash] opts the optional parameters
198
194
  # @return [ObjectDetectionResult]
199
195
  def recognize_detect_people(image_file, opts = {})
200
196
  data, _status_code, _headers = recognize_detect_people_with_http_info(image_file, opts)
201
- return data
197
+ data
202
198
  end
203
199
 
204
- # Detect people, including locations, in an image
200
+ # Detect people including locations in an image
205
201
  # Identify the position, and size of human people in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
206
202
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
207
203
  # @param [Hash] opts the optional parameters
208
204
  # @return [Array<(ObjectDetectionResult, Fixnum, Hash)>] ObjectDetectionResult data, response status code and response headers
209
205
  def recognize_detect_people_with_http_info(image_file, opts = {})
210
206
  if @api_client.config.debugging
211
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_people ..."
207
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_people ...'
212
208
  end
213
209
  # verify the required parameter 'image_file' is set
214
210
  if @api_client.config.client_side_validation && image_file.nil?
215
211
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_people"
216
212
  end
217
213
  # resource path
218
- local_var_path = "/image/recognize/detect-people"
214
+ local_var_path = '/image/recognize/detect-people'
219
215
 
220
216
  # query parameters
221
217
  query_params = {}
@@ -229,7 +225,7 @@ module CloudmersiveImageRecognitionApiClient
229
225
 
230
226
  # form parameters
231
227
  form_params = {}
232
- form_params["imageFile"] = image_file
228
+ form_params['imageFile'] = image_file
233
229
 
234
230
  # http body (model)
235
231
  post_body = nil
@@ -246,7 +242,6 @@ module CloudmersiveImageRecognitionApiClient
246
242
  end
247
243
  return data, status_code, headers
248
244
  end
249
-
250
245
  # Detect fine text in a photo of a document
251
246
  # Identify the position, and size of small/fine text within a photograph of a document. Identify the location of small text in a photo - such as words and other forms of high density text. Can be used on a scan of a document or a photograph (e.g. smartphone camera) of a document, page or receipt. For OCR purposes - please see our Deep Learning OCR APIs.
252
247
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -254,7 +249,7 @@ module CloudmersiveImageRecognitionApiClient
254
249
  # @return [FineTextDetectionResult]
255
250
  def recognize_detect_text_fine(image_file, opts = {})
256
251
  data, _status_code, _headers = recognize_detect_text_fine_with_http_info(image_file, opts)
257
- return data
252
+ data
258
253
  end
259
254
 
260
255
  # Detect fine text in a photo of a document
@@ -264,14 +259,14 @@ module CloudmersiveImageRecognitionApiClient
264
259
  # @return [Array<(FineTextDetectionResult, Fixnum, Hash)>] FineTextDetectionResult data, response status code and response headers
265
260
  def recognize_detect_text_fine_with_http_info(image_file, opts = {})
266
261
  if @api_client.config.debugging
267
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_text_fine ..."
262
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_text_fine ...'
268
263
  end
269
264
  # verify the required parameter 'image_file' is set
270
265
  if @api_client.config.client_side_validation && image_file.nil?
271
266
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_text_fine"
272
267
  end
273
268
  # resource path
274
- local_var_path = "/image/recognize/detect-text/fine"
269
+ local_var_path = '/image/recognize/detect-text/fine'
275
270
 
276
271
  # query parameters
277
272
  query_params = {}
@@ -285,7 +280,7 @@ module CloudmersiveImageRecognitionApiClient
285
280
 
286
281
  # form parameters
287
282
  form_params = {}
288
- form_params["imageFile"] = image_file
283
+ form_params['imageFile'] = image_file
289
284
 
290
285
  # http body (model)
291
286
  post_body = nil
@@ -302,7 +297,6 @@ module CloudmersiveImageRecognitionApiClient
302
297
  end
303
298
  return data, status_code, headers
304
299
  end
305
-
306
300
  # Detect large text in a photo
307
301
  # Identify the position, and size of large text within a photograph. Identify the location of large text in a photo - such as signs, titles, etc. and other forms of large, low-density text. Not suitable for high-density text (e.g. scans of documents, receipts, etc.) for OCR purposes - for OCR, please see our Deep Learning OCR APIs.
308
302
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -310,7 +304,7 @@ module CloudmersiveImageRecognitionApiClient
310
304
  # @return [TextDetectionResult]
311
305
  def recognize_detect_text_large(image_file, opts = {})
312
306
  data, _status_code, _headers = recognize_detect_text_large_with_http_info(image_file, opts)
313
- return data
307
+ data
314
308
  end
315
309
 
316
310
  # Detect large text in a photo
@@ -320,14 +314,14 @@ module CloudmersiveImageRecognitionApiClient
320
314
  # @return [Array<(TextDetectionResult, Fixnum, Hash)>] TextDetectionResult data, response status code and response headers
321
315
  def recognize_detect_text_large_with_http_info(image_file, opts = {})
322
316
  if @api_client.config.debugging
323
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_text_large ..."
317
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_text_large ...'
324
318
  end
325
319
  # verify the required parameter 'image_file' is set
326
320
  if @api_client.config.client_side_validation && image_file.nil?
327
321
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_text_large"
328
322
  end
329
323
  # resource path
330
- local_var_path = "/image/recognize/detect-text/large"
324
+ local_var_path = '/image/recognize/detect-text/large'
331
325
 
332
326
  # query parameters
333
327
  query_params = {}
@@ -341,7 +335,7 @@ module CloudmersiveImageRecognitionApiClient
341
335
 
342
336
  # form parameters
343
337
  form_params = {}
344
- form_params["imageFile"] = image_file
338
+ form_params['imageFile'] = image_file
345
339
 
346
340
  # http body (model)
347
341
  post_body = nil
@@ -358,32 +352,31 @@ module CloudmersiveImageRecognitionApiClient
358
352
  end
359
353
  return data, status_code, headers
360
354
  end
361
-
362
355
  # Detect vehicle license plates in an image
363
- # Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera.
356
+ # Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera. Supported image formats are JPG, PNG and BMP.
364
357
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
365
358
  # @param [Hash] opts the optional parameters
366
359
  # @return [VehicleLicensePlateDetectionResult]
367
360
  def recognize_detect_vehicle_license_plates(image_file, opts = {})
368
361
  data, _status_code, _headers = recognize_detect_vehicle_license_plates_with_http_info(image_file, opts)
369
- return data
362
+ data
370
363
  end
371
364
 
372
365
  # Detect vehicle license plates in an image
373
- # Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera.
366
+ # Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera. Supported image formats are JPG, PNG and BMP.
374
367
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
375
368
  # @param [Hash] opts the optional parameters
376
369
  # @return [Array<(VehicleLicensePlateDetectionResult, Fixnum, Hash)>] VehicleLicensePlateDetectionResult data, response status code and response headers
377
370
  def recognize_detect_vehicle_license_plates_with_http_info(image_file, opts = {})
378
371
  if @api_client.config.debugging
379
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_detect_vehicle_license_plates ..."
372
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_detect_vehicle_license_plates ...'
380
373
  end
381
374
  # verify the required parameter 'image_file' is set
382
375
  if @api_client.config.client_side_validation && image_file.nil?
383
376
  fail ArgumentError, "Missing the required parameter 'image_file' when calling RecognizeApi.recognize_detect_vehicle_license_plates"
384
377
  end
385
378
  # resource path
386
- local_var_path = "/image/recognize/detect-vehicle-license-plates"
379
+ local_var_path = '/image/recognize/detect-vehicle-license-plates'
387
380
 
388
381
  # query parameters
389
382
  query_params = {}
@@ -397,7 +390,7 @@ module CloudmersiveImageRecognitionApiClient
397
390
 
398
391
  # form parameters
399
392
  form_params = {}
400
- form_params["imageFile"] = image_file
393
+ form_params['imageFile'] = image_file
401
394
 
402
395
  # http body (model)
403
396
  post_body = nil
@@ -414,7 +407,6 @@ module CloudmersiveImageRecognitionApiClient
414
407
  end
415
408
  return data, status_code, headers
416
409
  end
417
-
418
410
  # Find the location of a symbol in an image
419
411
  # Determine if an image contains a symbol, and if so, the location of that symbol in the image.
420
412
  # @param input_image Image file to search through for the target image.
@@ -423,7 +415,7 @@ module CloudmersiveImageRecognitionApiClient
423
415
  # @return [FindSymbolResult]
424
416
  def recognize_find_symbol(input_image, target_image, opts = {})
425
417
  data, _status_code, _headers = recognize_find_symbol_with_http_info(input_image, target_image, opts)
426
- return data
418
+ data
427
419
  end
428
420
 
429
421
  # Find the location of a symbol in an image
@@ -434,7 +426,7 @@ module CloudmersiveImageRecognitionApiClient
434
426
  # @return [Array<(FindSymbolResult, Fixnum, Hash)>] FindSymbolResult data, response status code and response headers
435
427
  def recognize_find_symbol_with_http_info(input_image, target_image, opts = {})
436
428
  if @api_client.config.debugging
437
- @api_client.config.logger.debug "Calling API: RecognizeApi.recognize_find_symbol ..."
429
+ @api_client.config.logger.debug 'Calling API: RecognizeApi.recognize_find_symbol ...'
438
430
  end
439
431
  # verify the required parameter 'input_image' is set
440
432
  if @api_client.config.client_side_validation && input_image.nil?
@@ -445,7 +437,7 @@ module CloudmersiveImageRecognitionApiClient
445
437
  fail ArgumentError, "Missing the required parameter 'target_image' when calling RecognizeApi.recognize_find_symbol"
446
438
  end
447
439
  # resource path
448
- local_var_path = "/image/recognize/find/symbol"
440
+ local_var_path = '/image/recognize/find/symbol'
449
441
 
450
442
  # query parameters
451
443
  query_params = {}
@@ -459,8 +451,8 @@ module CloudmersiveImageRecognitionApiClient
459
451
 
460
452
  # form parameters
461
453
  form_params = {}
462
- form_params["inputImage"] = input_image
463
- form_params["targetImage"] = target_image
454
+ form_params['inputImage'] = input_image
455
+ form_params['targetImage'] = target_image
464
456
 
465
457
  # http body (model)
466
458
  post_body = nil