Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extractpanels

Detect and extract panels from comic strips.

Basics

Uses openCV to detect squares in images.

To enhance detection, the following modifications are made:

Sharpen image with cv2.filter2D() sharp image

Threshold to get a binary image with cv2.threshold() threshold image

Perform morphological operations with cv2.morphologyEx() morph image

Finally, find countours with cv2.findContours() and filter by size with cv2.contourArea() countour image

Usage

First, install requirements with pip install -r requirements.txt

python extract.py <path to file or directory>

The extracted files will be placed in the extracted folder.

About

Extract individual panels from comic strips with openCV

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages