Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[image] example for crop_affine
Browse files Browse the repository at this point in the history
  • Loading branch information
junhuanchen committed Jul 25, 2022
1 parent f21191f commit 7e84dbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions ext_modules/_maix_image/example/test_crop_affine.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from maix import image

img = image.open("test_crop_affine.jpg")

print(img.size)

tmp = img.crop_affine([204, 205, 64, 202, 68, 154], 94, 24)

tmp.save('test_crop_affine.png')

0 comments on commit 7e84dbe

Please sign in to comment.