PDA

View Full Version : Detect Anime content ?


Dark-Cracker
10th July 2007, 18:00
Hi,

does someone have an idea for an algo to detect if a frame is an anime ? any tips is welcome, in avisynth or in algo.

I have try to compare the chroma beetween an movie and an anime content but without really success.

But an anime frame have some limited color used and more bright so i think there should have a way to detect if it's an anime content using some threshold and by analysing the colors.

So if anyone have some tips feel free to post them.

Thanks.
Bye.

Sirber
10th July 2007, 18:07
anime can be hard to detect. The drawing style and color style changed with ages, if we look at '80, '90 and '00 anime. Some has duller colors, some use CGI with extra details.

Zarxrax
10th July 2007, 21:16
While the overall frame in a lot of anime can have a ton of different colors and lots of detail, there are usually still parts with large areas of flat color.

I forget the name of it, but there is an avisynth filter designed for cleaning anime that looks for large areas of color. I don't know if it can be used in any way, but I would think that on average, anime would have more, and larger areas of solid color than a live action video. If you can somehow take the metrics from that filter, I think it could be used for detecting with a fairly good probability of accuracy.

Sirber
11th July 2007, 16:20
msmooth?

Zarxrax
11th July 2007, 22:51
Actually, I think this is the one I was thinking of: http://forum.doom9.org/showthread.php?t=99779

Looks like the links are all dead though.

Shinigami-Sama
11th July 2007, 23:51
Didn't Didee do that one?
I remember something about it being really good for older animations

foxyshadis
12th July 2007, 11:24
I thought I had the documentation backed up, looks like I don't. Hopefully someone like wilbert does, my existing scripts aren't enough to remember how to really use it. ^^;

If you just want to apply different filters to flat animated areas, msmooth with a lutxy would probably be the best choice. Anime can have a lot of high-detail areas that you don't want to smear away, as can other animation.

Dark-Cracker
12th July 2007, 14:20
Hi,

thank you for the answers, in fact i want to detect if the input source is anime or a *normal* movie. i think detecting the number of larges areas seems a good idear (a bit hard to code, but really a good idea). i am still searching so if anyone have an idea he is welcome.

Bye.

mitsubishi
12th July 2007, 14:38
It's probably a stupid idea, but one thought I had would be using a posterize effect and then seeing how much difference it made.

Dark-Cracker
12th July 2007, 16:48
i don't think it's a stupid idea, i will search in this way too :) thanks.

Sharktooth
13th July 2007, 16:01
anime and toons can be detected by taking into consideration the (number of duplicate frames) / (total frames) ratio...

Dark-Cracker
13th July 2007, 16:57
yes the number of dup could be used but this mean analysing more frame and the result could be messed depending of the framerate (there is often a lot of dups in a 60 fps input file).
But the idear is good and the dup filter of neuron2 could save the dups in a log file so perhaps analysing a few frames could be a good solution. thanks for the tips :)

Selur
14th July 2007, 15:18
@foxyshade: I thought I had the documentation backed up, looks like I don't.
the documantation of Cel Forground was copied into a post, see: http://forum.doom9.org/showthread.php?t=99778