createimage.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:LensCalibrator 作者: 1024jp 项目源码 文件源码
def plot_points(image, points, color=(0, 0, 255)):
    """Draw circles at given locations on image.

    Arguments:
    image -- Image to draw on.
    points -- x,y pairs of points to plot.
    """
    # find best radius for image
    image_width = image.shape[1]
    radius = int(image_width / 400)

    # draw
    for point in points:
        point = tuple(map(int, point))
        cv2.circle(image, point, color=color, radius=radius,
                   thickness=radius/2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号