I purchased my first raspberry PI and now I'm experimenting with it in Python. At the moment, I'm using the SPI port to communicate with a 128 x128 pixel OLED RGB display. The display is in 262K color mode (RGB 6 bit / color). I wondered if a conversion mode is available in OPENCV or NUMPY to convert the map to 256 colors mode to speed up the transfer rate between the PI and my display? I don't need to have so much colors anyway.
At the moment, I'm using this to convert the resolution:
Code: Select all
img = cv2.imread('cat.jpg',4) resizedpic=cv2.resize(img, dsize=(128, 128), interpolation=cv2.INTER_CUBIC)
Also, if any of you want help to communicate with an SPI display I can post the code.
Here a picture of my setup just to show you the result: