Files
api/services/nginx/app/interfaces/licenseplaterecognizer_i.php
T
Jeppe Bundgaard c85c0d824c Extend License Plate Recognizer module with usage info endpoint and enhanced API handling
- Added `get_usage` method in `licenseplaterecognizer` to retrieve module usage statistics from the API.
- Introduced `licenseplaterecognizer_info` class to parse and manage API response data.
- Enhanced API request handling with updated default `api_url` and improved error handling.
- Refined cURL implementation for consistent API interaction.
2025-09-04 12:05:49 +02:00

21 lines
921 B
PHP

<?php
namespace interfaces;
require_once WD . '/modules/licenseplaterecognizer/helpers/licenseplaterecognizer_info.php';
use licenseplaterecognizer\helpers\licenseplaterecognizer_info;
require_once WD . '/interfaces/universal_module_i.php';
interface licenseplaterecognizer_i extends universal_module_i
{
/**
* licenseplaterecognizer - Get the plate number from the image.
* @param string $base64_image The base64 encoded image to be processed.
* @return array An array containing the plate number and other relevant information.
*/
public function licenseplaterecognizer(string $base64_image): array;
/**
* Get usage information about the license plate recognizer module.
* @returns licenseplaterecognizer_info An object containing usage statistics and information.
* @see licenseplaterecognizer_info
*/
public function get_usage(): licenseplaterecognizer_info;
}