CompareAnnotations
Introduction
Function signature
CompareAnnotations(
columns_number=5,
default_opacity=0.5,
fill_rectangle=True,
border_width=3,
view_height=None,
empty_message="No image was provided",
widget_id=None,
)Parameters
Parameters
Type
Description
columns_number
default_opacity
fill_rectangle
border_width
view_height
empty_message
widget_id
Methods and attributes
Attributes and Methods
Description
Mini App Example
Import libraries
Init API client
Get project ID and dataset ID
Get images and annotations infos
Option 1. Collect image names, URLs, annotations and generate annotation names from server
Option 2. You can also serve images from your local machine, using a static directory
Create a function to modify the annotation
Iterate over column numbers and append modified annotations to widget
Create buttons for changing current image and cleaning up widget
Create app layout
Create app using layout
Create a callback functions for buttons
Last updated