Skip navigation
I built a robot that scans Kraków’s streets for graffiti using Mapillary’s imagery.
0:00 / 0:32

I built a robot that scans Kraków’s streets for graffiti using Mapillary’s imagery.

Stas Kulesh

@staskulesh7.1K followers

Visit on X
245 likesDownloadOriginal post

27,349 views

I built a robot that scans Kraków’s streets for graffiti using Mapillary’s imagery. It processes 3,500 frames across eight districts by: - Fetching data: Pulling Kraków images and GPS/timestamps via Mapillary’s Graph API. - Segmenting: Running Meta’s SAM 3 model on Apple Silicon via MLX to identify graffiti candidates. - Classifying: Using CLIP zero-shot to filter out non-graffiti objects like signs and trees. - Geocoding: Converting detections into Polish addresses and Straż Miejska districts via ArcGIS. - Filtering: Retaining only the newest capture per wall. - Reporting: Preparing payloads for Kraków’s city council online server The tool currently operates in dry-run mode, but could automate real reports to the city. So far, it has identified 471 graffiti sites across eight districts, showing that existing city infrastructure can be used to pre-fill reporting forms at scale. If you work in gov-tech, would you prefer to integrate this into existing reporting workflows or use it as an analytics layer?

42 Comments

Comments from the original post on X (Twitter)

  • Wojciech Maj 🦋 @wojtekmaj.pl's profile picture

    @wojtekmaj91

    Cool! Two ideas: - Match them visually and/or read what they say - I reported one person responsible for 50+ graffiti cases, which gets treated more seriously. - ...which brings me to the 2nd idea: Try to detect whether it's on a monument, because then it's treated as a crime.

    10 likes

  • Stas Kulesh's profile picture

    @staskulesh

    Working on it

    2 likes

  • Kaizen po olsztyńsku's profile picture

    @poolsztynsku

    Interesting project. Will you make it available on GitHub?🤔

    3 likes

  • Stas Kulesh's profile picture

    @staskulesh

    Will do, let me clean it up a bit

    1 like

  • Stas Kulesh's profile picture

    @staskulesh

    Trying to identify the origin of the graffiti. Will need to add threshold for the coordinates, too many duplicates. > Match them visually or read the text. I reported one person for 50+ graffiti cases, which is treated more seriously. @wojtekmaj91 's idea.

    3 likes

  • Stas Kulesh's profile picture

    @staskulesh

    I have open-sourced my graffiti finder; it should work for any city.

    2 likes

  • zubec's profile picture

    @MaxZub3

    @KamilStanuch You’re going to invoke protests against street imaginary on Józefa

    2 likes

  • Maciek's profile picture

    @gnutekm

    Pretty cool!

    2 likes

  • bistro's profile picture

    @VisionBaseApppp

    Creative project and helpfull to keep Kraków clean.

    2 likes

  • nox player74's profile picture

    @NPlayer748708

    Bazgroły powinny być zamalowywane następnego dnia po ich pojawieniu się przez dozorcę obiektu. Im dłużej nikt nic nie robi - tym bardziej rozzuchwala to wandali.

    2 likes

  • Piotr Jarecki, MD's profile picture

    @PiotrJarecki

    Really good job, impressive! Currently gov lacks money. Use geo imaging to detect garages/additional buildings and report for taxation. The outrage... The money ! AI can clog the current gov systems rapidly everywhere.

    1 like

  • Stas Kulesh's profile picture

    @staskulesh

    Clogging is my concern. I have 300+ reports ready to send to the city council automatically, but I am unsure if the images are up-to-date. If I build a Waze-like crowdsourced reporting app, I am unsure how to distribute it and gain enough users.

  • Piotr Jarecki, MD's profile picture

    @PiotrJarecki

    I really doubt city council does much about it. It's a good idea with a lack of resources to fix. Most often fixing these is up to the owner of the building themselves... It's sad but so far the most effective way to counter these in most places are pre-planned pro graffiti

  • Stas Kulesh's profile picture

    @staskulesh

    Other countries have dealt with this problem

  • Jan · HappyDesign's profile picture

    @happydesign_

    @KamilStanuch Wow 😮

    1 like

  • 𝗠𝗶𝗰𝗵𝗮𝗲𝗹 𝗞𝗼𝘃𝗲's profile picture

    @michael_kove

    City should incentivize crowdsourcing. Report broken things, graffiti or potholes - get points. Collect points - win shit or exchange points for coupons, discounts, public transit passes, tickets to events. Any city. This can be part of ingestion for your platform. This should be well coordinated efforts with local businesses (those can get tax write offs for participating). If they report already reported issue - it should notify them or show map if "Tracking" issues. There isn't really Gov tech in Kraków and Warsaw has very limited tech department. This needs to be a 3rd party commercial service app for government (contract). And you'd have to do the leg work marketing and managing it for them. Basically SaS for Gov (Service as Software). Viable business model.

    1 like

  • Stas Kulesh's profile picture

    @staskulesh

    The problem is that we can discuss it here as much as we want, but the city won't notice or act. I'm keen to build an app and share the tech, so the mKrakow app includes this feature.

    1 like

  • 𝗠𝗶𝗰𝗵𝗮𝗲𝗹 𝗞𝗼𝘃𝗲's profile picture

    @michael_kove

    Do you speak Polish? This is something you'll have to do some outreach to relevant people in city planning. Also pass elaborate due diligent process and jump through vendor hoops. Probably easier to push it to people first. But residents would need some form of incentive to partake

  • Mariusz Jakubowski's profile picture

    @apptano

    Bardzo fajne! A próbowałeś LocateAnything od NVidii? Wygląda na szybsze?

    1 like

  • Stas Kulesh's profile picture

    @staskulesh

    I'm on MBP, decided to stick to SAM3 + CLIP for now.

    2 likes