cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Identity different labels on object and extract text

Hi All,

 

I am using text recognition for grocery products and I want to extract the weight and barcode from the bottle.

 

Please can anyone advice how to extract the values and assign it to labels

TextRecogniserPAForum.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: Identity different labels on object and extract text

Hi @jinivthakkar,

 

Thanks for posting the question. Here's one way to do it:

1) Add two labels and two text inputs

2020-08-16_15-13-58.png

 

2) Click on the TextInput next to Weight. On the formula bar select the OnSelect property and write the following formula: UpdateContext({WeightVariable: TextRecognizer1.Selected.Text})

2020-08-16_15-18-10.png

3) Now change to the Default property and write: WeightVariable

2020-08-16_15-22-37.png

 

4) Now do the same with the TextInput next to Barcode. On the formula bar select the OnSelect property and write the following formula: UpdateContext({BarcodeVariable: TextRecognizer1.Selected.Text})

2020-08-16_15-26-08.png

 

5) Now change to the Default property and write: BarcodeVariable

2020-08-16_15-29-42.png

 

6) You are now ready to use the app. 🙂  Take a photo of product, select the weight value on the photo and then click on the weight Text input. Similarly tap on the value for the barcode on the image and click on the text input for barcode.

I hope this helps on your AI Builder journey.

View solution in original post

3 REPLIES 3
Highlighted
Power Apps
Power Apps

Re: Identity different labels on object and extract text

Hi @jinivthakkar,

 

Thanks for posting the question. Here's one way to do it:

1) Add two labels and two text inputs

2020-08-16_15-13-58.png

 

2) Click on the TextInput next to Weight. On the formula bar select the OnSelect property and write the following formula: UpdateContext({WeightVariable: TextRecognizer1.Selected.Text})

2020-08-16_15-18-10.png

3) Now change to the Default property and write: WeightVariable

2020-08-16_15-22-37.png

 

4) Now do the same with the TextInput next to Barcode. On the formula bar select the OnSelect property and write the following formula: UpdateContext({BarcodeVariable: TextRecognizer1.Selected.Text})

2020-08-16_15-26-08.png

 

5) Now change to the Default property and write: BarcodeVariable

2020-08-16_15-29-42.png

 

6) You are now ready to use the app. 🙂  Take a photo of product, select the weight value on the photo and then click on the weight Text input. Similarly tap on the value for the barcode on the image and click on the text input for barcode.

I hope this helps on your AI Builder journey.

View solution in original post

Highlighted
Power Apps
Power Apps

Re: Identity different labels on object and extract text

Here is an small video of the app in use: https://www.youtube.com/embed/wa__xktrLxs

Highlighted
Advocate I
Advocate I

Re: Identity different labels on object and extract text

Thanks a lot !

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (5,947)