[1] https://www.plasticstoday.com/packaging/arizona-beverages-sw...
[1] https://www.plasticstoday.com/packaging/arizona-beverages-sw...
[1]: https://en.wikipedia.org/wiki/Resin_identification_code
Before we tried to use AI and cameras for this task, bottle-return machines have just used barcode scanners. They're fast, deadly accurate, and take zero intelligence to program. The achilles' heel is certain jerkface brands that use white-ink-on-shiny-aluminum, which violates the contrast requirements of many scanners. For those, image recognition would be a valuable second method.
You can also use various densities of liquid, to catch different densities of plastic floating vs. sinking if you've already crushed things up to avoid air bubbles. However, then you need to later separate the liquid from the shredded garbage.