Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
baeeb981
Commit
baeeb981
authored
Mar 13, 2018
by
Amir MOHAMMADI
Browse files
Fix import order
parent
d8e54955
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/annotator/__init__.py
View file @
baeeb981
from
.Wrapper
import
Wrapper
from
.FailSafeVideo
import
FailSafeVideo
def
normalize_annotations
(
annotations
,
validator
,
max_age
=-
1
):
"""Normalizes the annotations of one video sequence. It fills the
annotations for frames from previous ones if the annotation for the current
...
...
@@ -15,7 +11,7 @@ def normalize_annotations(annotations, validator, max_age=-1):
that frame.
validator : callable
Takes a dict (annotations) and returns True if the annotations are
valid. This can be check based on minimal face size for example.
valid. This can be
a
check based on minimal face size for example.
max_age : :obj:`int`, optional
An integer indicating for a how many frames a detected face is valid if
no detection occurs after such frame. A value of -1 == forever
...
...
@@ -43,6 +39,10 @@ def normalize_annotations(annotations, validator, max_age=-1):
yield
k
,
current
from
.Wrapper
import
Wrapper
from
.FailSafeVideo
import
FailSafeVideo
# gets sphinx autodoc done right - don't remove it
def
__appropriate__
(
*
args
):
"""Says object was actually declared here, and not in the import module.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment