11 lines
211 B
Python
Raw Normal View History

2022-07-13 16:39:34 +08:00
import PikaCV as cv
2022-07-14 10:59:51 +08:00
import binascii
2022-07-13 16:39:34 +08:00
img = cv.Image()
img.read("test/assets/test.jpg")
cv.Converter.toRGB565(img)
2022-07-14 10:59:51 +08:00
print(str(binascii.b2a_hex(img.data())))
2022-07-13 16:39:34 +08:00
cv.Converter.toBMP(img)
2022-07-15 15:14:57 +08:00
img.write("test/out/test.bmp")
2022-07-13 16:39:34 +08:00