Upload
rayhsu
View
386
Download
5
Embed Size (px)
Citation preview
Keyence – Keyence – Vision SystemVision System
OverviewOverview
1.1. Image ProcessingImage Processing
2.2. Basics of Image ProcessingBasics of Image Processing
3.3. Principle of Image ProcessingPrinciple of Image Processing
4.4. Inspection FunctionsInspection Functions
5.5. Explanation of FunctionsExplanation of Functions
1.Image Processing1.Image Processing
將將 CCDCCD 補抓到的影像轉成數位訊號,之補抓到的影像轉成數位訊號,之後後經過各種演算處理,取得所需結果經過各種演算處理,取得所需結果
2. Basics of Img Proc2. Basics of Img Proc
CCDCCD 所儲存的電荷與入射光所儲存的電荷與入射光 BrightnessBrightness成正比成正比
2.1 Image output from CCD Camera
2. Basics of Img Proc2. Basics of Img Proc
Non-InterlacedNon-Interlaced
InterlacedInterlaced
2.2 Image Scanning
循序 (1~525)30 frames/sec
Odd First, then Even30 frames/sec
2. Basics of Img Proc2. Basics of Img Proc
Threshold VoltageThreshold Voltage
2.3 Binary Digital Conversion
>Vt White<Vt Black
2. Basics of Img Proc2. Basics of Img Proc
像素資料傳送位置由時序決定像素資料傳送位置由時序決定
2.4 Pixels
Clock/PLL
2. Basics of Img Proc2. Basics of Img Proc
Base on the Brightness graduation dataBase on the Brightness graduation data Binary Conversion – 2 LevelBinary Conversion – 2 Level
Grayscale _ Grayscale _ 紀錄單位紀錄單位
2.5 Grayscale Processing
2. Basics of Img Proc2. Basics of Img Proc
R/G/B/(R-G)/(B-G)/(R-B)R/G/B/(R-G)/(B-G)/(R-B)
2.6 Color Processing
2. Basics of Img Proc2. Basics of Img Proc
選出特定顏色,定其值為選出特定顏色,定其值為 255255
2.7 Color Shade-Scale Processing
3. Principle of Img 3. Principle of Img ProcProc Recognize the Pattern of an ImageRecognize the Pattern of an Image
Pattern matching with Gray-Scale ProcPattern matching with Gray-Scale Proc
3.1 Pattern Matching
將欲辨識圖形暫存起來 (Pattern Window) ,與目標圖形比對
將目標圖形與參考圖形,點對點比對
3. Principle of Img 3. Principle of Img ProcProc Pattern matching with Color ExtractionPattern matching with Color Extraction
將目標圖形與參考圖形,點對點比對
3.1 Pattern Matching
3. Principle of Img 3. Principle of Img ProcProc 進行 次像素處理進行 次像素處理 (Sub-Pixel Processing)(Sub-Pixel Processing)
能量測到 能量測到 0.1 Pixels 0.1 Pixels 單位單位
3.2 Sub-Pixel Processing
3. Principle of Img 3. Principle of Img ProcProc Accurate Pattern Matching Without BeingAccurate Pattern Matching Without Being
Affected by Changes in BrightnessAffected by Changes in Brightness
3.3 Normalized Correlation Method
將圖形做正規化 ( 減去平均亮度 ) ,去除周圍光線的影響
3. Principle of Img 3. Principle of Img ProcProc 藉由亮度變化判斷藉由亮度變化判斷3.4 Edge Detection
3. Principle of Img 3. Principle of Img ProcProc 將影像轉為黑白將影像轉為黑白 (Binary Image)(Binary Image) ,再予鄰,再予鄰
近相同顏色之區塊編為同一近相同顏色之區塊編為同一 LabelLabel
3.5 Labeling Processing
4. Inspection 4. Inspection FunctionsFunctions Detect Target PositionDetect Target Position
4.1 Absolute Position Detection
圈選目標,再與以測定之全圖比較,得出中心位址
4. Inspection 4. Inspection FunctionsFunctions Detect the Relative Position of Two Detect the Relative Position of Two
TargetsTargets
4.2 Relative Position Detection
4. Inspection 4. Inspection FunctionsFunctions Count the Number of the Pixels in the Count the Number of the Pixels in the
Specified AreaSpecified Area
4.3 Area Sensor (Binary Conversion)
4. Inspection 4. Inspection FunctionsFunctions Measure the Distance between the Measure the Distance between the
Edges DetectedEdges Detected
4.4 Dimension Measurement
4. Inspection 4. Inspection FunctionsFunctions Count the Number of LabelsCount the Number of Labels AREAFILTAREAFILT
4.5 Count
4. Inspection 4. Inspection FunctionsFunctions Detect the Presence or Absence of the Detect the Presence or Absence of the
Specified Range (Point)Specified Range (Point)
4.6 POINT (Point Sensor)
4. Inspection 4. Inspection FunctionsFunctions 以以 SegmentSegment 為掃描單位為掃描單位 計算平均的計算平均的 BrightnessBrightness 差值差值 如超出特定值發出如超出特定值發出 NGNG 信號信號 Segment Size/Detection LevelSegment Size/Detection Level
4.7 STAIN (Flaw Detection)
4. Inspection 4. Inspection FunctionsFunctions Measure the Center-of-Gravity Position Measure the Center-of-Gravity Position
and the Principle Axis Angle of the Label and the Principle Axis Angle of the Label
GRAVITY (Center-of-Gravity Position Measurement)
5. Explanation of Func5. Explanation of Func
Detect the Position in the X- and Y- Axis Detect the Position in the X- and Y- Axis Directions and the Rational Angle of the Directions and the Rational Angle of the TargetTarget
5.1 Position Adjustment
5. Explanation of Func5. Explanation of Func
Correct the Brightness of the Entire Correct the Brightness of the Entire Screen to Prevent Erroneous DetectionScreen to Prevent Erroneous Detection
““Illumination Range”Illumination Range”
5.2 Illumination Adjustment
5. Explanation of Func5. Explanation of Func
A Single Controller Connect 2 Camera A Single Controller Connect 2 Camera totoCapture Image at the Same Time with 1 Capture Image at the Same Time with 1 Shutter ActionShutter Action
Eliminate the Time Lag for Switching Eliminate the Time Lag for Switching Cameras / MagnifyCameras / Magnify
5.3 2-Camera Connection Function
5. Explanation of Func5. Explanation of Func
3 x 3 Pixel Area Around Target Pixel3 x 3 Pixel Area Around Target Pixel
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
EXPANDEXPAND
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
SHRINKSHRINK
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
MEDIANMEDIAN
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
AVEAVE
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
E-ENHANCEE-ENHANCE
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
EXTRACTIONEXTRACTION
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
SHADINGSHADING
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
INT-UPINT-UP
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
TINT-UPTINT-UP
5.4 Filter Function
5. Explanation of Func5. Explanation of Func
INVERTINVERT
5.4 Filter Function