LLM reel caption and video description + Refactor in services
This commit is contained in:
27
app/Providers/ImageOCRServiceProvider.php
Normal file
27
app/Providers/ImageOCRServiceProvider.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Services\FileTools\OCR\IImageOCR;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ImageOCRServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton(IImageOCR::class, function ($app) {
|
||||
return new \App\Services\FileTools\OCR\TesseractImageOCR();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user