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
Announcements
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
Thanks a lot !
Here is an small video of the app in use: https://www.youtube.com/embed/wa__xktrLxs
Hi @jinivthakkar,
Thanks for posting the question. Here's one way to do it:
1) Add two labels and two text inputs
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})
3) Now change to the Default property and write: WeightVariable
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})
5) Now change to the Default property and write: BarcodeVariable
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.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1