mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add test file by pkg-push autoly
This commit is contained in:
parent
9493db3d7c
commit
5492fbb162
@ -44,6 +44,7 @@ if [ -d "test/python/$pkg" ] ; then
|
||||
echo "$FLAG_INFO python test files added:"
|
||||
rm ../../examples/$pkg/* -rf
|
||||
cp test/python/$pkg/*.py ../../examples/$pkg -r
|
||||
git add test/python/$pkg
|
||||
git add ../../examples/$pkg
|
||||
ls ../../examples/$pkg
|
||||
fi
|
||||
|
11
port/linux/test/python/PikaCV/PikaCV_test11.py
Normal file
11
port/linux/test/python/PikaCV/PikaCV_test11.py
Normal file
@ -0,0 +1,11 @@
|
||||
import PikaCV as cv
|
||||
import binascii
|
||||
img = cv.Image()
|
||||
img.read("test/assets/test2.jpg")
|
||||
|
||||
cv.Converter.toGray(img)
|
||||
data = img.data()
|
||||
print(str(binascii.b2a_hex(img.data())))
|
||||
cv.Converter.toBMP(img)
|
||||
img.write("test/out/test.bmp")
|
||||
|
Loading…
x
Reference in New Issue
Block a user