Giter Club home page Giter Club logo

barleynet's Introduction

barleynet

Detect barleys in an oat field!

Prerequisites

  • A computer running Ubuntu or Debian
  • A GPU with CUDA support
  • Drone images of barleys in a an oat field

Installation

You'll need Python's venv module. If you don't have it, install it using

sudo apt install python3-venv

Then, clone this repository and run the setup script.

git clone https://github.com/stefanrua/barleynet.git
cd barleynet
./setup.sh

Inference

  1. Put your images in the images/ directory
  2. Run ./detect-barleys.sh
  3. The model's predictions are in predictions.json

The predictions.json file is structured like this:

{
  "DJI_20210709135005_0049.JPG": [
    {
      "bbox": [
        125.98060607910156,
        489.400634765625,
        86.45993041992188,
        33.67889404296875
      ],
      "score": 0.9742675423622131
    },
    {
      "bbox": [
        188.53591918945312,
        450.1046142578125,
        72.26141357421875,
        19.381805419921875
      ],
      "score": 0.9708744883537292
    },
  ]
}

Visualization

To visualize the predictions for an image:

python3 draw.py DJI_20210709135005_0049.JPG

barleynet's People

Contributors

stefanrua avatar

Watchers

 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.