OCI Vision and Document Understanding
OCI AI Foundations · Lesson 16 of 16 · 2:01:16
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Cloud Infrastructure AI Foundations Associate exam (1Z0-1122-26). In this lesson: OCI Vision image analysis (object detection with bounding boxes, image classification, face detection, and OCR), custom Vision models, stored video analysis, and OCI Document Understanding (text, table, and key-value extraction, document classification, searchable PDFs, and classic or generative custom key-value models). Includes three original practice questions, with Willowmere Motors, a fictional network of car dealerships and repair shops, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Images and paperwork
Willowmere's customers send photos of damaged cars, to get a repair quote. Its dealerships keep cameras on their car lots, and its back office scans invoices, receipts, and driver's licenses every day. Willowmere wants to turn all these images and documents into data, automatically.
Image analysis
OCI Vision is a serverless AI service for images, with pretrained models that you call from the console, the REST API, an SDK, or the command line. Object detection finds objects in an image, like cars or wheels, and draws a bounding box around each one, with a label and a confidence score. Image classification gives labels to the image as a whole, like the scene that it shows, for example a parking lot. Face detection finds faces, with their position, landmarks like the eyes and the nose, and a quality score, so you can blur faces for privacy, or check that a face is clear enough for biometrics. And optical character recognition, or OCR, finds the text in an image, like a sign, or a number plate.
Custom models and video
When the pretrained labels are not enough, you can train custom models, for object detection and for image classification, from your own labeled images. For example, Willowmere could train a custom model that recognizes each kind of damage, like a dent, a scratch, or a broken light. Vision can also analyze stored videos, to find labels, objects, text, and faces over time, in some regions. And when there are lots of images, the asynchronous API processes them in batches.
Document Understanding
OCI Document Understanding is a serverless AI service for documents, like JPEG, PNG, PDF, or TIFF files, from your computer or from Object Storage. Text extraction finds words and lines, with their bounding boxes, even when the text is handwritten or tilted. Table extraction keeps the rows and the columns of each table, so the data stays usable. And key-value extraction pulls predefined fields from receipts, invoices, passports, driver's licenses, and health insurance cards, like a total, a date, or a name.
Classification and custom models
Document classification tells what kind of document a file is, like an invoice, a receipt, or a bank statement, from its look and its keywords. Document Understanding can also turn a scanned file into a searchable PDF, with the text found by OCR. For your own kinds of documents, there are custom models: a classic key-value model, trained on annotated examples, a generative key-value model, where you describe the fields in natural language, with no training data, and a custom document classification model. And you can process one file at a time, or many files in a batch job.
Recap
Let's recap. OCI Vision detects objects with bounding boxes, classifies images, detects faces, and finds text with OCR. Custom models for object detection and image classification learn from your labeled images, and Vision also analyzes stored videos. Document Understanding pulls text, tables, and key-value fields from receipts, invoices, and identity documents. Document classification tells the kind of each document, and scanned files can become searchable PDFs. And custom key-value models are classic, trained on annotated examples, or generative, described in natural language.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Willowmere wants to count the cars on each photo of a lot, and know where each car is in the image. Which feature of OCI Vision fits?
- Image classification
- Face detection
- Object detection
- Text recognition (OCR)
Show the answer
Object detection
Object detection finds each car, with a bounding box that shows where it is. “Image classification” would label the whole image, like a parking lot, without locating each car. “Face detection” is only for faces. And “Text recognition (OCR)” would find text, like signs or plates, not the cars themselves.
Willowmere wants the total and the date from thousands of scanned receipts, as named fields. Which feature of Document Understanding fits?
- Table extraction
- Key-value extraction
- Image classification
- Document classification
Show the answer
Key-value extraction
Key-value extraction pulls predefined fields from receipts, like the total and the date. “Table extraction” would keep the rows and columns of tables, without naming each field. “Image classification” is a feature of OCI Vision, which labels a whole image. And “Document classification” would only tell what kind of document each file is.
Willowmere’s new warranty claim form has fields that no pretrained model knows, and Willowmere has no annotated examples yet. Which option fits?
- A generative key-value model
- A classic key-value model
- Table extraction
- Document classification
Show the answer
A generative key-value model
A generative key-value model takes the fields described in natural language, with no training data. “A classic key-value model” would need annotated examples to train on, which Willowmere does not have yet. “Table extraction” would keep the rows and columns of tables, without naming the claim fields. And “Document classification” would only tell the form apart from other kinds of documents.