[go: up one dir, main page]

Skip to content

An script to automatically sign my photos in the best location

License

Notifications You must be signed in to change notification settings

cmolinaord/photo_signature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photo_signature

A Python/OpenCV script that automatically puts a watermark or signature in the best corner, taking into account its brightness and contrast.

The code automatically runs over a bunch of photographs to overlay a semitransparent image in the corner of a larger image. The algorithm gives punctuation to each corner in terms of brightness and contrast in order to increase the readability of the watermark. Additionally, if the background is dark, the watermark is printed in white, and the other way around.

In this example image it can be seen how the algorithm selected the top-right corner of the image because it is the smoothest in terms of contrast, and according to the light brightness, the signature was printed in dark gray.

Carlos Molina, CC BY-SA 4.0

About

An script to automatically sign my photos in the best location

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages