Label Light Exercise. Introduction to Scorpion - Demo 1- Label on Syringe Page 2 Profiles related to the exercise When starting use profile: Label_Light_Start.

Slides:



Advertisements
Similar presentations
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
Advertisements

Autodesk Inventor: Part 3 Creating a Drawing Once a part has been finalized and fitted into the assembly, a Drawing needs to be made, so a diagram of the.
QR Code Recognition Based On Image Processing
Chapter 3 Creating a Business Letter with a Letterhead and Table
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Chapter 7 Advanced Sketching and Constraining Techniques.
Windows XP Basics OVERVIEW Next.
Creating Rout Paths Using CAMMaster. Step 1 Import Gerber File. Import Gerber File. User Ctrl+W to window around data. User Ctrl+W to window around data.
Case Tools Trisha Cummings. Our Definition of CASE  CASE is the use of computer-based support in the software development process.  A CASE tool is a.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Robot Vision slide1. Robot Vision Exercise Robot Vision slide3 The task To locate the picking point of the object = Centre of Gravity of the object To.
Working with Vector Graphics – Lesson 21 Working with Vector Graphics Lesson 2.
Fitting a Model to Data Reading: 15.1,
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Text, Masks, and Live Effects – Lesson 41 Text, Masks, and Live Effects Lesson 4.
Making your own stereo slide show in PowerPoint Making your own stereo slide show in PowerPoint.
Garmin GPS III Plus Data Collection. Objectives Collect: - Waypoints -Average Position Waypoints -Reference Waypoints - Multiple Tracks in One Track Log.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Track, Trace & Control Solutions © 2010 Microscan Systems, Inc. Machine Vision Tools for Solving Auto ID Applications Part 3 of a 3-part webinar series:
STEP 1: Determining the exact image width STEP 1: Determining the exact image width Position of X-ray Filter Position of X-ray Filter STEP 5: Crop Extra.
Color Correct and Remove Keystoning A minimalist approach to photographing your art By Paul Marley.
Creating your own form from scratch.. To create a custom form, you can modify an existing form or design and create a form from scratch. In either case,
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
Machine Vision Products that IMPACT your Bottom Line! Introducing KickStart!
Demographic Profiles of Agency Clients - Part 2 Next, we will create a table and a column chart for the conservator field in my database. Because we are.
Ellsworth Publishing Company (888) Keyboard Short Course Part 2: Student Side (Screen-Based Version—No Textbook Needed) 20-minute, Self-Paced,
Calibration & Measurements. Calibrating the System Before we can make any measurements we need to calibrate our imaging system to create real world numbers.
Create Forms Lesson 5. Objectives Software Orientation The Forms group (below) is located on the Create tab in the Ribbon and can be used to create a.
Chapter 7 Creating a Newsletter with a Pull-Quote and Graphics
Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! With Microsoft ® Office 2007 Intermediate Chapter.
Macromedia Studio 8 Step-by-Step MACROMEDIA FIREWORKS 8 Project 2: Experience Bank Logo.
Introduction to Scorpion - Demo 1- Label on Syringe Page 1.
How to startpage 1. How to start How to specify the task How to get a good image.
1 Getting Started Exercise Part 1. 2 Profiles related to the exercise When starting use archive profile: GettingStarted_Start.zip The fully completed.
Design Studies 20 ‘Show Off’ Project How to make a computer monitor In Google Sketchup By: Liam Jack.
IPD Technical Conference February 19 th 2008 Application: Pipette Measurement and Flash Inspection. Distributor: CPU Automation Engineer: Mike Bray.
Machine Vision Introduction to Using Cognex DVT Intellect.
Course14 Dynamic Vision. Biological vision can cope with changing world Moving and changing objects Change illumination Change View-point.
Introduction to Drafting and Design In order to begin our drawing we have to set the drawing limits or the paper size.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Create FormsCreate Forms Lesson 5 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Access Microsoft Access 2013.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Train Body The next series of slides will guide you through the construction of the train body. Start a new drawing and save it as Train Body.
WS1-1 ADM , Workshop 1, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 1 INTRODUCTION.
This is what we want to produce Import sketch dimensions Label angles Set the scale Add linear dimensions.
Resource Review Excel formula basics Demonstrate how to enter manual formulas Examine some of the available functions and their usage Discuss the.
AstroTortilla Free Plate solving AstroTortilla is a wrapper around common astrophotography tools intended to automate basic tasks such as polar alignment.
Adobe ® Photoshop ® CS6 Chapter 1 Editing a Photo.
Introducing Scratch Learning resources for the implementation of the scenario
1. Explore Interactive GIS 2. Create Map Layouts 3. Reuse a Custom Map Layout 4. Create a Custom Map Template 5. Add a Report to a Layout 6. Add a Graph.
SIFT.
HADI Tutorial Void Inspection Contents 1.Basic Void Inspection Procedure 2.Smooth ROI 3.Background Processing (Flatten BG) 4.Thresholding (Void.
OCR Reading.
WORKSHOP 1 introduction
Probability and Statistics
SIFT Scale-Invariant Feature Transform David Lowe
Shelly Cashman: Microsoft Word 2016
HADI Tutorial Templates
SL a Robot Vision 3 exercise
Computer Vision Lecture 9: Edge Detection II
Microsoft Official Academic Course, Access 2016
Using Photoshop for IED
Getting Started with Adobe Illustrator CS6
SIFT.
Getting Started Exercise
Picture with watercolor overlay background (Advanced)
Assignment 2 Creating a LOGO.
Presentation transcript:

Label Light Exercise

Introduction to Scorpion - Demo 1- Label on Syringe Page 2 Profiles related to the exercise When starting use profile: Label_Light_Start The fully completed profile: Label_Light_Final

Introduction to Scorpion - Demo 1- Label on Syringe Page 3 Objectives To solve a complex vision task using the following fuctions: Scorpion reference system Intensity Tool LineEdgeFinder and LineEdgeCaliper Tools Constructing lines between points/lines Make a simple Phyton script

Introduction to Scorpion - Demo 1- Label on Syringe Page 4 Task - Label Measure –Label position on syringe Resolution 1/100 mm Tolerance 5/100 mm Check –Position is between 3.6 and 3.85 mm.

Introduction to Scorpion - Demo 1- Label on Syringe Page 5 Setup Image shows syringe with label. The syringe is illuminated with a diffuse lighting with a dark background. This reduces reflections and ensures edge contrasts. To measure the label position it is necessary to constructs a reference line defined by the two edgepoints where the syringe starts to get smaller. The image is captured with an industrial Sony b/w camera XC-75, 760 x 570 pixels and 256 gray levels

Introduction to Scorpion - Demo 1- Label on Syringe Page 6 Scorpion in Operation This exercise is a part of the comprehensive Label demo profile The picture show the final user interface This exercise will focus on the vision task only Please read and investigate the complete demo at a later stage

Introduction to Scorpion - Demo 1- Label on Syringe Page 7 Label block diagram

Introduction to Scorpion - Demo 1- Label on Syringe Page 8 Creating MyLabel_Light profile Restore profile Label_Light_Start.zip Create a new profile and give it a name i.e. MyLabel_Light Copy thye Label_Light_Start profile to the new one

Introduction to Scorpion - Demo 1- Label on Syringe Page 9 Creating the Reference System Activate Service.Toolbox.New to create MMReference of ScaleReference type Set x and y scale to 24.8 Active Results tab –Set unit for pixel resolution to mm by using the popup menu Note that an image must be captured for Results.pixel resolution to be defined

Introduction to Scorpion - Demo 1- Label on Syringe Page 10 Defining the reference system With Scorpion reference systems are defined with a family reference tools. In the label case MMReference of type ScaleReference is used to transform pixels to mm. With x and y scale of 24.8 the pixel resolution is 0.04 mm Check MMReference.Results The scalefactor was defined by using a ruler.

Introduction to Scorpion - Demo 1- Label on Syringe Page 11 Remmber to Backup of profile Activate Service.Maintenance Press Backup –Add comment –Press OK Hint : Profile Backup ensures simple restore of a working profile

Introduction to Scorpion - Demo 1- Label on Syringe Page 12 Locate syringe The following steps are performed to locate the syringe: Calculates blob threshold with Lightmeter Finds course location of syringe with blob - FindSyringe Establishes SyringeReference using three edge finders: –Left Edge –Upper Left Edge and Upper Right Edge

Introduction to Scorpion - Demo 1- Label on Syringe Page 13 Locate Syringe - LightMeter Activate Service.Toolbox Create LightMeter – IntensityTool. Set MMReference as reference. Using LightMeter an adaptive threshold for the blob Find Syringe is calculated. The LightMeter ROI is defined in a narrow band across the syringe. The LightMeter’s 70 % percentil is a good candidate for the Find Syringe threshold. Using this threshold makes Find Syringe robust to light variations. The LightMeter’s ROI is in a narrow band across the syringe.

Introduction to Scorpion - Demo 1- Label on Syringe Page 14 Find Syringe Create Find Syringe – BlobTool. Set MMReference as reference. Find Syringe requires that the light area of the syringe is greater than 10 mm2. The ROI is around the syringe. The size defines how large variation in syringe position the system can tolerate. Hint : All values are in mm. This is defined by the reference MMReference

Introduction to Scorpion - Demo 1- Label on Syringe Page 15 Verify – Find Syringe Verify –Press Start Check that Blob locates syringe on all images –Press Stop to terminate Activate Find Syringe.Visualization –Turn off all elements except MaxContour and Center Of Gravity Turn off Show graphics on LightMeter.Visualization Hint : A tool can be examined in detail using Visualization – this only

Introduction to Scorpion - Demo 1- Label on Syringe Page 16 State – Syringe Present Create the Lag logic state Syringe Present - LogicTool Open Syringe Present and activate the Setup tab. Add a new condition pressing New Set Find Syringe.Total blob area greater than 40 mm2. Set Syringe Present to false if condition is undefined. In this case this means that Find Syringe has failed.

Introduction to Scorpion - Demo 1- Label on Syringe Page 17 Locate Syringe Using edge finders the upper left edges of the syringe is located. The following edge finder – LineEdgeFinderTool is used: Find Left Edge Find Upper Left Edge Find Upper Right Edge Tracecomb Find Upper Left Edge

Introduction to Scorpion - Demo 1- Label on Syringe Page 18 Setup Find Left Edge Create a tool – LineEdgeFinderTool named Find Left Edge Set Find Syringe as reference –Press Apply –Turn on visualizations – trace lines –Activate Show Info – Image Menu Position mouse at left edge to find center of ROI Hint – All values are in mm

Introduction to Scorpion - Demo 1- Label on Syringe Page 19 Advances setup LineEdgeFinderTool Differentiation = 1 –This means that seek peaks where the derivative is at it’s maximum. This is robust and handles light variations. Smooth base and counter = 4 and 2 –Means that the trace combs is filtered to remove noise Fit-tolerance = 0,08 –This means that all points used in the curve fitting is in a band of 0.08 mm – approx 2 pixels Good-fraction = 12 points –This means that more than 12 of the trace combs has edges for the fitted line to be accepted

Introduction to Scorpion - Demo 1- Label on Syringe Page 20 Verify Find Left Edge Activate Find Left Edge.Results Hint : Press Start and run live inspections – the results are updated continuously Check the Gradient against Setup.Threshold –Gradient should be minimum 1.5 – 2 time the threshold Line-fit means that the points on the calculated line has a noise approximately half a pixel –The edgeline has a greater accuracy than half a pixel –The LineEdgeFinderTool has sub-pixel resolution

Introduction to Scorpion - Demo 1- Label on Syringe Page 21 Find Upper Right Edge Activate Service.Toolbox Select Find Left Edge Open mouse menu –Press Copy Open mouse menu –Press Paste Select Copy of Find Left Edge Name Find Upper Right Edge Select Find Upper Right Edge –Press Edit Move Find Upper Right Edge ROI to the right side of the syringe – see image –Remember to rotate trace comb

Introduction to Scorpion - Demo 1- Label on Syringe Page 22 Finn Upper Left Edge Activate Service.Toolbox Select Find Upper Right Edge Open mouse menu –Press Copy Open mouse menu –Press Paste Select Copy of Find Upper Right Edge Name Find Upper Left Edge Select Find Upper Left Edge –Press Edit –Move ROI to left side of syringe

Introduction to Scorpion - Demo 1- Label on Syringe Page 23 Locate – Reference Line Create Reference Line - LineFromPoints Reference Line is defined by the Find Upper Left and Find Upper Right Edge center points.

Introduction to Scorpion - Demo 1- Label on Syringe Page 24 Locate – Syringe Reference Create Syringe Reference – PointLineReference Set the reference to MMReference Reference Line and Find Left Edge defines a reference system that handles syringe rotation and translation. The rest of the image analysis benefits from this. It is important that Reference Line is defined as the first tool in PointLineReference because the first points handles rotation.

Introduction to Scorpion - Demo 1- Label on Syringe Page 25 Syringe Width Create Syringe Width- LineEdgeCaliper –Purpose measure width of syringe in mm LineEdgeCaliper has two trace combs – see image. Select Syringe Reference as reference. Using Syringe Reference means that the tool is relatively positioned and all parameters and results are in mm inherited from MMReference. Set Trace line start and end point to 2 and 6 – remember to set the angle and threshold Remember to set fit-tolerance in mm. A good starting point is 0.04 mm – equal to the pixel size. Set number of trace lines to 21 Set unit and precision of the width and line fit results to mm and two and four decimals. Nominal width is 8.90 mm

Introduction to Scorpion - Demo 1- Label on Syringe Page 26 Measure label position Using two edge finders the left edge and the left slope edge is found. The intersection of these lines defines where the syringe bends. The same applies to the right side of the syringe. The two bends points is used to construct a Label Reference Line. Using a blob Find Marker and an edge finder the upper edge of the upper marker is located precisely. The label position is defined as the distance between the Label Reference Line and the Upper Marker Edge. The distance is classified and is presented in mm i the state panel.

Introduction to Scorpion - Demo 1- Label on Syringe Page 27 Find Left Slope Create Find Left Slope – LineEdgeFinderTool Make a copy of Find Left Edge Paste Find Left Slope Select Find Left Slope Set Syringe Reference as reference Activate image menu Show Info Set ROI center and correct angle Hint : By activating Visualization.Tracelines one can see where the trace comb hits the edge

Introduction to Scorpion - Demo 1- Label on Syringe Page 28 Find Lower Left Edge Create Find Lower Left Edge – LineEdgeFinderTool Copy Find Left Slope Paste Find Lower Left Edge Select Find Lower Left Edge Activate image menu Show Info Set new roi center and correct angle Hint – Gradient is lower on this edge and threshold must be lower on this tool. The edge detection can be improved by smoothing or increasing the number of trace lines.

Introduction to Scorpion - Demo 1- Label on Syringe Page 29 Right side edgefinders The easiest way to configure Find Right Slope and Find Lower Right Edge is to copy the corresponding left edge finders After copying –Change ROI Center and angle –Turn on trace line visualization to see where the trace comb is located –Verify edge polarity and threshold Hint – When moving a copied tool it is very convenient to activate Visualization.this only

Introduction to Scorpion - Demo 1- Label on Syringe Page 30 Verify edgefinders Press Start –Verify that the edge finders located all edge for all test images –On failure Verify threshold and position The number of trace lines increases the image processing time but also the probability to locate an edge Hint : By stopping the continuous inspection it is possible to select images from the history list and reprocess interactively until the edges are located. By pressing Inspection image processing is performed on user request.

Introduction to Scorpion - Demo 1- Label on Syringe Page 31 Construct intersections Create Left intersection – PointFromLines. Select Find Left Slope.Line and Find Lower Left Edge.Line Copy Left Intersection Paste Right Intersection Select Find Right Slope.Line and Find Lower Right Edge.Line

Introduction to Scorpion - Demo 1- Label on Syringe Page 32 Marker Reference Line Create Marker Reference Line using LineFromPoints Select Right Intersection and Left Intersection as points The constructed line defines a zero position for the marker label. The Marker Reference Line has to be constructed. It is not possible to measure due to missing contrast and varying reflection from the syringe.

Introduction to Scorpion - Demo 1- Label on Syringe Page 33 Locate label marker The next step is to locate the label marker. This is done by using a Marker LightMeter and the blob Find Marker. The blob threshold is set dynamically using a python script.

Introduction to Scorpion - Demo 1- Label on Syringe Page 34 Marker LightMeter Create Marker LightMeter of type IntensityTool. Set the reference to Syringe Reference. Press Apply. Active Marker LightMeter.Visualization.this only Activate Image.Show Info to set the center of the lightmeter roi. Verify that the lightmeter roi is placed on the syringe and handles both syringe rotation and translation.

Introduction to Scorpion - Demo 1- Label on Syringe Page 35 Find Marker Threshold Create Find Marker Threshold of type PythonScript The Find Marker blob’s dynamic threshold is calculated using the following script: min = GetTagValue('Marker LightMeter.Min'); #LightMeter.Min is a result of Marker LightMeter SetTagValue('Find Marker Threshold.Value',min+25) #Sets the threshold to itself Hint : Activate Parameters The parameter dialog is available to find the name of the results in the Scorpion tag database.

Introduction to Scorpion - Demo 1- Label on Syringe Page 36 Find Marker Create Find Marker of BlobTool Set reference to Syringe Reference Set the roi equal to Marker LightMeter Set Area Search - thresholds Minimum = 0 Maximum = Find Marker Threshold.Value Set minimum area to 0.2 mm2 Verify that the marker is found for all images by pressing Start.

Introduction to Scorpion - Demo 1- Label on Syringe Page 37 Find Marker Upper Edge Create Find Marker Upper Edge – LineEdgeFinderTool Copy Find Lower Right Edge Paste Find Marker Upper Edge Set reference to Find Marker Set roi x and y to zero. Activate Visualization.Show Graphics Use Image.Show Info to select position and correct angle Adjust and verify threshold for all test images Verify that the upper edge is found by pressing Start. Hint : Increase smooth base and count if the edge of the label is detected.

Introduction to Scorpion - Demo 1- Label on Syringe Page 38 Marker Distance Create Marker Distance – NearestPointOnLine Set reference to MMReferanse Select Find Marker Upper Edge.Center to point and select Marker Reference Line.Line to line. The marker distance is equal to the Marker Distance.Distance result. The dimension is in mm given by the MMReference reference tool. Set the unit and the precision for the Marker Distance.Distance result.

Introduction to Scorpion - Demo 1- Label on Syringe Page 39 Display distance in State Panel Activate State Panel Menu –Select General.No of measured values –Set No of measured values to 1 –Set General.caption = State Activate menu by clicking the value –Select Measured Value.Title = Distance –Select Measured Value.Parameter = Marker Distance.Distance –Select Measured Value.Decimals = 2 –Select Measured Value.Unit = mm Set font Condition to size=20 and bold

Introduction to Scorpion - Demo 1- Label on Syringe Page 40 Operation.Results Active Operation.Results Press New and select a set of parameters To the right a selection of parameters are shown

Introduction to Scorpion - Demo 1- Label on Syringe Page 41 Operation.Curves All results can be graphed and watched To the right the Marker Distance is displayed Activate the Curve Menu and select parameter –The curve configuration is changed by double clicking the curve. Hint : The curve can only be edited in service mode. Hint 2 : Watch the inspection cycle time is a good way to check the system condition

Introduction to Scorpion - Demo 1- Label on Syringe Page 42 Curve Setup – Marker Distance Hint : By capturing N images of a syringe one can establish an estimate for the noise level of measurement by recording the standard deviation

Introduction to Scorpion - Demo 1- Label on Syringe Page 43 Exercise summary Scorpion solved this task by using it’s robust and good edge tools. The edges where detected with a sub-pixel resolution of 5 micrometer. The lines detected are intermediate results but ensures that the label position is measured with at 3 sigma tolerance better than 0.06 mm – this is very good. This means that the customer’s expectations are met without any programming.

Introduction to Scorpion - Demo 1- Label on Syringe Page 44