PikaCV_test2.py 325 B

1234567891011121314151617
  1. import PikaCV as cv
  2. import binascii
  3. img = cv.Image()
  4. img.read("test/assets/test.jpg")
  5. cv.Converter.toRGB888(img)
  6. Channel = img.split()
  7. R = Channel[0]
  8. G = Channel[1]
  9. B = Channel[2]
  10. cv.Converter.toBMP(R)
  11. cv.Converter.toBMP(G)
  12. cv.Converter.toBMP(B)
  13. R.write("test/out/R.bmp")
  14. G.write("test/out/G.bmp")
  15. B.write("test/out/B.bmp")