Giter Site home page Giter Site logo

shuwang127 / voc_annotation Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 155 KB

This is a VOC-like Database Annotation Program.

License: GNU General Public License v2.0

MATLAB 32.80% Shell 0.16% C++ 33.21% Makefile 0.39% C 33.43%
voc-dataset database-annotation matlab

voc_annotation's Introduction

VOC_Annotation

This is a VOC-like Database Annotation Program.

Introduction

VOC_Annotation is a Matlab-based Program which is used to make annotations for PASCAL VOC-like database, such as the database built by ourselves.

This program is designed and written by 5HU W@N9 in Dec 2015.

License

VOC_Annotation is released under the GPL v2 License (refer to the LICENSE file for details).

Contents

  1. File Structure
  2. Requirements
  3. Program List
  4. Usage

File_Structure

  1. JPEGImages - This folder is used to store the original images which are saved as JPEG format.
  2. Annotations - This folder is used to store the annotation files of original images which are saved as .xml format.
  3. GTImages - This folder is used to store the ground truth images that make the annotation files visiable.
  4. ImageSet - This folder is used to store the image list file specifying which images are used in the training process.
  5. Segmentation - This folder is used to store the segmentation images which are segmented from the original images.
  6. SelectiveSearchData - This folder is used to store the selective search results of original images.
  7. Program - This folder is used to store all program files, and you can see the Program List for more details.

Note The Database only contains JPEGImages/, Annotations/, ImageSet/ and SelectiveSearchData/.

Requirements

  1. Matlab R2014a or higher version
  2. g++ (optional for part of programs)
  3. OpenCV 3.0+ (optional for part of programs)
  4. gtk-config (optional for part of programs)

Program_List

  1. preproc.cpp - used to convert the original video into the dividual video frames which are saved in _cache/.
  2. preproc.m - used to pre-process the video frames into the original images saved in JPEGImages/ such as cut, resize.
  3. demo.m - used to make annotations for original images, generating the .xml files, GT images and Segmentation images.
  4. makelist.m - aim to make a train image list which is saved in ImageSet/Main/.
  5. demo_proposals.m - used to make proposals for original images which will saved in SelectiveSearchData/.

Usage

  1. preproc.cpp

Type the following command to compile preproc.cpp :

$ sudo chmod a+x compile.sh
$ ./compile.sh 

This command will make the folder _cache/ and generate the executable file preproc.

Execute the preproc program to convert the video into dividual video frames

$ ./preproc PATH_TO_THE_VIDEO
  1. preproc.m

Open Matlab R2014a and run this file.

$ matlab -nodesktop -nosplash
>> preproc

Once you finish running this program, you can delete the _cache folder safely.

$ rm -r _cache
  1. demo.m

This part of illustration is written in Program/README.txt which is written by Chinese language.

You can check this file and see what you should do in details.

  1. makelist.m

Open Matlab R2014a and run this file.

$ matlab -nodesktop -nosplash
>> makelist

And you can see the imagelist.txt in ImageSet/Main/.

  1. demo_proposals.m

Open Matlab R2014a and run this file.

$ matlab -nodesktop -nosplash
>> demo_proposals

And you can see the car_2015_train.mat in SelectiveSearchData/.

voc_annotation's People

Contributors

shuwang127 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

okhiwell

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.