Batch Processing
When dealing with archival media, or analyzing many images that don't require an immediate response to a user, you might want to process the images asynchronously in Vision.
Input
compartment_id
: The OCID of the compartment the images are in.input_objects
: A list of the object locations in the following format:namespace
: The name of the namespace.bucket
: The bucket name.objects
: The list of object names.
Output
As part of the request, you specify an output location for the results of the job. This output location is an Object Storage location defined by the namespace, object, and prefix. The results are the same type of JSON response as with the synchronous API, with one JSON record per image. However, for multipage PDFs, you get one JSON file per PDF file, and the results are paginated.
namespace
: The name of the namespace.bucket
: The bucket name.prefix
: The name of the prefix.
Asynchronous API Operations
documentJobs
, and one for analyzing images, called
ImageJobs
. Here are the three key operations and their supported input
formats:Information on the limits in batch jobs is in the Limits section. More information on the APIs can be found in the Vision API documentation, or in the Analyzing with the API chapter.
- ACCEPTED
- CANCELED
- CANCELING
- IN_PROGRESS
- SUCCEEDED
- FAILED