I have successfully detected Coke, Fanta, and Sprite beverage bottles placed in the refrigerator, but it is not going to count all the bottles placed in the same row by detecting their caps. The attached picture is a reference to see the test sample. How can I count all the bottles in the same row from front to back by detecting the git’s caps?