Types¶
BoundingBox
¶
Class to define a BoundingBox object in a 2D Cartesian coordinate system.
Source code in PytorchWildlife/models/detection/herdnet/animaloc/data/types.py
area
property
¶
To get bbox area
atype
property
¶
To get annotation type string
get_tuple
property
¶
To get bbox coordinates in tuple type
height
property
¶
To get bbox height
width
property
¶
To get bbox width
__init__(x_min, y_min, x_max, y_max)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x_min
|
(int, float)
|
x bbox top-left coordinate |
required |
y_min
|
(int, float)
|
y bbox top-left coordinate |
required |
x_max
|
(int, float)
|
x bbox bottom-right coordinate |
required |
y_max
|
(int, float)
|
y bbox bottom-right coordinate |
required |
Source code in PytorchWildlife/models/detection/herdnet/animaloc/data/types.py
Point
¶
Class to define a Point object in a 2D Cartesian coordinate system.
Source code in PytorchWildlife/models/detection/herdnet/animaloc/data/types.py
atype
property
¶
To get annotation type string
get_tuple
property
¶
To get point's coordinates in tuple
__init__(x, y)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
(int, float)
|
x coordinate |
required |
y
|
(int, float)
|
y coordinate |
required |