r/computervision • u/Zalzala_Khan1212 • Oct 27 '26
Help: Project Need advice on camera and lighting for checking debris inside glass ampoules on a conveyor
Hey everyone, I am building a computer vision system to check for debris stuck inside glass ampoules after they are made. I know some CV but the hardware side, like cameras, lenses and lighting, is pretty new to me, so any advice on both hardware and approach would really help.
The ampoules come in sizes from 1 to 20 ml, both clear and amber, and they lie flat on a slow conveyor at about 70 to 85 per minute with a camera above them. I have attached a photo of how they look from above. I want to catch glass shards that can stay in the wide part but cannot get out through the narrow opening, and insects like flies and mosquitoes that get stuck inside. Clear shards are almost invisible, amber glass blocks most visible light, the curved glass causes a lot of glare, the ampoules do not rotate so the far side is partly hidden, and the belt is most likely solid.
Nothing is final yet. I was thinking of a 5 MP mono global shutter camera with a C mount lens and strobed lighting, but I am open to being told I am wrong. What camera, lens and lighting would you go for? Would darkfield from above or red or NIR backlight work better? On the software side, which models or approaches would you use, since we may not have many real defect samples? And has anyone worked on something similar?
Attached below are how the ampoules look and their 2 colours:

