web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Identity different lab...
Power Apps
Answered

Identity different labels on object and extract text

(0) ShareShare
ReportReport
Posted on by 4,187

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

 

Categories:
I have the same question (0)
  • Verified answer
    JoeF-MSFT Profile Picture
    Microsoft Employee on at

    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.

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

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

  • jinivthakkar Profile Picture
    4,187 on at

    Thanks a lot !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard