rotation_detector.py 文件源码

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

项目:eva-didi 作者: eljefec 项目源码 文件源码
def rotate_image(img, radians):
    (rows, cols, channels) = img.shape
    degrees = math.degrees(radians)
    M = cv2.getRotationMatrix2D((cols/2, rows/2), degrees, 1)
    return cv2.warpAffine(img, M, (cols, rows))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号