- Introduced `uploadRoute` to handle image uploads with MIME type validation and size restrictions. - Added `upload_store` class for managing file storage and generating presigned URLs for upload/download. - Enhanced file server to differentiate between PDFs and uploaded files, supporting dynamic content delivery. - Integrated OpenAI module for License Plate Recognition (LPR), including API configuration and schema validation. - Updated core structure with new interfaces (`minio_uploads_i`, `openai_i`) and classes (`openai`, `upload_store`). - Adjusted `index.php` and file routes to support dynamic MIME checks and direct link generation.
14 lines
408 B
PHP
14 lines
408 B
PHP
<?php
|
|
|
|
namespace interfaces;
|
|
|
|
interface openai_i extends universal_module_i
|
|
{
|
|
/**
|
|
* Get the registration number from the image.
|
|
* @note This method is used to extract the registration number from an image url
|
|
* @param string $base64_image The base64 encoded image string
|
|
* @return mixed The extracted registration number
|
|
*/
|
|
public function lpr(string $base64_image): mixed;
|
|
} |