Using a Pretrained Model in the Console
Vision provides pretrained models to extract insights from images, without needing Data Scientists.
In this tutorial you learn how to:
- 1. Understand Data Requirements.
- 2. Load Data to Object Storage.
- Run Document AI on a document you loaded.
- Run Image Analysis on an image you loaded.
Before You Begin
Before you use Vision, your tenancy administrator must set up the appropriate policies.
Setting Up the Policies
Follow these steps to set up the policies needed to be able to use Vision.
1. Understand Data Requirements
Vision works with many formats of image data to detect objects, assign labels to images, extract text, and more. It accepts data through Object Storage. If Vision is run in the Console, you can also provide locally stored images.
API | Description | Supported Input Format |
---|---|---|
Synchronous API
|
Analyzes individual images. |
|
Asynchronous API | Analyze several images or multi-page PDFs. |
|
2. Load Data to Object Storage
In this step, you load to Object Storage the images and documents you want to analyze.
Complete 1. Understand Data Requirements before trying this section.
Create an Object Storage Bucket
If you already have a bucket in Object Storage you can use, then go straight to the next section on loading image files.
- From the Console navigation menu, click Storage.
- Under Object Storage, click Buckets.
- In the Buckets page, under List Scope, select your Compartment.
- Click Create Bucket. The Create Bucket pane is displayed.
- Enter a Bucket Name. Avoid entering confidential information.
- Under Default Storage Tier, click Standard. Leave all the other fields at their default values.
- Click Create.
Load Image Files to the Object Storage Bucket
- In the Buckets page, click the name of the bucket you are going to load images into. The bucket's details page is displayed.
- Under Resources, click Objects to display the list of objects in the bucket.
- Click Upload. The Upload Objects pane is displayed.
- Drag the files you want to load onto the panel, or click select files to select them from your local files.
3. Document AI
The steps to use Document AI features in Vision.
Complete 2. Load Data to Object Storage before trying this section.
Open Vision Console
- From the Console navigation menu, click Analytics & AI.
- Under AI Services, click Vision. The Vision home page is displayed.
Use Document AI
- Under Vision, click Document AI. The Document AI page is displayed.
- Under Image source, click Object storage.
- Select a document that you loaded in 2. Load Data to Object Storage. The analyzeDocument API is invoked.
Feature | Description | Results |
---|---|---|
OCR (Optical Character Recognition) | Finds and digitizes text information from images. | Text identified in the document is displayed under Raw Text in the Results pane. |
Document Image Classification | Classifies documents into different types based on their visual appearance, high-level features, and extracted keywords. | The classification into a Document type along with a confidence score, is displayed in the Results pane. |
Language Classification | Classifies the language of document based on visual features. | The classification into a Document language along with a confidence score, is displayed in the Results pane. |
Table extraction | Extracts content in a tabular format, maintaining the row and column relationships of the cells. | In the Results pane, click the Table tab to see the output. |
Searchable PDF output | Embeds a transparent layer on top of document image in PDF format to make it
searchable by keywords.
Note: This functionality is only available when a PDF document is provided. |
Click Searchable PDF. An OCR PDF file is downloaded to your computer. |
4. Image Analysis
The steps to use Image Analysis features in Vision.
Complete 2. Load Data to Object Storage before trying this section.
Open Vision Console
- From the Console navigation menu, click Analytics & AI.
- Under AI Services, click Vision. The Vision home page is displayed.
Use Image Classification
- Under Vision, click Image Classification. The Image Classification page is displayed.
- Click Object storage.
- Select an image that you loaded in 2. Load Data to Object Storage. The analyzeIamge API is invoked.
The results categorizing objects in the image, are displayed in the Results section. There are labels to classify the detected objects, and a confidence score for each object.
Use Object Detection
- Under Vision, click Object Detection. The Object Detection page is displayed.
- Click Object storage.
- Select an image that you loaded in 2. Load Data to Object Storage. The analyzeIamge API is invoked.
The results are displayed in the Results section. The objects detected, a confidence score for each object, and highlighted bounding box around each object are displayed in the Results pane. If you click a label, where on the image that object is detected is shown.
What's Next
Now you know how to use Vision with pretrained models, try using it with custom models.