diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index ba185e89a0e..3609f309cc4 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -611,6 +611,7 @@ class Manager implements IManager { \OCP\TaskProcessing\TaskTypes\AudioToAudioChat::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\AudioToAudioChat::class), \OCP\TaskProcessing\TaskTypes\ContextAgentAudioInteraction::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\ContextAgentAudioInteraction::class), \OCP\TaskProcessing\TaskTypes\AnalyzeImages::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\AnalyzeImages::class), + \OCP\TaskProcessing\TaskTypes\ImageToTextOpticalCharacterRecognition::ID => \OCP\Server::get(\OCP\TaskProcessing\TaskTypes\ImageToTextOpticalCharacterRecognition::class), ]; foreach ($context->getTaskProcessingTaskTypes() as $providerServiceRegistration) { diff --git a/lib/public/TaskProcessing/TaskTypes/ImageToTextOpticalCharacterRecognition.php b/lib/public/TaskProcessing/TaskTypes/ImageToTextOpticalCharacterRecognition.php index 2e992192f86..6438afd6a53 100644 --- a/lib/public/TaskProcessing/TaskTypes/ImageToTextOpticalCharacterRecognition.php +++ b/lib/public/TaskProcessing/TaskTypes/ImageToTextOpticalCharacterRecognition.php @@ -48,7 +48,7 @@ class ImageToTextOpticalCharacterRecognition implements ITaskType { * @since 33.0.0 */ public function getDescription(): string { - return $this->l->t('Extract text from an image'); + return $this->l->t('Extract text from files like images or PDFs'); } /** @@ -65,9 +65,9 @@ class ImageToTextOpticalCharacterRecognition implements ITaskType { public function getInputShape(): array { return [ 'input' => new ShapeDescriptor( - $this->l->t('Input Image'), - $this->l->t('The image to extract text from'), - EShapeType::Image + $this->l->t('Input files'), + $this->l->t('The files to extract text from'), + EShapeType::ListOfFiles ), ]; } @@ -79,9 +79,9 @@ class ImageToTextOpticalCharacterRecognition implements ITaskType { public function getOutputShape(): array { return [ 'output' => new ShapeDescriptor( - $this->l->t('Output text'), - $this->l->t('The text that was extracted from the image'), - EShapeType::Text + $this->l->t('Output texts'), + $this->l->t('The texts that were extracted from the files'), + EShapeType::ListOfTexts ), ]; }