|
|
|
|
|
OCRExtractTextBlock (Función) Returns all the text blocks of an image. MonImage is Image
MonTableauDeBlocsTexte is array of ocrTextBlock
MonTableauDeBlocsTexte = OCRExtractTextBlock(MonImage)
Sintaxis
<Result> = OCRExtractTextBlock(<Image to use>)
<Result>: Array of ocrTextBlock variables Array of ocrTextBlock variables. <Image to use>: Control name, Image variable, character string Image in which the text blocks must be detected. This image can correspond to: - an Image control,
- an Image variable,
- an Image Memo item,
- the path of an image file.
- the path of PDF file.
Warning: this file must contain a single page only.. Reminder: you can extract a page from a PDF file into an image using the PDFExtractPage function.. This image can be processed by OCRExtractTextBlock.
Observaciones  The Legacy engine is used. Custom models (.traineddata files) must be compatible with this engine.  Legacy and LSTM engines can be used in WINDEV applications (Windows and Linux). LSTM models are provided by default. - The .traineddata models are required.
- Para obtener mejores resultados, se recomienda:
- Utilizar una imagen de alta resolución.
- Si es posible, recortar la imagen alrededor del texto (evite las áreas innecesarias).
- Limitar la inclinación del texto. Si la imagen está ligeramente inclinada, el OCR puede detectar el texto, pero bajará la calidad.
Se pueden leer las imágenes inclinadas. - Limitar el número de modelos/idiomas utilizados.
- Tenga en cuenta que, si la imagen utilizada corresponde a un control Imagen, se manipulará directamente la imagen de origen. Por lo tanto, los cambios realizados en el control Imagen (tamaño de la imagen, por ejemplo) no se tendrán en cuenta. Para aplicar estos cambios, es necesario guardar la imagen.
- Tenga en cuenta que, si la imagen utilizada (a través de un control Imagen) es un archivo PDF, su calidad cambiará a 300 DPI.
- El OCR solo puede detectar texto impreso. No reconoce el texto escrito a mano.
- No se reconoce el texto "en blanco".
Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|