How can I find out how many times an image appears in another one with php, so I can calculate how much money I will have if I sell the items from the print screen of my backpack.
For example, this is my backpack:
This is the item I want to compare:
If a user submits this image of the backpack, comparing only the Knight Armor (where each one is worth 5,000), the result should be 15,000.
Please help.