How to add watermarks to images via command line – Hopefully using Irfanview

I recommend using ImageMagick, which is open source and quite standard for manipulating images on the command line. Watermarking with an image is as simple as composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg With text, it’s a little more complicated but possible. Using the above command as an example, a Bash command for doing … Read more

White balance algorithm [closed]

GIMP apparently uses a very simple algorithm for automatic white balancing. http://docs.gimp.org/en/gimp-layer-white-balance.html The White Balance command automatically adjusts the colors of the active layer by stretching the Red, Green and Blue channels separately. To do this, it discards pixel colors at each end of the Red, Green and Blue histograms which are used by only … Read more

How to crop the internal area of a contour?

It is unclear in your question whether you want to actually crop out the information that is defined within the contour or mask out the information that isn’t relevant to the contour chosen. I’ll explore what to do in both situations. Masking out the information Assuming you ran cv2.findContours on your image, you will have … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)