- Annotate selected images (more details at 2-1);
- Read data from images and annotation xml files;
- Reorganize data structure;
- Save data into .mat files.
$ matlab
> cd matlab
> run img_anno.m
> run getData.m
> run checkData.m
> run splitData.m
- Select images every (step=)n pictures from source dir;
- Get all filenames under certain directory;
- Create same-name annotation xml file according to example xml annotation;
- Call GUI & annotate using mouse click.
./--data/----annotation/
| |--image/ #target dir
| |--validation/---annotation/ #validation dir
| | `-image/
| `--rar/ #source dir
|-python/--anno_img.py
`-matlab/
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.
$ matlab
> cd matlab
> run img_anno.m