Skip to content

Extract individual panels from comic strips with openCV

Notifications You must be signed in to change notification settings

guiszk/extractpanels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages