Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Apr 17, 2024
1 parent b861b45 commit db29d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scenedetect/detectors/histogram_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def process_frame(self, frame_num: int, frame_img: numpy.ndarray) -> List[int]:
hist_diff = numpy.sum(numpy.fabs(self._last_hist - hist))

# Check if a new scene should be triggered
if hist_diff >= self.threshold and (
(frame_num - self._last_scene_cut) >= self.min_scene_len):
if hist_diff >= self.threshold and ((frame_num - self._last_scene_cut)
>= self.min_scene_len):
cut_list.append(frame_num)
self._last_scene_cut = frame_num

Expand Down

0 comments on commit db29d6c

Please sign in to comment.