mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
12 lines
228 B
Python
12 lines
228 B
Python
|
import PikaCV as cv
|
||
|
import binascii
|
||
|
img = cv.Image()
|
||
|
img.read("test/assets/test2.jpg")
|
||
|
|
||
|
cv.Converter.toGray(img)
|
||
|
data = img.data()
|
||
|
print(str(binascii.b2a_hex(img.data())))
|
||
|
cv.Converter.toBMP(img)
|
||
|
img.write("test/out/test.bmp")
|
||
|
|