You are viewing limited content. For full access, please sign in.

Question

Question

Quick Fields pattern matching to value under a column tocip

asked on February 18, 2016

Hi there,

I am trying to create a good expression to use in the pattern matching tool, but I am having a hard time on creating. I have attached a image as example, but my problem is that I want to identified a specific place, like "Name", and under the "Name" has the value that I want, and for other fields, it is the same. Do any of you have any tip that can help me how to get this information?

Thanks for the help.

Regards,

Vitor

multa1.jpg
multa1.jpg (232.46 KB)
0 0

Answer

SELECTED ANSWER
replied on February 19, 2016

Hi Vitor

In looking this over, a Full Page OCR is likely not the best solution solution as there are two many combinations to account for to capture all of the fields correctly into Tokens, so Zonal OCR Fields are likely a better way to go.  The Zonal can contain the entire Box and below is an easy way to capture all of the characters after the Field title  example: PROPRIETARIO\s+(.*) or PROPRIETARIO\s*(.*), these will capture all of the characters in a Zonal Field after the last letters of the field title are found

2 0
replied on February 22, 2016

Hi Steven,

Thanks for the tip. The Zonal OCR did the job well.

0 0

Replies

replied on February 18, 2016

Hi Vitor

Your first step should be to scan and either Zonal OCR the Area of question or OCR the entire page to show the OCR Text that is being created. Once you have this, if you provide the OCR's text, it will be much more meaningful to be able to help you with a Pattern Matching String.

 

1 0
replied on February 19, 2016

Hi Steven,

Thanks for the help. Here are the ocr of the image:

                              NOTIFICAÇÃO DA AUTUAÇÃO
      _TRAIU/`ERP       269690  TRANSERP- Empresa de Trânsito e Transporte Urbano de Ribeirão Preto S/A
                        6969 - Ribeirão Preto
   Em cumprimento ao disposto no artigo 281, inciso II do Código de Trânsito Brasileiro. Lei No. 9.503 de 23/07/1997, alterada pela No. 9.602 de
   21/01/1998,fica V.Sa.notificado(a)da autuação pelo cometimento da infração de trânsito abaixo descrita PODERÁ SER APRESENTADA DEFESA DA
   AUTUAÇÃO JE:NTo)Ã AUTORIDADE DE TRÂNSITO DO MUNICÍPIO DE RIBEIRÃO PRETO ATÉ 05/03/2008
   NOME DO PROPRIETARIO                                  '.
    MATEUS DE FREITAS ZANARDO
   ENDEREÇO DO PROPRIETARIO
    SEBASTIAO PONTON                   524
   PLACA     MUNICIPIO                   UF  MARCA/MODELO                             - y
    JTA9009      RIBEIRAO PRETO              SP  GM/OMEGA GLS
   NRO DO AIT      LOCAL DA INFRAÇÃO
    C26044400    AV. PRESIDENTE KENNEDY 1400
   DATA DA INFRAÇAO   HORARIO       BASE LEGAL        TIPO                           •
                                                                _      c,
    06/02/2008    16:37     2181           Media      4 pontos                    orrgr.�
   No.DO AGENTE     DATA VERIF EQUIP         DATA DA EMISSAO No.DA FOTO
    17849475    24/08/2007          11/02/2008     159994.IMG OBSERVAÇÃO                                      mmuommimmir
                                                    -                    -.
   VELOC.PERMITIDA  VELOC.AFERIDA     VELOC.CONSIDERADA   IDEN.EQUIPAMENTO
                                              .JIA 9Q09nomowilrrl.s.
    60 Km/h     68 Km/h       61 Km/h     UX015992           .,,,n,.ce  ,o.„.R,,..W..a,2,.. ,..       .,  Ne.
   ENQUADRAMENTO        DESCRIÇÃO DA INFRAÇÃO
    7455               Transitar em ate 20°43 acima da velocidade permitida
                    FORMULÁRIO DE IDENTIFICAÇÃO DO CONDUTOR
                  �.�    ENTIDADE DE TRANSITO/MUNICÍPIO
          r1///   Fr       269690-TRANSERP-Empresa de Trânsito e Transporte Urbano de Ribeirão Preto S/A
                        6969-Ribeirão Preto
   PLACA         NUMERO DOAI T       DESCRIÇÃO DA INFRAÇÃO
   JTA9009      C26044400      Transitar em ate 20%acima da velocidade permitida
   Caso V.Sa.não seja o condutor infrator.preencha os dados abaixo e encaminhe aos postos de atendimento da TRANSERP,à Rua General Camara,2910,à
    Rua São Sebastião,909,ou ainda no Poupatempo.todos em Ribeirão Preto-SP,no prazo abaixo indicado,juntado CÓPIA LEGÍVEL DO DOCUMENTO
    DE HABILITAÇÃO E DO DOCUMENTO QUE COMPROVE A ASSINATURA DO CONDUTOR INFRATOR,quando esta não constar no documento
   de habilitação.A identificação do condutor infrator somente surtirá efeito se estiver corretamente preenchida,assinada e acompanhada da cópia legivel dos
    referidos documentos. Esclarecemos que V.Sa.é responsável nas esferas civel,administratirva e penal pela veracidade das informações e dos documentos
    fornecidos.A não identificação do condutor atribui ao proprietário do veiculo,pessoa física,a responsabilidade pela infração e,no caso de pessoa juridica
   será aplicada multa nos termos do parágrafo 80. do art. 257 do Código de Trânsito Brasileiro. No caso de transferdncia de propriedade, adotar o
    procedimento previsto no art. 134 doCTB efeturando bloqueio junto ao DETRAN.
    PRAZO PARA IDENTIFICAÇÃO DO CONDUTOR INFRATOR:ATE 05/03/2008
   NOME DO CONDUTOR INFRATOR
   No DA C N H DO CONDUTOR INFRATOR    No DO RG DO CONDUTOR INFRATOR          No DO CPF DO CONDUTOR INFRATOR
          DATA             ASSINATURA DO CONDUTOR INFRATOR      ASSINATURA DO PROPRIETARIO DO VEICULO
 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.