Added beter controls and an example. Improved documentation.

This commit is contained in:
simleek
2019-11-17 14:26:43 -07:00
parent 6b02f57780
commit decf7d7849
67 changed files with 1829 additions and 516 deletions

View File

@ -6,10 +6,11 @@ from examples.videos import test_video
d = (
display(test_video)
.add_callback(crop.Crop())
.add_callback(lens.Barrel().enable_mouse_control())
.add_callback(lens.BarrelPyTorch().enable_mouse_control(crop_size=(256, 256)))
.add_callback(crop.Crop(output_size=(256, 256, 3)))
.wait_for_init()
)
while d:
print(d.frames[0].shape)
if len(d.frames) > 0:
pass