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

Function draw_rects

官方samples/facedetect.py:29–31  ·  view source on GitHub ↗
(img, rects, color)

Source from the content-addressed store, hash-verified

27 return rects
28
29def draw_rects(img, rects, color):
30 for x1, y1, x2, y2 in rects:
31 cv2.rectangle(img, (x1, y1), (x2, y2), color, 2)
32
33if __name__ == '__main__':
34 import sys, getopt

Callers 1

facedetect.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected