针对冲印的批量图像最大化裁剪小工具,使用YOLOv5+PyQt; 选择输入文件夹,输出文件夹,裁剪比例,裁剪方式后即可使用。 需要在models文件夹下放置自己训练好的人脸检测模型并命名为best。
markphoto.py 用于人工图像裁剪以创建验证集,可直接打包为exe发给你的摄影师朋友,让它帮你选出最佳裁剪框的位置,并生成csv用于计算iou,验证效果。iou.py在文件末尾已定义文件名称。
A PyQt-based image cropping system using YOLOv5 for face and person detection.
- Face & person detection (YOLOv5)
- Automatic image cropping
- PyQt GUI
- Supports exe packaging (PyInstaller)
- Python 3.8+
- PyTorch
- PyQt5
Model weights are not included. Please place your own .pt files under models/.