Feature #447 » imageReader_v0.1.py
| 1 |
# Vaibhav Gupta - Made the skeleton python code for reading the image
|
|---|---|
| 2 |
|
| 3 |
# ˅˅˅˅˅
|
| 4 |
from configure_reader import ConfigureReader |
| 5 |
import cv2 |
| 6 |
|
| 7 |
|
| 8 |
class ImageReader(object): |
| 9 |
def __init__(self): |
| 10 |
pass
|
| 11 |
|
| 12 |
def getImage(self): |
| 13 |
cR = ConfigureReader() |
| 14 |
image = cv2.imread(cR.getImagePath()) |
| 15 |
image = cv2.cvtColor(image, cv2.COLOR_RGB2RGBA) |
| 16 |
|
| 17 |
return image |
| 18 |
|
| 19 |
getImage(0) |
| 20 |
# ˄˄˄˄˄
|