Extracts comic panels from comic pages.
numpy
opencv
from panelify import panels
comic_panels = panels(image)
panels()
will return a list of tuples containing co-ordinates of rectangles of each panel.
python3 panelify {filename-+.jpg} {start} {number of comics} {Show Comic}
Where filename will be the basename of image file with +
as the 3 digit tailing number.
start
is the number of first comic.
number of comics
number of comic pages to process.
show comic
whether to show detected panels [true | false]
Outputs of rects will be stored in panels.txt
file.
Example-
python3 panelify Watchmen-+.jpg 7 10 true
Currently only plain background colored panels can be detected, inline comic panels are not perfectly detected.