class VideoMetadata extends FileMetadata

Properties

Annotation[] $annotations from  FileMetadata
LabelAndUser[] $labels

The labels directly attached to the file.

from  FileMetadata
Collection $frames

Methods

__construct(string $name, float|null $lat = null, float|null $lng = null, string|null $takenAt = null, float|null $area = null, float|null $distanceToGround = null, float|null $gpsAltitude = null, float|null $yaw = null)

No description

bool
isEmpty()

Determines if any metadata field other than the name is filled.

array
getInsertData()

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

void
addAnnotation(Annotation $annotation)

No description

array
getAnnotations()

No description

bool
hasAnnotations()

No description

void
addFileLabel(LabelAndUser $lau)

No description

array
getFileLabels()

No description

bool
hasFileLabels()

No description

array
getFileLabelLabels(array $onlyLabels = [])

No description

array
getAnnotationLabels(array $onlyLabels = [])

No description

array
getUsers(array $onlyLabels = [])

No description

array
getAnnotationLabelAndUsers(array $onlyLabels = [])

No description

array
getFileLabelLabelAndUsers(array $onlyLabels = [])

No description

Collection
getFrames()

No description

void
addFrame(string $takenAt, float|null $lat = null, float|null $lng = null, float|null $area = null, float|null $distanceToGround = null, float|null $gpsAltitude = null, float|null $yaw = null)

No description

array
getInsertDataPlain()

Get the metadata insert array if no frames are present.

array
getInsertDataFrames()

Get the metadata insert array from all frames, sorted by taken_at.

Details

at line 12
__construct(string $name, float|null $lat = null, float|null $lng = null, string|null $takenAt = null, float|null $area = null, float|null $distanceToGround = null, float|null $gpsAltitude = null, float|null $yaw = null)

No description

Parameters

string $name
float|null $lat
float|null $lng
string|null $takenAt
float|null $area
float|null $distanceToGround
float|null $gpsAltitude
float|null $yaw

at line 69
bool isEmpty()

Determines if any metadata field other than the name is filled.

Return Value

bool

at line 84
array getInsertData()

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

Return Value

array

in FileMetadata at line 46
void addAnnotation(Annotation $annotation)

No description

Parameters

Annotation $annotation

Return Value

void

in FileMetadata at line 51
array getAnnotations()

No description

Return Value

array

in FileMetadata at line 56
bool hasAnnotations()

No description

Return Value

bool

in FileMetadata at line 61
void addFileLabel(LabelAndUser $lau)

No description

Parameters

LabelAndUser $lau

Return Value

void

in FileMetadata at line 66
array getFileLabels()

No description

Return Value

array

in FileMetadata at line 71
bool hasFileLabels()

No description

Return Value

bool

in FileMetadata at line 79
array getFileLabelLabels(array $onlyLabels = [])

No description

Parameters

array $onlyLabels

Return Value

array

Labels indexed by ID.

in FileMetadata at line 93
array getAnnotationLabels(array $onlyLabels = [])

No description

Parameters

array $onlyLabels

Return Value

array

Labels indexed by ID.

in FileMetadata at line 109
array getUsers(array $onlyLabels = [])

No description

Parameters

array $onlyLabels

List of metadata label IDs to filter the list of users.

Return Value

array

Users indexed by ID.

in FileMetadata at line 124
protected array getAnnotationLabelAndUsers(array $onlyLabels = [])

No description

Parameters

array $onlyLabels

Return Value

array

in FileMetadata at line 142
protected array getFileLabelLabelAndUsers(array $onlyLabels = [])

No description

Parameters

array $onlyLabels

Return Value

array

at line 39
Collection getFrames()

No description

Return Value

Collection

at line 44
void addFrame(string $takenAt, float|null $lat = null, float|null $lng = null, float|null $area = null, float|null $distanceToGround = null, float|null $gpsAltitude = null, float|null $yaw = null)

No description

Parameters

string $takenAt
float|null $lat
float|null $lng
float|null $area
float|null $distanceToGround
float|null $gpsAltitude
float|null $yaw

Return Value

void

at line 97
protected array getInsertDataPlain()

Get the metadata insert array if no frames are present.

Return Value

array

at line 138
protected array getInsertDataFrames()

Get the metadata insert array from all frames, sorted by taken_at.

If one frame has data that another frame doesn't have, it is added as null.

Return Value

array