{ "uuid": "415da4c1-411d-4ecb-92c4-393bb5dd1d60", "lastMigration": 29, "name": "Computer Vision", "endpointPrefix": "vision/v1.0", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "5f08c666-0d20-4d25-bf4b-7d054825927c", "documentation": "This operation extracts a rich set of visual features based on the image content. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within your request, there is an optional parameter to allow you to choose which features to return. By default, image categories are returned in the response.", "method": "post", "endpoint": "analyze", "responses": [ { "uuid": "66c3b357-ccf8-4a8b-9cc5-ce85e7e1c9fb", "body": "{\n \"adult\": {\n \"adultScore\": {{faker 'number.float'}},\n \"isAdultContent\": {{faker 'datatype.boolean'}},\n \"isRacyContent\": {{faker 'datatype.boolean'}},\n \"racyScore\": {{faker 'number.float'}}\n },\n \"categories\": [\n {\n \"detail\": {\n \"celebrities\": [\n {\n \"confidence\": {{faker 'number.float'}},\n \"faceRectangle\": {\n \"height\": {{faker 'number.int' max=99999}},\n \"left\": {{faker 'number.int' max=99999}},\n \"top\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"name\": \"\"\n }\n ]\n },\n \"name\": \"\",\n \"score\": {{faker 'number.float'}}\n }\n ],\n \"color\": {\n \"accentColor\": \"\",\n \"dominantColorBackground\": \"\",\n \"dominantColorForeground\": \"\",\n \"dominantColors\": [\n \"\"\n ],\n \"isBWImg\": {{faker 'datatype.boolean'}}\n },\n \"description\": {\n \"captions\": [\n {\n \"confidence\": {{faker 'number.float'}},\n \"text\": \"\"\n }\n ],\n \"metadata\": {\n \"format\": \"\",\n \"height\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"requestId\": \"\",\n \"tags\": [\n \"\"\n ]\n },\n \"faces\": [\n {\n \"age\": {{faker 'number.int' max=99999}},\n \"faceRectangle\": {\n \"height\": {{faker 'number.int' max=99999}},\n \"left\": {{faker 'number.int' max=99999}},\n \"top\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"gender\": \"{{oneOf (array 'Male' 'Female')}}\"\n }\n ],\n \"imageType\": {\n \"clipArtType\": {{faker 'number.int' max=99999}},\n \"lineDrawingType\": {{faker 'number.int' max=99999}}\n },\n \"metadata\": {\n \"format\": \"\",\n \"height\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"requestId\": \"\",\n \"tags\": [\n {\n \"confidence\": {{faker 'number.float'}},\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "The response include the extracted features in JSON format.Here is the definitions for enumeration typesClipartTypeNon-clipart = 0, ambiguous = 1, normal-clipart = 2, good-clipart = 3.LineDrawingTypeNon-LineDrawing = 0,LineDrawing = 1.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f5ba2a18-dc0d-4a0f-b0e7-b7a5ea6d113a", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c8717d49-8af5-4f0c-90d7-c08082ca22d0", "documentation": "This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of content tags, which are also returned by the operation. More than one description can be generated for each image. Descriptions are ordered by their confidence score. All descriptions are in English. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL.A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.", "method": "post", "endpoint": "describe", "responses": [ { "uuid": "ded0a732-eb6a-45e7-8214-ffacd085d3b8", "body": "{\n \"description\": {\n \"captions\": [\n {\n \"confidence\": {{faker 'number.float'}},\n \"text\": \"\"\n }\n ],\n \"metadata\": {\n \"format\": \"\",\n \"height\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"requestId\": \"\",\n \"tags\": [\n \"\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Image description object.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "65ccbca5-378d-4db3-99fb-b3182170844a", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "99ddddc4-8284-4e4c-acf5-5a0f1b35e816", "documentation": "This operation generates a thumbnail image with the user-specified width and height. By default, the service analyzes the image, identifies the region of interest (ROI), and generates smart cropping coordinates based on the ROI. Smart cropping helps when you specify an aspect ratio that differs from that of the input image. A successful response contains the thumbnail image binary. If the request failed, the response contains an error code and a message to help determine what went wrong.", "method": "post", "endpoint": "generateThumbnail", "responses": [ { "uuid": "2dad44b5-927d-4b81-bbdb-1129453b980e", "body": "", "latency": 0, "statusCode": 200, "label": "The generated thumbnail in binary format.", "headers": [ { "key": "Content-Type", "value": "application/octet-stream" } ], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1212d9fd-298e-4ed7-ac4e-32ce441bb6cd", "body": "", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [ { "key": "Content-Type", "value": "application/octet-stream" } ], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "98882143-be3c-40e5-8d7e-bead84e7ab7c", "documentation": "This operation returns the list of domain-specific models that are supported by the Computer Vision API. Currently, the API only supports one domain-specific model: a celebrity recognizer. A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.", "method": "get", "endpoint": "models", "responses": [ { "uuid": "26417d95-ffd4-47e0-857e-279167b71f31", "body": "{\n \"models\": [\n {\n \"categories\": [\n \"\"\n ],\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "List of available domain models.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a4061d74-e837-4d24-85d5-e96b1456af29", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4521af2b-8d77-4bbe-8e1a-b5b6d3f02a0d", "documentation": "This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API only provides a single domain-specific model: celebrities. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.", "method": "post", "endpoint": "models/:model/analyze", "responses": [ { "uuid": "fcef5273-65ea-4065-9d0b-3ff46da2a4e5", "body": "{\n \"metadata\": {\n \"format\": \"\",\n \"height\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"requestId\": \"\",\n \"result\": {}\n}", "latency": 0, "statusCode": 200, "label": "Analysis result based on the domain model", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "418302e1-0954-4b1d-a80b-b89cf8174b9a", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cea2db7b-953a-4753-b6e2-ee0009f9bdd1", "documentation": "Optical Character Recognition (OCR) detects printed text in an image and extracts the recognized characters into a machine-usable character stream. Upon success, the OCR results will be returned. Upon failure, the error code together with an error message will be returned. The error code can be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, NotSupportedImage, NotSupportedLanguage, or InternalServerError.", "method": "post", "endpoint": "ocr", "responses": [ { "uuid": "671de013-1da1-43d1-b387-f41753f56433", "body": "{\n \"language\": \"\",\n \"orientation\": \"\",\n \"regions\": [\n {\n \"boundingBox\": \"\",\n \"lines\": [\n {\n \"boundingBox\": \"\",\n \"words\": [\n {\n \"boundingBox\": \"\",\n \"text\": \"\"\n }\n ]\n }\n ]\n }\n ],\n \"textAngle\": {{faker 'number.float'}}\n}", "latency": 0, "statusCode": 200, "label": "The OCR results in the hierarchy of region/line/word. The results include text, bounding box for regions, lines and words.textAngleThe angle, in degrees, of the detected text with respect to the closest horizontal or vertical direction. After rotating the input image clockwise by this angle, the recognized text lines become horizontal or vertical. In combination with the orientation property it can be used to overlay recognition results correctly on the original image, by rotating either the original image or recognition results by a suitable angle around the center of the original image. If the angle cannot be confidently detected, this property is not present. If the image contains text at different angles, only part of the text will be recognized correctly.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a4e243ec-0050-403f-b0b3-cf03917c0d4f", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "15112084-55ad-458b-9539-0d4ecc1d623c", "documentation": "Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation.", "method": "post", "endpoint": "recognizeText", "responses": [ { "uuid": "0dacb959-208c-426a-800a-15871b236bcd", "body": "", "latency": 0, "statusCode": 202, "label": "The service has accepted the request and will start processing later. It will return Accepted immediately and include an Operation-Location header. Client side should further query the operation status using the URL specified in this header. The operation ID will expire in 48 hours.", "headers": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Operation-Location", "value": "" } ], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6a95baa3-0bdc-4c21-9f4f-a9eda6cfcf05", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "50d040c7-fdd2-49d1-b4f0-1aaa7c3330d2", "documentation": "This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag 'cello' may be accompanied by the hint 'musical instrument'. All tags are in English.", "method": "post", "endpoint": "tag", "responses": [ { "uuid": "84e45774-052e-46cf-9159-0e0d660e7519", "body": "{\n \"metadata\": {\n \"format\": \"\",\n \"height\": {{faker 'number.int' max=99999}},\n \"width\": {{faker 'number.int' max=99999}}\n },\n \"requestId\": \"\",\n \"tags\": [\n {\n \"confidence\": {{faker 'number.float'}},\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Image tags object.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "576a0f9a-6ed5-45a4-92d1-0929fea86a27", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aa9899df-2fb5-43b5-a96d-fbde9543ad69", "documentation": "This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface.", "method": "get", "endpoint": "textOperations/:operationId", "responses": [ { "uuid": "38aa7b5a-882c-4c9f-8273-5b692682729b", "body": "{\n \"recognitionResult\": {\n \"lines\": [\n {\n \"boundingBox\": [\n {{faker 'number.int' max=99999}}\n ],\n \"text\": \"\",\n \"words\": [\n {\n \"boundingBox\": [\n {{faker 'number.int' max=99999}}\n ],\n \"text\": \"\"\n }\n ]\n }\n ]\n },\n \"status\": \"{{oneOf (array 'Not Started' 'Running' 'Failed' 'Succeeded')}}\"\n}", "latency": 0, "statusCode": 200, "label": "Returns the operation status.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ef8c8893-c6ab-47c3-bfc1-2361c1dfe458", "body": "{\n \"code\": \"{{oneOf (array 'InvalidImageUrl' 'InvalidImageFormat' 'InvalidImageSize' 'NotSupportedVisualFeature' 'NotSupportedImage' 'InvalidDetails' 'NotSupportedLanguage' 'BadArgument' 'FailedToProcess' 'Timeout' 'InternalServerError' 'Unspecified' 'StorageException')}}\",\n \"message\": \"\",\n \"requestId\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Error response.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "5f08c666-0d20-4d25-bf4b-7d054825927c" }, { "type": "route", "uuid": "c8717d49-8af5-4f0c-90d7-c08082ca22d0" }, { "type": "route", "uuid": "99ddddc4-8284-4e4c-acf5-5a0f1b35e816" }, { "type": "route", "uuid": "98882143-be3c-40e5-8d7e-bead84e7ab7c" }, { "type": "route", "uuid": "4521af2b-8d77-4bbe-8e1a-b5b6d3f02a0d" }, { "type": "route", "uuid": "cea2db7b-953a-4753-b6e2-ee0009f9bdd1" }, { "type": "route", "uuid": "15112084-55ad-458b-9539-0d4ecc1d623c" }, { "type": "route", "uuid": "50d040c7-fdd2-49d1-b4f0-1aaa7c3330d2" }, { "type": "route", "uuid": "aa9899df-2fb5-43b5-a96d-fbde9543ad69" } ] }