Little tool to crop specified areas in images and save them as jpg files.
Examples and expected directories form are available in ImageCutter/data directory.
Example XML:
<annotation>
<filename>test.jpg</filename>
<object>
<name>object_type</name>
<bndbox>
<xmin>1</xmin>
<ymin>2</ymin>
<xmax>3</xmax>
<ymax>4</ymax>
</bndbox>
</object>
</annotation>
Original files include more fields, but as those are not necessary to crop out desired areas I do not parse them and do not include in this example.
Execution root is in src/app.py
.
Before running it make sure you have installed all needed packages (see requirements.txt
)
Please remember that this program assumes certain directory structure (see data
directory)