Annotation
class Annotation
Properties
int | $id | ||
int | $image_id | ||
int | $category_id | ||
array | $segmentation | ||
array|null | $bbox | ||
private Shape|null | $shape | ||
private array|null | $points | ||
private array|null | $groupedPoints |
Methods
static Annotation
create(array $data)
No description
static void
validate(array $data)
No description
array
getLabelAndUsers(array $categories)
No description
array
getPoints()
No description
array
getGroupedPoints()
No description
getCirclePoints()
No description
detectShape()
No description
bool
isPointShape()
No description
bool
isLineShape()
No description
bool
isCircleShape()
No description
euclidean_distance($x1, $y1, $x2, $y2)
No description
bool
isRectangleShape()
No description
Details
at line 22
static Annotation
create(array $data)
No description
at line 36
static void
validate(array $data)
No description
at line 50
Label
getLabel(array $categories)
No description
at line 57
array
getLabelAndUsers(array $categories)
No description
at line 64
array
getPoints()
No description
at line 72
private array
getGroupedPoints()
No description
at line 85
private
getCirclePoints()
No description
at line 108
private Shape
detectShape()
No description
at line 133
Shape
getShape()
No description
at line 142
bool
isPointShape()
No description
at line 147
bool
isLineShape()
No description
at line 162
bool
isCircleShape()
No description
at line 181
euclidean_distance($x1, $y1, $x2, $y2)
No description
at line 186
bool
isRectangleShape()
No description