pikapython/examples/PikaCV/PikaCV_test11.py

12 lines
232 B
Python
Raw Normal View History

2022-07-26 10:49:20 +08:00
import PikaCV as cv
import binascii
img = cv.Image()
img.read("test/assets/test2.jpg")
cv.Converter.toGray(img)
data = img.data()
2023-03-15 16:20:59 +08:00
print(binascii.b2a_hex(img.data()).decode())
2022-07-26 10:49:20 +08:00
cv.Converter.toBMP(img)
img.write("test/out/test.bmp")