photo_id_resizer

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 15 Imported by: 0

README

photo_id_resizer

Resize photo ID images using face recognition technology.

Binaries for Windows, MacOS, and Linux can be found on the Releases Page.

Description

The program is used to resize large photo ID images which reside in a source directory and save them into a different destination directory. If an image file does not need to be resized (eg it is already smaller than max height), then the file is simply copied from the source directory to the destination directory. When image resizing occurs, this content aware image resizing library is used with its face detection algorithm to avoid face deformation.

Usage


photo_id_resizer.exe: resize photo ID image files

  -a int
    	skip files older than X number of days. Ex: 0=do not skip any, 7=skip files older than a week
  -d string
    	destination directory
  -f string
    	path to 'facefinder' classification file (default: "facefinder")
  -h int
    	max image height
  -m string
    	regular expression to match files. Ex: jpg (default: "jpg|png")
  -s string
    	source directory
  -t int
    	number of files to process concurrently (default: # of CPU cores)
  -w int
    	max image width
  -x string
      regular expression to exclude files, precedes -m

Example

  • Copy jpg files from r:\photos to r:\resized resizing any photos that have a height greater than 500.
  • Process 10 files concurrently that are 30 days old or newer.
  • Use r:\facefinder for the classification file.
photo_id_resizer -s r:\photos -d r:\resized -f r:\facefinder -h 500 -m jpg -t 10 -a 30
Option Explanation
-s r:\photos source directory
-d r:\resized destination directory
-f r:\facefinder location of the 'facefinder' classification file
-h 500 resize file if height is greater than 500 pixels, otherwise, just copy image to destination
-m jpg match any file name containing 'jpg'; for case insensitive use: (?i)jpg
-t 10 process 10 images concurrently
-a 30 skip files older then 30 days

Acknowledgements

License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL