Skip to content

Commit

Permalink
fix: rename EmptyFrameDetectHook to InterestPointHook
Browse files Browse the repository at this point in the history
with ORB detector
  • Loading branch information
williamfzc committed Sep 29, 2019
1 parent ba8ef2a commit be24630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion stagesepx/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def do(
return


class EmptyFrameDetectHook(BaseHook):
class InterestPointHook(BaseHook):
""" use ORB detector to get the number of interest points """
def __init__(self, *_, **__):
super().__init__(*_, **__)
self._orb = cv2.ORB_create()
Expand Down
4 changes: 2 additions & 2 deletions test/test_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
CropHook,
FrameSaveHook,
RefineHook,
EmptyFrameDetectHook,
InterestPointHook,
TemplateCompareHook,
)

Expand All @@ -29,7 +29,7 @@ def test_hook():
hook3 = FrameSaveHook(frame_home)
hook4 = CropHook(size=(0.5, 0.5), offset=(0.0, 0.5), overwrite=True)
hook5 = RefineHook()
hook6 = EmptyFrameDetectHook()
hook6 = InterestPointHook()
hook7 = TemplateCompareHook({"amazon": IMAGE_PATH})

# --- cutter ---
Expand Down

0 comments on commit be24630

Please sign in to comment.