Image analysis and comparison

Hi @Colin ,
In my case, I would like to compare 2 images and know by percentage difference.
Example:
Imagine a photo of one pack with 24 cans, from above view and the same pack with 2 can less.... Is that what I would like to detect...
Some idea?
Thanks!