ciromattia / kcc

KCC (a.k.a. Kindle Comic Converter) is a comic and manga converter for ebook readers.
ISC License
2.75k stars 220 forks source link

CLI Webtoon splitting is skipping key parts and dialog, when image backdrop is too dark #453

Open paolovinoya opened 1 year ago

paolovinoya commented 1 year ago

I usually try to prepare vertical comics for viewing through the Kindle. So it's only natural that I would pick the webtoon processing mode option -w, --webtoon Webtoon processing mode

I discovered that the output result of some of the chapters that I convert were not smartly cut.

The comic had several vertically long strips,

Exhibit A

approximately 6 or 7 long images with multiple speech balloons.

Exhibit B

The end result was a mobi file with NO images within the black region and cutting back, only at the hourglass, at the end.

It managed to cut and display the lighter part of one strip with transition to black:

image

However the next page indicated that the process skipped out a lot of strips before - (skips a lot of black background) and ended up showing only the hourglass at the end.

image

Is there any option or feature where we can tweak the detection threshold of the images? Maybe disable or display the strip with a bit of overlapping at top or bottom parts of the cut image?

paolovinoya commented 1 year ago

Updating this further, I managed to generate the debug output from kcc-c2p and the can see the detection mapped on where the white background is, but the black background comes undetected.

image