Image processing

Image processing
Watercolor painting like images converted by “stable diffusion”

1-hour free courses are provided on the deeplearning ai site, so tried some. (the link is here. you can learn LLMs also) Among them, “How Diffusion Models Work” was awesome for me. (jupyter notebooks can be downloaded also!) I learned about the name of “stable diffusion” for the first time in that course and immediately […]

Read more
Image processing
Creating an illustration like image from photos - part 2

Last time, I used K-means clustering to do dimensionality reduction of images to convert photos to images like Eizin Suzuki’s illustration. The converted images look like an illustration, but the color tone was very dark and it was far from the pop flavor art that the illustrator draws. In K-means, the centroids of clusters are […]

Read more
Image processing
Creating an illustration like image from photos

In the 1980s, when I became a company employee from a university student, the illustration drawn by Eizin Suzuki were beautiful and very popular in Japan. HERE is the link to Eizin Suzuki's official site. His illustration are so impressive that I often want to turn photos taken by myself into the pictures like his […]

Read more
Image processing
GIF animation during NST transaction

Using Python, GIF animations can be created with very short code. I tested it with plush toys. The sample code is as follows. Created a folder named “input_image” in the same working folder and put frame-by-frame photos there, it is easy to create GIF animations. I also superimposed some “text” information on the images. Previously, […]

Read more
Image processing
Generation of watercolor-like paintings by NST

Last time, I used brightness intensity as a threshold to extract flowers, leaves, and stems from a cosmos flower photo. This time, I applied watercolor painting style to this photo using Neural Style Transfer (NST). I used the short code below to reverse left side right of the content image, to make the direction same […]

Read more
Image processing
Image area selection by intensity (code included)

I went Fujiwara Palace ruins the other day as I heard a large cosmos flower field appears during autumn. I could take nice photos of cosmos flowers, and thought I'd try to make it into a watercolor painting like the following free material, by computing. Target: watercolor painting of cosmos flowers (the picture below is […]

Read more
Image processing
CartoonGAN

One or two years ago, I tried CartoonGAN to convert photos into anime like pictures. “GAN” is an abbreviation for “Generative Adversarial Network”, a deep learning technology that learns features from prepared images and generates new pseudo images. When I saw my recent photos of black dragonflies, I wondered what would happen to them, then […]

Read more
Image processing
Simple image cropping code (code included)

2022-09-09 When I started building a website, the first thing I had to do was to crop photo images many times. From a 6000 x 4000 pixel photo, I had to cut out a long rectangle image in 1900 x 600 pixels for example. I tried to do this with MS Windows default paint software […]

Read more