Vision AI in Google Cloud

Vision AI in Google Cloud

A friendly, complete guide to teaching computers to see. Learn how Google Cloud reads text, spots objects, understands video, and lets you train your own image models, and how to use them safely and wisely.

When you look at a photo, you understand it in a blink. You see a dog on a beach, a street sign saying “Stop”, and a smiling child holding a red ball. You do not think about how you did it. For a computer, a photo is just a huge grid of coloured dots with numbers in them. Turning those numbers into “dog”, “beach”, and “Stop” is one of the hardest problems in computing, and it is called computer vision.

Google Cloud offers a family of services that do this work for you. You send them an image or a video, and they send back what they found: the objects, the words, the scenes, the moments. You do not need to be a scientist or own a room full of expensive machines. In this guide you will learn the basic ideas of computer vision, the main Google Cloud vision services, how they work, how to use them in real projects, how to keep them secure, and how to use them fairly and responsibly.

!
Important note about names

“Vision AI” is a broad name that Google uses for its group of image and video understanding products. The individual products, their names, features, and even their availability have changed over time, and new multimodal models keep appearing. This guide teaches the ideas that stay stable and describes each service in general terms. Before you plan a real system, check the official Google Cloud documentation for the current product list, status, limits, and prices.

1What Is Vision AI?

Start with the big picture before we meet the individual services.

The simple definition

Vision AI is the use of artificial intelligence to understand pictures and videos. In Google Cloud it is delivered as managed services. That means Google has already built, trained, and hosted the models, and you simply call them over the internet. You pay for what you use, and you never run the machines yourself.

Analogy

Think of hiring a very fast, very patient assistant who has looked at billions of pictures. You hand over a photo and ask, “What is in this? Is there any writing? Is anything unsafe?” The assistant answers in a second and writes the answers on a neat form. You do not need to teach the assistant from scratch. You only need to know how to ask well and how to check the answers.

Why it exists

Many businesses own mountains of pictures and videos that nobody has time to look at: shop shelf photos, scanned forms, camera footage, product catalogues, user uploads. Humans cannot review them all. Vision AI turns this unreadable pile into searchable, sortable, measurable data.

Where it is used

People use it to read text from receipts and signs, to tag photos so they can be searched, to hide unsafe uploads, to count people or vehicles, to check that safety gear is worn, to help shoppers find products by picture, and to find the exact moment in a long video where something happened.

See
objects, scenes, text, and faces in pictures
Watch
shots, actions, and objects in video
Learn
train custom models on your own images

2Computer Vision Basics

A few simple ideas make every vision service easier to understand.

Idea 1

Pixel

One tiny coloured dot. A photo is millions of pixels arranged in a grid, and each one is stored as numbers.

Idea 2

Model

A mathematical program that has learned patterns from many examples, so it can make guesses about new pictures.

Idea 3

Training

The learning phase, when a model studies many labelled examples, such as thousands of pictures marked “cat” or “not cat”.

Idea 4

Inference

Using a trained model to make a guess about a new picture. This is what happens when you call the service.

Idea 5

Confidence score

A number, usually between zero and one, that says how sure the model is. A higher number means more confident.

Idea 6

Label

A word or tag that describes something in the picture, such as “bicycle” or “sunset”.

The main vision tasks

TaskThe question it answersExample
Image classificationWhat is the main thing in this picture?This photo shows a pizza
Label detectionWhat things and scenes appear?Food, table, restaurant, cheese
Object detectionWhat objects are there, and where?Two cars and one person, each with a box drawn around it
Optical character recognition, or OCRWhat words are written here?Reading the total on a receipt
Face detectionWhere are the faces, and what are they like?Finding faces and whether they seem happy, without naming anyone
Content safetyIs this picture unsafe or adult?Blocking violent or adult uploads
Video analysisWhat happens over time?A goal is scored at minute twelve
Similarity searchWhich pictures look like this one?Finding similar shoes in a catalogue

Pre-trained versus custom models

A pre-trained model has already learned from a huge general collection of images. It is ready to use instantly and works well for common things like dogs, cars, and printed text. A custom model is one that you train on your own images, because your needs are special, such as spotting a specific defect on your factory’s metal parts. Pre-trained is faster and cheaper. Custom is more accurate for unusual jobs.

Analogy

A pre-trained model is like a general doctor who knows a little about everything and can see you today. A custom model is a specialist trained on exactly your kind of problem. You visit the general doctor first, and you train a specialist only when the general doctor cannot help enough.

3The Vision Services Landscape

Google Cloud has several services that deal with sight. Here is a map to help you choose.

flowchart TD
  A["Vision AI on Google Cloud"] --> B["Cloud Vision API for images"]
  A --> C["Video Intelligence API for video"]
  A --> D["Document AI for forms and documents"]
  A --> E["Vertex AI for custom image models"]
  A --> F["Multimodal models such as Gemini"]
  A --> G["Vertex AI Vision style platforms for camera streams"]
  B --> B1["Labels, text, faces, objects, safety, landmarks"]
  C --> C1["Shots, labels, objects, speech, text"]
  D --> D1["Extract fields from invoices and forms"]
  E --> E1["Train and deploy your own models"]
  F --> F1["Ask free-form questions about images and video"]
  G --> G1["Build and run live video analytics apps"]
    
Figure 1. A map of the main Google Cloud services for understanding images and video.

The main services

1

Cloud Vision API

A ready-made service for pictures. You send an image and ask for one or more features, such as labels, text, objects, faces, or safety checks.

2

Video Intelligence API

A ready-made service for video. It finds shot changes, objects, people, text, and speech, and tells you when in the video each thing appears.

3

Document AI

A service specialised in documents. It reads text and pulls out structured fields such as totals, dates, and names from invoices, receipts, and forms.

4

Vertex AI for custom vision

Google’s machine learning platform. You can bring your own images, train a model, and deploy it behind a web address.

5

Multimodal models

Large AI models that understand text and images or video together, so you can ask free-form questions such as “what is wrong in this photo of the machine?”.

6

Streaming video platforms

Platforms for building live camera analytics applications, such as counting people or checking safety gear. Their names and availability have changed, so check the current status.

i
Tip

Start with the simplest service that could work. If the Cloud Vision API already answers your question, you do not need to train anything. Move to custom models only when general answers are not good enough for your own special images.

4Cloud Vision API in Depth

The most popular entry point. It is simple, fast, and needs no training.

The features

Labels

Label detection

Names the general things in a picture, such as “beach”, “bicycle”, or “sky”, each with a confidence score.

Objects

Object localisation

Finds individual objects and draws a box around each, so you know where they are, not just that they exist.

Text

Text and document detection

Reads printed and often handwritten words, including dense text in documents, and returns the text and its position.

Faces

Face detection

Finds faces and describes features such as the position and the likelihood of an emotion. It does not say who the person is.

Safety

Safe search

Rates how likely a picture is to contain adult, violent, or otherwise sensitive content.

Places

Landmarks and logos

Recognises famous landmarks and well-known brand logos.

Colour

Image properties

Reports the dominant colours, useful for design and catalogue sorting.

Web

Web detection

Finds similar images and pages on the web, useful to trace where a picture appears.

sequenceDiagram
  participant A as Your Application
  participant V as Cloud Vision API
  participant M as Google Vision Models
  A->>V: Send image and the features wanted
  V->>M: Run the selected models
  M-->>V: Labels, boxes, text, and scores
  V-->>A: Structured response
  A->>A: Apply a confidence threshold
  A->>A: Store or act on the results
    
Figure 2. One request can ask for several features at once.

How a request works

Your application sends the image, either as the picture data itself, as a link to a file in Cloud Storage, or sometimes as a public web address. It also lists which features it wants. The service runs the models and replies with a structured answer containing each finding, its position as a box or outline, and a confidence score. Your program then decides what to do with the findings.

Small and large jobs

  • Online requests. For quick answers on a few images at a time, such as when a user uploads a photo.
  • Batch and asynchronous requests. For thousands of images or large documents, you point the service to files in Cloud Storage and collect the results later in another bucket.
  • Regional endpoints. Some services let you pick a region, which helps meet rules about where data may be processed.

Reading the confidence score

The score is not a promise. A label with a score of 0.95 is very likely right, and one with 0.55 is a coin toss. Choose a threshold, a minimum score you accept. A high threshold gives fewer but more reliable results. A low threshold gives more results but more mistakes. The right choice depends on how costly a mistake is.

Analogy

It is like a weather forecast that says “ninety percent chance of rain”. You carry an umbrella without thinking. If it says “fifty-five percent”, you may decide based on how much you hate getting wet. The model gives you the chance. You decide how careful to be.

5Video Intelligence and Live Video

A video is just many pictures over time, but time adds new questions.

What the Video Intelligence API can find

  • Shot changes. Moments when the camera cuts to a new scene.
  • Labels over time. What appears in the whole video, in each shot, and in each frame.
  • Object tracking. Following an object, such as a car, as it moves through the video, with its position at each moment.
  • People and faces. Detecting people, their pose, and clothing details, without naming them.
  • Text on screen. Reading captions, signs, and scoreboards that appear.
  • Speech. Turning spoken words into text with timings.
  • Explicit content. Flagging parts of a video that contain adult material.

Because the answer includes timestamps, you can make a long video searchable. For example, a user searches “goal” and jumps straight to minute twelve and second four.

Analogy

A book has a table of contents, so you can jump to a chapter. A raw video has none. Video analysis builds the table of contents for you, listing every scene, person, and spoken sentence with a time stamp.

Live camera streams

Some jobs need answers while the camera is still recording, such as counting people entering a shop or checking that workers wear helmets. Google has offered platforms for building such applications, where you connect cameras, choose or train models, and send results to storage or alerts. Because the products in this area have changed names and availability, check the current documentation before you depend on a particular one.

Video costs and cleverness

Video is large, so processing costs more than for pictures. Reduce cost by analysing only the features you really need, by sampling fewer frames when fine detail is not required, by cutting out boring parts first, and by processing in batches instead of keeping live streams running without need.

6Documents, OCR, and Document AI

A huge amount of business data is trapped in scanned papers and photos of forms.

OCR means optical character recognition: turning pictures of words into real text a computer can search and copy. The Cloud Vision API includes OCR for photos and for dense documents. This is good for reading signs, labels, and pages of text.

Document AI goes one step further. It does not only read the words. It understands the document’s structure and pulls out meaningful fields. On an invoice, it finds the supplier, the date, each line item, the tax, and the total, and gives them as clean data ready for your accounting system.

NeedBetter fitWhy
Read street signs in photosCloud Vision text detectionGeneral text in natural scenes
Turn a scanned book into searchable textCloud Vision document text detectionDense text in pages
Extract total, date, and vendor from invoicesDocument AIUnderstands structure and returns fields
Process unusual company formsDocument AI custom processorsCan be trained for your form layout
i
Tip

Picture quality decides OCR quality. Straight, well-lit, sharp scans give much better results than crooked, dark, or blurry photos. A few seconds of care at the camera saves hours of fixing later.

7Custom Models with Vertex AI

When the ready-made answers are not specific enough, you can teach a model your own world.

flowchart LR
  A["Collect images"] --> B["Label images"]
  B --> C["Split into train and test sets"]
  C --> D["Train the model"]
  D --> E["Evaluate on the test set"]
  E --> F{"Good enough"}
  F -->|"No"| G["Add data or adjust settings"]
  G --> B
  F -->|"Yes"| H["Deploy to an endpoint"]
  H --> I["Monitor results and drift"]
  I --> G
    
Figure 3. Building a custom model is a loop, not a one-time task.

The steps in plain words

Collect. Gather pictures that look like the ones the model will see in real life: same lighting, same cameras, same angles. Label. Mark each picture with the right answer, such as “defective” or “fine”, or draw boxes around the objects of interest. Split. Keep some labelled pictures aside as a test set that the model never sees during learning. Train. Let the platform learn from the training pictures. Evaluate. Check how well the model does on the test set. Deploy. Publish the model so applications can call it. Monitor. Keep checking, because the real world changes.

Two ways to build

  • Automated training. The platform tries designs and settings for you, using your labelled images. It needs little machine learning knowledge and is a good start for classification and object detection.
  • Custom code training. Your team writes its own training programs using popular frameworks, and uses managed machines, including graphics processors, to run them. This gives full control for advanced work.

Measuring quality

MeasurePlain meaningWhen it matters most
PrecisionOf everything the model flagged, how much was truly rightWhen false alarms are costly
RecallOf everything that was truly there, how much the model foundWhen missing something is dangerous
F1 scoreA single number balancing precision and recallWhen both matter about equally
Confusion matrixA table of which classes get mixed up with whichTo find specific weak spots
Analogy

Imagine a guard looking for thieves in a crowd. Precision asks, “Of the people you stopped, how many were really thieves?” Recall asks, “Of all the thieves in the crowd, how many did you catch?” A guard who stops everyone has perfect recall but terrible precision. A guard who stops nobody has no false alarms but catches nobody.

Data is the secret

Most custom model problems come from the data, not the settings. Too few examples, wrong labels, pictures that differ from real use, or classes that are very unbalanced will all hurt accuracy. Spend your time on a good, varied, correctly labelled data set, and the training itself will often look after itself.

8Multimodal Models and Image Search

A newer way of seeing: ask questions in plain language.

Multimodal models

A multimodal model understands more than one kind of input at once, such as text together with images or video. Instead of choosing from a fixed list of features, you can simply ask: “Describe this photo”, “Is the person wearing a helmet?”, “Summarise what happens in this video”, or “Read the table in this picture and give me the numbers”. Google’s Gemini models, available through Vertex AI, work this way.

Strengths

  • Very flexible: one model, many questions.
  • No training needed for many tasks.
  • Can combine reading, reasoning, and describing.
  • Natural language makes prototyping fast.

Cautions

  • Answers can sound confident but be wrong.
  • Results may differ slightly from one call to the next.
  • Often slower and costlier per image than a fixed API.
  • Harder to measure with a single accuracy number.

Image embeddings and similarity search

An embedding is a list of numbers that captures the meaning of a picture. Pictures that look or mean similar get similar lists. By storing embeddings in a vector search system, you can find similar pictures quickly, or even search pictures with a text description, because text and images can share the same number space. This powers features such as “find products that look like this” and “search my photo library for sunset over water”.

Analogy

Imagine placing every picture on a giant map, where similar pictures stand close together. Pictures of beaches cluster in one region, mountains in another. To find similar pictures, you stand at one spot and look at your neighbours. Embeddings are the map coordinates.

Product Search

The Vision API has offered a feature for shops, where you upload your product catalogue pictures and later a customer sends a photo, and the service returns the closest matching products. Check the current documentation for its status and the best option for new retail search projects.

9Architecture and Data Flow

Real applications combine vision services with storage, events, and databases.

flowchart LR
  A["User uploads photo"] --> B["Cloud Storage bucket"]
  B --> C["Storage event"]
  C --> D["Cloud Run service or function"]
  D --> E["Cloud Vision API"]
  E --> D
  D --> F{"Safe and above threshold"}
  F -->|"Yes"| G["Save labels and text in Firestore or BigQuery"]
  F -->|"No"| H["Move to review bucket and alert moderators"]
  G --> I["Search and reports for users"]
    
Figure 4. A typical event-driven pipeline that analyses each upload automatically.

How this pipeline works

A user uploads a picture to a Cloud Storage bucket. The upload creates an event that wakes a small piece of code, which asks the Vision API for labels, text, and a safety rating. If the picture is safe and the results are above your threshold, the code saves the findings in a database so users can search by them. If not, the picture goes to a separate bucket and a human moderator is alerted. This design is serverless, scales automatically, and costs almost nothing when nobody uploads.

Key building blocks

  • Cloud Storage. Holds the original pictures and videos safely and cheaply.
  • Eventarc and Pub/Sub. Carry events that start the processing.
  • Cloud Run and Cloud Functions. Run your small pieces of code without servers.
  • Firestore and BigQuery. Store the results for apps and for analysis.
  • Workflows or Composer. Coordinate larger multi-step jobs.
  • Vertex AI. Hosts custom models and multimodal models.

Handle limits and failures

Vision services have limits on image size, request size, and request rate. Resize very large pictures before sending. Retry failed calls with growing waits. Queue work when uploads arrive in bursts, so you do not exceed your quotas. Make your processing safe to repeat, because the same event can occasionally arrive twice.

10Advantages, Disadvantages, and Trade-offs

An honest view of what you gain and what you give up.

Advantages

  • Ready-made models you can use in minutes, with no training.
  • No machines to run or models to host for managed services.
  • Scales from a few pictures to millions.
  • Pay only for what you use.
  • Simple web interfaces and client libraries for popular languages.
  • Custom training available when you outgrow the general models.

Disadvantages

  • General models may miss your special objects or conditions.
  • Results are probabilities, never guarantees.
  • Costs add up at high volume, especially for video.
  • Sending images to a cloud service raises privacy and legal questions.
  • Models can show bias and perform unevenly across groups and conditions.
  • Products and features change, so long projects must track updates.

The big trade-offs

Ready-made versus custom. Ready-made is fast and cheap but general. Custom is accurate for special tasks but needs data, time, and care.

Fixed features versus multimodal questions. Fixed APIs are consistent, fast, and priced predictably. Multimodal models are flexible but less predictable and often more costly.

Cloud versus edge. Cloud processing is powerful and easy to update. Processing on the camera or device saves bandwidth, reduces delay, and keeps data local, but needs smaller models and more engineering.

Accuracy versus coverage. A strict threshold gives reliable results on fewer pictures. A loose threshold covers more pictures with more mistakes. Pair automation with human review for important decisions.

11Security and Privacy

Pictures can contain faces, addresses, documents, and secrets. Treat them with great care.

Control who can call the services

Access is controlled by IAM, Google’s permission system. Applications should call the services using service accounts with only the roles they need, rather than long-lived keys that may leak. Where simple keys are used, restrict them to specific services and addresses, and rotate them. Separate production and testing into different projects.

Protect the images

  • Encrypt storage. Cloud Storage encrypts data at rest by default, and you can use your own keys if your rules require it.
  • Limit bucket access. Make buckets private, and use short-lived links when users need to see a picture.
  • Choose regions carefully. Keep data in locations allowed by your laws and contracts.
  • Use private connectivity and service perimeters. VPC Service Controls can reduce the risk of data leaving your boundary by mistake.
  • Remove what you do not need. Delete pictures and results when the purpose has ended, and set retention rules.
  • Audit logs. Record who called the services and who accessed pictures.
  • Read the data terms. Understand how Google handles data you send, and whether it can be used to improve services, which is governed by the terms and settings of your agreement.

Privacy of the people in the pictures

Faces, number plates, documents, and children’s images deserve special care. Get consent where required, tell people what you are doing, collect only what you need, and consider blurring or masking sensitive parts before storing. Laws about biometric data and surveillance differ greatly between countries and states, so seek legal advice before building anything that identifies or tracks people.

Analogy

A photo album is like a house with the walls removed. Anyone who finds it can see inside your family’s life. You would lock the album in a cupboard and share pages only with people who need them. Treat your image buckets the same way.

!
Common risk

Public buckets are a classic mistake. A bucket meant for a quick test is left open, and private customer photos or scanned documents become visible to the whole internet. Keep buckets private by default and review them regularly.

12Responsible and Fair Use

Technology that sees people can also harm them. Build with fairness and humility.

Know the limits

  • Face detection is not identification. Finding that a face exists is different from saying whose face it is. Be careful about emotion guesses, since expressions do not reliably reveal inner feelings, and meanings differ across cultures.
  • Performance can vary. Models may work worse on certain skin tones, ages, lighting, cameras, languages, or regions, depending on the data they learned from.
  • Safety scores are not perfect. Harmless pictures may be flagged, and harmful ones may slip through.
  • Context matters. The same picture can be fine in one setting and inappropriate in another.

Practical safeguards

  • Keep humans in the loop. Use people to review uncertain, high-impact, or disputed cases.
  • Test on your own data. Measure accuracy across different groups and conditions that matter to you, not just overall averages.
  • Set thresholds deliberately. Match them to the cost of each kind of mistake.
  • Offer appeals. People affected by automatic decisions should have a path to correction.
  • Be transparent. Tell users when automated image analysis is used.
  • Avoid harmful uses. Do not use vision tools for unlawful surveillance, discrimination, or decisions that affect people’s rights without strong safeguards and legal review.
  • Monitor over time. Performance can drift as cameras, seasons, and customers change.
A model gives a probability. A responsible team gives a process.

13Monitoring, Logging, and Metrics

You must watch both the system and the quality of its answers.

Usage

Cloud Monitoring

Charts for request counts, errors, response times, and quota use for each service.

Logs

Cloud Logging

Records of calls and errors from your code and the services, helpful for debugging.

Audit

Audit logs

Records of who used which service and changed which settings.

Model

Model monitoring

For custom models, checks that incoming pictures and predictions stay similar to what the model learned from.

What to watch

  • Error and throttling rates. A rise means quota limits or bad inputs.
  • Latency. Slow calls make user screens feel slow.
  • Cost per day. Set budgets and alerts, especially for video and large batches.
  • Score distributions. If average confidence suddenly drops, something about the pictures has changed.
  • Review queue size. A growing queue of flagged items shows a threshold or data problem.
  • Human override rate. If reviewers keep reversing the model, accuracy needs attention.
  • Drift. New camera types, lighting, or products can make a custom model slowly worse.

Keep a small, regularly refreshed set of labelled pictures as a golden set. Run it through your system on a schedule and compare the results. If accuracy slips, you will know before your users do.

14Performance and Cost Planning

How to get good answers quickly without a surprise bill.

What affects speed and quality

  • Image size and quality. Very small pictures lose detail. Very large ones slow requests. Resize to a sensible size.
  • Lighting and focus. Clear, well-lit, sharp pictures give better results.
  • Angle and framing. Objects that are tiny, cut off, or partly hidden are harder to find.
  • Number of features requested. Each extra feature takes time and costs money.
  • Distance to the service. Choose a region close to your application and data.
  • Batching. Grouping images can reduce overhead for large jobs.

What you pay for

Pricing differs by service and changes over time, so check the current pricing pages. In general, the main parts are:

Cost areaWhat it depends onHow to reduce it
Image analysisNumber of images and the number of features requested for eachRequest only the features you need, and skip duplicates
Video analysisMinutes of video and features usedTrim the video and analyse fewer features
Document processingPages processed and processor typeSend only relevant pages
Custom trainingMachine time, data size, and number of experimentsStart small, and stop poor experiments early
Model hostingMachines kept ready to answer callsRight-size, and scale down when idle
Storage and networkData kept and moved between regionsUse lifecycle rules, and keep services in the same region
Multimodal model callsThe size of inputs and outputsUse shorter prompts and smaller images where possible
i
Tip

Many services give a free monthly allowance for light use, which is perfect for learning. Run a sample of your real pictures first, measure accuracy and cost per image, and then multiply to forecast the full project.

15Design Patterns and Anti-patterns

Helpful habits and harmful habits seen again and again in real projects.

Helpful patterns

Ready-made first, custom later

Prove the idea with a ready-made service. Train a custom model only for the cases where it truly falls short, using the errors you collected as training data.

Confidence routing

Accept high-confidence results automatically, send medium-confidence ones to a human, and reject low-confidence ones. Automation handles the easy majority while people handle the hard few.

Event-driven processing

Analyse each picture as it arrives through storage events, so results are ready almost immediately and no polling is needed.

Feedback loop

Save reviewer corrections and use them as new labelled data, so the system improves with use.

Two-stage analysis

Use a cheap fast check first, such as safety screening, and call costly analysis only for pictures that pass.

Anti-patterns to avoid

ANTI-PATTERN 01Avoid
What it looks like

A team lets the model’s answer decide something important about a person, such as access or eligibility, with no human review and no way to appeal.

Why it hurts

Models make mistakes and may work worse for some groups. Wrong decisions can harm people and expose the company to legal trouble.

Better approach

Use the model as a helper, keep human review for high-impact cases, test across groups, and provide a clear route for correction.

ANTI-PATTERN 02Avoid
What it looks like

Training a custom model on a few dozen clean studio photos, then deploying it on messy, dark phone photos from the real world.

Why it hurts

The model learned a different world from the one it faces. Accuracy collapses in real use even though tests looked excellent.

Better approach

Train and test on pictures that match real conditions, with many angles, lights, and backgrounds.

More things to steer clear of

  • Requesting every feature on every image. You pay for answers you never use.
  • No confidence threshold. Treating every guess as a fact.
  • Testing on training pictures. Accuracy looks wonderful but means nothing.
  • Ignoring quotas. A sudden upload burst causes errors.
  • Storing sensitive pictures forever. Old data is old risk.
  • Forgetting to monitor. Models silently get worse as the world changes.

16Best Practices and Common Mistakes

A checklist of habits that experienced teams rely on.

Habits that work

  • Define the question clearly. Decide exactly what decision the vision result will support.
  • Try the ready-made services first. Measure on real samples.
  • Collect realistic data. Match real cameras, light, and angles.
  • Keep a separate test set. Never judge a model on pictures it learned from.
  • Choose thresholds with the cost of mistakes in mind.
  • Keep humans for uncertain and high-impact cases.
  • Use least-privilege service accounts and private buckets.
  • Mask or remove sensitive details before long-term storage.
  • Set budgets and alerts for cost control.
  • Resize and clean pictures before sending.
  • Monitor accuracy over time with a golden set.
  • Document your use and inform the people affected.

Mistakes beginners often make

MistakeWhat goes wrongFix
Expecting perfect answersDisappointment and bad decisionsTreat results as probabilities with thresholds and review
Skipping the free trial on real dataSurprises in accuracy and costTest a sample before committing
Poor labels in custom trainingThe model learns the wrong lessonsWrite clear labelling rules and check samples
Too few examples of rare casesThe model misses what matters mostCollect more of the rare cases
Public buckets for conveniencePrivate pictures exposedKeep buckets private and use signed links
Hard-coded API keys in appsKeys leak and are abusedUse service accounts and restrict keys
Ignoring quotas and retriesFailures during busy periodsQueue work and retry with growing waits
Assuming face detection names peopleWrong expectations and legal riskLearn what each feature does and does not do

17Real-World Usage Examples and Choosing a Service

Common ways teams use vision services. These are typical scenarios, not claims about any particular company.

Photo library search

A photo-sharing app tags every uploaded picture with labels such as “beach”, “birthday”, and “dog”. Users type a word and find matching pictures instantly, without anyone tagging by hand.

Content moderation

A community site checks every upload with safety ratings. Clear cases are handled automatically, and borderline ones go to a small team of reviewers.

Expense and invoice processing

A finance team photographs receipts and scans invoices. Document processing extracts dates, vendors, and totals, and the numbers flow into the accounting system with a person checking only the unusual ones.

Factory quality inspection

A manufacturer trains a custom model on pictures of good and faulty parts. Cameras on the line flag defects within a second, and a worker checks the flagged items.

Retail shelf checking

A supermarket chain analyses shelf photos to see which products are missing or misplaced, and sends restocking tasks to staff.

Media archive search

A broadcaster runs old footage through video analysis, so producers can search for “football stadium” or a spoken phrase and jump to the exact moment.

Workplace safety

A construction firm uses camera analytics to alert supervisors when areas are crowded or safety gear seems to be missing, with clear rules about privacy and human follow-up.

Choosing the right service

flowchart TD
  A["What are you analysing"] --> B{"Pictures or video"}
  B -->|"Pictures"| C{"Mostly documents and forms"}
  C -->|"Yes"| D["Document AI"]
  C -->|"No"| E{"Do general labels and text meet your need"}
  E -->|"Yes"| F["Cloud Vision API"]
  E -->|"No"| G{"Need flexible questions in plain language"}
  G -->|"Yes"| H["Multimodal model on Vertex AI"]
  G -->|"No"| I["Custom model on Vertex AI"]
  B -->|"Video"| J{"Stored files or live cameras"}
  J -->|"Stored"| K["Video Intelligence API"]
  J -->|"Live"| L["Streaming video analytics platform"]
    
Figure 5. A simple path for choosing the right vision service.
ServiceBest forRemember
Cloud Vision APIGeneral picture understanding, text, and safetyFixed features, fast, and simple to call
Video Intelligence APIStored video analysis with timestampsCosts grow with minutes and features
Document AIExtracting fields from forms and invoicesSpecialised for documents
Custom models on Vertex AISpecial objects and conditionsNeeds good labelled data and monitoring
Multimodal modelsFlexible questions and descriptionsLess predictable, so test carefully
Live video platformsCamera analyticsCheck current product status

18Frequently Asked Questions

Q1Do I need to know machine learning to use these services?
No. Ready-made services need only a web request. Automated training also needs little machine learning knowledge. Deep expertise helps mostly with advanced custom work.
Q2Can the Vision API tell me who is in a photo?
No. Face detection finds faces and some features, but it does not identify people by name. Any identification would need a separate, carefully governed system and strong legal review.
Q3How accurate are the results?
It depends on the picture, the task, and your conditions. Test on a sample of your own pictures and measure, instead of trusting a general claim.
Q4Can it read handwriting?
Text detection can often read handwriting, but quality varies a lot with the writing and the picture. Test on real examples and plan human checks for important data.
Q5When should I train a custom model?
When ready-made services miss the things you care about, for example special parts, rare defects, or your own product range, and you can gather enough good labelled pictures.
Q6How many pictures do I need to train a custom model?
It depends on the task and variety. More varied, correctly labelled pictures almost always help. Check the current documentation for minimum recommendations and start small to learn what you need.
Q7Is my data used to train Google’s models?
Data handling is governed by Google Cloud’s terms and your settings. Read the current data processing terms for each service, and ask your account team if you have strict requirements.
Q8Can I process video in real time?
Yes, using platforms built for live streams, though product names and availability have changed over time. For stored files, the Video Intelligence API is the usual choice.
Q9How do I keep costs under control?
Request only the features you need, resize pictures, avoid reprocessing duplicates, set budgets and alerts, and measure cost per image on a sample before scaling.
Q10Should I use a multimodal model or the Vision API?
Use the Vision API for fixed, repeatable features at predictable cost. Use a multimodal model when you need flexible, free-form questions, and test its answers carefully because they can be wrong.

19Summary and Key Takeaways

What to remember

  • Vision AI lets you understand pictures and video through managed services. The Cloud Vision API handles images, the Video Intelligence API handles video, Document AI handles forms, and Vertex AI handles custom and multimodal models.
  • Start with ready-made, then go custom. Use general models first, and train your own only when real tests show they miss what matters, using realistic and well-labelled data.
  • Every answer is a probability. Use confidence thresholds, human review for uncertain or high-impact cases, and measure precision and recall on a separate test set.
  • Build event-driven pipelines. Store pictures in Cloud Storage, trigger analysis through events, save results in a database, and route doubtful cases to people.
  • Protect images and the people in them. Use least-privilege service accounts, private buckets, regional choices, retention rules, and consent and legal checks for faces and sensitive data.
  • Use vision responsibly. Face detection is not identification, performance can differ across groups and conditions, and automated decisions about people need safeguards and appeals.
  • Watch cost, quality, and change. Request only needed features, monitor drift with a golden set, and check the documentation often because product names and features keep evolving.