UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
UiPath logo, featuring letters U and I in white

Atividades do Document Understanding

Última atualização 27 de abr de 2026

Validação manual para digitalizar documentos

O exemplo abaixo explica como extrair manualmente dados de uma imagem e apresentar a saída em um arquivo separado. Ele apresenta atividades como Digitize Document ou Present Validation Station. Você pode encontrar essas atividades no pacote UiPath.IntelligentOCR.Activities .

Observação:

This workflow is using an older version of the UiPath.IntelligentOCR.Activities package.

Steps:

  1. Abra o Studio e crie um novo Processo nomeado por padrão Principal.

    Observação:

    Make sure to add all the needed files (.json files and all the images) inside the project folder.

  2. Adicione um contêiner Sequência no Designer de fluxo de trabalho e crie as variáveis mostradas na tabela a seguir:

    Tabela 1. Variáveis a serem criadas

    Tipo de VariávelValor Padrão
    TextString
    DOMUiPath.DocumentProcessing.Contracts.Dom.Document
    DataUiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomy
    DocumentTaxonomyUiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomy
    TaxonomyJSONString
    HumanValidatedUiPath.DocumentProcessing.Contracts.Results.ExtractionResult
  3. Adicione uma atividade Read Text File dentro da sequência.

    • In the Properties panel, add the name of the file, in this case "taxonomy.json", in the FileName field.
    • Add the variable TaxonomyJSON in the Content field.
  4. Adicione uma atividade Atribuir após a atividade Read Text File.

    • Add the variable Data in the To field and the expression DocumentTaxonomy.Deserialize(TaxonomyJSON) in the Value field. This activity builds the taxonomy for extraction.
  5. Adicione uma atividade Digitalizar documento após a atividade Atribuir.

    • In the Properties panel, add the value 1 in the DegreeOfParallelism field.
    • Add the expression "Input\Invoice01.tif" in the DocumentPath field.
    • Add the variable DOM in the DocumentObjectModel field.
    • Add the variable Text in the DocumentText field.
  6. Adicione um mecanismo de Google OCR dentro da atividade Digitalizar Documento.

    • No painel Propriedades, adicione a variável Image ao campo Imagem.
    • Select the check box for the ExtractWords option. This option extracts the on-screen position of all detected words.
    • Add the expression "eng" in the Language field.
    • Select the option Legacy from the Profile drop-down list.
    • Adicione o valor 2 ao campo Escala.
  7. Adicione uma atividade Estação de validação presente após a atividade Digitalizar Documento.

    • In the Properties panel, add the variable DOM in the DocumentObjectModel field.
    • Add the expression "Input\Invoice01.tif" in the DocumentPath field.
    • Add the variable Text in the DocumentText field.
    • Add the variable Data in the Taxonomy field.
    • Add the variable HumanValidated in the ValidatedExtractionResults field.
  8. Adicione uma atividade For Each na atividade Estação de validação presente.

    • In the Properties panel, select the option UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint from the TypeArgument drop-down list.
    • Add the expression HumanValidated.ResultsDocument.Fields in the Values field.
  9. Add a Log Message activity inside the Body of the For Each activity.

    • Select the option Info from the Level drop-down list.
    • Adicione a expressão item.FieldName no campo Mensagem.
  10. Adicione uma atividade Mensagem do log abaixo da primeira atividade Mensagem do log.

    • Selecione a opção Info na lista suspensa Nível .
    • Adicione a expressão item.Values(0).Value.ToString no campo Mensagem.
  11. Adicione uma atividade Write Line nas atividades Mensagem do Log.

    • Adicione o valor "" no campo Texto.
  12. Execute o processo. O robô usa as atividades do IntelligentOCR para processar manualmente os dados e apresentar os resultados.

Acesse o link a seguir para baixar o exemplo como um arquivo ZIP : Exemplo.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades