Code Monkey home page Code Monkey logo

segnet_ar_marker's Introduction

Semantic segmentation of AR-Marker using SegNet

With this project I tried to segment AR markers, even if they are not detectable. The network is based on SegNet. The publication is SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation.

After a training on synthetical data, the network was able to provide an acceptable result on unseen synthetic data with a IoU of 79,56. But the result on real images is not very impressive, as the following examples shows. Result Even if the project does not meet the expectations, the implementation can be used for further projects.

How To Use It

There are two ways to train the net.

Train On Synthetic Data

On the one hand with synthetic data. To do this, each second iteration is switched between the following two samples. Where one is generated completely synthetically and the other with a random background image from ./bg. Data-Generator For the above example the training was started as follows:

python3 train_synthetic_data.py -i 150000 -bs 4 -APRILTAG_36h11

A list with all arguments can be seen with the -h parameter.

Train On Real Data

I have already tried to train SegNet on real data, but the generation of a enough large dataset was too time-consuming for me, so I don't have any results yet.

python3 train_real_data.py -i 150000 -bs 4 -dp ./train_dataset

A list with all arguments can be seen with the -h parameter.

If you want to try this, you can use the train_real_data.py script. However, a calibration for the camera is required, as done here.

Do Prediction

You can run a prection with the following command:

python3 predict.py -i ./train_dataset/0.jpg -o ./0_prediction.jpg

A list with all arguments can be seen with the -h parameter.

segnet_ar_marker's People

Contributors

stevencyb avatar

Watchers

 avatar  avatar  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.