cloudmersive-image-api-client
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -361,3 +361,3 @@ # CloudmersiveImageApiClient.FilterApi | ||
# **filterPosterize** | ||
> Object filterPosterize(levels) | ||
> 'Blob' filterPosterize(levels, imageFile) | ||
@@ -383,3 +383,5 @@ Posterize the image by reducing distinct colors | ||
var imageFile = "/path/to/file.txt"; // File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | ||
var callback = function(error, data, response) { | ||
@@ -392,3 +394,3 @@ if (error) { | ||
}; | ||
apiInstance.filterPosterize(levels, callback); | ||
apiInstance.filterPosterize(levels, imageFile, callback); | ||
``` | ||
@@ -401,6 +403,7 @@ | ||
**levels** | **Number**| Number of unique colors to retain in the output image | | ||
**imageFile** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | | ||
### Return type | ||
**Object** | ||
**'Blob'** | ||
@@ -413,3 +416,3 @@ ### Authorization | ||
- **Content-Type**: Not defined | ||
- **Content-Type**: multipart/form-data | ||
- **Accept**: application/octet-stream | ||
@@ -416,0 +419,0 @@ |
@@ -7,2 +7,3 @@ # CloudmersiveImageApiClient.FindSymbolResult | ||
**successful** | **Boolean** | True if successful, false otherwise | [optional] | ||
**matchScore** | **Number** | Score between 0.0 and 1.0 that measures how closely the symbol matched; scores above 0.2 are good | [optional] | ||
**xLeft** | **Number** | X location of the left edge of the found location in pixels | [optional] | ||
@@ -9,0 +10,0 @@ **yTop** | **Number** | Y location of the top edge of the found location in pixels | [optional] |
{ | ||
"name": "cloudmersive-image-api-client", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Image_Recognition_and_Processing_APIs_let_you_use_Machine_Learning_to_recognize_and_process_images_and_also_perform_useful_image_modification_operations_", | ||
@@ -5,0 +5,0 @@ "license": "Unlicense", |
@@ -8,3 +8,3 @@ # cloudmersive-image-api-client | ||
- API version: v1 | ||
- Package version: 1.2.6 | ||
- Package version: 1.2.7 | ||
@@ -132,2 +132,5 @@ | ||
*CloudmersiveImageApiClient.ArtisticApi* | [**artisticPainting**](docs/ArtisticApi.md#artisticPainting) | **POST** /image/artistic/painting/{style} | Transform an image into an artistic painting automatically | ||
*CloudmersiveImageApiClient.ConvertApi* | [**convertToGif**](docs/ConvertApi.md#convertToGif) | **POST** /image/convert/to/gif | Convert input image to GIF format | ||
*CloudmersiveImageApiClient.ConvertApi* | [**convertToJpg**](docs/ConvertApi.md#convertToJpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format | ||
*CloudmersiveImageApiClient.ConvertApi* | [**convertToPng**](docs/ConvertApi.md#convertToPng) | **POST** /image/convert/to/png | Convert input image to PNG format | ||
*CloudmersiveImageApiClient.EditApi* | [**editAutoOrient**](docs/EditApi.md#editAutoOrient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data | ||
@@ -134,0 +137,0 @@ *CloudmersiveImageApiClient.EditApi* | [**editCompositeBasic**](docs/EditApi.md#editCompositeBasic) | **POST** /image/edit/composite/{location} | Composite two images together |
@@ -36,3 +36,3 @@ /** | ||
* @module api/ArtisticApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/EditApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/FaceApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/FilterApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -399,3 +399,3 @@ | ||
* @param {String} error Error message, if any. | ||
* @param {Object} data The data returned by the service call. | ||
* @param {'Blob'} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
@@ -408,6 +408,7 @@ */ | ||
* @param {Number} levels Number of unique colors to retain in the output image | ||
* @param {File} imageFile Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. | ||
* @param {module:api/FilterApi~filterPosterizeCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link Object} | ||
* data is of type: {@link 'Blob'} | ||
*/ | ||
this.filterPosterize = function(levels, callback) { | ||
this.filterPosterize = function(levels, imageFile, callback) { | ||
var postBody = null; | ||
@@ -420,3 +421,8 @@ | ||
// verify the required parameter 'imageFile' is set | ||
if (imageFile === undefined || imageFile === null) { | ||
throw new Error("Missing the required parameter 'imageFile' when calling filterPosterize"); | ||
} | ||
var pathParams = { | ||
@@ -432,8 +438,9 @@ }; | ||
var formParams = { | ||
'imageFile': imageFile | ||
}; | ||
var authNames = ['Apikey']; | ||
var contentTypes = []; | ||
var contentTypes = ['multipart/form-data']; | ||
var accepts = ['application/octet-stream']; | ||
var returnType = Object; | ||
var returnType = 'Blob'; | ||
@@ -440,0 +447,0 @@ return this.apiClient.callApi( |
@@ -36,3 +36,3 @@ /** | ||
* @module api/InfoApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/NsfwApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/RecognizeApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -36,3 +36,3 @@ /** | ||
* @module api/ResizeApi | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -39,0 +39,0 @@ |
@@ -35,3 +35,3 @@ /** | ||
* @module ApiClient | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -38,0 +38,0 @@ |
@@ -19,8 +19,8 @@ /** | ||
// AMD. Register as an anonymous module. | ||
define(['ApiClient', 'model/AgeDetectionResult', 'model/ColorResult', 'model/DetectedLicensePlate', 'model/DetectedObject', 'model/DominantColorResult', 'model/DrawPolygonInstance', 'model/DrawPolygonRequest', 'model/DrawRectangleInstance', 'model/DrawRectangleRequest', 'model/DrawTextInstance', 'model/DrawTextRequest', 'model/Face', 'model/FaceCompareResponse', 'model/FaceLocateResponse', 'model/FaceLocateWithLandmarksResponse', 'model/FaceMatch', 'model/FacePoint', 'model/FaceWithLandmarks', 'model/FindSymbolResult', 'model/FineTextDetectionResult', 'model/FineTextItem', 'model/GenderDetectionResult', 'model/ImageDescriptionResponse', 'model/NsfwResult', 'model/ObjectDetectionResult', 'model/PersonWithAge', 'model/PersonWithGender', 'model/PolygonPoint', 'model/RecognitionOutcome', 'model/TextDetectionResult', 'model/TextItem', 'model/VehicleLicensePlateDetectionResult', 'api/ArtisticApi', 'api/EditApi', 'api/FaceApi', 'api/FilterApi', 'api/InfoApi', 'api/NsfwApi', 'api/RecognizeApi', 'api/ResizeApi'], factory); | ||
define(['ApiClient', 'model/AgeDetectionResult', 'model/ColorResult', 'model/DetectedLicensePlate', 'model/DetectedObject', 'model/DominantColorResult', 'model/DrawPolygonInstance', 'model/DrawPolygonRequest', 'model/DrawRectangleInstance', 'model/DrawRectangleRequest', 'model/DrawTextInstance', 'model/DrawTextRequest', 'model/Face', 'model/FaceCompareResponse', 'model/FaceLocateResponse', 'model/FaceLocateWithLandmarksResponse', 'model/FaceMatch', 'model/FacePoint', 'model/FaceWithLandmarks', 'model/FindSymbolResult', 'model/FineTextDetectionResult', 'model/FineTextItem', 'model/GenderDetectionResult', 'model/ImageDescriptionResponse', 'model/NsfwResult', 'model/ObjectDetectionResult', 'model/PersonWithAge', 'model/PersonWithGender', 'model/PolygonPoint', 'model/RecognitionOutcome', 'model/TextDetectionResult', 'model/TextItem', 'model/VehicleLicensePlateDetectionResult', 'api/ArtisticApi', 'api/ConvertApi', 'api/EditApi', 'api/FaceApi', 'api/FilterApi', 'api/InfoApi', 'api/NsfwApi', 'api/RecognizeApi', 'api/ResizeApi'], factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
// CommonJS-like environments that support module.exports, like Node. | ||
module.exports = factory(require('./ApiClient'), require('./model/AgeDetectionResult'), require('./model/ColorResult'), require('./model/DetectedLicensePlate'), require('./model/DetectedObject'), require('./model/DominantColorResult'), require('./model/DrawPolygonInstance'), require('./model/DrawPolygonRequest'), require('./model/DrawRectangleInstance'), require('./model/DrawRectangleRequest'), require('./model/DrawTextInstance'), require('./model/DrawTextRequest'), require('./model/Face'), require('./model/FaceCompareResponse'), require('./model/FaceLocateResponse'), require('./model/FaceLocateWithLandmarksResponse'), require('./model/FaceMatch'), require('./model/FacePoint'), require('./model/FaceWithLandmarks'), require('./model/FindSymbolResult'), require('./model/FineTextDetectionResult'), require('./model/FineTextItem'), require('./model/GenderDetectionResult'), require('./model/ImageDescriptionResponse'), require('./model/NsfwResult'), require('./model/ObjectDetectionResult'), require('./model/PersonWithAge'), require('./model/PersonWithGender'), require('./model/PolygonPoint'), require('./model/RecognitionOutcome'), require('./model/TextDetectionResult'), require('./model/TextItem'), require('./model/VehicleLicensePlateDetectionResult'), require('./api/ArtisticApi'), require('./api/EditApi'), require('./api/FaceApi'), require('./api/FilterApi'), require('./api/InfoApi'), require('./api/NsfwApi'), require('./api/RecognizeApi'), require('./api/ResizeApi')); | ||
module.exports = factory(require('./ApiClient'), require('./model/AgeDetectionResult'), require('./model/ColorResult'), require('./model/DetectedLicensePlate'), require('./model/DetectedObject'), require('./model/DominantColorResult'), require('./model/DrawPolygonInstance'), require('./model/DrawPolygonRequest'), require('./model/DrawRectangleInstance'), require('./model/DrawRectangleRequest'), require('./model/DrawTextInstance'), require('./model/DrawTextRequest'), require('./model/Face'), require('./model/FaceCompareResponse'), require('./model/FaceLocateResponse'), require('./model/FaceLocateWithLandmarksResponse'), require('./model/FaceMatch'), require('./model/FacePoint'), require('./model/FaceWithLandmarks'), require('./model/FindSymbolResult'), require('./model/FineTextDetectionResult'), require('./model/FineTextItem'), require('./model/GenderDetectionResult'), require('./model/ImageDescriptionResponse'), require('./model/NsfwResult'), require('./model/ObjectDetectionResult'), require('./model/PersonWithAge'), require('./model/PersonWithGender'), require('./model/PolygonPoint'), require('./model/RecognitionOutcome'), require('./model/TextDetectionResult'), require('./model/TextItem'), require('./model/VehicleLicensePlateDetectionResult'), require('./api/ArtisticApi'), require('./api/ConvertApi'), require('./api/EditApi'), require('./api/FaceApi'), require('./api/FilterApi'), require('./api/InfoApi'), require('./api/NsfwApi'), require('./api/RecognizeApi'), require('./api/ResizeApi')); | ||
} | ||
}(function(ApiClient, AgeDetectionResult, ColorResult, DetectedLicensePlate, DetectedObject, DominantColorResult, DrawPolygonInstance, DrawPolygonRequest, DrawRectangleInstance, DrawRectangleRequest, DrawTextInstance, DrawTextRequest, Face, FaceCompareResponse, FaceLocateResponse, FaceLocateWithLandmarksResponse, FaceMatch, FacePoint, FaceWithLandmarks, FindSymbolResult, FineTextDetectionResult, FineTextItem, GenderDetectionResult, ImageDescriptionResponse, NsfwResult, ObjectDetectionResult, PersonWithAge, PersonWithGender, PolygonPoint, RecognitionOutcome, TextDetectionResult, TextItem, VehicleLicensePlateDetectionResult, ArtisticApi, EditApi, FaceApi, FilterApi, InfoApi, NsfwApi, RecognizeApi, ResizeApi) { | ||
}(function(ApiClient, AgeDetectionResult, ColorResult, DetectedLicensePlate, DetectedObject, DominantColorResult, DrawPolygonInstance, DrawPolygonRequest, DrawRectangleInstance, DrawRectangleRequest, DrawTextInstance, DrawTextRequest, Face, FaceCompareResponse, FaceLocateResponse, FaceLocateWithLandmarksResponse, FaceMatch, FacePoint, FaceWithLandmarks, FindSymbolResult, FineTextDetectionResult, FineTextItem, GenderDetectionResult, ImageDescriptionResponse, NsfwResult, ObjectDetectionResult, PersonWithAge, PersonWithGender, PolygonPoint, RecognitionOutcome, TextDetectionResult, TextItem, VehicleLicensePlateDetectionResult, ArtisticApi, ConvertApi, EditApi, FaceApi, FilterApi, InfoApi, NsfwApi, RecognizeApi, ResizeApi) { | ||
'use strict'; | ||
@@ -57,3 +57,3 @@ | ||
* @module index | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -232,2 +232,7 @@ var exports = { | ||
/** | ||
* The ConvertApi service constructor. | ||
* @property {module:api/ConvertApi} | ||
*/ | ||
ConvertApi: ConvertApi, | ||
/** | ||
* The EditApi service constructor. | ||
@@ -234,0 +239,0 @@ * @property {module:api/EditApi} |
@@ -39,3 +39,3 @@ /** | ||
* @module model/AgeDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/ColorResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DetectedLicensePlate | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DetectedObject | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DominantColorResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawPolygonInstance | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawPolygonRequest | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawRectangleInstance | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawRectangleRequest | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawTextInstance | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/DrawTextRequest | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/Face | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceCompareResponse | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceLocateResponse | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceLocateWithLandmarksResponse | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceMatch | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FacePoint | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FaceWithLandmarks | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FindSymbolResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -57,2 +57,3 @@ | ||
}; | ||
@@ -74,2 +75,5 @@ | ||
} | ||
if (data.hasOwnProperty('MatchScore')) { | ||
obj['MatchScore'] = ApiClient.convertToType(data['MatchScore'], 'Number'); | ||
} | ||
if (data.hasOwnProperty('XLeft')) { | ||
@@ -97,2 +101,7 @@ obj['XLeft'] = ApiClient.convertToType(data['XLeft'], 'Number'); | ||
/** | ||
* Score between 0.0 and 1.0 that measures how closely the symbol matched; scores above 0.2 are good | ||
* @member {Number} MatchScore | ||
*/ | ||
exports.prototype['MatchScore'] = undefined; | ||
/** | ||
* X location of the left edge of the found location in pixels | ||
@@ -99,0 +108,0 @@ * @member {Number} XLeft |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FineTextDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/FineTextItem | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/GenderDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/ImageDescriptionResponse | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/NsfwResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/ObjectDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/PersonWithAge | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/PersonWithGender | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/PolygonPoint | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/RecognitionOutcome | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/TextDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/TextItem | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
* @module model/VehicleLicensePlateDetectionResult | ||
* @version 1.2.6 | ||
* @version 1.2.7 | ||
*/ | ||
@@ -42,0 +42,0 @@ |
@@ -65,2 +65,8 @@ /** | ||
it('should have the property matchScore (base name: "MatchScore")', function() { | ||
// uncomment below and update the code to test the property matchScore | ||
//var instane = new CloudmersiveImageApiClient.FindSymbolResult(); | ||
//expect(instance).to.be(); | ||
}); | ||
it('should have the property xLeft (base name: "XLeft")', function() { | ||
@@ -67,0 +73,0 @@ // uncomment below and update the code to test the property xLeft |
495870
132
9326
217