Extracting chinese subtitle from video

940 views Asked by At

Given a video like: https://www.youtube.com/watch?v=cNHeiIM5xZI

Is there any library or tool that supports extraction of subtitle?

Extraction of subtitle in sequence would be sufficient, it would be plus if it can extracts the timestamp as well.

1

There are 1 answers

0
Adi Shavit On

You can use the Stroke Width Transform to find the bounding box of all (horizontal) text in each frame. If the position and size are suitable then you can assume it is the subtitles.
The processed frame number will give you the time-stamp relative to the beginning.