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 46
Label getLabel(array $categories)

No description

Parameters

array $categories

Return Value

Label

at line 53
array getLabelAndUsers(array $categories)

No description

Parameters

array $categories

Return Value

array

at line 60
array getPoints()

No description

Return Value

array

at line 68
private array getGroupedPoints()

No description

Return Value

array

at line 81
private getCirclePoints()

No description

at line 104
private Shape detectShape()

No description

Return Value

Shape

at line 129
Shape getShape()

No description

Return Value

Shape

at line 138
bool isPointShape()

No description

Return Value

bool

at line 143
bool isLineShape()

No description

Return Value

bool

at line 158
bool isCircleShape()

No description

Return Value

bool

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

No description

Parameters

$x1
$y1
$x2
$y2

at line 182
bool isRectangleShape()

No description

Return Value

bool