Extract features from images
Required capabilities:
filesAcl:READ
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:
- Must have file extension:
.jpeg,.jpgor.png - Must have
image/pngorimage/jpegasmimeType
New feature extractors may be added in the future.
Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
Headers
cdf version header. Use this to specify the requested CDF release.
"alpha"
Body
A request for running an extract job.
List of image files to be analyzed by the feature extractors.
An external-id or instance-id reference to the referenced file.
- Option 1
- Option 2
- Option 3
The type of detections to perform. New feature extractors may appear. You can use up to three feature extractors per request.
Detect text in images.
TextDetection [
"TextDetection",
"AssetTagDetection",
"PeopleDetection"
]Feature-specific parameters. New feature extractor parameters may appear.
{
"textDetectionParameters": { "threshold": 0.8 },
"assetTagDetectionParameters": {
"threshold": 0.8,
"partialMatch": true,
"assetSubtreeIds": [1, 2]
},
"peopleDetectionParameters": { "threshold": 0.8 }
}Response
Success
The status of the job.
Queued, Running, Completed, Failed The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
Contextualization job ID.
123
List of files to be analyzed by the feature extractors.
The type of detections to perform. New feature extractors may appear.
Detect text in images.
TextDetection [
"TextDetection",
"AssetTagDetection",
"PeopleDetection"
]If the job failed, some more information about the error cause.
null
Feature-specific parameters. New feature extractor parameters may appear.
{
"textDetectionParameters": { "threshold": 0.8 },
"assetTagDetectionParameters": {
"threshold": 0.8,
"partialMatch": true,
"assetSubtreeIds": [1, 2]
},
"peopleDetectionParameters": { "threshold": 0.8 }
}