So, I have an app and I have an object detection AI in it. I put a gallery and a label to count the total number of objects, the code is like this:
this is the code of the label and it counts the number of items in the gallery
however, after I upload a new pic in on the detector, the number of this countrows is supposed to be updated too. And the problem is, it doesn't. I've checked the gallery, and the gallery can be updated. So why the label can't???
Hi @Yanaaaaaaaaaaaa,
Thanks for the question. I'd recommend using the following formula instead:
"Number of food that you can't eat: " & Sum(ObjectDetector1.GroupedResults, ObjectCount)
ObjectDetector1 is the name that the Object Detector AI control has in the app.
I hope this helps to prevent eating food that should not be eaten. 🙂