|
|
| (3 intermediate revisions by one other user not shown) |
| Line 17: |
Line 17: |
| * [https://github.com/cloud-annotations/training cloud annotations] | | * [https://github.com/cloud-annotations/training cloud annotations] |
| * [[Tracking Motion Detection]] this page is very much outdated since machine learning has become a thing | | * [[Tracking Motion Detection]] this page is very much outdated since machine learning has become a thing |
|
| |
|
| |
| === Auto_detecting_words_in_srt ===
| |
| [[File:guichu.txt]]
| |
|
| |
| #library srt link: https://github.com/cdown/srt
| |
| #pip install -U srt
| |
| #copy paste srt file as following(focus on the format at head and tail)
| |
| #it returns a sequence of subtitle classes object, contains index,time,contant usw.
| |
| #using for loop searching desired word in every object.content.
| |
| #it returns the time interval at the start and the end
| |
| #use srt.timedelta_to_srt_timestamp convert the time to normal one
| |