Annotation
class Annotation
Properties
| string | $id | ||
| string | $image_id | ||
| string | $category_id | ||
| array|null | $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 52
static void
validate(array $data)
No description
at line 81
Label
getLabel(array $categories)
No description
at line 88
array
getLabelAndUsers(array $categories)
No description
at line 96
array
getPoints()
No description
at line 109
private array
getGroupedPoints()
No description
at line 122
private
getCirclePoints()
No description
at line 145
private Shape
detectShape()
No description
at line 170
Shape
getShape()
No description
at line 179
bool
isPointShape()
No description
at line 184
bool
isLineShape()
No description
at line 199
bool
isCircleShape()
No description
at line 218
euclidean_distance($x1, $y1, $x2, $y2)
No description
at line 223
bool
isRectangleShape()
No description