<!DOCTYPE html>
# [Solving neighborhood conflicts with AI](https://psychip.net/entry/solving-neighborhood-conflicts-with-ai)
## October 14, 2024

Recently some crazy dude started to deflate the car's tyres, i don't know who, why and when. The where i grown up that's a death sentence, people know that fact if they do this they might got a bullet in their legs, so they don't. But the city i moved in is more relaxed about that.

Installed a high definition IP camera to outer window for monitoring the car but i'm a busy man, can't sit and watch recordings all day.

Years ago was already fiddled with dvr cameras by using [opencv](https://opencv.org/) library, i asked [claude](https://claude.ai/) to convert my previously written delphi code into python and it did a decent job on this, after few hours of research and improvement i been able detect 80 different objects, track them, save detection weights into vector db and query back them in realtime.

Added an idle timer to every object, if a car stay more than one hour and a nearby person stay more than 30 seconds it's taking a screenshot. simple.

After swiping 5-10 screenshots per day eventually found the guy, approached to him very italian by showing the picture and problem solved itself. Released the script to [github](https://github.com/PsyChip/machina) after that, repository had 500~ stars and 10 forks when i last check.

get it from [here](https://github.com/PsyChip/machina)
