Skip to content

Commit

Permalink
[cli] Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed May 21, 2024
1 parent 0cf4f81 commit 6fb8793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scenedetect/_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ def detect_threshold_command(
metavar='NUM',
type=click.INT,
default=256,
help='The number of bins to use for the histogram calculation.%s'
% (USER_CONFIG.get_help_string("detect-hist", "bins")))
help='The number of bins to use for the histogram calculation.%s' %
(USER_CONFIG.get_help_string("detect-hist", "bins")))
@click.option(
'--min-scene-len',
'-m',
Expand Down
2 changes: 1 addition & 1 deletion scenedetect/detectors/histogram_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def process_frame(self, frame_num: int, frame_img: numpy.ndarray) -> List[int]:
if not self._last_scene_cut:
self._last_scene_cut = frame_num

hist = self.calculate_histogram(frame_img, bins = self._bins)
hist = self.calculate_histogram(frame_img, bins=self._bins)

# We can only start detecting once we have a frame to compare with.
if self._last_hist is not None:
Expand Down

0 comments on commit 6fb8793

Please sign in to comment.