MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / draw_str

Function draw_str

官方samples/common.py:81–84  ·  view source on GitHub ↗
(dst, target, s)

Source from the content-addressed store, hash-verified

79 return axis * np.arctan2(s, c)
80
81def draw_str(dst, target, s):
82 x, y = target
83 cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.LINE_AA)
84 cv2.putText(dst, s, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.0, (255, 255, 255), lineType=cv2.LINE_AA)
85
86class Sketcher:
87 def __init__(self, windowname, dests, colors_func):

Callers 8

turing.pyFile · 0.90
video_threaded.pyFile · 0.90
runMethod · 0.90
updateFunction · 0.90
draw_stateMethod · 0.90
runMethod · 0.90
facedetect.pyFile · 0.90
updateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected