class ImageAnnotation extends Annotation

Properties

int $shape_id

Shape ID required for point validation.

from  Annotation

Methods

__construct(Shape $shape, array $points, array $labels)

No description

array
getInsertData(int $id)

Get the array of metadata that can be used for Model::insert();

void
validate()

Validate the labels.

setPointsAttribute(array $points)

Round the floats of the points array to 2 decimals.

Details

in Annotation at line 21
__construct(Shape $shape, array $points, array $labels)

No description

Parameters

Shape $shape
array $points
array $labels

at line 13
array getInsertData(int $id)

Get the array of metadata that can be used for Model::insert();

Parameters

int $id

ID of the image/video database model.

Return Value

array

at line 23
void validate()

Validate the labels.

Return Value

void

Exceptions

Exception

in Annotation at line 65
protected setPointsAttribute(array $points)

Round the floats of the points array to 2 decimals.

Parameters

array $points