Skip to content
elevatedevco

Computer Vision

Computer vision for beginners

Learn Computer vision for beginners: 40 practice questions and answers with an interactive quiz — from the offline AI Learning app.

Intermediate40 questions40 quiz questions

Questions & Answers

Tap a question to reveal its answer. Written for self-study and interview preparation.

What is computer vision?

Computer vision is a field of AI that teaches computers to understand and make sense of images and videos, similar to how humans use their eyes and brain. The computer looks at the pixels in a picture and tries to figure out what objects, people, or scenes are in it.

What is a pixel?

A pixel is the smallest single dot of color in a digital image. When you put thousands or millions of these tiny colored dots together in a grid, they form the complete picture you see on a screen.

How does a computer store a color image?

A computer stores a color image as a grid of pixels, where each pixel has three numbers representing the amounts of Red, Green, and Blue (RGB). By mixing these three values, the computer can create millions of different colors.

What range of values does each color channel (Red, Green, or Blue) usually have in an image?

Each color channel usually has a value from 0 to 255, where 0 means none of that color and 255 means the maximum amount. This gives 256 possible levels per channel, which combine to make over 16 million colors.

What is a grayscale image?

A grayscale image is a picture made only of shades of gray, from black to white, with no color. Each pixel is stored as a single number (often 0 to 255) showing how bright it is, where 0 is black and 255 is white.

What does 'image resolution' mean?

Image resolution is the number of pixels in an image, usually given as width times height (for example, 1920 x 1080). A higher resolution means more pixels and more detail, but the image file is also larger.

What is image classification in computer vision?

Image classification is the task of teaching a computer to look at a whole picture and assign it a single label, such as 'cat' or 'dog'. The computer learns from many example images that already have correct labels.

What is the difference between image classification and object detection?

Image classification gives one label for the whole picture, while object detection finds one or more objects and draws a box around each one to show where it is. Object detection answers both 'what' is in the image and 'where' it is located.

What is a 'bounding box' in object detection?

A bounding box is a rectangle that a computer draws around an object it has found in an image, showing the object's location and size. It is usually described by the coordinates of its corners, or by its center, width, and height.

How do computers learn to recognize images from examples?

Computers learn by being shown many labeled example images during a process called training. The model gradually adjusts its internal settings to reduce its mistakes, so it can correctly recognize new images it has never seen before.

What is 'training data' in computer vision?

Training data is the collection of example images, usually with correct labels, that a computer uses to learn a task. The more varied and high-quality the training data, the better the model usually performs on new images.

Why is it important to have labeled images for training?

Labels tell the computer the correct answer for each training image, like marking which photos contain a dog. Without labels, the model would not know what it is supposed to learn or whether its guesses are right or wrong.

What is a neural network, in simple terms?

A neural network is a computer system loosely inspired by the human brain, made of many connected units called neurons that pass signals to each other. In computer vision, it learns patterns in images by adjusting the strength of these connections during training.

What does CNN stand for in computer vision?

CNN stands for Convolutional Neural Network. It is a special type of neural network that is very good at finding patterns in images, such as edges, shapes, and textures, which makes it widely used for vision tasks.

What is an 'edge' in an image, and why is it useful?

An edge is a place in an image where the brightness or color changes sharply, often marking the boundary of an object. Detecting edges helps a computer find the shapes and outlines of objects, which is an early step in understanding a picture.

What is a 'feature' in computer vision?

A feature is a useful piece of information that a computer extracts from an image, such as an edge, corner, color pattern, or texture. Models combine many features to recognize objects and make decisions about what is in the picture.

What is face detection?

Face detection is a computer vision task that finds human faces in an image or video and shows where they are, usually with a box. It is different from face recognition, which tries to identify whose face it is.

What is the difference between face detection and face recognition?

Face detection only finds that a face is present and where it is, while face recognition goes further and tries to identify which specific person it belongs to. Recognition needs to compare the face against known examples of people.

Name a real-world example of computer vision used in phones.

A common example is using your face to unlock a smartphone, which relies on face recognition. Other examples include sorting photos by who is in them and scanning QR codes with the camera.

How do self-driving cars use computer vision?

Self-driving cars use computer vision to recognize roads, lane markings, traffic lights, pedestrians, and other vehicles from camera images. This helps the car understand its surroundings so it can steer, stop, and drive safely.

What is OCR (Optical Character Recognition)?

OCR is a computer vision technology that reads printed or handwritten text in an image and turns it into editable digital text. It is used to scan documents, read license plates, and digitize old books.

What is image segmentation?

Image segmentation is the task of labeling each pixel in an image to show which object or region it belongs to. Instead of just a box around an object, it outlines the exact shape, like coloring in every pixel that is part of a car.

Why might a computer vision model make mistakes?

A model can make mistakes if it sees images that are very different from its training data, such as bad lighting, unusual angles, or objects it never learned. It may also fail if the training data was too small, low-quality, or not varied enough.

What is 'bias' in a computer vision system?

Bias happens when a model performs unfairly because its training data did not represent everyone or everything equally. For example, a face system trained mostly on one group of people may work poorly for others, which can be unfair.

Why is privacy an important concern with computer vision?

Cameras and face recognition can identify and track people without their knowledge, which can invade their privacy. It is important to use these technologies responsibly, get consent when possible, and protect the images and data that are collected.

What is data augmentation in computer vision?

Data augmentation is a trick to create more training examples by slightly changing existing images, such as flipping, rotating, or adjusting their brightness. This helps the model learn to handle variety and become better at recognizing new images.

What does it mean to 'train' versus 'test' a model?

Training is when the model learns from labeled example images, and testing is when we check how well it performs on new images it has never seen. Keeping test images separate makes sure the model truly learned and did not just memorize.

What is 'accuracy' as a way to measure a vision model?

Accuracy is the percentage of images that a model labels correctly out of all the images it was tested on. For example, if a model gets 90 out of 100 images right, its accuracy is 90 percent.

What is overfitting in a vision model?

Overfitting happens when a model memorizes the training images instead of learning general patterns, so it does great on training data but poorly on new images. Using more varied data and data augmentation can help reduce overfitting.

In Python, which popular library is often used to read and process images?

OpenCV (imported as cv2) is a very popular library for reading, editing, and analyzing images in Python. Other common tools include Pillow (PIL) for basic image handling and NumPy for working with image data as numbers.

import cv2
image = cv2.imread('cat.jpg')
print(image.shape)  # (height, width, channels)
What does an image look like to a computer as numbers?

To a computer, an image is just a grid (a table) of numbers, where each number represents the brightness or color of a pixel. A color image is stored as several such grids, one for each of the Red, Green, and Blue channels.

What is the purpose of resizing images before feeding them to a model?

Many models require all input images to be the same fixed size, so images are resized to match. Resizing also makes processing faster and uses less memory, though making images too small can lose important detail.

What is a 'dataset' in computer vision?

A dataset is an organized collection of images used to train or test a model, often with labels describing each image. Famous examples include MNIST (handwritten digits) and ImageNet (millions of labeled photos).

What is the MNIST dataset known for?

MNIST is a famous beginner dataset containing tens of thousands of small grayscale images of handwritten digits from 0 to 9. It is often used to practice training models that recognize handwritten numbers.

How does a barcode or QR code scanner use computer vision?

The scanner uses the camera to capture an image of the code, then computer vision finds the pattern of black and white squares or lines and decodes the information stored in it. This lets phones quickly read links, prices, or product details.

Why do brightness and lighting affect computer vision?

Lighting changes the pixel values in an image, so a poorly lit or overly bright photo can hide details and confuse a model. Models work best when test images have lighting similar to what they saw during training.

What is a 'confidence score' when a model recognizes an object?

A confidence score is a number, often between 0 and 1 (or a percentage), showing how sure the model is about its prediction. A higher score means the model is more certain, but a high score does not always mean the answer is correct.

How can computer vision help doctors?

Computer vision can analyze medical images like X-rays, scans, and photos to help doctors spot signs of disease faster and more consistently. It acts as a helpful assistant, but doctors still make the final decisions to keep patients safe.

Why should humans review important decisions made by computer vision systems?

Computer vision models can make mistakes or be biased, and some decisions, like in medicine or law, have serious effects on people's lives. Having a human review these decisions helps catch errors and keeps the use of AI fair and responsible.

What is the difference between a photo and how a computer 'sees' it?

A human sees a meaningful picture, like a dog in a park, but a computer only sees a large grid of numbers representing pixel colors. Computer vision is the process of turning those raw numbers into useful understanding, like recognizing the dog.

Put it into practice with AI Learning

This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.

  • Free
  • No account
  • Works offline
Coming soon toGoogle Play