Skip to content

Jugran/panelify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panelify

Extracts comic panels from comic pages.

Requirements

numpy
opencv

Usage

In code

  from panelify import panels
  comic_panels = panels(image)

panels() will return a list of tuples containing co-ordinates of rectangles of each panel.

As script (batch mode)

  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

Limitations

Currently only plain background colored panels can be detected, inline comic panels are not perfectly detected.


About

Extracts comic panels from comic pages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages