= Image.open('images/puppy.jpg').to_thumb(256,512)
im 'Puppy'),
VBox([widgets.HTML(="192px")]) widget(im, max_width
Vision widgets
ipywidgets for images
Box.__getitem__
Box.__getitem__ (i)
widget
widget (im, *args, **layout)
Convert anything that can be display
ed by IPython
into a widget
carousel
carousel (children:tuple|collections.abc.MutableSequence=(), **layout)
A horizontally scrolling carousel
Type | Default | Details | |
---|---|---|---|
children | tuple | collections.abc.MutableSequence | () | Box objects to display in a carousel |
layout | |||
Returns | Box | An ipywidget ’s carousel |
= [VBox([widget(im, max_width='192px'), Button(description='click')])
ts for o in range(3)]
='450px') carousel(ts, width
ImagesCleaner
ImagesCleaner (opts:tuple=(), height:int=128, width:int=256, max_n:int=30)
A widget that displays all images in fns
along with a Dropdown
Type | Default | Details | |
---|---|---|---|
opts | tuple | () | Options for the Dropdown menu |
height | int | 128 | Thumbnail Height |
width | int | 256 | Thumbnail Width |
max_n | int | 30 | Max number of images to display |
= get_image_files('images')
fns = ImagesCleaner(('A','B'))
w
w.set_fns(fns) w
w.delete(),w.change()
((#0) [], (#0) [])
ImageClassifierCleaner
ImageClassifierCleaner (learn, opts:tuple=(), height:int=128, width:int=256, max_n:int=30)
A widget that provides an ImagesCleaner
for a CNN Learner
Type | Default | Details | |
---|---|---|---|
learn | |||
opts | tuple | () | Options for the Dropdown menu |
height | int | 128 | Thumbnail Height |
width | int | 256 | Thumbnail Width |
max_n | int | 30 | Max number of images to display |