I actually registered just to respond to this post. I'm a software engineer with experience in backend web development (mostly Python, including Django, Flask, etc.), embedded software, Linux, and more recently, machine vision. I wrote and trained an ML model last year to sort 5.56 brass by headstamp, and it does so with 100% accuracy based on my validation data.
Here are some samples that were all correctly classified. https://imgur.com/a/90eSE
The code is open source, and freely available here: https://github.com/jakogut/brass-sorter
It was actually rather