add test file by pkg-push autoly

This commit is contained in:
pikastech 2022-07-26 10:50:20 +08:00
parent 9493db3d7c
commit 5492fbb162
2 changed files with 12 additions and 0 deletions

View File

@ -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

View 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")