Step-by-Step AOI Programming Guide for Shenzhou Vision278


Introduction:Shenzhou Vision is renowned for its robust and user-friendly AOI (Automated Optical Inspection) software. This comprehensive guide will provide a step-by-step walkthrough of AOI programming using Shenzhou Vision, empowering you to conduct efficient and accurate visual inspections.

1. Project Creation and Image Import:Begin by creating a new project in Shenzhou Vision. Import the images to be inspected into the project. You can use various image formats, including JPG, BMP, and TIF.

2. Region of Interest (ROI) Definition:Define the specific areas of the images you want to inspect. This is known as the Region of Interest (ROI). Using the ROI tool, you can manually draw or automatically select the areas for inspection.

3. Creating Inspection Recipes:An inspection recipe defines the criteria for detecting defects in the images. To create a recipe, use the "Add Recipe" option. Specify the type of inspection, such as Pixel-Based or Shape-Based, and define the parameters for defect detection.

4. Pixel-Based Inspection:Pixel-based inspection compares the pixel intensities of the ROI with a reference image. You can define thresholds for pixel value variations to identify defects. This method is suitable for detecting surface defects, scratches, or color variations.

5. Shape-Based Inspection:Shape-based inspection analyzes the shape of objects within the ROI. It uses algorithms to extract shape features, such as area, perimeter, and circularity, and compares them to predefined tolerances to identify defects.

6. Multiple Recipe Inspection:You can combine multiple recipes into a single inspection job. This allows you to perform multiple inspections on the same image simultaneously, saving time and increasing efficiency.

7. Defect Grading and Classification:Shenzhou Vision enables you to grade and classify defects based on their severity. You can define grading rules and use them to automatically assign defects to specific categories.

8. Reporting and Data Analysis:The software generates detailed inspection reports that provide information on detected defects, their locations, and grading. You can export these reports in various formats for further analysis.

9. Sample Programming Code:```python
import ShenzhouVisionLib
# Create a new project
project = ()
# Import images
project.import_images("", "")
# Define ROI
roi = project.create_roi(x1, y1, width, height)
# Create a pixel-based inspection recipe
recipe1 = project.add_recipe("Pixel-Based Recipe", ShenzhouVisionLib.ROI_INSPECTION)
recipe1.set_pixel_thresholds(threshold1, threshold2)
# Create a shape-based inspection recipe
recipe2 = project.add_recipe("Shape-Based Recipe", ShenzhouVisionLib.SHAPE_INSPECTION)
recipe2.set_shape_features(feature1, feature2)
# Combine recipes into an inspection job
job = project.create_job("Inspection Job")
job.add_recipe(recipe1)
job.add_recipe(recipe2)
# Run the inspection job
()
# Get inspection results
results = job.get_results()
# Generate inspection report
report = project.generate_report(results)
```

Congratulations! By following these steps, you are now equipped with the knowledge to program AOI inspections using Shenzhou Vision. This powerful software empowers you to conduct thorough and accurate visual inspections, optimizing production processes and ensuring product quality.

2025-01-28


Previous:[NEW] Data Machine Video Tutorials: A Comprehensive Guide

Next:AI-Powered Video Tutorial