williamfzc / stagesepx

detect stages in video automatically
MIT License
434 stars 125 forks source link

hook in classifier & cutter #22

Closed williamfzc closed 5 years ago

williamfzc commented 5 years ago

在分类时可以同时对每一帧进行自定义操作,例如检测视频中是否包含黑白屏。需要兼容cutter与classifier。

可能的形式:

class YourHook(CustomHook):
    # do something ...
    # and result collection ...

hook = YourHook()
cutter.add_hook(hook)
cutter.cut()
result = hook.get_result()
williamfzc commented 5 years ago

需要考虑多hook及顺序