Region of Interest opencv python

前端 未结 3 2022
余生分开走
余生分开走 2020-12-06 00:55

I am trying to get a region of an image (ROI) using opencv python. The version of opencv used is 2.4.3. However when I try to call the API

cv2.SetImageROI
         


        
3条回答
  •  再見小時候
    2020-12-06 01:56

    As mentioned in documentation, and regarding the error message you got, you rather need to import the appropriate module and then call SetImageROI() method:

    import cv
    cv.SetImageROI(imag, rect)
    

提交回复
热议问题