OpenCV Python rotate image by X degrees around specific point

前端 未结 9 1686
谎友^
谎友^ 2020-11-27 05:08

I\'m having a hard time finding examples for rotating an image around a specific point by a specific (often very small) angle in Python using OpenCV.

This is what I

9条回答
  •  没有蜡笔的小新
    2020-11-27 05:20

    Or much easier use SciPy

    from scipy import ndimage
    
    #rotation angle in degree
    rotated = ndimage.rotate(image_to_rotate, 45)
    

    see here for more usage info.

提交回复
热议问题