Skip to content

Commit

Permalink
Allow 3-line subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed Mar 4, 2017
1 parent 003d541 commit 90d29b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions subtitle_ocr/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ impl OcrContext {
trace_pixmap!(&bitmap, "{}_{:04}_binarized.png", &self.file_stem, id);
let (segmented, segments) = segment(&bitmap)?;
debug_pixmap!(&segmented, "{}_{:04}_segmented.png", &self.file_stem, id);
let lines = group_into_lines(pixmap.height(), segments)?;
if lines.len() > 2 {
warn!("3-line subtitle");
}
let _lines = group_into_lines(pixmap.height(), segments)?;
Ok(())
}
}

0 comments on commit 90d29b7

Please sign in to comment.