https://github.com/mrl-amrl/imglabaug
Image augmentation for dlib's imglab XML files.
https://github.com/mrl-amrl/imglabaug
amrl-vision data-augmentation dlib imglab
Last synced: 3 months ago
JSON representation
Image augmentation for dlib's imglab XML files.
- Host: GitHub
- URL: https://github.com/mrl-amrl/imglabaug
- Owner: mrl-amrl
- License: mit
- Created: 2018-11-12T08:01:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T10:11:47.000Z (over 6 years ago)
- Last Synced: 2025-01-11T09:33:06.997Z (5 months ago)
- Topics: amrl-vision, data-augmentation, dlib, imglab
- Language: Python
- Size: 268 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imglab + aug = imglabaug
> Image augmentation for dlib's imglab XML files.[](https://pypi.python.org/pypi/ansicolortags/)
[](https://www.python.org/)### Installation
Provided you already have `imutils`, `opencv` already installed, the `imglabaug` package is completely pip-installable:
```
$ pip install imglabaug
```### Examples
```python
from imglabaug import Augmentationaugmentation = Augmentation(
output_directory='somewhere !',
max_blur_size=9,
min_blur_size=1,
min_move_offset_x=-10,
max_move_offset_x=10,
min_move_offset_y=-10,
max_move_offset_y=10,
min_rotation_angle=-10,
max_rotation_angle=10,
iterations_length=20,
)augmentation.generate('xml file ...')
augmentation.save()
```### Tests
```bash
$ sudo pip install nose
$ python2.7 -m nose -v --nocapture
```---
[](https://lbesson.mit-license.org/)
[](https://www.qiau.ac.ir/)