$ cat daps/README.md
Independent Project · October 2024

Parking-space occupancy from lot cameras with Mask R-CNN

Finds occupied and open parking spaces in images from existing lot cameras, using instance segmentation instead of a sensor in every space.

Role
Solo project: data, training and evaluation
Goal
Tell which spaces are taken from camera images alone
Stack
Python · PyTorch · Mask R-CNN (ResNet50-FPN)
0.86
average IoU on the held-out test split, occupied vs. open spaces
0.90
precision and recall on the same test split
Problem

Turning angled camera views into per-space occupancy

A sensor in every parking space costs money per spot, and many lots already have cameras. Those cameras see the lot at an angle and the spaces overlap, so telling them apart needs instance segmentation rather than bounding boxes.

Approach
01Adapted Mask R-CNN (ResNet50-FPN) to instance-segment occupied and open spaces.
02Trained and evaluated on 12,416 lot-camera images with a 75/15/10 train/val/test split.
03Measured 0.86 average IoU and 0.90 precision/recall on the test split.
Results
  • 0.86 average IoU and 0.90 precision and recall for occupied vs. open spaces on the held-out test split.
  • Works from existing camera images, with no hardware in each space.
Parking lot with per-space occupancy: colored instance masks labeled space-empty or space-occupied
Fig 1. Per-space occupancy from a single camera view
Wide parking-lot view with instance masks and occupancy confidence scores
Fig 2. A dense lot, occupied vs. open, with confidence scores
Skills demonstrated
instance segmentationMask R-CNNResNet50-FPNPyTorchdataset curationmodel evaluation