You can use newer OpenCV python interface (if I’m not mistaken it is available since OpenCV 2.2). It natively uses numpy arrays:
import cv2
im = cv2.imread("abc.tiff",mode="RGB")
print type(im)
result:
<type 'numpy.ndarray'>
More Related Contents:
- Python OpenCV2 (cv2) wrapper to get image size?
- Convert a 3D array to RGB valued array [closed]
- Simple Digit Recognition OCR in OpenCV-Python
- Detect image orientation angle based on text direction
- OpenCV giving wrong color to colored images on loading
- ImportError: numpy.core.multiarray failed to import
- How do I convert a numpy array to (and display) an image?
- How can I add new dimensions to a Numpy array?
- OpenCV Error: (-215)size.width>0 && size.height>0 in function imshow
- scipy: savefig without frames, axes, only content
- Counting Cars OpenCV + Python Issue
- Python OpenCV load image from byte string
- RuntimeError: module compiled against API version a but this version of numpy is 9
- Sending live video frame over network in python opencv
- OpenCV: “[ WARN:0] terminating async callback” when attempting to take a picture
- Convert RGB to black OR white
- Crop Rectangle returned by minAreaRect OpenCV [Python]
- Get coordinates of local maxima in 2D array above certain value
- How do I convert an OpenCV image (BGR and BGRA) to a pygame.Surface object
- How to crop the internal area of a contour?
- how to remove background of images in python
- How to copy a image region using opencv in python?
- Equivalent of copyTo in Python OpenCV bindings?
- Python – Detect a QR code from an image and crop using OpenCV
- Combine 3 separate numpy arrays to an RGB image in Python
- Region of Interest opencv python
- Irregular shape detection and measurement in python opencv
- Opencv matchTemplate and np.where(): keep only unique values
- Determine if an image exists within a larger image, and if so, find it, using Python
- cv2.imread: checking if image is being read