AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones OCR
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns all the text blocks of an image.
Ejemplo
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
  • AndroidWidget Android The Legacy engine is used. Custom models (.traineddata files) must be compatible with this engine.
  • WindowsLinux 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.
      iPhone/iPad 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
Componente: wd300ocr.dll
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/09/2024

Señalar un error o enviar una sugerencia | Ayuda local