← All mindmapsMAIN TOPIC · 07 / 14

Computer Vision

Image features, CNNs, detection and segmentation

Explore full topic ↗
100%
Computer Vision overview revision sheet; full text available below

Use + to enlarge the vector sheet up to 400%, then pan horizontally or vertically. A readable text version is below.

Readable revision notes (18 concepts)

The same content as the visual sheet, optimized for mobile and assistive technology.

01 · Images & preprocessing

  • H×W×C image; tensors may use NCHW or NHWC
  • Resize/crop; normalize with expected channel statistics
  • Augment train images; preserve labels

02 · Convolution

  • Kernel slides over input; weights shared spatially
  • Output size = floor((N+2P−K)/S)+1 (dilation 1)
  • Stride S, padding P, kernel K; channels learn features

03 · CNN architecture

  • Conv → activation → pooling/stride → task head
  • Receptive field grows through stacked layers
  • Residual connections enable deeper networks

04 · Classification

  • Single-label softmax; multi-label sigmoid
  • Cross-entropy or binary CE as appropriate
  • Top-k accuracy, class-wise precision/recall

05 · Object detection

  • Predict bounding boxes + class + confidence
  • Two-stage vs one-stage; anchor-based or anchor-free
  • NMS suppresses overlapping lower-scored boxes

06 · Segmentation

  • Semantic: class per pixel; instance: separate objects
  • U-Net encoder/decoder + skip connections
  • Mask R-CNN adds instance masks to detection

07 · Spatial metrics

  • IoU = intersection area / union area
  • Dice = 2|A∩B|/(|A|+|B|)
  • AP integrates PR; mAP averages defined classes/thresholds

08 · Transfer & vision transformers

  • Pretrained backbone; fine-tune for new domain
  • ViT splits patches into tokens; attention models relations
  • Use appropriate data/compute tradeoffs

09 · Robustness & deployment

  • Check occlusion, lighting, blur, domain shift
  • Split by subject/video to avoid leakage
  • Quantize/export if supported; monitor latency and accuracy

10 · Image processing

  • Grayscale/HSV conversions; histogram equalization changes contrast.
  • Gaussian smoothing reduces noise; Sobel estimates gradients; Canny finds edges.
  • Preserve geometry for masks/boxes when augmenting.

11 · Convolution arithmetic

  • Kernel slides, computes weighted sum; output floor((N+2P−D(K−1)−1)/S)+1.
  • Depthwise conv per channel + pointwise 1×1 reduces parameters.
  • Padding controls boundary; stride reduces output size.

12 · Classic CNN architectures

  • LeNet/AlexNet establish conv stacks; VGG uses repeated small kernels.
  • ResNet residual y=F(x)+x improves gradient paths.
  • MobileNet depthwise separable convolution targets efficient inference.

13 · Detection families

  • Faster R-CNN proposes regions then classifies/refines; two-stage.
  • YOLO-style single-stage predicts boxes/classes directly; variants differ.
  • DETR uses set prediction with transformer and matching; no universal best.

14 · Bounding boxes & NMS

  • IoU=intersection/union. NMS iterates high score then suppresses overlap.
  • Confidence threshold controls retained predictions; NMS threshold controls suppression.
  • mAP depends on IoU thresholds/classes; COCO AP averages multiple thresholds.

15 · Segmentation architectures

  • Semantic segmentation: each pixel class; instance: separate object masks.
  • U-Net skip connections restore detail; Mask R-CNN adds instance mask head.
  • IoU/Dice per class; boundary quality important for small objects.

16 · Vision Transformer & multimodal

  • ViT patchifies image, embeds patches and models global relations.
  • Swin uses local shifted windows; CLIP contrastive image-text representation.
  • Compare compute, pretraining data, resolution and downstream transfer.

17 · Training & augmentation

  • Flip/crop/color jitter when label-preserving; mixup/CutMix for classification.
  • Transfer learning freeze/unfreeze; class weights/focal loss for imbalance.
  • Split by subject/video/site; inspect data leakage and label noise.

18 · Deployment & quality

  • Resize/normalization must match training; maintain color/channel order.
  • Quantization/pruning trade accuracy and hardware latency; benchmark target device.
  • Monitor lighting/occlusion/domain shift; report per-class and latency metrics.

References & further study

Original schematics illustrate concepts, not measured data. Review these references for full derivations and implementation details.

Last 30 min revisionHigh-yield interview Q&As