app.py 文件源码

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

项目:image_servers 作者: takiyu 项目源码 文件源码
def rotateImg(img, deg):
    h, w = img.shape[:2]
    M = cv2.getRotationMatrix2D((w / 2, h / 2), deg, 1.0)
    rotated_img = cv2.warpAffine(img, M, (w, h))
    return rotated_img
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号