I am creating an Android device with Android Studios that connects with Firebase. The initial idea is to create an application that uses a barcode scanner and a manual activity to enter the ingredients in a database and for that database to then recognize the ingredients entered and find an idea of food that matches with that. So far I have managed to connect a barcode scanner that works, but I'm not sure how to do it in the next stage (match the idea of the food using the database of real-time fire database).
I have done classes like:
And the bar code reader imported using the Google Vision Api module.
This is a very basic design of how I think the Real Time Database would work in Firebase, but I'm not sure.