r/computervision • • Sep 14 '26

Showcase Trained a multi-spot parking occupancy detector using a DINO backbone + procedural Blender synthetic data

I built this parking lot occupancy detector to work on real-world security cameras which tend to have lower angles and lots of obstructions from other cars.

I have seen other parking lot detection CV demos that use off-the-shelf object detectors (like standard YOLO bounding boxes). They would generally only work on impractical camera setups (e.g., drone shots or 200+ foot high cameras).

A couple of technical takeaways from training this that might be interesting:

  1. DINO Backbone vs. Standard CNNs: I tested several backbones, but the DINO Vision Transformer performed the best by a good margin. Because DINO learns patch-level representations without supervised class labels, it captures semantic surface texture (the difference between empty asphalt, tree shadows, and car undercarriages) and proved far more invariant to direct sun glare and rain washout than supervised backbones.
  2. Synthetic Data via Blender (The Biggest Upgrade): Public parking datasets are fairly limited and rarely capture extreme conditions. I built a parametric Blender pipeline to procedurally reconstruct parking lots and vehicles—randomizing asphalt PBR textures, camera angles/heights, sun positions, and vehicle placements. Mixing synthetic data with real sequences was surprisingly effective and gave the single biggest jump in zero-shot generalization to unseen cameras. One huge advantage of the synthetic data is that the labeling was always right (human annotation for far-off, angled parking spots is suprisingly error prone)
  3. The parking spots are drawn on the ground plane, and the vehicles are fairly disconnected from that visually. The large receptive field allows the model to learn interesting "cheats" that a human might also use to infer that a car is there even when it can't really be seen. For example, it may use a shadow on the pavement to identify that the space is occupied even if the body is blocked by another car.

Code:

The web app is open source on GitHub: https://github.com/lotvulture/lotvulture

The repo includes a community model and a higher-accuracy engine as a commercial feature: https://www.lotvulture.com/

Happy to answer questions about the synthetic data pipeline or edge inference trade-offs!

574 Upvotes

27 comments sorted by

28

u/mr_maker91 Sep 14 '26

What is your accuracy, some years ago I built something similar using traditional computer vision and it almost never failed, it would be interesting to compare it

29

u/Fit_Professional5553 Sep 14 '26

It's well over 99% on easier publicly available datasets (e.g,. pklot). I have a more difficult/diverse validation set I use to test, and it was 97.5% without the synthetic data and bumped to 99.09% with the synthetic 3d generated data. I was a bit surprised by how much it helped.

1

u/btcmx Sep 18 '26

Bro, "99%" -> you overfitted on your dataset. Needles to say it won't generalize outside of this parking lot. What is cool is the Blender idea. I will keep it in mind when the use-case comes.

2

u/Fit_Professional5553 Sep 18 '26

Validation and test datasets are isolated from training and contain completely unique cameras with a decent amount of variety wrt to angles/distances to spots.  The parking lot used in this demo was not in any of those three datasets.

4

u/slvrscoobie Sep 15 '26

is this at hurricane ridge?

6

u/Fit_Professional5553 Sep 15 '26

Yes. Good eye!

2

u/slvrscoobie Sep 15 '26

haha, and the only time I visited it was covered in snow. haha just had a look to it

https://www.flickr.com/photos/slvrscoobie/8420383820/in/album-72157632621706938

3

u/Extreme_Cake4624 Sep 14 '26

I fully understand the appeal of learning you had and did. But for production, isn’t this a bit overkill for something which could also leverage a finetuned yolo and iou matching?

5

u/Fit_Professional5553 Sep 14 '26

That was my first impulse as well. That does work great when the camera setup is near perfect (e.g., 70+ degree overhead shot, or direct shot on the parking spots). But the accuracy drops off a cliff once you get to any capture at an angle.

Most of the the surveillance cameras I have seen are up about 10-30 feet and angled flatter to cover as much of the parking lot as it can. With a YOLO/IOU approach they could only count a small subset of the available parking spots accurately.

3

u/BeverlyGodoy Sep 14 '26

It's not an overkill. Yolo will fail terribly specially on low or very high angled viewpoints.

5

u/johndsmits Sep 14 '26

This.

Yolo false positives will flood the zone. People think these static camera views are easy (just use yolo) But 24/7 coverage and anything great than 20ft accuracy goes out the door.

Good job on using the position markers; we doing something similar that has sunlight moving across and shadows to exposure somewhat put DINOv2 to good use. Keep going.

1

u/Lethandralis Sep 14 '26

Why is it overkill? It's even easier to use dino since you don't even have to fine tune.

12

u/Cavalletta07 Sep 14 '26

Great work!! I would suggest NVIDIA Replicator https://docs.omniverse.nvidia.com/extensions/latest/ext_replicator.html that make your Life easier instead of Building a pipeline with blender

4

u/Logan_Maransy Sep 14 '26

Huge fan of DINO as a starting backbone for a variety of vision tasks. I think small "distilled" versions of hyper specific models is the near future for a bit: using huge models to set up a flywheel training set up to train a model for EXACTLY what you want, incredibly quickly and with high performance. 

For example, everything you learned in this project can generally be transferred to a bunch of other somewhat similar but different tasks that have real value but is now in reach and doable due to these great open source base models (like DINOv3 or SAM3)

1

u/Aragao_ Sep 14 '26

Awesome! May I ask what you used the synthetic Blender data for? Since DINO is already pretty capable out of the gate? Did you fine tune it?

1

u/Fit_Professional5553 Sep 14 '26

Yes, exactly.  DINO is just the backbone, it needs to be fine-tuned to understand parking spaces.  A lot of the training data was real images with augmentation.  The synthetic was added to that during training.

1

u/Aragao_ Sep 14 '26

Nice, how much VRAM did you need to fine tune such a huge model? Any special techniques applied?

2

u/Fit_Professional5553 Sep 15 '26

I used a 16GB RTX 5060 for training

1

u/PriorityGondola Sep 20 '26

Does it know that a car has occupied a bay, like if I pushed a big bin in the bay would it mark it as occupied ?

2

u/Fit_Professional5553 Sep 20 '26

It would be non deterministic because it's never seen that in its training data.  If a person were standing in the spot it would ignore (count as vacant) because it's seen people walking past spaces when training.  But other random objects may or may not depending on how vehicle-like they look.  

3

u/Flyward_Aerospace Sep 15 '26

Nice jump from the synthetic data. One thing worth checking before you lean on 99.09 though, that is per spot, so on a 200 spot lot you are wrong on about two spots in every single frame and the total count you hand a user is basically never exactly right. And in my experience those errors are not random frame to frame, it is the same handful of far end occluded spots failing over and over. Would be a lot more useful to break the error rate out by distance and occlusion, plus report how often the whole count is exact. One percent spread evenly is a completely different product from one percent parked on the spots nobody can see.

1

u/gefahr Sep 15 '26

This comment is load-bearing.

(In the event there's a human behind this account, please don't use LLMs to write your reddit comments.)

1

u/NorthernBaseOfficial Sep 18 '26

The Blender pipeline is probably the most interesting part of this for me. Getting perfect labels while randomizing the camera angle, lighting, surface texture and vehicle placement sounds especially useful for those heavily occluded spaces.

What mix of synthetic and real data worked best for you? I’m also curious whether a model trained mainly on synthetic scenes generalized well on its own, or whether even a relatively small amount of real footage was essential for closing the domain gap.