Computer Visionbeginner5 min

Image Augmentation Strategies

Flipping, cropping and recolouring images so a model sees more variety.

Image Augmentation expands training dataset diversity by applying synthetic transformations to input images. Traditional augmentations include random cropping, flipping, color jittering, and rotation. Advanced regularizers like Mixup blend two images and their labels linearly: x = λ x_A + (1-λ) x_B. CutMix patches a rectangular region of image B into image A, setting target label proportions equal to patch area. RandAugment automates hyperparameter search by applying a small sequence of randomly sampled operations with uniform magnitude.

Computer Visionbeginner4 min

Resizing, Normalization & Colour Spaces

Resizing and normalising images the way your model expects, or it quietly fails.

Image Preprocessing converts raw camera pixels into clean, standardized input tensors for computer vision models. Key operations include Aspect Ratio Preserving Resizing (padding vs letterboxing), Channel Normalization using ImageNet mean and standard deviation, and Color Space Conversions (RGB, BGR, HSV, Lab). Correct preprocessing prevents aspect ratio distortion and matches pretraining feature statistics.

Computer Visionintermediate5 min

ResNet, EfficientNet & Friends

From AlexNet to ResNet: the image models every vision interview expects you to know.

Image Classification architecture design evolved from early deep CNNs (AlexNet, VGG) to residual skip-connections (ResNet) and modern modernized ConvNets (ConvNeXt). AlexNet proved GPU deep learning feasibility. VGG introduced small 3x3 filter stacking. ResNet solved vanishing gradients in 100+ layer networks using residual identity skip connections y = F(x) + x. ConvNeXt modernized convolutional architectures by adopting Vision Transformer design principles (7x7 depthwise separable convolutions, LayerNorm, GELU activations).

Computer Visionintermediate4 min

IoU & Non-Max Suppression

How detectors score overlapping boxes and throw away the duplicates.

Intersection over Union (IoU) measures spatial overlap between predicted bounding box A and ground-truth box B (IoU = Area of Overlap / Area of Union). Non-Maximum Suppression (NMS) is a mandatory post-processing algorithm that eliminates duplicate overlapping bounding boxes around the same object, keeping only the highest-confidence prediction. Soft-NMS decays confidence scores progressively rather than hard-deleting overlapping boxes, improving detection of crowded objects.

Computer Visionintermediate5 min

Mean Average Precision (mAP)

The single number object detection is judged on, and how it is worked out.

Mean Average Precision (mAP) is the universal benchmark metric for evaluating object detection models (COCO / Pascal VOC). It calculates the Area Under the Precision-Recall Curve (Average Precision - AP) for each category at a specific IoU threshold (e.g., mAP@50), then averages across all object classes. COCO mAP (mAP@[.50:.95]) averages AP across 10 IoU thresholds from 0.50 to 0.95 in steps of 0.05, rewarding precise bounding box localization.

Computer Visionintermediate5 min

Semantic vs Instance Segmentation

Label every pixel as road or car, or tell each car apart?

Image Segmentation assigns pixel-level class labels to an entire image. Semantic Segmentation classifies every pixel into a category (e.g. 'person', 'road', 'sky') without distinguishing separate object instances. Instance Segmentation identifies and masks distinct individual object instances (e.g. 'person #1', 'person #2'). Panoptic Segmentation unifies both, labeling stuff pixels (background road/sky) and thing pixels (countable individual objects) in a single output.

Computer Visionintermediate5 min

OCR Pipelines

How software finds text in an image, then reads it.

Optical Character Recognition (OCR) converts text images into machine-readable digital text strings. Industrial OCR pipelines combine two stages: Text Detection (locating bounding boxes or polygons around text using EAST or DBNet) and Text Recognition (converting cropped text images into characters using CRNN + CTC Loss or Vision Transformer Decoders like TrOCR). Connectionist Temporal Classification (CTC) loss enables sequence training without explicit character-level alignment annotations.

Computer Visionadvanced5 min

Object Detection: R-CNN to YOLO

Not just what is in the picture, but exactly where each thing is.

Object Detection combines image classification (identifying category labels) and localization (predicting bounding box coordinates [x_center, y_center, width, height]). Key components include Backbone feature extractors (ResNet, CSPDarknet), Feature Pyramid Networks (FPN) for multi-scale object detection, Bounding Box Regression loss (CIoU / GIoU), and Non-Maximum Suppression (NMS) to eliminate duplicate overlapping predicted boxes.

Computer Visionadvanced5 min

One-Stage vs Two-Stage Detectors

Detect objects in one fast pass, or two careful ones? The speed-accuracy trade.

Object detectors divide into Two-Stage (Faster R-CNN, Mask R-CNN) and One-Stage (YOLO, SSD, RetinaNet, DETR) architectures. Two-stage detectors first generate candidate Region Proposals via a Region Proposal Network (RPN), then classify and refine boxes in Stage 2, achieving high accuracy. One-stage detectors predict bounding boxes and class probabilities directly from feature maps in a single dense forward pass, enabling real-time FPS video processing.

Computer Visionadvanced4 min

Anchor Boxes & Anchor-Free Detection

Starting from template boxes so a detector can find objects of any shape.

Anchor Boxes are pre-defined reference bounding boxes of fixed shapes and aspect ratios tiled across feature map grid cells. Instead of predicting raw absolute coordinates from scratch, object detectors predict relative offset regression values (dx, dy, dw, dh) to deform reference anchor boxes toward target ground-truth objects. Modern detectors utilize Anchor-Free designs (YOLOv8, FCOS) to avoid manual hyperparameter tuning of anchor sizes.

Computer Visionadvanced5 min

U-Net & Fully Convolutional Networks

The network shape that labels every pixel, and became the standard for medical scans.

These networks label every pixel in an image, for example marking which pixels are road, car or person. A fully convolutional network swapped the usual classification layers for convolutions, so it accepts any image size and outputs a full map of labels. U-Net shrinks the image step by step to understand what is in it, then grows it back to full size to say exactly where. Shortcut links carry fine detail across, which keeps edges sharp. It became the standard for medical images.

Computer Visionadvanced5 min

SAM & Promptable Segmentation

Click on anything in any image and get a precise cut-out.

Segment Anything, or SAM, from Meta, can cut out almost any object in almost any image. You give it a hint, like a click on the object, a box around it or a rough outline, and it returns a precise mask of that object. A large image encoder reads the picture once, and a small, fast decoder then answers each hint in a fraction of a second, so it feels interactive. It was trained on over a billion masks across eleven million images.

Computer Visionadvanced5 min

Vision Transformers (ViT)

Treat an image like a sentence of patches, and Transformers work on pictures too.

A Vision Transformer applies the Transformer, built for text, to images. It cuts an image into small square patches, often 16 by 16 pixels, and treats each patch like a word. Attention then lets every patch relate to every other patch, however far apart they are. Unlike a CNN, it has no built-in idea that nearby pixels belong together, so it needs far more training data to learn that. Given enough data and compute, though, it outperforms CNNs.

Computer Visionadvanced5 min

CNN vs ViT: Inductive Bias

CNNs assume a lot about images. Transformers assume almost nothing. Each has a price.

The real difference between CNNs and Vision Transformers is how much each assumes about images. A CNN is built to look at small nearby regions and to recognise a pattern wherever it appears. Those assumptions are usually right, so CNNs learn well from modest amounts of data. A Vision Transformer assumes almost nothing and must learn those patterns itself, so it needs far more data or heavy augmentation. In return, with enough data it keeps improving after CNNs level off.

Computer Visionadvanced5 min

CLIP & Image–Text Alignment

A model that learned to match pictures and words from 400 million captions.

CLIP, from OpenAI, learned to connect pictures and words by studying 400 million images paired with captions from the internet. It has two parts, one that reads images and one that reads text, trained so a matching image and caption land close together. That lets it classify images with no task-specific training: compare the image against prompts like a photo of a dog or a photo of a cat, and pick the closest. It also powers image search and guides many image generators.

Computer Visionadvanced5 min

Face Recognition & Metric Learning

Turning a face into numbers so the same person always lands nearby.

Face Recognition uses Metric Learning to map facial images into a dense vector embedding space where images of the same person are close together and images of different people are far apart. Unlike closed set classification which predicts fixed class labels, Face Recognition handles Open Set Verification where new unknown faces must be identified without retraining the model. Modern architectures use Margin Loss functions like ArcFace and CosFace to enforce angular margin separation in feature space.

Computer Visionadvanced5 min

Triplet Loss & Hard Negative Mining

Pull matching pairs together, push different ones apart. The idea behind face ID.

Triplet loss trains a model to place similar things close together and different things far apart, which is how face recognition works. Each training example is a trio: an anchor, like a photo of one person, a positive, another photo of the same person, and a negative, a photo of someone else. The loss pulls the anchor toward the positive and pushes it away from the negative by at least a set margin. Choosing difficult negatives matters, because easy ones teach nothing.

Computer Visionadvanced5 min

Video Understanding & Temporal Models

Video is images plus time, and the time part is the hard bit.

Video Understanding extends 2D computer vision to 3D spatiotemporal tensors (Frames x Height x Width x Channels). Models capture both spatial appearance features within frames and temporal motion dynamics across frames. Architectures evolved from 3D Convolutional Networks (C3D, I3D) and Two Stream Networks (Spatial RGB + Temporal Optical Flow) to Video Vision Transformers (Video Swin, TimeSformer).

Computer Visionadvanced5 min

Pose Estimation & Keypoints

Finding where a person's joints are, from elbows to ankles.

Pose Estimation is a computer vision task that detects anatomical keypoints (elbows, knees, eyes, wrists) to construct human skeletal body poses. Bottom Up approaches (OpenPose) detect all keypoints in an image first and group them into individuals using Affinity Fields. Top Down approaches (HRNet, AlphaPose) run an object detector first to crop individual humans, then predict keypoints per bounding box.

Computer Visionadvanced5 min

Vision Models on Edge Devices

Running vision models fast on phones and cameras, not in the cloud.

Edge Deployment of Vision Models deploys computer vision networks to resource constrained devices (NVIDIA Jetson, Mobile phones, Raspberry Pi, Apple Neural Engine). Deploying to the edge eliminates cloud API latency, protects user privacy, and enables offline operation. Techniques include converting PyTorch models to ONNX and TensorRT, INT8 quantization, using MobileNet architectures, and hardware specific NPU compilation.

SCROLL · SAVE · TAP TO GO DEEPER