OpenCV Python rotate image by X degrees around specific point

前端 未结 9 1626
谎友^
谎友^ 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:35

    import imutils
    
    vs = VideoStream(src=0).start()
    ...
    
    while (1):
       frame = vs.read()
       ...
    
       frame = imutils.rotate(frame, 45)
    

    More: https://github.com/jrosebr1/imutils

提交回复
热议问题