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
As mentioned in documentation, and regarding the error message you got, you rather need to import the appropriate module and then call SetImageROI() method:
SetImageROI()
import cv cv.SetImageROI(imag, rect)