Skip to main content

Computer Vision Interview Questions

30 curated Computer Vision questions, each with a quick answer and a detailed explanation, from beginner to advanced. Star the ones you want to revisit and mark them done as you go.

6Beginner9Intermediate6Advanced5Scenario4Company

This is a static Q&A bank. For timed, rule-based practice sessions, use the Guided Interview Assessment lab.

Open assessment

Interview prep workspace

Local-first progress · Pro unlocks cross-device sync

30 questions

Beginner

Quick Answer

Computer vision is the field of teaching machines to extract meaning from images and video using algorithms and learned models.

Detailed Explanation

Unlike storing photos, CV systems interpret pixels to detect objects, read text, estimate pose, or track motion. Pipelines typically load an image as a numeric tensor, preprocess it, run a model or classical algorithm, and post-process outputs (boxes, masks, labels). OpenCV handles many classical steps; deep learning handles hard recognition tasks.

Beginner

Quick Answer

As a NumPy array of shape (height, width, 3) with uint8 values 0–255 in BGR channel order.

Detailed Explanation

OpenCV uses BGR, not RGB. Each pixel is [blue, green, red]. Grayscale images are (H, W) or (H, W, 1). Dtype is usually uint8; some pipelines normalize to float32 in [0,1] before neural networks.

Beginner

Quick Answer

The smallest addressable element of a digital image, storing intensity or color values.

Detailed Explanation

In grayscale, one value encodes brightness. In color, multiple channels (e.g. BGR) combine to form a color. All filtering, edge detection, and learning ultimately operate on these numbers.

Beginner

Quick Answer

Neural networks expect fixed input dimensions; resizing standardizes batch processing and matches pretrained model requirements.

Detailed Explanation

Common sizes include 224×224 (ImageNet classifiers) or multiples of 32 for detection. Resizing trades detail for speed. Always document whether aspect ratio was preserved to avoid object distortion.

Beginner

Quick Answer

The file path is wrong, the format is unsupported, or the file is corrupt—always check before processing.

Detailed Explanation

Production code should verify imread is not None, log the path, and handle missing files gracefully. On servers without displays, avoid imshow; write outputs to disk instead.

Intermediate

Quick Answer

Convolution flips the kernel before sliding; correlation does not. OpenCV's filter2D performs correlation-like operations depending on kernel definition.

Detailed Explanation

For symmetric kernels (Gaussian blur) the difference is invisible. For oriented edge kernels, flip direction matters conceptually. In CNNs, learned filters perform convolution-like operations to build feature maps.

Intermediate

Quick Answer

A multi-stage edge detector combining Gaussian smoothing, gradients, non-max suppression, and hysteresis thresholding.

Detailed Explanation

Useful for shape analysis, lane detection prototypes, and preprocessing before Hough transforms. Sensitive to noise and lighting; tune low/high thresholds per scene.

Intermediate

Quick Answer

It scans windows with a cascade of weak classifiers trained on Haar-like features to quickly reject non-faces.

Detailed Explanation

Fast but less accurate than modern deep detectors. Good for learning and constrained environments. Production face systems often use MTCNN, RetinaFace, or MediaPipe instead.

Intermediate

Quick Answer

Intersection over Union measures overlap between predicted and ground-truth boxes; common threshold for a 'correct' detection is 0.5.

Detailed Explanation

IoU = area(intersection) / area(union). Used in mAP evaluation and non-max suppression tuning. Low IoU thresholds inflate metrics; match evaluation protocol to product requirements.

Intermediate

Quick Answer

A post-processing step that removes duplicate overlapping boxes, keeping the highest-scoring detection per object.

Detailed Explanation

After a detector outputs many boxes, NMS suppresses lower-score boxes that overlap a chosen box above an IoU threshold. Soft-NMS variants reduce missed crowded objects.

Intermediate

Quick Answer

HSV separates hue from lighting, making color-based segmentation more robust to shadows and brightness swings.

Detailed Explanation

In HSV, you can threshold hue for a color while allowing wide ranges on saturation/value. OpenCV uses H: 0–179, S/V: 0–255. Convert with cvtColor(COLOR_BGR2HSV).

Intermediate

Quick Answer

It shows per-class true/false positives and negatives, revealing which classes the model confuses.

Detailed Explanation

Accuracy alone hides imbalance. From the matrix you compute precision, recall, and F1 per class—critical for medical or safety CV where missing one class is costly.

Advanced

Quick Answer

Convolution layers (feature extraction), activation (non-linearity), pooling (downsampling), and fully connected or head layers for classification/detection.

Detailed Explanation

Depth increases receptive field. Batch norm and skip connections stabilize training. Modern backbones (ResNet, EfficientNet) trade accuracy for FLOPs; choose based on edge vs cloud deployment.

Advanced

Quick Answer

You start from weights trained on large datasets (e.g. ImageNet) and fine-tune on your smaller labeled set, saving data and training time.

Detailed Explanation

Replace the classifier head, train with a low learning rate on new classes, optionally freeze early layers. Works when low-level features (edges, textures) transfer to your domain.

Advanced

Quick Answer

Synthetic variations (flips, crops, color jitter) expand effective training data and improve generalization to lighting, pose, and scale.

Detailed Explanation

Augmentation must match deployment: don't flip text-heavy images if orientation matters. For detection, augment boxes with the image. Monitor val metrics to avoid over-augmentation hurting real distribution.

Advanced

Quick Answer

Precision: of predicted defects, how many are real. Recall: of real defects, how many you found.

Detailed Explanation

Manufacturing may prefer high recall (miss no defect) even at lower precision (more false alarms). Tune thresholds on a validation set with business-weighted cost, not accuracy alone.

Scenario

Quick Answer

Lighting, exposure, resolution, and training data diversity; likely domain shift between indoor and outdoor scenes.

Detailed Explanation

Collect outdoor failures, label them, augment or fine-tune, check camera auto-exposure, and verify preprocessing (BGR, normalization) matches training. Consider histogram equalization or HDR-aware pipelines.

Scenario

Quick Answer

Add perspective correction or dewarping, increase resolution, tune binarization, and evaluate a scene-text model (EAST/CRNN) if classical Tesseract fails.

Detailed Explanation

Tesseract needs reasonably flat, high-contrast text. Preprocess with adaptive threshold, deskew, and ROI cropping. Measure character error rate on a labeled set of bad images.

Scenario

Quick Answer

Reduce resolution, use a lighter model (MobileNet, YOLO-nano), batch wisely, move to GPU/TPU, or export to ONNX/TensorRT.

Detailed Explanation

Profile each stage—decode, preprocess, infer, postprocess. Often resize dominates quality trade-offs. On edge devices, INT8 quantization with calibration may be required.

Scenario

Quick Answer

Define metrics on held-out store images: counting MAE, precision/recall per SKU region, and manual audit on hard cases (occlusion, glare).

Detailed Explanation

Agreement on ROI definition and what counts as a 'facing' matters. Test across stores, camera angles, and restock states. Shadow-mode deploy before automating actions.

Company

Quick Answer

Detect page contour → perspective warp → illumination correction → adaptive threshold → OCR → store text layer with PDF.

Detailed Explanation

OpenCV findContours + approxPolyDP for document edges, warpPerspective for flattening, denoise, then Tesseract or cloud OCR. Handle blur detection to prompt user retake.

Company

Quick Answer

Detect faces, expand bounding boxes slightly, apply Gaussian or pixelation blur, and log only metadata—not raw faces—if storing analytics.

Detailed Explanation

Use a reliable detector, apply blur on GPU/CPU efficiently, handle profile/partial faces, respect regional privacy laws, and offer opt-out. Test false negatives carefully.

Company

Quick Answer

Visualize masks over images, inspect training labels, check class imbalance, try morphological ops, and fine-tune with boundary-aware loss or more labeled edge cases.

Detailed Explanation

Leakage often comes from ambiguous boundaries (hair, glass). GrabCut or CRF post-processing can help classical pipelines; deep models need better labels near edges.

Beginner

Quick Answer

Classification assigns one label to the whole image; detection finds multiple objects with bounding boxes and labels.

Detailed Explanation

Classification answers 'what is in this image?' Detection answers 'what objects are where?' Segmentation goes further with pixel masks. Pick the task that matches product needs.

Intermediate

Quick Answer

Models learn annotation errors and biases; inconsistent boxes or class definitions cap real-world performance.

Detailed Explanation

Invest in guidelines, inter-annotator agreement, and active learning to label hard examples. Version datasets and track label changes like code.

Advanced

Quick Answer

Mean Average Precision averages precision-recall curves across classes at defined IoU thresholds.

Detailed Explanation

COCO mAP@[.5:.95] is stricter than mAP@0.5 alone. Report per-class AP for imbalanced sets. Align benchmark with deployment IoU needs.

Scenario

Quick Answer

BGR/RGB channel swap or wrong white balance assumptions in preprocessing.

Detailed Explanation

If you display OpenCV images in matplotlib without converting BGR→RGB, colors look wrong. Trace color conversion order and verify a known color patch after each step.

Intermediate

Quick Answer

Estimating per-pixel motion between frames for tracking, action recognition, and video stabilization.

Detailed Explanation

Lucas-Kanade assumes local constancy; dense Farneback gives flow fields. Combine with object detectors for robust tracking in video analytics.

Advanced

Quick Answer

Predefined box shapes at grid locations serve as reference templates; the network predicts offsets and class scores per anchor.

Detailed Explanation

Anchors match common object aspect ratios in training data. Mismatched anchors hurt recall. Modern one-stage detectors may use anchor-free heads but keep similar assignment ideas.

Company

Quick Answer

Convert to TFLite/CoreML/ONNX, quantize with validation, test latency/accuracy on target devices, handle camera orientation, and monitor drift in production.

Detailed Explanation

Compare float vs INT8 metrics on a device-representative set. Cap input resolution, pipeline async frames, and define fallback when confidence is low.

Question bank stays free.

Select up to 40 questions for a one-time workbook. These questions have a topic. They do not have a role field, so the PDF is grouped by topic and by company only when the question names one.

0 selected.

One-time add-on

Company Interview Preparation Pack

Download the questions you selected, with space to plan answers.

  • Free: the full question bank on this page, including the existing free PDF
  • You receive: a workbook of your selected questions, a checklist, and notes pages
  • Access: Downloadable workbook, one-time. This purchase does not start Priygop Pro.

Ready to master Computer Vision?

Start learning with our comprehensive course and practice these questions.