Extracting chinese subtitle from video

983 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 best solutions below

0
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.