MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / draw_points

Function draw_points

tensorpack/dataflow/imgaug/transform.py:363–368  ·  view source on GitHub ↗
(img, pts)

Source from the content-addressed store, hash-verified

361 trans = WarpAffineTransform(mat, (130, 130))
362
363 def draw_points(img, pts):
364 for p in pts:
365 try:
366 img[int(p[1]), int(p[0])] = 0
367 except IndexError:
368 pass
369
370 image = cv2.imread('cat.jpg')
371 image = cv2.resize(image, shape)

Callers 1

transform.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…