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

getLabel(array $categories)

No description

array
getLabelAndUsers(array $categories)

No description

array
getPoints()

No description

array
getGroupedPoints()

No description

getCirclePoints()

No description

detectShape()

No description

getShape()

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

Parameters

array $data

Return Value

Annotation

at line 36
static void validate(array $data)

No description

Parameters

array $data

Return Value

void

at line 50
Label getLabel(array $categories)

No description

Parameters

array $categories

Return Value

Label

at line 57
array getLabelAndUsers(array $categories)

No description

Parameters

array $categories

Return Value

array

at line 64
array getPoints()

No description

Return Value

array

at line 72
private array getGroupedPoints()

No description

Return Value

array

at line 85
private getCirclePoints()

No description

at line 108
private Shape detectShape()

No description

Return Value

Shape

at line 133
Shape getShape()

No description

Return Value

Shape

at line 142
bool isPointShape()

No description

Return Value

bool

at line 147
bool isLineShape()

No description

Return Value

bool

at line 162
bool isCircleShape()

No description

Return Value

bool

at line 181
euclidean_distance($x1, $y1, $x2, $y2)

No description

Parameters

$x1
$y1
$x2
$y2

at line 186
bool isRectangleShape()

No description

Return Value

bool