class CocoParser extends MetadataParser

Properties

SplFileObject $fileObject from  MetadataParser
private $coco

Methods

static array
getKnownMimeTypes()

Get the MIME types that files known by this parser can have.

static string
getName()

Get the name of the parser to show it to users selecting files.

__construct(SplFileInfo $file)

No description

bool
recognizesFile()

Returns true if the file is in the format understood by the parser.

getMetadata()

Get a filled VolumeMetadata object based on the file.

getCoco()

No description

processImageAnnotations(Image $image, ImageMetadata $imageMetaData)

No description

Details

at line 20
static array getKnownMimeTypes()

Get the MIME types that files known by this parser can have.

Example: ['text/csv']

Return Value

array

at line 30
static string getName()

Get the name of the parser to show it to users selecting files.

Example: 'BIIGLE CSV'

Return Value

string

in MetadataParser at line 26
__construct(SplFileInfo $file)

No description

Parameters

SplFileInfo $file

at line 48
bool recognizesFile()

Returns true if the file is in the format understood by the parser.

Return Value

bool

at line 62
VolumeMetadata getMetadata()

Get a filled VolumeMetadata object based on the file.

Return Value

VolumeMetadata

in MetadataParser at line 41
protected SplFileObject getFileObject()

No description

Return Value

SplFileObject

at line 35
private Coco getCoco()

No description

Return Value

Coco

at line 86
private processImageAnnotations(Image $image, ImageMetadata $imageMetaData)

No description

Parameters

Image $image
ImageMetadata $imageMetaData