VisionService
in package
Table of Contents
Methods
- processImage() : array<string|int, mixed>
- Process an image file and extract text/content
- extractMetadata() : array<string|int, mixed>
- Extract structured metadata from description
- extractText() : string
- Extract text from description (simple heuristic)
Methods
processImage()
Process an image file and extract text/content
public
processImage(string $filePath[, string|null $mimeType = null ]) : array<string|int, mixed>
Parameters
- $filePath : string
- $mimeType : string|null = null
Return values
array<string|int, mixed>extractMetadata()
Extract structured metadata from description
protected
extractMetadata(string $description) : array<string|int, mixed>
Parameters
- $description : string
Return values
array<string|int, mixed>extractText()
Extract text from description (simple heuristic)
protected
extractText(string $description) : string
Parameters
- $description : string