A Real-Time Image-Processing System for Visual Inspection of Real Environments