diff --git a/scenedetect/detectors/histogram_detector.py b/scenedetect/detectors/histogram_detector.py index 3cef02e5..28d00eb5 100644 --- a/scenedetect/detectors/histogram_detector.py +++ b/scenedetect/detectors/histogram_detector.py @@ -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