pikapython/test/python/PikaCV/PikaCV_test10.py

8 lines
199 B
Python
Raw Normal View History

2022-07-20 14:52:22 +08:00
import PikaCV as cv
img = cv.Image()
img.read("test/assets/test.jpg")
cv.Converter.toGray(img)
cv.Transforms.adaptiveThreshold(img,255,3,0,0)
cv.Converter.toBMP(img)
img.write("test/out/test10.bmp")