Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿฆ“ AI-powered OpenStreetMap tool for importing zebra crossings

AI ๋ฐ ๋จธ์‹ ๋Ÿฌ๋‹

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

osm-yolo-crossings

Python version Project license Support my work GitHub repo stars

๐Ÿฆ“ AI-powered OpenStreetMap tool for importing zebra crossings.

Project logo with YOLO text

๐Ÿ’ก How it works

  1. Query OSM: Finds populated areas on OpenStreetMap (OSM).
  2. Fetch Imagery: Downloads orthophoto imagery for all roads in the query area.
  3. YOLOv8 Model: Utilizes YOLOv8 for regions of interest detection.
  4. MobileNetV3 Model: Applies binary classification to validate detected regions.
  5. Data Integrity: Checks against historical OSM data to avoid duplicates.
  6. OSM Import: Automatically imports new crossings to OSM.

๐Ÿ› ๏ธ Local Development

Prerequisites

Before diving into development, make sure you have installed the โ„๏ธ Nix package manager. Nix ensures seamless dependency management and a reproducible environment.

โ ฟ CUDA (NVIDIA GPU-mode)

Ideal for model development and training. The application's primary functionality is optimized for CPU-mode.

TensorRT, a proprietary high-performance deep learning inference library by NVIDIA, is used by default. It can be safely disabled by commenting out cudaPackages.tensorrt in cuda-shell.nix.

# Install dependencies and packages
nix-shell cuda-shell.nix

# Configure .env file
cp .env.example .env

# Start up the database
dev-start

# Done, now you can run the application
python main.py

โŠก CPU-mode

This mode is recommended for typical usage and production runs.

# Install dependencies and packages
nix-shell

# Configure .env file
cp .env.example .env

# Start up the database
dev-start

# Done, now you can run the application
python main.py

๐Ÿ“ฆ Deployment

Here is an example Docker Compose configuration. Note that you will need to build the Docker image first with nix-build (see default.nix for options).

version: "3"
services:
  db:
    image: mongo
    command: mongod --bind_ip_all
    restart: unless-stopped

    volumes:
      - ./data/db:/data/db

  app:
    image: osm-yolo-crossings
    restart: unless-stopped

    environment:
      CPU_COUNT: 16
      MAX_TASKS_PER_CHILD: 300
      OSM_USERNAME: CHANGEME
      OSM_PASSWORD: CHANGEME
      MONGO_URL: mongodb://db:27017

    volumes:
      - ./data/app:/app/data
      - ./data/keras:/.keras

๐ŸŒŸ Special Thanks

Special thanks to syntex for contributing to the dataset.

โš“ References

Community discussion

https://community.openstreetmap.org/t/automatyczne-znakowanie-przejsc-dla-pieszych-oraz-przejazdow-rowerowych/101590/

Data usage terms

https://www.geoportal.gov.pl/regulamin

https://wiki.openstreetmap.org/wiki/Pl:Geoportal.gov.pl

Footer

Contact me

https://monicz.dev/#get-in-touch

Support my work

https://monicz.dev/#support-my-work

License

This project is licensed under the GNU Affero General Public License v3.0.

The complete license text can be accessed in the repository at LICENSE.

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ