mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
8 lines
199 B
Python
8 lines
199 B
Python
|
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")
|