Start an asynchronous prediction job for extracting features such as text, asset tags or industrial objects from images. The response of the POST request contains a job ID, which can be used to make subsequent (GET) calls to check the status and retrieve the results of the job (see Retrieve results from a feature extraction job).
It is possible to have up to 20 concurrent jobs per CDF project.
The files referenced by items
in the request body must fulfill the following requirements:
.jpeg
, .jpg
or .png
image/png
or image/jpeg
as mimeType
New feature extractors may be added in the future.
A request for running an extract job.
required | Array of objects or objects or objects (FileReference) [ 1 .. 100 ] List of image files to be analyzed by the feature extractors. |
required | Array of TextDetection (string) or AssetTagDetection (string) or PeopleDetection (string) or IndustrialObjectDetection (string) or PersonalProtectiveEquipmentDetection (string) or DialGaugeDetection (string) or LevelGaugeDetection (string) or DigitalGaugeDetection (string) or ValveDetection (string) (VisionExtractFeature) [ 1 .. 3 ] unique The type of detections to perform. New feature extractors may appear. You can use up to three feature extractors per request. |
object (FeatureParameters) Feature-specific parameters. New feature extractor parameters may appear. |
Success
The response for a failed request.
{- "items": [
- {
- "fileId": 1234
}
], - "features": [
- "TextDetection",
- "AssetTagDetection",
- "PeopleDetection"
], - "parameters": {
- "textDetectionParameters": {
- "threshold": 0.8
}, - "assetTagDetectionParameters": {
- "threshold": 0.8,
- "partialMatch": true,
- "assetSubtreeIds": [
- 1,
- 2
]
}, - "peopleDetectionParameters": {
- "threshold": 0.8
}
}
}
{- "status": "Queued",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "statusTime": 1730204346000,
- "errorMessage": null,
- "jobId": 123,
- "items": [
- {
- "fileId": 1234,
- "fileExternalId": "1234",
- "fileInstanceId": {
- "space": "space",
- "externalId": "externalId"
}
}
], - "features": [
- "TextDetection",
- "AssetTagDetection",
- "PeopleDetection"
], - "parameters": {
- "textDetectionParameters": {
- "threshold": 0.8
}, - "assetTagDetectionParameters": {
- "threshold": 0.8,
- "partialMatch": true,
- "assetSubtreeIds": [
- 1,
- 2
]
}, - "peopleDetectionParameters": {
- "threshold": 0.8
}
}
}