Finalized lens work. Started initial unit tests.

This commit is contained in:
simleek
2019-10-08 22:32:59 -07:00
parent 7b632a604d
commit 60a29ddd9c
42 changed files with 376 additions and 224 deletions

View File

@ -0,0 +1,10 @@
from displayarray.effects import crop, lens
from displayarray import display
from examples.videos import test_video
# Move the mouse to move where the crop is from on the original image
display(test_video) \
.add_callback(crop.Crop()) \
.add_callback(lens.Barrel().enable_mouse_control()) \
.block()