fluffyvoidwarrior has asked for the
wisdom of the Perl Monks concerning the following question:
I have a thorny industrial control problem.
I need to analyse an endless sequence of jpeg files produced by CCTV. They are of a moving belt of stuff that may contain foreign bodies. I need to cause an alarm when such foreign material is detected.
Optical detection is the only option. The foreign material is man made and has distinct edges but is otherwise indistinguishable from the "good" material. I have enhanced these edges with Perl Magick and Edge Detect. In theory this will work because the resulting pics clearly show the guilty objects distinct from the background noise.
The problem is that I don't know how to analyse the pics programatically in order to say "This pic contains man made objects".
Basically, how do I programatically analyse a jpeg to determine if it contains lines or just random visual noise?
Thanks for your ideas.