STUDIES IN MECHATRONICS Machine Vision for Automated Inspection Dr. Madhuri Mahawar Department of Mechatonics Engineering Sanjivani College of Engineering, Kopargaon
Contents: Machine Vision for Automated Inspection, Predictive Maintenance and Condition Monitoring, Intelligent Robotics and Autonomous Systems, Smart Manufacturing and Industrial Automation, Case Studies in Mechatronics using Machine Learning (including Digital Twins and Industrial IoT)
has several limitations: • Human fatigue • Inspection speed limitations • Subjective decisions • Difficulty detecting very small defects • Variation between inspectors • Difficulty inspecting hazardous environments • Limited ability to continuously monitor production
capture image Camera captures image Brain processes information Computer processes image Experience-based judgment Algorithm/model-based decision Fatigue possible Consistent operation Difficult to quantify precisely Precise measurements possible Limited speed High-speed inspection Subjective More objective • Machine vision does not simply “take pictures”; it converts visual information into an engineering decision.
important parts of machine vision. • The same object can appear very different under different lighting conditions. • Good lighting should: • Highlight the region of interest • Reduce shadows • Improve contrast • Minimize reflections • Make defects visible • Examples • Surface inspection → diffuse lighting • Edge detection → backlighting • Cylindrical objects → controlled directional lighting • Printed characters → uniform illumination • Poor lighting can make even a good ML model perform poorly.
Field of view • Magnification • Focus • Perspective • Industrial Requirement: The camera must capture the information necessary for the inspection task.
conversion • Noise removal • Contrast enhancement • Normalization • Thresholding • Image segmentation • Purpose: Convert the raw image into a form suitable for analysis.
channel • Green channel • Blue channel • For some inspection tasks, color information is unnecessary. • Grayscale • Each pixel represents intensity. • Black → Low intensity • White → High intensity • Advantages • Lower computational complexity • Easier processing • Useful for shape and edge analysis
the product GOOD or DEFECTIVE? • Measurement • Is the diameter within tolerance? • Detection • Where is the defect? • Verification • Is the correct component installed? • Counting • How many components are present? • Sorting • Which category does the product belong to?
it? • Object Detection • What is it and where is it? • Segmentation • Which pixels belong to the defect? • Anomaly Detection • Is this product significantly different from normal products?
• 10,000 normal products • 20 defective products • There may not be enough examples of every possible defect. • Approach • Train mainly using normal products. • The model learns: What does normal look like? • A significant deviation is flagged as an anomaly.
A company manufactures metal components. • Possible defects: • Scratches • Cracks • Dents • Surface marks • Objective • Automatically identify defective components.
manufacturing bottles. • The system needs to detect: • Missing cap • Damaged cap • Incorrect label • Cracks • Incorrect bottle shape • System Bottle → Camera → Image Processing → ML Model → GOOD/DEFECTIVE • If defective: ML Decision → PLC → Pneumatic actuator → Remove bottle