Total correct predictions are: 5 + 2 = 7
Total predictions made: 5 + 2
So accuracy is: 7/7 = 100%.
The model does not predict all of the images, but whatever predictions it makes are correct. Hence accuracy is 100%.
Study more about Evaluation at Evaluation Class 10