mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
17 lines
325 B
Python
17 lines
325 B
Python
import PikaCV as cv
|
|
import binascii
|
|
img = cv.Image()
|
|
img.read("test/assets/test.jpg")
|
|
cv.Converter.toRGB888(img)
|
|
|
|
Channel = img.split()
|
|
R = Channel[0]
|
|
G = Channel[1]
|
|
B = Channel[2]
|
|
|
|
cv.Converter.toBMP(R)
|
|
cv.Converter.toBMP(G)
|
|
cv.Converter.toBMP(B)
|
|
R.write("test/out/R.bmp")
|
|
G.write("test/out/G.bmp")
|
|
B.write("test/out/B.bmp") |