ImageAnnotationPreview
Introduction
Function signature
image_preview = ImageAnnotationPreview(
annotations_opacity = 0.5,
enable_zoom = False,
line_width = 1,
)Parameters
Parameters
Type
Description
annotations_opacity
enable_zoom
line_width
widget_id
Methods and attributes
Attributes and Methods
Description
Mini App Example
Import libraries
Init API client
Initialize Project ID
Project IDGet Project ID and meta
Get images from dataset
Get annotation for image
Initialize ImageAnnotationPreview widget and set image with annotation and project meta
Add button widget to show random image, we will use it later
Create app layout
Create app using layout
Add button click event to update preview
Last updated