Git Product home page Git Product logo

machinevisionbeans / streetdensityai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lironbdolah/streetdensityai

0.0 0.0 0.0 24.44 MB

This YoloV5 based model is fit to detect people and different types of land vehicles, and displaying their density on a fitted map, according to their coordinates and detected labels.

License: MIT License

Python 98.97% Shell 0.73% Dockerfile 0.30%

streetdensityai's Introduction

Street Density ai

Licence Issues last commit

This YoloV5 based model is fit to detect people and different types of land vehicles,
and displaying their density on a fitted map, according to their coordinates and detected labels.

Features:

  • Multiple Objects Detection
  • Trained on 3,000 street view Images
  • Exports Fitted and adjustable Maps
  • Calculates a density score according to image detected labels

Requierments:

Usage:

Object Detection:

identifies people and land vehicles in your images:

python src/yolov5/detect.py --source  <path to images folder> --project <output path>
--name <output folder name> --save-txt --conf 0.3

running this action will save your images with the anchor boxes around objects that the model found:

(if you don't want to save the labeled images, just add --nosave to the command above) in addition, it will save the detected object labels for each image.

Plotting a fitted map:

display the density on a fitted map (requires a .csv file)

python src/steetdensityai.py --labels <labels path that were created after the images detection>
--coordinates <path-to-csv/file.csv>  --images <path to images folder>
--img-per-cord 1 --output <output path>

notes

  • csv requires 2 columns to display the coordinates named: "longitude" and "latitude"
  • the code asumes that the coordinates are sorted by the image's name.
  • If you have multiple images per coordinate (for example if you have a 360 view, divided to 4 images), you can set the number of images per coordinate with : --img-per-cord <integer of images per coordinate >

Simple Example:

# detect objects: 
python src/yolov5/detect.py --source example/images --project example/images --name detected_images --save-txt --conf 0.4


# creates a label folder in example/images/detected_images named "labels"
# saves the images with the newly found objects anchor, and each image labels 


#plot desnity map
python src/steetdensityai.py --labels example/images/detected_images/labels --coordinates example/coordinates.csv  --images example/images --img-per-cord 4 --output example/images

 # will save the map.html file to example/images

streetdensityai's People

Contributors

lironbdolah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.