fastdev.viz.image

Module Contents

fastdev.viz.image.draw_points(img: numpy.ndarray, pts: numpy.ndarray, colors: numpy.ndarray | None = None, radius=1, order='uv') numpy.ndarray[source]
Parameters:
  • img (ndarray) – original image

  • pts (ndarray) – points, shaped (n x 2) or (2)

  • colors (ndarray) – color, shaped (n x 3) or (3)

  • radius (int) – radius of points

  • order (str) – order of points, “uv” or “xy”, default “uv” (since most keypoints dataset use uv order)

Return type:

numpy.ndarray