This mini library detects circles in images using Circle Hough Transform (CHT), crops them out, and saves them. It also reports ratio of a specified color range to the absolute color range along specified color channel.
Dependencies (with pip installation commands):
- python 3
- numpy (
pip install numpy
) - cv2 (
pip install opencv-python
) - PIL (
pip install Pillow
)
To run:
- Edit
config.json
- Navigate to appropirate directory, and execute
python crop_pic.py -config config.json
in command line