pikapython/test/python/PikaCV/PikaCV_test5.py

8 lines
187 B
Python
Raw Normal View History

2022-07-18 16:00:15 +08:00
import PikaCV as cv
img = cv.Image()
img.read("test/assets/test.jpg")
cv.Converter.toRGB888(img)
cv.Transforms.setROI(img,5,5,5,5)
cv.Converter.toBMP(img)
img.write("test/out/test1.bmp")