Skip to content

Deep Learning of Comic Strips of XKCD to extract text

Notifications You must be signed in to change notification settings

johncava/deep_xkcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deep_xkcd

Deep Learning of Comic Strips of XKCD to extract text

Dataset

Images from XKCD, and transcript text scraped from ExplainXKCD

Method

OpenCV was used to manually label regions of text in 18 images. Out of many trial and errors, the following is the loss of the best model trained on the images for 30 epochs.

alt text

Phase 0: Preprocess Image into a 512 x 512 image and make it be grayscaled

alt text

Phase 1: Use trained model to predict areas of text

alt text

Phase 2: Use iterative graph search in order to find the top left and bottom right bounding regions to extract

alt text

This can then be further used to then mask the text from the original comic image

alt text

Future/In Progress

  1. Train a CNN-LSTM model to "caption" extracted text into a transcript.
  2. Manual label characters as well, and find a way to relate characters to the text they said.
  3. Have more labeled images (>100)

About

Deep Learning of Comic Strips of XKCD to extract text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published