All Projects → geometalab → Osmdeepod

geometalab / Osmdeepod

Licence: mit
OSMDeepOD - OpenStreetMap (OSM) and Machine Learning (Deep Learning) based Object Detection from Aerial Imagery (Formerly also known as "OSM-Crosswalk-Detection").

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Osmdeepod

Cyclosm Cartocss Style
Cycle oriented CartoCSS style.
Stars: ✭ 109 (-37.36%)
Mutual labels:  osm, openstreetmap
Atlas
OSM in memory
Stars: ✭ 172 (-1.15%)
Mutual labels:  osm, openstreetmap
Cities
Poly files for cities, which can be used to create OSM files out of larger regions
Stars: ✭ 115 (-33.91%)
Mutual labels:  osm, openstreetmap
Attention Gated Networks
Use of Attention Gates in a Convolutional Neural Network / Medical Image Classification and Segmentation
Stars: ✭ 1,237 (+610.92%)
Mutual labels:  convolutional-neural-networks, image-segmentation
Awesome Openstreetmap
😎 Curated list of awesome OpenSteetMap projects
Stars: ✭ 157 (-9.77%)
Mutual labels:  osm, openstreetmap
Osmic
CC0 SVG Map Icons, mirror of repo on Gitlab
Stars: ✭ 89 (-48.85%)
Mutual labels:  osm, openstreetmap
Hyperdensenet
This repository contains the code of HyperDenseNet, a hyper-densely connected CNN to segment medical images in multi-modal image scenarios.
Stars: ✭ 124 (-28.74%)
Mutual labels:  convolutional-neural-networks, image-segmentation
Osm4j Core
Core components of osm4j
Stars: ✭ 16 (-90.8%)
Mutual labels:  osm, openstreetmap
Osm
General purpose library for reading, writing and working with OpenStreetMap data
Stars: ✭ 153 (-12.07%)
Mutual labels:  osm, openstreetmap
Streetcomplete
Easy to use OpenStreetMap editor for Android
Stars: ✭ 2,456 (+1311.49%)
Mutual labels:  openstreetmap, osm
Wbc segmentaion
White Blood Cell Image Segmentation Using Deep Convolution Neural Networks
Stars: ✭ 11 (-93.68%)
Mutual labels:  convolutional-neural-networks, image-segmentation
Aphotomanager
Manage local photos on Android: gallery, geotag with photomap, privacy, tags, find, sort, view, copy, send, ... .
Stars: ✭ 164 (-5.75%)
Mutual labels:  osm, openstreetmap
Osm2geojson
Convert OSM and Overpass JSON to GeoJSON
Stars: ✭ 25 (-85.63%)
Mutual labels:  osm, openstreetmap
Quickosm
QGIS plugin to fetch OSM data with the Overpass API
Stars: ✭ 91 (-47.7%)
Mutual labels:  osm, openstreetmap
Osmproxy
OpenStreetMap tile proxy for REDAXO
Stars: ✭ 17 (-90.23%)
Mutual labels:  osm, openstreetmap
Osmplotr
Data visualisation using OpenStreetMap objects
Stars: ✭ 122 (-29.89%)
Mutual labels:  osm, openstreetmap
Osrm Backend
Open Source Routing Machine - C++ backend
Stars: ✭ 4,716 (+2610.34%)
Mutual labels:  osm, openstreetmap
Blender Osm
One click download and import of OpenStreetMap and terrain for Blender! Global coverage! Source code is in the branch 'release'.
Stars: ✭ 588 (+237.93%)
Mutual labels:  osm, openstreetmap
Livianet
This repository contains the code of LiviaNET, a 3D fully convolutional neural network that was employed in our work: "3D fully convolutional networks for subcortical segmentation in MRI: A large-scale study"
Stars: ✭ 143 (-17.82%)
Mutual labels:  convolutional-neural-networks, image-segmentation
Libosmscout
Libosmscout is a C++ library for offline map rendering, routing and location lookup based on OpenStreetMap data
Stars: ✭ 159 (-8.62%)
Mutual labels:  osm, openstreetmap

MIT License Codacy Badge Build Status Stories in Ready

OSMDeepOD - OSM and Deep Learning based Object Detection from Aerial Imagery

OSMDeepOD is a project about object detection from aerial imagery using open data from OpenStreetMap (OSM). The project uses the open source software library TensorFlow, with a retrained Inception V3 neuronal network.

This work started as part of a semester thesis autumn 2015 at Geometa Lab, University of Applied Sciences Rapperswil (HSR). See Twitter hashtag #OSMDeepOD for news.

Material and Publications

Overview

Detection-Example1

Process

Detection-Example1

Getting Started

The simplest way to use the detection process is to clone the repository and build/start the docker container.

git clone https://github.com/geometalab/OSMDeepOD.git
cd OSMDeepOD/docker/
sudo docker build . -t osmdeepod
sudo docker run -it --name osmdeepod -v ./:/objects osmdeepod bash

After the previous shell commands you have started a standalone instance of OSMDeepOD and you are connected to it. If you have a nvida GPU and nvidia-docker installed, you could use the "nvidia-docker" command to run the container for automatically usage of the GPU1.

To start the detection process use the src/role/main.py2 script.

  1. Use the manger option to select the detection area and start the detection with the --standalone parameter.
python3 main.py --config ./config.ini --standalone manager 9.345101 47.090794 9.355947 47.097288

After the detection process has finished a "detected_nodes.json" file will appear with the results. If you like to use OSMDeepOD in a more parallel and distributed way have a look at the https://github.com/geometalab/OSMDeepOD-Visualize repository. There you have got the ability to use redis as a message queue and you can run many OSMDeepOD instances as workers.

Configuration

The configuration works with an INI file. The file looks like the following:

[DETECTION]
Network = /path/to/the/trained/convnet
Labels = /path/to/the/label/file/of/the/convnet
Barrier = 0.99
Word = crosswalk
Key = highway
Value = crossing
ZoomLevel = 19
Compare = yes
Orthofoto = other
FollowStreets = yes
StepWidth = 0.66

[REDIS]
Server = 127.0.0.1
Port = 40001
Password = crosswalks

[JOB]
BboxSize = 2000
Timeout = 5400

Some hints to the config file:

  • "Word" is the key value of the labels file
  • "Key" and "Value" builds the search Tag for OSM
  • "Compare" means compared to OSM tagged Nodes
  • "StepWidth" regulates the distance between the cut out images
  • The section REDIS should be self explanatory, this is not necessary in the standalone mode
  • "BboxSize" is the size in meters of the split large Bbox
  • "Timeout" after the expired time the job does fail

Own Orthofotos

To use your own Orthofotos you have to do the following steps:

  1. Add a new directory to src/data/orthofoto
  2. Add a new module to the directory with the name: <your_new_directory>_api.py
  3. Create a class in the module with the name: <Your_new_directory>Api (First letter needs to be uppercase)
  4. Implement the function def get_image(self, bbox): and returns a pillow image of the bbox
  5. After that you can use your api with the parameter --orthofots <your_new_directory>

If you have problems with the implementation have a look at the wms or other example.

Dataset

During this work, we have collected our own dataset with swiss crosswalks and non-crosswalks. The pictures have a size of 50x50 pixels and are available by request.

Crosswalk Examples

Picture 3: Crosswalk Examples

No-Crosswalk Examples

Picture 4: No Crosswalk Examples

Prerequisites

  • Python

    At the moment, we support python 3.5

  • Docker

    In order to use volumes, I recommend using docker >= 1.9.x

  • Bounding Box of area to analyze

    To start the extraction of crosswalks within a given area, the bounding box of this area is required as arguments for the manager. To get the bounding box the desired area, you can use https://www.openstreetmap.org/export to select the area and copy paste the corresponding coordinates. Use the values in the following order when used as positional arguments to manager: left bottom right top

Links

Notes

  • 1: The crosswalk_detection container is based on the nvidia/cuda:7.5-cudnn4-devel-ubuntu14.04 image, may you have to change the base image for your GPU.
  • 2: For more information about the main.py use the -h option.

Keywords

Big Data; Data Science; Data Engineering; Machine Learning; Artificial Intelligence; Neuronal Nets; Imagery; Volunteered Geographic Information; Crowdsourcing; Geographic Information Systems; Infrastructure; Parallel Programming.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].