pikapython/examples/PikaCV/PikaCV_test1.py
2022-07-15 18:10:37 +08:00

11 lines
211 B
Python

import PikaCV as cv
import binascii
img = cv.Image()
img.read("test/assets/test.jpg")
cv.Converter.toRGB565(img)
print(str(binascii.b2a_hex(img.data())))
cv.Converter.toBMP(img)
img.write("test/out/test.bmp")