CV Get Text activity - anchor base be case insensitive

Hi,

In CV Get Text Activity, I tried to use the Anchor to locate the text “Invoice”, but the invoices can come in as “INVOICE”, or “Invoice” or “invoice”. When I use the sample with “INVOICE”, other samples with “Invoice” return error with “element not found”.

Can the anchor be set to case Insensitive ?

Thanks.

Hi @Snowman ,
Can you share your screen short?
I think set to case Insensitive is not problem
regards,

Hi @Snowman

Instead of using a plain text anchor, use a regular expression (Regex) that matches regardless of case.

Regex:- ^.?(?i)invoice.?$

OR

Before using the CV Get Text activity, preprocess the text by converting it to lowercase or uppercase.

Hope this helps

Dear both,

Thanks for your quick advices. My use case is to extract data from Invoice image. So some invoice may have capital letter “INVOICE” or “Invoice”, and I try to use it as the anchor to get the Supplier Name.

Using Regex may not be desired. I am thinking if any code could be added to the Descriptor property as in the picture attached so that it would accept both cases.

@Snowman

One thing you can do is to use a parallel activity and give different types of Invoices that are possible in each …if atleast one passes then end parallle activity and move forward

Cheers