Automated Cropping of Large Image Filesets with Python
DOI:
https://doi.org/10.31224/3754Keywords:
Digital image processing, Autocropping, PythonAbstract
Autocropping of digital images offer an opportunity to both eliminate waste outside the region of interest and also to save on storage space for data. While work is ongoing on utilising machine learning techniques to autocrop images, the accuracy and repeatability of these techniques continues to pose challenges. This technical note describes a simple algorithm that can be used to autocrop large image filesets according to a pre-defined cropping criteria and is then is programmed using Python. The program is tested on two differing filesets and results are quantified in terms of storage space reduction. The results show that significant improvements in terms of the region of interest and in storage requirements can be attained with a simple approach.
Downloads
Additional Files
Posted
License
Copyright (c) 2024 Thomas O'Brien
![Creative Commons License](http://i.creativecommons.org/l/by/4.0/88x31.png)
This work is licensed under a Creative Commons Attribution 4.0 International License.