Skip to content
/ croyptool Public

A simple OpenCV and TF object detection API based script to aid with semiautomatic cropping of images containing faces.

Notifications You must be signed in to change notification settings

l4rz/croyptool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

croyptool

Croyptool is a simple OpenCV-based script that uses tensorflow object detection API to aid with semiautomatic cropping of images containing faces. Useful for StyleGAN experiments.

Example

Pre-trained model by aodiwei is employed for face detection.

Quick start

Install opencv, tensorflow and the usual suspects, then:

croyptool.py <source images dir> <cropped images dir>

While running,

space bar: accept suggested cropping, save cropped image
esc: reject and continue
q: reject and quit croytool

For scaling and squaring, use imagick:

for i in *.jpg; do convert $i -resize 1024x1024 ../resized/$i; done

for i in *.jpg; do convert $i -gravity center -background white -extent 1024x1024 ../squared/$i; done

About

A simple OpenCV and TF object detection API based script to aid with semiautomatic cropping of images containing faces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages