typos
This commit is contained in:
parent
eff73f11fe
commit
212f1feaef
1 changed files with 3 additions and 3 deletions
|
@ -396,15 +396,15 @@ class Timelines():
|
|||
is_cut = False
|
||||
self.previous_distance = 0
|
||||
else:
|
||||
if self.short_cut and frame_i - self.short_cut > 2:
|
||||
if self.short_cut and self.frame_i - self.short_cut > 2:
|
||||
self.cuts.append(self.short_cut)
|
||||
self.short_cut = None
|
||||
distance = self._get_distance(self.previous_frame_data, frame_data)
|
||||
is_cut = distance > 0.08 or (distance > 0.04 and abs(distance - self.previous_distance) > 0.04)
|
||||
if is_cut:
|
||||
if frame_i - (0 if not self.cuts else self.short_cut or self.cuts[-1]) < 3:
|
||||
if self.frame_i - (0 if not self.cuts else self.short_cut or self.cuts[-1]) < 3:
|
||||
is_cut = False
|
||||
self.short_cut = frame_i
|
||||
self.short_cut = self.frame_i
|
||||
else:
|
||||
self.cuts.append(self.frame_i)
|
||||
elif len(self.cut_frames) == self.max_cut_len:
|
||||
|
|
Loading…
Reference in a new issue