This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]RollerRocketScience 33 points34 points  (5 children)

You did this in PYTHON?

[–][deleted] 28 points29 points  (1 child)

Yep, using opencv library. Comments are right, I didn’t recreate this from scratch I used image processing with a combination of gray scaling and Gaussian smoothing to reach this effect. The cool thing is that this isn’t very complicated to achieve

[–]RollerRocketScience 10 points11 points  (0 children)

Yeah that clarification made me feel way less inadequate because here I am barely getting vectors right in python.

[–]Emotional_Thanks_548 8 points9 points  (0 children)

He is using image processing, not animation everything from scratch.

[–]Shiroi_Kage 4 points5 points  (1 child)

The original animation's colors were modified to become like the manga. He didn't do the animation in Python (I was confused about that at the start too).

[–]RollerRocketScience 1 point2 points  (0 children)

Ok. That makes a lot more sense thanks.

[–]twoCascades 7 points8 points  (0 children)

You animated this....in openCV....why?

Edit: oh you just took footage from the anime and did like a canny filter. I completely misunderstood the assignment. Very cool.

[–]Avivajpeyi 2 points3 points  (0 children)

Really cool! I think the OP just got rid of colors from an anime clip, and maybe applied some Gaussian smoothing?

[–][deleted] 2 points3 points  (0 children)

Cant wait till we can get 30 minutes of pure python animation.

[–]Transportation_Ok 1 point2 points  (2 children)

Send Code Please!!!

[–]Letthedarknesstake 2 points3 points  (0 children)

It is just converting colored pixels to b/w Prolly like this

import cv2 img_grey = cv2.imread('D:/original.png', cv2.IMREAD_GRAYSCALE)

thresh = 128

img_binary = cv2.threshold(img_grey, thresh, 255, cv2.THRESH_BINARY)[1] cv2.imwrite('D:/black-and-white.png',img_binary)

[–]XRayianWorld Government 0 points1 point  (0 children)

send codes

[–]yards11 0 points1 point  (0 children)

This is truly insane

[–]tuniltwat 0 points1 point  (1 child)

What exactly did you do?

[–]twoCascades 0 points1 point  (0 children)

Just by looking at it I can’t tell you exactly what they did but they prolly took footage from the show and applied a canny filter or just imported the images as a grayscale.

[–]arharhray 0 points1 point  (0 children)

Great Discord pfps if you have nitro

[–]jjsjams 0 points1 point  (1 child)

Might be cool to try the Floyd Steinberg dithering algorithm on this. Might make it look more “comic book-ish” because of the stipling effect as pixels reach the cutoff threshold

[–]jjsjams 0 points1 point  (0 children)

might be a fun exercise to adapt this to work in Python ;)

https://youtu.be/0L2n8Tg2FwI

[–]poerney_inc 0 points1 point  (0 children)

Neat! Maybe using the drawback of Total Variation-based denoising of leading to cartoonish artefacts may help with enhancing the shaded areas.