l = $l10nFactory->get('lib'); } /** * @since 33.0.0 */ public function getName(): string { return $this->l->t('Optical character recognition'); } /** * @since 33.0.0 */ public function getDescription(): string { return $this->l->t('Extract text from files like images or PDFs'); } /** * @since 33.0.0 */ public function getId(): string { return self::ID; } /** * @return ShapeDescriptor[] * @since 33.0.0 */ public function getInputShape(): array { return [ 'input' => new ShapeDescriptor( $this->l->t('Input files'), $this->l->t('The files to extract text from'), EShapeType::ListOfFiles ), ]; } /** * @return ShapeDescriptor[] * @since 33.0.0 */ public function getOutputShape(): array { return [ 'output' => new ShapeDescriptor( $this->l->t('Output texts'), $this->l->t('The texts that were extracted from the files'), EShapeType::ListOfTexts ), ]; } }