Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(shot-detector): rename shot detector
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Oct 17, 2019
1 parent d48eb53 commit a641d5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gnes/preprocessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'BaseVideoPreprocessor': 'base',
'FFmpegPreprocessor': 'video.ffmpeg',
'FFmpegVideoSegmentor': 'video.ffmpeg',
'ShotDetectPreprocessor': 'video.shotdetect',
'ShotDetectorPreprocessor': 'video.shot_detector',
'VideoEncoderPreprocessor': 'video.video_encoder',
'VideoDecoderPreprocessor': 'video.video_decoder',
'AudioVanilla': 'audio.audio_vanilla',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from gnes.preprocessor.helper import compute_descriptor, compare_descriptor, detect_peak_boundary, compare_ecr


class ShotDetectPreprocessor(BaseVideoPreprocessor):
class ShotDetectorPreprocessor(BaseVideoPreprocessor):
store_args_kwargs = True

def __init__(self,
Expand Down
4 changes: 3 additions & 1 deletion tests/yaml/preprocessor-shotdetect_edge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
!ShotDetectPreprocessor
!ShotDetectorPreprocessor
parameters:
descriptor: "canny_edge"
distance_metric: "edge_change_ration"
frame_size: "192:168"
frame_rate: 10
kwargs:
max_shot_num: 5
gnes_config:
is_trained: true
2 changes: 1 addition & 1 deletion tests/yaml/preprocessor-shotdetect_histogram.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!ShotDetectPreprocessor
!ShotDetectorPreprocessor
parameters:
descriptor: "block_hsv_histogram"
distance_metric: "bhattacharya"
Expand Down

0 comments on commit a641d5c

Please sign in to comment.