Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 753 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 753 Bytes

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.