Commit 1b6859ed authored by lucas_miranda's avatar lucas_miranda
Browse files

Refactored pose_utils.py

parent 61f6c3aa
Pipeline #83189 passed with stage
in 16 minutes and 6 seconds
......@@ -558,11 +558,15 @@ def tag_rulebased_frames(
corners,
tag_dict,
fnum,
w,
h,
dims,
undercond,
hparams,
):
"""Helper function for rule_based_video. Annotates a fiven frame with on-screen information
about the recognised patterns"""
w, h = dims
def write_on_frame(text, pos, col=(255, 255, 255)):
"""Partial closure over cv2.putText to avoid code repetition"""
return cv2.putText(frame, text, pos, font, 1, col, 2)
......@@ -737,8 +741,7 @@ def rule_based_video(
corners,
tag_dict,
fnum,
w,
h,
(w, h),
undercond,
hparams,
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment