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 46
Label
getLabel(array $categories)
No description
at line 53
array
getLabelAndUsers(array $categories)
No description
at line 60
array
getPoints()
No description
at line 68
private array
getGroupedPoints()
No description
at line 81
private
getCirclePoints()
No description
at line 104
private Shape
detectShape()
No description
at line 129
Shape
getShape()
No description
at line 138
bool
isPointShape()
No description
at line 143
bool
isLineShape()
No description
at line 158
bool
isCircleShape()
No description
at line 177
euclidean_distance($x1, $y1, $x2, $y2)
No description
at line 182
bool
isRectangleShape()
No description