Skip to content
Snippets Groups Projects
Commit 09b20836 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove __call__ aliasing since this is already in the Annotator class

parent 6a1c470d
No related branches found
No related tags found
1 merge request!41Add annotators
...@@ -12,8 +12,7 @@ class Base(Annotator): ...@@ -12,8 +12,7 @@ class Base(Annotator):
"""Annotates an image and returns annotations in a dictionary. All """Annotates an image and returns annotations in a dictionary. All
annotator should return at least the ``topleft`` and ``bottomright`` annotator should return at least the ``topleft`` and ``bottomright``
coordinates. Some currently known annotation points such as ``reye`` coordinates. Some currently known annotation points such as ``reye``
and ``leye`` are formalized in and ``leye`` are formalized in :any:`FaceCrop`.
:any:`FaceCrop`.
Parameters Parameters
---------- ----------
...@@ -24,7 +23,3 @@ class Base(Annotator): ...@@ -24,7 +23,3 @@ class Base(Annotator):
The extra arguments that may be passed. The extra arguments that may be passed.
""" """
raise NotImplementedError() raise NotImplementedError()
# Alisa call to annotate
def __call__(self, sample, **kwargs):
return self.annotate(sample, **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment