I have done this before with:
- Industrial USB camera,
- Automation Professionals' Image Streamer Driver Module - #104 by pturmel
Line Stopped Trigger ---> OpenCV image capture script ---> Insert into database
Images in the database can be shown on pages or inserted into reports and sent via email.