# default_exp docs.input_output
Input/Output Types¶
Ipyannotator uses a pair of Input/Output to configure its API. The pair of Input/Output provides a simple and flexible way to write and combine annotators, making it easier users to customize the Ipyannotator API to their needs.
The current page explain which pairs are available.
Generic Annotation¶
class
InputImage
[source]
InputImage
(image_dir
:str
='pics'
,image_width
:int
=100
,image_height
:int
=100
,fit_canvas
:bool
=False
) ::Input
image_dir: string Directory of the image
image_width: int Width of the image
image_height: int Height of the image
fit_canvas: bool Ignores the image size and fit image on the canvas size
Image classification¶
class
InputImage
[source]
InputImage
(image_dir
:str
='pics'
,image_width
:int
=100
,image_height
:int
=100
,fit_canvas
:bool
=False
) ::Input
image_dir: string Directory of the image
image_width: int Width of the image
image_height: int Height of the image
fit_canvas: bool Ignores the image size and fit image on the canvas size
Capture Annotator¶
class
InputImage
[source]
InputImage
(image_dir
:str
='pics'
,image_width
:int
=100
,image_height
:int
=100
,fit_canvas
:bool
=False
) ::Input
image_dir: string Directory of the image
image_width: int Width of the image
image_height: int Height of the image
fit_canvas: bool Ignores the image size and fit image on the canvas size
Bounding Box image annotation¶
class
InputImage
[source]
InputImage
(image_dir
:str
='pics'
,image_width
:int
=100
,image_height
:int
=100
,fit_canvas
:bool
=False
) ::Input
image_dir: string Directory of the image
image_width: int Width of the image
image_height: int Height of the image
fit_canvas: bool Ignores the image size and fit image on the canvas size
Bounding box video annotator¶
class
InputImage
[source]
InputImage
(image_dir
:str
='pics'
,image_width
:int
=100
,image_height
:int
=100
,fit_canvas
:bool
=False
) ::Input
image_dir: string Directory of the image
image_width: int Width of the image
image_height: int Height of the image
fit_canvas: bool Ignores the image size and fit image on the canvas size
class
OutputVideoBbox
[source]
OutputVideoBbox
(*args
, **kwargs
) ::OutputImageBbox
Specialization of the OutputImageBbox.
classes: List[str] Define the classes of objects available to be classified