Giter Club home page Giter Club logo

preprocessdata's Introduction

Preprocess Data

1. Matlab

1-1 Main idea

  1. Annotate selected images (more details at 2-1);
  2. Read data from images and annotation xml files;
  3. Reorganize data structure;
  4. Save data into .mat files.

1-2 Usage

$ matlab
> cd matlab
> run img_anno.m
> run getData.m
> run checkData.m
> run splitData.m

2. Python

2-1 Main idea

  1. Select images every (step=)n pictures from source dir;
  2. Get all filenames under certain directory;
  3. Create same-name annotation xml file according to example xml annotation;
  4. Call GUI & annotate using mouse click.

2-2 File directory structure

./--data/----annotation/
  |       |--image/ #target dir
  |       |--validation/---annotation/ #validation dir
  |       |              `-image/
  |       `--rar/   #source dir
  |-python/--anno_img.py
  `-matlab/

2-3 Usage

organize data as above and run python script.

$ cd python/
$ python anno_img.py 

You can change selection-step & target-dir in script file as you like.

2-4 reimplementation using matlab

$ matlab
> cd matlab
> run img_anno.m

2-5 reimplementation with PyQt5 by wuchuan

preprocessdata's People

Watchers

ZhuChao avatar

Forkers

marc45

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.