williamfzc / stagesepx

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

对range进行采样时尽量不选用边界帧 #37

Closed williamfzc closed 5 years ago

williamfzc commented 5 years ago
2019-08-22 15:16:27.751 | DEBUG    | stagesepx.cutter.cut_range:pick:102 - pick 5 frames from 50(0.8833333333333334) to 112(1.8833333333333333) on video ../demo.mp4
2019-08-22 15:16:28.407 | INFO     | stagesepx.cutter.cut_result:pick_and_save:284 - pick [50, 62, 75, 87, 100] in range <VideoCutRange [50-112] ssim=[1.0]>

首帧始终会被采样到。而对于稳定阶段而言,选择首帧是有风险的(可能它并没有彻底变化完毕,只是低于阈值)。尤其当采样张数较少时,它的权重会更大,从而导致效果不准确。