AL-701 Computer Vision

Computer Vision (AL-701) Important Questions

RGPV · B.Tech · CSE-AIML · Semester 7 · Current scheme · 3 papers (2023 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Computer Vision important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Computer Vision important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Computer vision and image processing: meaning, differences and problems

Asked 3 times in 2023, 2025 · Unit 1

From the papers

  • “Define computer vision and explain its significance in modern applications. How does it differ from traditional image processing?” (Jun 2025)
  • “Discuss various problems in computer vision and explain how basic image operations help in solving them.” (Jun 2025)
  • “Explain the key differences between Image Processing and Computer Vision. Illustrate your answer with suitable examples.” (Dec 2025)
  • “What is computer vision? And how does it differ from traditional image processing?” (Nov 2023)

The short answer

Computer vision makes a computer understand what is in an image or video, such as finding a face or reading a number plate. Image processing changes an image to make it better or more useful. Its output is another image.

Write these points

Differences

PointImage processingComputer vision
InputImageImage or video
OutputImproved imageMeaning: labels, boxes, decisions
AimEnhance, restore, compressUnderstand and decide
ExampleSharpening a blurred photoRecognising the person in it

Problems in computer vision

  • Changes in light and shadow.
  • Different viewpoints and sizes.
  • Objects hidden behind others (occlusion).
  • Cluttered backgrounds.
  • Noise and blur.
  • Huge variety inside one class, such as dog breeds.

How basic image operations help

  • Brightness and contrast fix poor light.
  • Smoothing removes noise.
  • Thresholding separates object from background.
  • Edge detection finds outlines for later recognition.

Significance today

  • Face lock on phones, FASTag and number plate reading on highways.
  • Medical scans, self-driving cars, crop disease detection.

Number plate reading at a toll plaza.

Image processing: the dark night photo is brightened and sharpened.

Computer vision: the plate region is detected and the characters MP 04 AB 1234 are read.

The system matches the number with the FASTag record and opens the gate.

So image processing prepares the picture. Computer vision understands it.

Real-life example

A photo studio that brightens and smooths your passport photo is doing image processing. The airport e-gate that looks at your face and lets you in after matching your passport is doing computer vision.

Figure: image processing prepares, computer vision understands
Figure: image processing prepares, computer vision understands

Same or opposite: image processing and computer vision

PointImage processingComputer visionSame or opposite
Works on imagesYesYesSame
OutputAn imageA meaning or decisionOpposite
ExampleRemoving noiseDetecting a pedestrianOpposite
Uses filters and edgesYesYesSame

Exam tip. Give the definition of each in one line, then the table. Name two real problems and two applications for full marks.

Back to the topic list

Q2. Thresholding: global, optimal and adaptive

Asked 3 times in 2023, 2025 · Unit 2

From the papers

  • “Explain the concept of binary image processing. How do thresholding, erosion, and dilation contribute to object recognition?” (Jun 2025)
  • “Explain the process of binary image thresholding, implement adaptive thresholding numerically on a 4×4 grayscale image.” (Dec 2025)
  • “Explain the concept of thresholding in binary image processing. How can you choose an optimal threshold value for a given image? Provide an example.” (Nov 2023)

The short answer

Thresholding turns a grey image into a binary image. Every pixel above a threshold T becomes 1 (white) and every pixel at or below it becomes 0 (black). Adaptive thresholding uses a different T for each small region.

Write these points

Types

  1. Global (simple): one T for the whole image.
  2. Optimal: T chosen from the histogram, such as Otsu's method, which picks the T that best separates the two groups of pixels.
  3. Adaptive: T is the mean or Gaussian weighted mean of each neighbourhood minus a small constant C.

Choosing an optimal T (iterative method)

  1. Start with T = mean of all pixels.
  2. Split pixels into G1 (> T) and G2 (≤ T).
  3. Find their means m1 and m2.
  4. New T = (m1 + m2) ÷ 2.
  5. Repeat until T stops changing.

Role in binary image processing

  • Separates objects from background.
  • Gives the input for erosion, dilation, contours and component labelling.
  • Helps in OCR, cell counting and defect checking.

Adaptive thresholding on a 4 × 4 image (Dec 2025 type).

Image rows: [20 30 160 170], [25 80 165 230], [140 150 60 70], [145 210 65 130]. Light is uneven.

Global T = mean of all 16 pixels = 1,850 ÷ 16 = 115.6. Whole bright areas turn white. The small spots 80 and 130 are lost or mixed.

Adaptive: split into four 2 × 2 blocks. Block means are 38.75, 181.25, 161.25 and 81.25.

In each block only the brightest pixel is above its mean: 80, 230, 210 and 130. All four spots are found.

Real-life example

A teacher who passes everyone above 40 marks in every section uses a global threshold. A teacher who passes the top students of each section, because one section had a much harder paper, uses an adaptive threshold.

Figure: global and adaptive thresholding of the same image
Figure: global and adaptive thresholding of the same image

Same or opposite: global and adaptive thresholding

PointGlobalAdaptiveSame or opposite
Number of thresholdsOneOne per regionOpposite
Works with uneven lightPoorlyWellOpposite
OutputBinary imageBinary imageSame
SpeedFasterSlowerOpposite

Exam tip. Define thresholding with its formula. Then show the adaptive numerical step by step in a 4 × 4 grid. Mention Otsu as the optimal method.

Back to the topic list

Q3. Morphological operations: erosion, dilation, opening and closing

Asked 3 times in 2023, 2025 · Unit 2

From the papers

  • “Explain the concept of binary image processing. How do thresholding, erosion, and dilation contribute to object recognition?” (Jun 2025)
  • “Describe morphological operations- Erosion and Dilation. Show the result of dilation on the binary image I = [0 1 0; 1 1 0; 0 1 1] using structuring element B = [1 1; 1 1].” (Dec 2025)
  • “Describe the operations of erosion and dilation in binary image processing. How can these operations be used for noise removal and object size modification in binary images?” (Nov 2023)

The short answer

Morphological operations change the shape of objects in a binary image using a small pattern called the structuring element (SE). Dilation grows objects. Erosion shrinks them. Opening and closing combine the two.

Write these points

The four operations

OperationRuleEffect
Dilation (A ⊕ B)Pixel is 1 if the SE touches any 1Grows objects, fills small holes and gaps
Erosion (A ⊖ B)Pixel is 1 only if the SE fits fully insideShrinks objects, removes small specks
OpeningErosion, then dilationRemoves small noise, keeps size
ClosingDilation, then erosionFills small holes, joins breaks

Uses

  • Noise removal: opening removes white specks, closing removes black holes.
  • Changing object size: dilate to thicken text, erode to separate touching coins.
  • Edge outline: dilation minus erosion.
  • Clean up after thresholding before counting objects.

Dilation asked in December 2025.

I = [0 1 0; 1 1 0; 0 1 1] has 5 ones. B = [1 1; 1 1] with its origin at the top left.

Place B on each 1 of I and paint the 2 × 2 square to its right and below. Keep the 3 × 3 size.

Result I ⊕ B = [0 1 1; 1 1 1; 1 1 1]. It has 8 ones, so the object has grown.

Erosion with the same B gives all zeros, because no 2 × 2 block of I is fully 1.

Real-life example

Dilation is like spreading butter on bread: the coated area grows a little on every side. Erosion is like trimming the crust: every edge loses a little. Trimming and then spreading again (opening) removes small crumbs but keeps the slice.

Figure: dilation of the December 2025 image
Figure: dilation of the December 2025 image

Same or opposite: erosion and dilation

PointErosionDilationSame or opposite
Object sizeShrinksGrowsOpposite
Uses a structuring elementYesYesSame
RemovesSmall white specksSmall black holesOpposite
Works on binary imagesYesYesSame

Exam tip. Write the rule for each operation, then do the numerical in grids. Always state where the SE's origin is, because the answer depends on it.

Back to the topic list

Q4. Connected component analysis and contour analysis

Asked 3 times in 2023, 2025 · Unit 2

From the papers

  • “Discuss contour analysis and connected component analysis. How are these methods used in object segmentation?” (Jun 2025)
  • “What is Contour Analysis? How can contours be used for object shape recognition?” (Dec 2025)
  • “Provide an algorithm or method for performing connected component analysis on a binary image. Explain the steps involved.” (Nov 2023)
  • “Short note: Connected Component Analysis” (Dec 2025)

The short answer

Connected component analysis (CCA) gives a separate label to each group of touching 1 pixels in a binary image, so each object can be counted and measured. Contour analysis traces the boundary of each object to study its shape.

Write these points

CCA algorithm (two pass)

  1. Scan the image row by row.
  2. For each 1 pixel, look at already scanned neighbours (4 or 8 connectivity).
  3. If none is labelled, give a new label. If some are, take the smallest label and note that the labels are equal.
  4. Second pass: replace each label by its smallest equal label.
  5. Count labels and measure each component's area and box.

Contour analysis

  • cv2.findContours gives each object's border points.
  • Measures: area, perimeter, bounding box, centroid.
  • Shape tests: number of corners (approxPolyDP), aspect ratio, circularity = 4πA ÷ P².

Use in segmentation and recognition

  • Count coins, cells or tablets in a strip.
  • Remove components smaller than a size limit (noise).
  • Recognise shapes such as signboards or number plates.

Is the shape a circle or a square?.

A square of side 10 pixels: A = 100, P = 40. Circularity = 4π × 100 ÷ 1,600 = 0.785.

A circle of radius 10: A = 314.2, P = 62.8. Circularity = 4π × 314.2 ÷ 3,944 = 1.0.

approxPolyDP on the square's contour gives 4 corners. Aspect ratio = 10 ÷ 10 = 1.

So 4 corners with ratio 1 means a square. Circularity near 1 with many corners means a circle.

Real-life example

A teacher on a school ground counts groups of students standing together: each group gets a number, which is CCA. Then she walks around one group's edge to see if it stands in a circle or a line, which is contour analysis.

Figure: connected component labelling of a small image
Figure: connected component labelling of a small image

Same or opposite: connected components and contours

PointConnected componentsContoursSame or opposite
Works on binary imagesYesYesSame
GivesLabels for whole regionsBorder pointsOpposite
Main useCounting and areaShape analysisOpposite
Helps segmentationYesYesSame

Exam tip. Write the two pass steps and draw the labelled grid. For contours, give the circularity formula with one small sum.

Back to the topic list

Q5. Convolution and image smoothing: box, Gaussian and median blur

Asked 3 times in 2023, 2025 · Unit 3

From the papers

  • “Explain convolution in image filtering. Compare and contrast different smoothing techniques such as Box Blur, Gaussian Blur and Median Blur.” (Jun 2025)
  • “Compare Image Filtering methods Box blur, Gaussian blur and Median blur with help of example.” (Dec 2025)
  • “Explain the role of convolution in image filtering. How is a filter (kernel) applied to an image using convolution?” (Nov 2023)
  • “Define image smoothing and its role in image processing. Why is it essential to reduce noise or enhance an image's appearance?” (Nov 2023)

The short answer

Convolution slides a small matrix called a kernel over the image. At each place it multiplies the overlapping values, adds them and writes the sum at the centre pixel. Smoothing uses such kernels to reduce noise.

Write these points

Steps of convolution

  1. Flip the kernel (for true convolution; symmetric kernels need no flip).
  2. Place it on a pixel with its centre on that pixel.
  3. Multiply each kernel value by the pixel under it.
  4. Add the products and divide if the kernel is normalised.
  5. Write the result in the output image. Move to the next pixel.

Box, Gaussian and median blur

FilterHow it worksGood for
Box blurAverage of all neighbours, equal weightsFast general smoothing
Gaussian blurWeighted average, centre counts moreNatural looking smoothing, before edge detection
Median blurMiddle value of the neighboursSalt and pepper noise, keeps edges sharp

Why smoothing is needed

  • Reduces sensor noise in low light photos.
  • Stops edge detectors from finding false edges.
  • Makes thresholding cleaner.

One noisy pixel of 200 among 10s.

Box blur (3 × 3): (8 × 10 + 200) ÷ 9 = 280 ÷ 9 = 31.1.

Gaussian blur [1 2 1; 2 4 2; 1 2 1] ÷ 16: (120 + 800) ÷ 16 = 920 ÷ 16 = 57.5.

Median blur: sorted values are eight 10s and one 200. The middle value is 10.

So median removes the speck fully. For scanned exam papers with dots, median blur is the right choice.

Real-life example

Smoothing is like taking the average marks of the students sitting around you to guess your own. If one student scored oddly high, the average is pulled up (box blur). Taking the middle student's marks (median) ignores that odd one.

Figure: one step of convolution with a Gaussian kernel
Figure: one step of convolution with a Gaussian kernel

Same or opposite: Gaussian blur and median blur

PointGaussianMedianSame or opposite
TypeLinear (weighted average)Non-linear (middle value)Opposite
Best againstGaussian noiseSalt and pepper noiseOpposite
Reduces noiseYesYesSame
EdgesSlightly blurredKept sharpOpposite

Exam tip. Draw the kernel sliding on a grid and do one sum. Then give the three filter table and say which one you would choose and why.

Back to the topic list

Q6. Colour spaces, colour transforms and colour adjustment with curves

Asked 3 times in 2023, 2025 · Unit 3

From the papers

  • “What are color spaces and how are they used in image processing? Discuss the role of histogram equalization in image enhancement.” (Jun 2025)
  • “Explain different types of color spaces and their transformation equations (RGB→HSV, RGB→LAB).” (Dec 2025)
  • “Explain the difference between gray scale and colour image.” (Nov 2023)
  • “Define colour transforms in image processing. Provide an example of a colour transform and explain how it alters the appearance of an image?” (Nov 2023)

The short answer

A colour space is a way of describing colours with numbers. A colour transform converts an image from one colour space to another, or changes its colours with a rule such as a curve.

Write these points

Grey scale and colour image

  • Grey scale: one channel, 0 (black) to 255 (white), 1 byte per pixel.
  • Colour: three channels (R, G, B), 3 bytes per pixel.
  • RGB to grey: Y = 0.299R + 0.587G + 0.114B.

Common colour spaces

SpaceChannelsUsed for
RGB / BGRRed, green, blueScreens, cameras; OpenCV uses BGR order
HSVHue, saturation, valuePicking objects by colour, skin detection
LabLightness, a (green to red), b (blue to yellow)Colour difference close to human vision
YCrCbBrightness plus two colour partsVideo compression, face detection

RGB to HSV equations (values scaled to 0 to 1)

  • V = max(R, G, B). S = (max − min) ÷ max.
  • If max = R: H = 60 × (G − B) ÷ (max − min).
  • If max = G: H = 60 × (2 + (B − R) ÷ (max − min)). If max = B: H = 60 × (4 + (R − G) ÷ (max − min)).

Colour adjustment using curves

  • A curve maps each input level to an output level.
  • An S curve raises contrast. Lifting only the blue curve cools the image.
  • Needed in product photos, printing and medical images where exact colour matters.

Converting one orange pixel.

Pixel (R, G, B) = (255, 128, 0). Scaled: (1, 0.502, 0).

V = 1. S = (1 − 0) ÷ 1 = 1.

Max is R, so H = 60 × (0.502 − 0) ÷ 1 = 30.1°. Orange sits at about 30° on the hue circle.

Grey value = 0.299 × 255 + 0.587 × 128 + 0.114 × 0 = 76.2 + 75.1 = 151.

Real-life example

Describing a sari to a shopkeeper, you may say "dark red, very bright". That is closer to HSV (hue, saturation, value) than to giving three RGB numbers. This is why HSV is easier for picking objects by colour.

Figure: common colour spaces
Figure: common colour spaces

Same or opposite: RGB and HSV

PointRGBHSVSame or opposite
Channels33Same
Separates colour from brightnessNoYesOpposite
Best forDisplayColour based detectionOpposite
Changes with lightA lotLess in hueOpposite

Exam tip. Name four colour spaces in a table. Write the HSV equations and convert one pixel. For curves, draw an S curve in words or a small sketch.

Back to the topic list

Q7. Image enhancement, histogram equalization and CLAHE

Asked 3 times in 2023, 2025 · Unit 3

From the papers

  • “What are color spaces and how are they used in image processing? Discuss the role of histogram equalization in image enhancement.” (Jun 2025)
  • “Numerically compute Histogram Equalization for an image having pixel intensities [52, 55, 61, 66, 70, 61, 64, 73]” (Dec 2025)
  • “Explain the concept of image enhancement and its importance in image processing. Provide examples of scenarios where image enhancement is necessary.” (Nov 2023)
  • “Short note: CLAHE (Contrast Limited Adaptive Histogram Equalization)” (Dec 2025)

The short answer

Image enhancement makes an image clearer for people or for later steps. Histogram equalization spreads the grey levels of a dull image over the full 0 to 255 range to raise contrast. CLAHE does this tile by tile with a limit, so noise is not boosted.

Write these points

Histogram equalization steps

  1. Count pixels at each grey level (histogram).
  2. Find the probability p(r) = count ÷ total pixels.
  3. Find the cumulative sum (CDF).
  4. New level s = round(255 × CDF).
  5. Replace each pixel with its new level.

CLAHE

  • Splits the image into tiles, for example 8 × 8.
  • Equalises each tile on its own.
  • Clips the histogram at a limit before equalising, so flat areas do not become noisy.
  • Joins tiles smoothly by interpolation. Used for X-rays and night photos.

When enhancement is needed

  • Dark CCTV footage.
  • Faded document scans.
  • Medical X-rays and satellite images.

Equalising [52, 55, 61, 66, 70, 61, 64, 73] (asked in December 2025).

N = 8 pixels. Sorted counts: 52:1, 55:1, 61:2, 64:1, 66:1, 70:1, 73:1.

CDF: 52 → 1/8, 55 → 2/8, 61 → 4/8, 64 → 5/8, 66 → 6/8, 70 → 7/8, 73 → 8/8.

s = round(255 × CDF): 52 → 32, 55 → 64, 61 → 128, 64 → 159, 66 → 191, 70 → 223, 73 → 255.

Output image: [32, 64, 128, 191, 223, 128, 159, 255]. The range grows from 21 levels to 223.

Real-life example

In a class where everyone scored between 52 and 73, the teacher grades on a curve: the lowest mark becomes grade E and the highest becomes A+. Differences that looked tiny now stand out. Histogram equalization does this to grey levels.

Figure: histogram before and after equalization
Figure: histogram before and after equalization

Same or opposite: histogram equalization and CLAHE

PointHistogram equalizationCLAHESame or opposite
Area usedWhole imageSmall tilesOpposite
Noise boostCan be highLimited by clippingOpposite
Raises contrastYesYesSame
Uses the CDFYesYesSame

Exam tip. Make a table with columns for level, count, CDF and new level. Show the final image. Add CLAHE as a short note at the end.

Back to the topic list

Q8. Image segmentation and its link to recognition

Asked 3 times in 2023, 2025 · Unit 4

From the papers

  • “Discuss the various techniques used for image segmentation. How does image classification differ from object detection?” (Jun 2025)
  • “What is image segmentation and how is it related to image recognition? Describe the steps involved in segmenting objects within an image.” (Nov 2023)
  • “Short note: Image Segmentation” (Dec 2025)

The short answer

Image segmentation divides an image into regions, each belonging to one object or the background. It is the step before recognition: once an object's region is cut out, its features can be measured and classified.

Write these points

Steps in segmenting objects

  1. Pre-process: smooth and enhance.
  2. Segment: threshold, find edges or grow regions.
  3. Clean up with morphology.
  4. Label regions with connected components.
  5. Extract features (area, shape, colour).
  6. Recognise or classify each region.

Techniques

TechniqueIdeaExample
ThresholdingSplit by intensityText on paper
Edge basedFollow strong edgesOutline of a building
Region growingStart at a seed, add similar neighboursTumour in an MRI
Clustering (k-means)Group pixels by colourSky, land, water
WatershedTreat intensity as hills and valleysTouching coins
Deep learningU-Net, Mask R-CNNRoad scenes

Region growing from a seed.

Seed pixel = 100. Rule: add a neighbour if it differs from the seed by 10 or less.

Neighbours are 104, 96, 150 and 98. Accept 104, 96 and 98. Reject 150.

From 104, its neighbours 108 and 160: accept 108, reject 160.

The region stops at the 150 and 160 pixels, which mark the object's boundary.

Real-life example

Before counting mangoes in a basket photo, you first mark where each mango is, separate from leaves and the basket. That marking is segmentation. Saying "this one is Alphonso" afterwards is recognition.

Figure: from image to recognised objects
Figure: from image to recognised objects

Same or opposite: segmentation and recognition

PointSegmentationRecognitionSame or opposite
Question answeredWhere are the regions?What is each region?Opposite
OrderFirstAfter segmentationOpposite
Part of computer visionYesYesSame
OutputRegion mapLabelsOpposite

Exam tip. Write the steps as a flow and the technique table. A short region growing example gets full marks.

Back to the topic list

Q9. Gesture recognition

Asked 3 times in 2023, 2025 · Unit 5

From the papers

  • “Explain the significance of gesture recognition in computer vision. How can motion estimation be applied in real-world scenarios?” (Jun 2025)
  • “Explain the process of Gesture Recognition using OpenCV and Deep Learning.” (Dec 2025)
  • “Define gesture recognition in the context of computer vision. How does it enable human-computer interaction?” (Nov 2023)

The short answer

Gesture recognition lets a computer understand hand or body movements from a camera, such as a wave or a thumbs up. It allows people to control devices without touching them, a form of human-computer interaction.

Write these points

Process using OpenCV and deep learning

  1. Capture frames from the webcam with cv2.VideoCapture.
  2. Find the hand: skin colour in HSV or YCrCb, or a hand detector such as MediaPipe.
  3. Segment the hand and find its contour.
  4. Extract features: convex hull, convexity defects, or 21 hand key points from a deep model.
  5. Classify the gesture with rules or a CNN/LSTM trained on gesture images or sequences.
  6. Map the gesture to an action, such as volume up.

Uses

  • Touch-free kiosks and smart TVs.
  • Sign language translation.
  • Gaming and VR.
  • Controlling robots and car dashboards.

Challenges

  • Different skin tones and light.
  • Background clutter.
  • Fast motion blur.
  • Different users make gestures differently.

Counting raised fingers.

The hand contour's convex hull is found.

Convexity defects are the deep valleys between fingers. Only defects deeper than 20 pixels with an angle under 90° are kept.

4 such valleys are found, so fingers = 4 + 1 = 5.

The app reads 5 fingers as "open palm" and pauses the video.

Real-life example

A traffic policeman controls cars with hand signals and the drivers understand them without words. Gesture recognition teaches a camera to understand such signals.

Figure: gesture recognition pipeline
Figure: gesture recognition pipeline

Same or opposite: rule based and deep learning gesture recognition

PointRule based (contours)Deep learningSame or opposite
Needs training dataNoYes, many imagesOpposite
Accuracy in clutterLowHighOpposite
Uses OpenCV for captureYesYesSame
Speed on a laptopVery fastFast with a small modelOpposite

Exam tip. Write the six steps as a flow. Add one use and one challenge in each list. The finger count example shows the method clearly.

Back to the topic list

Q10. Deep learning with OpenCV, face detection and applications of computer vision

Asked 3 times in 2023, 2025 · Unit 5

From the papers

  • “How does face detection work in computer vision? Explain the role of deep learning techniques in improving face detection accuracy.” (Jun 2025)
  • “How can computer vision techniques be adapted for remote sensing and satellite image analysis? Discuss the key challenges.” (Jun 2025)
  • “Explain the role of AI-driven computer vision in medical imaging. How has it transformed the healthcare industry?” (Jun 2025)
  • “What is OpenCV, and how is it used in deep learning for computer vision tasks?” (Nov 2023)

The short answer

OpenCV is an open source library for image processing and computer vision. Its dnn module runs trained deep learning models (from TensorFlow, PyTorch via ONNX, Caffe) for tasks such as face detection, object detection and classification.

Write these points

How face detection works

  1. Classic: Haar cascades (Viola-Jones) slide windows with simple light and dark features and a cascade of quick tests.
  2. HOG + SVM: gradient histograms describe the face shape.
  3. Deep learning: a CNN detector (SSD, MTCNN, RetinaFace) predicts face boxes with a confidence score.

Why deep learning is more accurate

  • Learns features from lakhs of faces, not hand made rules.
  • Works with side faces, masks, poor light.
  • Gives a confidence for each box.

Deep learning with OpenCV (steps)

  • Load the model: cv2.dnn.readNetFromONNX or readNetFromCaffe.
  • Make a blob: resize and normalise the image.
  • net.setInput(blob), then net.forward().
  • Keep results above a confidence threshold and draw boxes.

Applications

  • Medical imaging: finding tumours in MRI and diabetic eye disease in retina photos.
  • Remote sensing: crop health, flood mapping, land use. Challenges: huge images, cloud cover, few labels.
  • Attendance by face, retail footfall counting, quality checks in factories.

Face detection with the OpenCV DNN module.

A 1280 × 720 photo is resized to a 300 × 300 blob and passed to an SSD face model.

The model returns 3 boxes with confidences 0.97, 0.91 and 0.32.

With a threshold of 0.5, two faces are kept and the 0.32 box (a poster) is dropped.

The boxes are scaled back to 1280 × 720 and drawn on the photo.

Real-life example

A school gate camera that marks attendance by face is a full computer vision system. OpenCV reads the video. A deep model finds and matches faces. The attendance sheet is filled without a roll call.

Figure: deep learning face detection with OpenCV
Figure: deep learning face detection with OpenCV

Same or opposite: Haar cascade and deep learning face detection

PointHaar cascadeDeep learning (SSD)Same or opposite
FeaturesHand madeLearnedOpposite
Side and masked facesOften missedUsually foundOpposite
Runs in OpenCVYesYesSame
Speed on CPUVery fastFastOpposite

Exam tip. Explain the three methods of face detection in order of age. Then give OpenCV dnn steps and two applications with one challenge each.

Back to the topic list

Q11. Image gradients and edge detection: first and second order filters, Sobel and Canny

Asked 2 times in 2023, 2025 · Unit 4

From the papers

  • “Derive the Sobel operator used for gradient calculation and show its effect on a sample 3×3 image.” (Dec 2025)
  • “Differentiate between first order and second order derivative filters with mathematical examples.” (Dec 2025)
  • “Explain the Canny Edge detection algorithm, including its key steps and the role of various parameters.” (Nov 2023)

The short answer

An image gradient measures how fast intensity changes. First order filters (Sobel, Prewitt) use the first derivative and find edges as peaks. Second order filters (Laplacian) use the second derivative and find edges at zero crossings. Canny is a multi-step edge detector built on gradients.

Write these points

First and second order compared

PointFirst orderSecond order
Formula∂f/∂x ≈ f(x+1) − f(x)∂²f/∂x² ≈ f(x+1) + f(x−1) − 2f(x)
Edge shows asA peakA zero crossing
NoiseLess sensitiveMore sensitive
ExamplesSobel, Prewitt, RobertsLaplacian, LoG

Sobel operator

  • It joins smoothing [1 2 1] with a difference [−1 0 1].
  • Gx = [−1 0 1; −2 0 2; −1 0 1], Gy is its transpose.
  • Magnitude |G| = √(Gx² + Gy²). Direction θ = tan⁻¹(Gy ÷ Gx).

Canny edge detection steps

  1. Gaussian blur to remove noise (σ sets the amount).
  2. Sobel gradients: magnitude and direction.
  3. Non-maximum suppression: keep only the thin peak line.
  4. Double threshold: strong (above high), weak (between low and high).
  5. Hysteresis: keep weak edges only if joined to strong ones.

First and second derivative of an edge.

Row of pixels: 10, 10, 10, 50, 90, 90, 90.

First differences: 0, 0, 40, 40, 0, 0. The peak marks the edge.

Second differences: 0, 40, 0, −40, 0. The sign changes from +40 to −40 at the edge centre (zero crossing).

Sobel on [10 10 100; 10 10 100; 10 10 100] gives Gx = 400 − 40 = 360 and Gy = 0. It is a vertical edge of strength 360.

Real-life example

Walking up a hill, the first derivative is how steep the slope is: steepest at the middle of the climb. The second derivative tells you when the slope stops getting steeper and starts easing. That turning point is the zero crossing.

Figure: Sobel gradient on a 3 × 3 image
Figure: Sobel gradient on a 3 × 3 image

Same or opposite: Sobel and Laplacian

PointSobelLaplacianSame or opposite
DerivativeFirstSecondOpposite
Gives directionYesNoOpposite
Finds edgesYesYesSame
Noise sensitivityLowerHigherOpposite

Exam tip. Write both formulas and the table. Derive Sobel from smoothing times difference and do the 3 × 3 sum. For Canny, list five steps in order.

Back to the topic list

Q12. Basic image operations: datatype conversion, contrast and brightness

Asked 2 times in 2023, 2025 · Unit 1

From the papers

  • “Perform the following numerical operations on a 3×3 image matrix I = [100 150 200; 50 100 150; 0 50 100]: (i) Apply contrast stretching operation with new intensity range (0,255). (ii) Apply brightness enhancement by +50 intensity shift.” (Dec 2025)
  • “Discuss the mathematical operations performed on digital images. Explain datatype conversion with example in OpenCV.” (Dec 2025)
  • “Describe the concept of data type conversion in image processing. How does it impact image quality and storage?” (Nov 2023)

The short answer

Basic image operations change pixel values directly. Datatype conversion changes how each pixel is stored, such as 8-bit integers to 32-bit floats. Contrast stretching spreads values over a full range. Brightness enhancement adds a constant to every pixel.

Write these points

Mathematical operations on images

  • Addition (brightness), multiplication (contrast), subtraction (change detection).
  • Bitwise AND, OR, XOR, NOT with masks.
  • Blending: dst = α × img1 + β × img2 + γ (cv2.addWeighted).

Datatype conversion in OpenCV

  • img.astype(np.float32) / 255 gives values 0 to 1 for safe maths.
  • Back: (img * 255).clip(0, 255).astype(np.uint8).
  • cv2.add saturates (200 + 100 = 255). NumPy uint8 addition wraps (200 + 100 = 44).
  • Storage: a 1920 × 1080 colour image is about 6.2 MB as uint8 and about 24.9 MB as float32.

Formulas

  • Contrast stretch: new = (old − min) × 255 ÷ (max − min).
  • Brightness: new = old + β, clipped to 0 to 255.

The December 2025 numerical.

I = [100 150 200; 50 100 150; 0 50 100]. min = 0, max = 200, so new = old × 255 ÷ 200.

Contrast stretched: [128 191 255; 64 128 191; 0 64 128] (100 → 127.5 → 128, 150 → 191.25 → 191, 50 → 63.75 → 64).

Brightness +50: [150 200 250; 100 150 200; 50 100 150]. No value crosses 255, so none is clipped.

Stretching widened the range from 200 to 255 levels. Brightness only shifted it up.

Real-life example

Turning up the brightness on your phone lifts every part of the picture by the same amount. Turning up contrast makes the dark parts darker and the bright parts brighter, so the full range is used.

Figure: safe arithmetic on images
Figure: safe arithmetic on images

Same or opposite: contrast and brightness enhancement

PointContrast stretchingBrightness shiftSame or opposite
OperationMultiply and shiftAdd a constantOpposite
Range of valuesWidensSame widthOpposite
Point operation on each pixelYesYesSame
RiskNone if done rightClipping at 255Opposite

Exam tip. Write the formula first, then fill a new 3 × 3 matrix for each part. Show one rounding step so the examiner sees your method.

Back to the topic list

Q13. Image classification and object detection

Asked 2 times in 2025 · Unit 4

From the papers

  • “Discuss the various techniques used for image segmentation. How does image classification differ from object detection?” (Jun 2025)
  • “Discuss various object detection techniques in Computer Vision with suitable examples.” (Dec 2025)

The short answer

Image classification gives one label to a whole image. Object detection finds every object in the image, draws a box around each and labels it. Segmentation goes further and labels every pixel.

Write these points

Differences

PointClassificationObject detection
OutputOne label (and score)Boxes + labels + scores
Objects per imageOne main objectMany
ModelsResNet, MobileNetYOLO, SSD, Faster R-CNN
MeasureAccuracymAP, IoU

Object detection techniques

  1. Classic: sliding window with HOG + SVM, Haar cascades.
  2. Two stage: R-CNN, Fast R-CNN, Faster R-CNN. First propose regions, then classify them. Accurate.
  3. One stage: YOLO, SSD, RetinaNet. Predict boxes and classes in one pass. Fast, good for video.
  4. Transformers: DETR.

Key ideas

  • Anchor boxes of different shapes.
  • IoU (intersection over union) checks box overlap.
  • Non-maximum suppression removes duplicate boxes.

IoU of a predicted box.

True box A from (50, 50) to (150, 150): area 100 × 100 = 10,000.

Predicted box B from (100, 100) to (200, 200): area 10,000.

Overlap from (100, 100) to (150, 150) = 50 × 50 = 2,500. Union = 10,000 + 10,000 − 2,500 = 17,500.

IoU = 2,500 ÷ 17,500 = 0.14. This is below 0.5, so the detection counts as wrong.

Real-life example

Telling your friend "this photo is of a wedding" is classification. Pointing at the bride, the groom and the cake one by one is detection. Colouring each person's outline exactly is segmentation.

Figure: classification, detection and segmentation
Figure: classification, detection and segmentation

Same or opposite: classification and object detection

PointClassificationDetectionSame or opposite
Uses CNNsYesYesSame
Location givenNoYes, boxesOpposite
Objects handledOneManyOpposite
Example modelResNetYOLOOpposite

Exam tip. Draw the three panel figure. Write the table and name one model from each detection family. The IoU sum is a quick way to show depth.

Back to the topic list

Q14. Motion estimation and object tracking

Asked 2 times in 2025 · Unit 5

From the papers

  • “Explain the significance of gesture recognition in computer vision. How can motion estimation be applied in real-world scenarios?” (Jun 2025)
  • “Explain Motion Estimation and Object Tracking algorithms with help of examples.” (Dec 2025)

The short answer

Motion estimation finds how pixels or objects move between video frames, usually as motion vectors or optical flow. Object tracking follows a chosen object from frame to frame and keeps its identity.

Write these points

Motion estimation methods

  • Frame differencing: subtract two frames; changed pixels are moving.
  • Background subtraction: MOG2 model of the still background.
  • Optical flow: Lucas-Kanade (sparse points) and Farneback (dense).
  • Block matching: used in video compression (MPEG).

Tracking algorithms

TrackerIdea
Mean shift / CamShiftFollows the colour histogram peak
Kalman filterPredicts the next position, then corrects it
KCF, CSRT (OpenCV)Learned correlation filters
SORT / DeepSORTDetector + Kalman + matching by IoU or appearance

Real-world uses

  • Traffic speed cameras and vehicle counting.
  • Cricket ball tracking (Hawk-Eye).
  • Video stabilisation and compression.
  • Gesture and sports analysis.

Speed of a car from motion vectors.

At 30 frames per second, the car's centre moves from (100, 50) to (112, 55) in one frame.

Displacement = √(12² + 5²) = √169 = 13 pixels per frame.

Speed = 13 × 30 = 390 pixels per second.

If 1 pixel = 5 cm on the road, speed = 19.5 m/s = 70.2 km/h.

Real-life example

In a cricket match the TV shows the ball's path after an LBW appeal. The system estimates the ball's motion in every frame and tracks it until it would have hit the stumps. That is motion estimation and tracking working together.

Figure: tracking by detection
Figure: tracking by detection

Same or opposite: motion estimation and object tracking

PointMotion estimationObject trackingSame or opposite
OutputMotion vectors or flowPath of one objectOpposite
Keeps identityNoYesOpposite
Works on video framesYesYesSame
ExampleOptical flowKalman, CSRTOpposite

Exam tip. Define both terms, list methods and trackers, then do the speed sum. Name the Kalman filter, because examiners look for it.

Back to the topic list

Start with the latest papers

Computer Vision - Jun 2025

Computer Vision - Dec 2025

Computer Vision - Nov 2023

See all 3 papers →

Computer Vision (AL-701) FAQs

What are the most important topics in Computer Vision?

By how often they were asked in the papers on this site: Computer vision and image processing: meaning, differences and problems (3 times); Thresholding: global, optimal and adaptive (3 times); Morphological operations: erosion, dilation, opening and closing (3 times); Connected component analysis and contour analysis (3 times); Convolution and image smoothing: box, Gaussian and median blur (3 times).

How were these Computer Vision important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2023-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Computer Vision important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Computer Vision is free to download from this page.

The 14 most repeated topics of Computer Vision (AL-701) for RGPV B.Tech CSE-AIML semester 7, counted from the previous year papers on this site.