12.07.2015 Views

The mechanical assembly dimensional measurements with the ...

The mechanical assembly dimensional measurements with the ...

The mechanical assembly dimensional measurements with the ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10666 J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675specific software for image acquisition and <strong>dimensional</strong> <strong>measurements</strong>of <strong>the</strong> <strong>mechanical</strong> <strong>assembly</strong> and established measuringaccuracy, repeatability and suitability of <strong>the</strong> system.2. ProtectorFig. 1. Basic structure of <strong>the</strong> protector.than AVI systems. In many cases <strong>the</strong> human measurement resultsare subjective and depend on workers’s experience. Before <strong>the</strong> AVIsystem can replace <strong>the</strong> human worker it must be tested for accuracyand measurement errors. Measurement errors can occur becauseof <strong>the</strong> object translations regarding to <strong>the</strong> video camera,inappropriate optics, badly captured images and quantization.<strong>The</strong> object translations towards <strong>the</strong> camera can result in ablurred image. Because <strong>the</strong> image sensor (e.g. CCD) is very small,a small translation of <strong>the</strong> object can result in a huge image blurring.This can be prevented <strong>with</strong> object stabilization during imagecapturing, as in our system. In case of system vibrations (Ho, 1983),<strong>the</strong> vibration isolators or <strong>the</strong> stroboscopic lightening can be used.<strong>The</strong> errors that are a consequence of inappropriate optics can bemainly found as a zone error (spherical aberration). In this effect,<strong>the</strong> light rays close and parallel to <strong>the</strong> optical axis are intersectedtoo far away from <strong>the</strong> lens. Contrary, if <strong>the</strong> rays run through <strong>the</strong>edge of <strong>the</strong> lens, <strong>the</strong>y are intersected closer. In lens systems, <strong>the</strong> effectcan be minimized using special combinations of convex andconcave lenses, as well as using aspheric lenses. Beside this effect,astigmatism must also be mentioned. In astigmatism <strong>the</strong> set ofrays, that emerge from one point out of optical axis, are copied into<strong>the</strong> set <strong>with</strong> elliptical shape. Also this effect can be minimized by<strong>the</strong> use of special lens systems. Literature (Yi-Chin et al., 2006) alsorefers to <strong>the</strong> color or chromatic error aberration caused by dispersion,because <strong>the</strong> lens for purple light has a shorter focal lengththan for <strong>the</strong> red color. <strong>The</strong> system of lenses also minimizes thiserror.<strong>The</strong> image capturing means that <strong>the</strong> outer continuous world isdigitalized and this process causes <strong>the</strong> quantization error. This isdirectly related to <strong>the</strong> image sensor resolution. Higher resolutionmeans lower error, but higher image processing time. For this reasona compromise must be found to satisfy both criteria.Using <strong>the</strong> thresholds to separate <strong>the</strong> objects from <strong>the</strong> backgroundis extremely important, meaning that <strong>the</strong> image qualityis high and <strong>the</strong> edges well expressed. For this reason it is necessaryto choose <strong>the</strong> correct lighting. Literature states that a proper lightingdesign in machine vision is a complex process and depends onmany factors. <strong>The</strong> rules can not be given, only <strong>the</strong> guidance (Tarabanis,Allen, & Tsai, 1995; Murase & Nayar, 1994). When <strong>the</strong> lightingis planned, <strong>the</strong> constructor should consider <strong>the</strong> use of varioustypes of illumination (monochromatic, polarized, focused, diffuse)and various properties of observed objects: diffusion, reflectivity,translucency and transparency. In addition, it is possible to light<strong>the</strong> object in many ways ( Miller & Friedman, 2003) and each hasits advantages and disadvantages. Also here <strong>the</strong> universal rule doesnot exist: from <strong>the</strong> front, rear, <strong>with</strong> <strong>the</strong> polarized or non-polarizedlight, direct light, <strong>with</strong> structured and stroboscopic light.In <strong>the</strong> work described in this article, we have exploited <strong>the</strong> poolof published knowledge, utilized low price hardware, developed<strong>The</strong> basic components of <strong>the</strong> protector (Fig. 1) are electrical contactsfor connecting wires, electrical switch, bimetal <strong>with</strong> <strong>the</strong> setscrew, limit and toggle element. In protector, <strong>the</strong> bimetal bendsand over <strong>the</strong> set screw exerts force on <strong>the</strong> limit element. When<strong>the</strong> limit element is pressed enough, it triggers <strong>the</strong> toggle element,which represents half of <strong>the</strong> electrical switch.<strong>The</strong> AVI system was developed for a particular protector type. Ithas nominal switch-off temperature at 400 °C <strong>with</strong> tolerances of±30 °C. In order to achieve switching <strong>with</strong>in <strong>the</strong> prescribed temperatures,<strong>the</strong> most important is <strong>the</strong> distance between <strong>the</strong> toggle elementand <strong>the</strong> limit element, marked <strong>with</strong> <strong>the</strong> letter A (Fig. 7). Fineadjustment of this distance is performed <strong>with</strong> <strong>the</strong> configurationmachines, where first <strong>the</strong> set screw is set in a way that <strong>the</strong> protectorswitches-off at room temperature. Switching event is checkedthrough electrical contacts. Since it is practically impossible andeconomically completely unjustified to adjust <strong>the</strong> set screw at<strong>the</strong> rated temperature (400 °C), <strong>the</strong> set screw is spined at roomtemperature for a certain angle in reverse and fixated <strong>with</strong> glue.This new distance A should be an appropriate distance for protectorto switch-off at <strong>the</strong> rated temperature.<strong>The</strong> described procedure is carried out on all manufactured protectors.Verification of correctness of <strong>the</strong> screw-set distance is donestatistically in <strong>the</strong> production in special ovens, where <strong>the</strong> switchofftemperatures are verified at high temperatures. <strong>The</strong>se measuredswitch-off temperatures are used to set <strong>the</strong> proper numberof reverse revolutions of <strong>the</strong> set screw during production. An identicaloven is also used in laboratory and is described later.<strong>The</strong> control, whe<strong>the</strong>r <strong>the</strong> protector system is correctly assembled,is now visually performed by <strong>the</strong> worker, which causes a possibilityof subjective evaluation. <strong>The</strong>refore, <strong>the</strong>re may be some falseassembled protectors compound in <strong>the</strong> cooking plate. As a consequence,<strong>the</strong>re is a need for introducing <strong>the</strong> AVI system, whichwould eliminate <strong>the</strong> false protectors and possibly set <strong>the</strong> appropriatedistance A. In addition, <strong>the</strong> measurement of o<strong>the</strong>r dimensions,prescribed by tolerances, can be done. <strong>The</strong>se measurement resultscan be statistically observed in a long time period.3. Automated visual inspection system<strong>The</strong> decision to develop a system for non-contact visual systemwas only acceptable, due to <strong>the</strong> structure and composition of individualprotector parts (Sato, Ishikawa, Hiraki, & Takamasu, 2002).In <strong>the</strong> class of non-contact measuring sensors are widely used triangulationlaser systems (Nguyen, 1995), that project laser light asdot, line or o<strong>the</strong>r curve. Test trials of measurement by laser triangulationline system Keyence LJ-G030 have shown, that <strong>the</strong> desireddimensions of components and <strong>the</strong> distances between <strong>the</strong>m cannot be measured, due to too small distances between <strong>the</strong> componentsof <strong>the</strong> protector.Also in video systems many problems are found. From <strong>the</strong> hardware,video camera types, lens choice and particularly <strong>the</strong> correctlighting. In measuring systems it is also very important to have<strong>the</strong> proper camera field of view, which is inversely related to <strong>the</strong>measurement accuracy, that is exhaustively discussed by Hsua,Lina, and Lee (2005).<strong>The</strong> developed AVI system for measuring <strong>the</strong> dimensions anddistances between certain components of <strong>the</strong> protector is shownin Fig. 2. It consists of a monochromatic video camera, a lens <strong>with</strong>appropriate extension rings, an adequate lighting and a <strong>mechanical</strong>


J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675 10667Fig. 2. Prototype of AVI system <strong>with</strong> close-up showing lighting solution and protector bed.clamping system <strong>with</strong> a light shield and a protector positioningsystem.3.1. Video cameraWhen <strong>the</strong> video camera needs to be selected, <strong>the</strong> following factorshave to be accounted (Davies, 2005): what kind of image wewant to capture, line or matrix; do we need black and white or colorsensor; which image resolution is <strong>the</strong> most suitable for desiredproperties and how <strong>the</strong> object is illuminated.Our customer defined a measurement error <strong>with</strong>in <strong>the</strong> range of±0.01 mm and field of view to be about 5 3mm (W H). Toachieve <strong>the</strong> desired measurement error <strong>the</strong> recommended resolutionof <strong>the</strong> measuring system is at least ten times lower, in our case1 lm. <strong>The</strong> customer required in <strong>the</strong> first stage a prototype system.For this reason a compromise in <strong>the</strong> initial financial investmentwas needed. Selected and installed monochrome camera was DMK41AU02 type, produced by <strong>The</strong> Imaging Source. It has a Sony CCD arrayimage sensor size 1/2’’ <strong>with</strong> a resolution of 1280 960 pixels. Inthis way we achieved a horizontal resolution of approximately 4 lmon <strong>the</strong> image element and vertically approximately 3 lm on <strong>the</strong> imageelement. <strong>The</strong> camera is connected to a PC via USB 2.0 connection.3.2. Mechanical structure <strong>with</strong> a light shield<strong>The</strong> base of <strong>the</strong> prototype system is a <strong>mechanical</strong> structure, asshown in Fig. 2. <strong>The</strong> figure presents <strong>the</strong> system <strong>with</strong>out a lightshield, which is necessary to maintain constant lighting conditions.<strong>The</strong> framework structure is designed for a rigid attachment of <strong>the</strong>video camera. <strong>The</strong> camera attachment system allows positioning of<strong>the</strong> camera in all three axes of <strong>the</strong> Cartesian coordinate system.This is done by special screws. <strong>The</strong> system is designed in a way,that <strong>the</strong> camera is mounted on a special groove to set camera fieldof view perpendicularly to <strong>the</strong> protector bed. This is extremelyimportant for <strong>the</strong> image depth of field.In addition, <strong>the</strong> <strong>mechanical</strong> structure has also a function toproperly position <strong>the</strong> protector (2) in camera field of view, as canbe seen on Fig. 3. <strong>The</strong> user can roughly position <strong>the</strong> protector in<strong>the</strong> prototype system. <strong>The</strong>n, <strong>the</strong> protector is pushed (1) <strong>with</strong> apneumatic cylinder to predetermined limit position (4), all this enablesa narrower camera field of view. <strong>The</strong> design of <strong>the</strong> guides (5)was very careful. It was necessary to lean <strong>the</strong> guides on <strong>the</strong> protectorswitch system to position protectors <strong>the</strong> same way according to<strong>the</strong> camera field of view. This is a must due to large tolerances of<strong>the</strong> ceramic housing. In <strong>the</strong> direction where <strong>the</strong> camera’s field ofview is larger, a support (3) was made directly on <strong>the</strong> ceramic bodyof <strong>the</strong> protector, which has proved quite appropriate. This supportFig. 3. Protector positioning in AVI system.was made <strong>with</strong> a screw, <strong>the</strong> o<strong>the</strong>r two lean points are usingsprings.3.3. <strong>The</strong> lens and <strong>the</strong> extension rings<strong>The</strong> most important component of each video system is an adequatelens. Similarly to <strong>the</strong> camera, cheaper optics were chosen,from <strong>the</strong> company Fujinon, type HF50HA-1B, <strong>the</strong> C mount adapter.In order to minimize <strong>the</strong> distortion, <strong>the</strong> lens has a focal length of50 mm, <strong>the</strong> minimal working distance is 0.5 m. <strong>The</strong> lens allowsmanual focusing and shutter adjustment from F2.3 to F22.Since <strong>the</strong> selected lens has a large focal length, <strong>the</strong> depth of fieldwas lost, which decreases <strong>with</strong> <strong>the</strong> square of focal length (Eq. (1)).In this equation abbreviation WD stands for working distance, BS isa blur spot, I represents <strong>the</strong> iris, while F is <strong>the</strong> focal length. During<strong>the</strong> later trials, <strong>the</strong> reduction of depth of field, has not been a problem.O<strong>the</strong>rwise, <strong>the</strong> lens <strong>with</strong> a smaller focal length should havebeen mounted. However <strong>the</strong> use of such lens would result in greaterimage distortion.WDDOF ¼: ð1Þ1 BS I WD FF 2<strong>The</strong> desired field of view on <strong>the</strong> protector was very small and<strong>the</strong> lens minimum working distance was too large. <strong>The</strong>se reasonsrequired installation of <strong>the</strong> extension rings, between <strong>the</strong> cameramount and <strong>the</strong> lens. With <strong>the</strong>se rings, <strong>the</strong> lens was moved away


J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675 10669StartProtectorProtectorImageacquisition19B 14F42Imagesatisfactory?E110 D68117E352EA 13E3124EE5Fig. 7. Search areas and measured dimensions.6E A ¼ 1; x; x 2 ; ...; x n ; ð2ÞE7h i 1p ¼ A T A A T y; ð3Þ^y ¼ p 0 þ p 1 x þ p 2 x 2 þþp n x n :ð4Þ8101214EEEdimension AE9E11E13E<strong>The</strong> same sequence is repeated in <strong>the</strong> case of <strong>the</strong> bimetal edge,marked <strong>with</strong> number 2. Searching procedure is in <strong>the</strong> extremeupper right area of <strong>the</strong> image in <strong>the</strong> rectangle whose position isalso predefined by <strong>the</strong> user. In this area ano<strong>the</strong>r user predefinedrectangle is present and used for finding <strong>the</strong> upper edge of <strong>the</strong> limitelement, marked <strong>with</strong> <strong>the</strong> number 3. <strong>The</strong> next event ma<strong>the</strong>maticallydescribes both, <strong>the</strong> edge of <strong>the</strong> bimetal and <strong>the</strong> upper edgeof <strong>the</strong> limit element (numbers 2 and 3). With this information adistance between <strong>the</strong>se two lines is calculated, on <strong>the</strong> Fig. 7marked <strong>with</strong> a letter F and on <strong>the</strong> Fig. 6 <strong>with</strong> a step number 4.<strong>The</strong> calculation of <strong>the</strong> distance F is needed to recognize possibledeviations that suggest poorly configured protectors. In this caseno fur<strong>the</strong>r analysis is required and <strong>the</strong> program terminates.All <strong>the</strong> required distances are calculated by defining <strong>the</strong> intersectionpoints between ma<strong>the</strong>matically approximated lines and<strong>the</strong>n by Eq. (5) <strong>the</strong> distances between <strong>the</strong>se points are calculated:EqffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffidðA; BÞ ¼ ðx 2 x 1 Þ 2 þ ðy 2 y 1 Þ 2 ; ð5ÞEndEFig. 6. Software flow diagram.checks if all left area in <strong>the</strong> square is black. If not, an error is returnedand <strong>the</strong> measurement procedure is stopped. Determinationof <strong>the</strong> left vertical edge proceeds by finding <strong>the</strong> edge on <strong>the</strong> binaryimage. <strong>The</strong>n <strong>the</strong> method of <strong>the</strong> least squares (Eqs. (2) and (3)) isused, through <strong>the</strong> stored coordinates of <strong>the</strong> edge points. <strong>The</strong> polynomialof 1st order that is equal to <strong>the</strong> linear line is approximatedthrough <strong>the</strong> binary edge points (Eq. (4)). This method is used for alledge approximations, both for linear and higher order polynomialapproximations. <strong>The</strong> procedure filters <strong>the</strong> edges, which is importantdue to small dust particles that can appear on edges. Whenusing ma<strong>the</strong>matical equations also <strong>the</strong> distance calculations aremore accurate. In <strong>the</strong> case that error occurs during <strong>the</strong> ma<strong>the</strong>maticaledge approximation, <strong>the</strong> program informs <strong>the</strong> user and procedureis terminated. On <strong>the</strong> diagram such an event is marked <strong>with</strong><strong>the</strong> letter E.In Fig. 6 number 5 shows a step in which <strong>the</strong> lower edge of <strong>the</strong>limit element is found and ma<strong>the</strong>matically approximated by <strong>the</strong>linear line. This procedure is performed on <strong>the</strong> right side of <strong>the</strong> image,still <strong>with</strong>in <strong>the</strong> specified rectangle. By setting this line, <strong>the</strong> limitelement thickness is calculated, marked <strong>with</strong> <strong>the</strong> letter E andnumber 7 in Fig. 7. <strong>The</strong> tests showed that <strong>measurements</strong> of dimensionE are not as accurate as we wanted, as a consequence of <strong>the</strong>limit element material reflectivity. This reason can cause <strong>the</strong> thicknessof <strong>the</strong> limit element to be too small, up to 0.02 mm comparingto <strong>the</strong> manufactured dimension. <strong>The</strong> limit element material ismanufactured by <strong>the</strong> EN ISO 9445: 2006 (International StandardISO, 2006) standard, class P. This standard defines limit elementthickness of 0.200 ± 0.008 mm. Due to <strong>the</strong> standard’s very narrowtolerances, in <strong>the</strong> fur<strong>the</strong>r calculations a value of 0.20 mm is used.In <strong>the</strong> next step, based on <strong>the</strong> defined edges, <strong>the</strong> left edge or ahook of <strong>the</strong> limit element is defined. In <strong>the</strong> utmost point of <strong>the</strong>hook <strong>the</strong> vertical line from step 1 is applied again. This line ismarked <strong>with</strong> <strong>the</strong> number 6. In <strong>the</strong> middle of <strong>the</strong>se two parallellines, <strong>the</strong> perpendicular distance D is calculated, on Figs. 6 and 7marked <strong>with</strong> line number 10. In <strong>the</strong> design drawings for protector


10670 J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675this distance is defined as 1.6 ± 0.05 mm. It directly influences <strong>the</strong>force of bimetal pushing <strong>the</strong> toggle element.Due to <strong>the</strong> force exerted on <strong>the</strong> limit element, it slightly bendsand linear approximation of <strong>the</strong> upper edge is not suitable. Fig. 7demonstrates that <strong>the</strong> upper edge of <strong>the</strong> limit element lies on<strong>the</strong> boundary where dimensions A and B connect. <strong>The</strong>refore <strong>the</strong>definition of <strong>the</strong> boundary point is not possible. That is why <strong>the</strong>bottom limit element edge is ma<strong>the</strong>matically defined, by using2nd order polynomial, marked <strong>with</strong> <strong>the</strong> line number 8. As next, thisma<strong>the</strong>matically approximated polynomial is shifted upwards for<strong>the</strong> fixed dimension E. This line represents <strong>the</strong> upper edge of <strong>the</strong>limit element.Tests uncovered that <strong>the</strong> setting of <strong>the</strong> bimetal edge, marked<strong>with</strong> <strong>the</strong> line number 2, is in most cases satisfactory only when<strong>the</strong> field of search rectangle is positioned upper-right. <strong>The</strong>refore,we were forced to define <strong>the</strong> bimetal edge also on <strong>the</strong> left side of<strong>the</strong> set-screw, which is represented as line number 9. This searchprocedure is relative to <strong>the</strong> vertical line that defines <strong>the</strong> left edgeof <strong>the</strong> limit element hook and carried out in preset width. By combiningdata of <strong>the</strong> bimetal edge from Section 2 and 9, <strong>the</strong> bimetalbottom edge is most precisely defined.<strong>The</strong> calculations of <strong>the</strong> dimensions A and B are carried out in <strong>the</strong>contact point of <strong>the</strong> set screw and <strong>the</strong> limit element. Since thispoint depends on <strong>the</strong> position of <strong>the</strong> set screw, it is impossible todetermine this point precisely. Most reasonable is that <strong>the</strong> pointof contact between <strong>the</strong> set screw and <strong>the</strong> limit element is takenin <strong>the</strong> middle of <strong>the</strong> set screw, as is defined in section 11. <strong>The</strong> middlepoint definition procedure uses <strong>the</strong> area from nearby right sideof <strong>the</strong> limit element hook vertical line and left rectangle side forlimit element edge search, letter E or line number 7. At this step<strong>the</strong> polynomial approximation of <strong>the</strong> upper limit element edge isshifted upwards for 0.04 mm. <strong>The</strong> algorithm first finds <strong>the</strong> blackarea of <strong>the</strong> set screw, <strong>the</strong> middle region represents <strong>the</strong> middle of<strong>the</strong> set-screw. Using this procedure <strong>the</strong> middle line of <strong>the</strong> set screwcan not be defined highly precise, but <strong>the</strong> tests demonstrated that<strong>the</strong> approach gives satisfactory results.A huge challenge was to define <strong>the</strong> toggle element edge, in Fig. 7numbered <strong>with</strong> line 12. Finding that edge was not trivial due to <strong>the</strong>shadows that can occasionally appear in <strong>the</strong> left bottom area of <strong>the</strong>image. <strong>The</strong>se shadows can appear from <strong>the</strong> limit element hookblocking <strong>the</strong> light. For successful definition of <strong>the</strong> toggle elementedge, a special algorithm was created. <strong>The</strong> algorithm is based on setting<strong>the</strong> dynamic threshold of <strong>the</strong> image between <strong>the</strong> two presetthresholds. <strong>The</strong>se two limits are set by <strong>the</strong> user, usually between10 and 100, <strong>with</strong> <strong>the</strong> lower and upper limits being 0 and 255. <strong>The</strong> dynamicadjustment step is 5. This dynamic approach was chosen toselect optimal value, i.e. when <strong>the</strong> threshold is increased <strong>the</strong> shadowslowly appears. <strong>The</strong> tests showed that <strong>the</strong>re is a small white area between<strong>the</strong> shadow and <strong>the</strong> toggle element edge, which is gettingsmaller <strong>with</strong> higher threshold values. When <strong>the</strong> threshold is high enough<strong>the</strong> white area disappears. This threshold is too high, thus previousvalue is used. Next, <strong>the</strong> ma<strong>the</strong>matical approximation of <strong>the</strong>edge is carried out. <strong>The</strong> search is started from <strong>the</strong> short vertical linenumber 12 to <strong>the</strong> extreme right edge of <strong>the</strong> image, from bottom up.<strong>The</strong> last black pixel represents <strong>the</strong> eventual edge point. In this areadirt, shadows and part of <strong>the</strong> limit element hook can occur. That iswhy a moving average algorithm over <strong>the</strong> found edge points is used.This means that over <strong>the</strong> edge points a virtual window shifts fromleft to right, <strong>the</strong> step size is a pixel value. If <strong>the</strong> edge point in a windowis too far away from <strong>the</strong> last local mean value, <strong>the</strong>n this pointgets <strong>the</strong> mean value. This algorithm does not catch <strong>the</strong> influence offar away points as in <strong>the</strong> case of direct use of <strong>the</strong> least mean squaremethod. Over <strong>the</strong> pool of edge binary points a linear approximationis defined, describing <strong>the</strong> toggle element edge.<strong>The</strong> last approximation line enables <strong>the</strong> calculation of dimensionsA and B, inFigs. 6 in Fig. 7 marked as lines number 13 and14. <strong>The</strong> calculation is performed by setting a line through <strong>the</strong> middleof <strong>the</strong> set screw perpendicular to <strong>the</strong> toggle element edge line.<strong>The</strong> intersections of approximated lines represent <strong>the</strong> dimensionsA and B.When <strong>the</strong> analysis is finished, <strong>the</strong> user is informed about <strong>the</strong>measurement results and <strong>the</strong> program window displays dimensionsA, B, D, E and F. <strong>The</strong> user is also informed whe<strong>the</strong>r <strong>the</strong> dimensionsare in <strong>the</strong> predefined boundaries or not and <strong>the</strong> data is savedin <strong>the</strong> database.4.3. Calibration of <strong>the</strong> AVI systemEvery measuring instrument has to be calibrated before <strong>the</strong> use.For this purpose, our software offers also <strong>the</strong> calibration of <strong>the</strong>measuring AVI system. For calibration purposes <strong>the</strong> user uses threecalibration protectors, <strong>with</strong> known dimensions A, B and E, in ourcase previously measured <strong>with</strong> <strong>the</strong> certified profile projector measuringsystem, type Mitutoyo PV500.<strong>The</strong> user has to manually insert <strong>the</strong> pre-measured dimensionvalues in <strong>the</strong> empty software fields, before <strong>the</strong> first calibration.<strong>The</strong> calibration procedure is <strong>the</strong> same as <strong>the</strong> measuring procedure,described in previous section. <strong>The</strong> main difference in calibrationprocedure is that dimensions are not calculated, but ra<strong>the</strong>r <strong>the</strong>number of pixels between intersection lines is defined. <strong>The</strong> numberof pixels between <strong>the</strong>se edges is a decimal value number.By using <strong>the</strong> decimal pixel values <strong>the</strong> transformation betweennumber of pixels to metric units is performed. Because <strong>the</strong> opticsnonlinearities, <strong>the</strong> relationship between <strong>the</strong> pixels is not completelylinear. For this reason <strong>the</strong> user can select which approximationpolynomial order best transforms <strong>the</strong> number of pixels intometric units. <strong>The</strong> polynomial order can be selected from 1 to 6. Thispolynomial transformation is calculated by using <strong>the</strong> residuals and<strong>the</strong> factor R 2 , called <strong>the</strong> coefficient of determination. This coefficienthas a value between 0 and 1, where higher value reflectsbetter approximation. An example of <strong>the</strong> transformation approximationcan be seen on Fig. 8, where polynomial of 4th order isused.R 2 was calculated using Eq. (6), where y is <strong>the</strong> measured value, yis <strong>the</strong> mean and ^y is <strong>the</strong> current calculated polynomial value.ResidualSS ¼ X ðy ^yÞ 2 ;TotalSS ¼ X ðy yÞ 2 ; ð6ÞR 2 ¼ 1ResidualSSTotalSS ;Fig. 8. User window for polynomial transformation from number of pixels intometric units.


J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675 10671For calibration purposes three normal protectors were chosen<strong>with</strong> dimensions A, B and E being <strong>the</strong> most spread over <strong>the</strong> AVI systemmeasuring range. At this point it must be stated that also during<strong>the</strong> calibration procedure, <strong>the</strong> dimension E was fixed at value0.20 mm. This value is <strong>the</strong> same as measured by using calibratedprofile projector measuring system.5. Methodology5.1. Dimensional <strong>measurements</strong> of <strong>the</strong> calibration protectorsFor <strong>the</strong> calibration of <strong>the</strong> presented AVI system three objects areneeded. <strong>The</strong>ir known dimensions A, B and E are pre-measured <strong>with</strong>an optical profile projector. It was also used to measure ano<strong>the</strong>rfive protectors used as control samples for defining <strong>the</strong> measurementerror.On <strong>the</strong>se eight protectors dimensions A, B and E were measured.Measurements were performed by <strong>the</strong> use of <strong>the</strong> profile projector,type Mitutoyo PV500. <strong>The</strong> resolution of this system is 1 lm <strong>with</strong><strong>the</strong> repeatability of 3 lm. <strong>The</strong> magnifying factor during <strong>the</strong> <strong>measurements</strong>was set to 20. For more accurate protector positioningon <strong>the</strong> measurement board also a special magnifying glass <strong>with</strong> amagnifying factor of 10 was applied. Measurement uncertaintyof <strong>the</strong> profile projector is described by <strong>the</strong> publication EA-4/02(European Co-operation for Accreditation, 1999) and Eq. (7). <strong>The</strong>result and <strong>the</strong> measured distance L is expressed in lm.u ¼ 4 þ 5 10 6 L ; ð7ÞCalibration of <strong>the</strong> profile projector measuring system is performedevery 2 years. For <strong>the</strong> calibration special calibrating blocksand glass rulers are used. <strong>The</strong> procedure for <strong>the</strong> calibration of <strong>the</strong>profile projector measuring system is not defined in detail by anyinternational standard. <strong>The</strong>refore <strong>the</strong> calibration is performed byinternal calibration procedures, which are accredited by an externaljudge. In our case, by <strong>the</strong> Dutch independent, internationallyrecognized testing and certification institute, called NMi (NederlandsMeetinstituut). Every calibration protector was measuredonly once at room temperature (23 ± 1)°C.<strong>The</strong> measurement procedure is as following. <strong>The</strong> calibrationprotector is laid on <strong>the</strong> glass surface of <strong>the</strong> profile projector. <strong>The</strong>profile projector measuring system, by <strong>the</strong> use of lenses and mirrors,projects <strong>the</strong> image of <strong>the</strong> measured object on <strong>the</strong> glass surfaceequipped <strong>with</strong> coordinate system and ruler marks. By rotating <strong>the</strong>micrometers <strong>the</strong> coordinate system is moved to <strong>the</strong> preferred positionand orientation. In our case <strong>the</strong> X axis was levelled to <strong>the</strong>toggle element and <strong>the</strong> Y axis to <strong>the</strong> middle of <strong>the</strong> set screw. Afterlevelling, <strong>the</strong> coordinate system was positioned at <strong>the</strong> bottom of<strong>the</strong> limit element still in <strong>the</strong> middle of <strong>the</strong> set screw. This was<strong>the</strong> position where <strong>the</strong> micrometers values were reset to zero. Thiscenter point was chosen as <strong>the</strong> most exposed part of <strong>the</strong> protectorwhen measured by a profile projector. <strong>The</strong> position of this centerpoint is not appropriate for measuring distances A and B, because<strong>the</strong> distance A is too short and distance B too long for 0.20 mm,as is <strong>the</strong> thickness of limit element material.This measurement procedure has a great subjective influence of<strong>the</strong> person who performs <strong>the</strong> <strong>measurements</strong>, because many edgesare difficult to define <strong>with</strong> great precision, although <strong>the</strong> use ofmagnification helps to achieve more accurate <strong>measurements</strong>.From all 8 reference protectors, three were defined as calibrationobjects to define <strong>the</strong> transformation of <strong>the</strong> number of pixelsinto metric units, in our case in millimeters. To describe <strong>the</strong> transformationa polynomial transformation of <strong>the</strong> 4th order was usedalongside <strong>the</strong> linear transformation function. <strong>The</strong> 4th order polynomialhad <strong>the</strong> highest R 2 value. <strong>The</strong> calibration protectors <strong>with</strong> sequencenumbers 2, 6 and 7 had <strong>the</strong>ir measured values A, B and E<strong>the</strong> most spread over <strong>the</strong> field of view of <strong>the</strong> AVI system. O<strong>the</strong>r protectors,numbers 1, 3, 4, 5 and 8, had been used as control objectsfor defining measurement accuracy and repeatability of <strong>the</strong> AVIsystem. <strong>The</strong> <strong>measurements</strong> <strong>with</strong> <strong>the</strong> AVI system were performedat room temperature of 23 °C. Every protector was manually positionedinto <strong>the</strong> system bed. After a measurement was run, everyprotector was manually removed from <strong>the</strong> system bed. Numberof repeated <strong>measurements</strong> on each protector was 25.5.2. Dimensional <strong>measurements</strong> of <strong>the</strong> protectorsTo ensure that <strong>the</strong> manufactured protectors switch-off at <strong>the</strong>right temperatures, it is necessary to statistically test protectors ina laboratory. 72 protectors randomly taken from already sealedpackages presents a measurement set. Several sets are tested daily.Each protectors set is put into a special oven. Every protector in <strong>the</strong>oven is electrically connected to observe <strong>the</strong> state of <strong>the</strong> switch. <strong>The</strong>oven is gradually heated. <strong>The</strong> inner temperature is measured <strong>with</strong> aPT-100 class A temperature sensor. Its measurement error is expressedby Eq. (8). <strong>The</strong> calculation temperature (T x ) is at 400 °C.DT ¼0:15 ð þ 0:002 T x Þ ¼ 0:95 C: ð8Þ<strong>The</strong> heating of <strong>the</strong> oven proceeds until <strong>the</strong> last protector reachesits switch-off temperature. For safety reasons <strong>the</strong> maximum innertemperature is set to 480 °C, where <strong>the</strong> heaters are also switchedoff. After heating, <strong>the</strong> oven is passively cooled to <strong>the</strong> temperaturewhere <strong>the</strong> last protector switches back on. <strong>The</strong> switch-off andswitch-on temperature value of each protector are saved into acomputer database. <strong>The</strong> procedure is repeated three times in <strong>the</strong>laboratory. As a measurement result, <strong>the</strong> average value of <strong>the</strong> secondand <strong>the</strong> third cycle is used. This measurement procedure in alaboratory is very slow and every set takes 6–9 h to complete. Inproduction facilities this slow procedure is performed only once.This is <strong>the</strong> main reason why a faster measurement would be verywelcome. <strong>The</strong> fastest method would be if <strong>the</strong> switch-off temperatureis in correlation to <strong>the</strong> dimension A. <strong>The</strong> presented AVI system needsless <strong>the</strong>n a second to assess <strong>the</strong> dimensions A, B, D and F. Including<strong>the</strong> protector manipulation, <strong>the</strong> overall time is less than 2 s, whichis much less than manufacturing time cycle. Fast <strong>measurements</strong>using such a system would result in testing of each manufacturedprotector, as opposed to today’s statistical sampling methods.Until today no comparative measurement on a large set of protectorswas performed, where <strong>the</strong> dimension A could be directlycompared to <strong>the</strong> switch-off temperature. For measurement purposesa set of 220 protectors was chosen. All were fine calibratedduring <strong>the</strong>ir production. Fur<strong>the</strong>rmore, a second set of 220 protectorswas also chosen. <strong>The</strong>y were only roughly calibrated at <strong>the</strong> set screwassembling. <strong>The</strong>se are meant as non-calibrated. <strong>The</strong> reason to includealso non-calibrated protectors, was to verify if only rough calibrationwas enough for production. All protectors were numberedand than measured by <strong>the</strong> presented AVI system and also <strong>with</strong> <strong>the</strong>reference heat and cool oven procedure. During <strong>measurements</strong> <strong>with</strong><strong>the</strong> AVI system each protector was measured only once. In <strong>the</strong> oven<strong>the</strong> standard procedure was repeated. In <strong>the</strong> set of calibrated protectors218 of <strong>the</strong>m were successfully measured by <strong>the</strong> AVI system and217 of <strong>the</strong> non-calibrated set. <strong>The</strong> reason why some of <strong>the</strong> protectorswere not successfully measured originates from <strong>mechanical</strong> problemsof <strong>the</strong> pneumatic positioning system of <strong>the</strong> AVI system. Someof <strong>the</strong> ceramic protector housings were out of tolerances.6. Results6.1. Dimensional <strong>measurements</strong> of <strong>the</strong> calibration protectors<strong>The</strong> measurement results of dimensions A, B and E obtainedwhen using a certified profile projector are given in Table 1. All


10672 J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675Table 1Reference dimensions A and B.Protector dimension 1 (mm) 2 (mm) 3 (mm) 4 (mm)A 1.87 1.56 1.80 1.57B 0.71 0.95 0.70 1.09Protector 5 6 7 8A 1.76 1.76 2.27 1.32B 0.87 0.71 0.35 1.29<strong>measurements</strong> are rounded to two decimal places, <strong>the</strong> third doesnot represent measurement accuracy. <strong>The</strong> dimension E is0.20 mm. <strong>The</strong> o<strong>the</strong>r two dimensions are widely spread over <strong>the</strong>measuring range. <strong>The</strong> range of dimension A ranges from 1.32 to2.27 mm, resulting in 0.95 mm dispersion. <strong>The</strong> spread of <strong>the</strong>dimension B is 0.94 mm wide, from 0.35 to 1.29 mm. <strong>The</strong> sum ofboth dimensions is 2.55 mm, representing almost whole verticalrange of <strong>the</strong> camera field of view, which is approximately 3 mm.<strong>The</strong> results ga<strong>the</strong>red by AVI system <strong>with</strong> <strong>the</strong> linear transformationbetween number of pixels and metric units are displayed inTable 2. <strong>The</strong> first column lists <strong>the</strong> number of <strong>the</strong> measured protector,<strong>the</strong> second shows measured dimension, <strong>the</strong> third containsmean measured distances, <strong>the</strong> forth <strong>the</strong> error between currentmean and reference value, which can represent <strong>the</strong> accuracy and<strong>the</strong> last column <strong>the</strong> error between current mean value and measuredvalue. <strong>The</strong> last can be considered as measurementrepeatability.<strong>The</strong> errors measured in <strong>the</strong> calibration protectors (numbered 2,6 and 7) are in <strong>the</strong> range of ±0.02 mm, meaning around ±5 pixels. If<strong>the</strong> repeatability is observed <strong>the</strong> values range from 0.00 to0.01 mm, meaning around 2 pixels.Looking at <strong>the</strong> o<strong>the</strong>r five protectors, <strong>the</strong> errors are in <strong>the</strong> samerange of ±0.02 mm as in calibration protectors. <strong>The</strong> repeatabilityvalue of <strong>the</strong>se protectors is ±0.01 mm and as such completelysatisfactory.<strong>The</strong> results measured by AVI system <strong>with</strong> <strong>the</strong> 4th order polynomialinterpolation between number of pixels and metric units, aredisplayed in Table 3. This polynomial order demonstrated <strong>the</strong> highestR 2 value. As before, <strong>the</strong> first column shows <strong>the</strong> number of <strong>the</strong>measured protector, <strong>the</strong> second lists dimension abbreviation, <strong>the</strong>third brings mean measured distances, <strong>the</strong> forth <strong>the</strong> error betweenmean and reference value, which can represent <strong>the</strong> accuracy and<strong>the</strong> last column <strong>the</strong> error between mean value and measured value.<strong>The</strong> last column can be considered as a measurement repeatability.Table 2Measurement results when using linear transformation.No. Dimension Mean value (mm) Error (mm) Repeatability (mm)Min Max2 A 1.54 0.02 0.00 0.00B 0.97 0.02 0.00 0.006 A 1.75 0.01 0.00 0.00B 0.71 0.00 0.00 0.017 A 2.29 0.02 0.00 0.01B 0.34 0.01 0.00 0.011 A 1.87 0.00 0.00 0.00B 0.71 0.00 0.00 0.013 A 1.81 0.01 0.01 0.00B 0.70 0.00 0.00 0.004 A 1.55 0.02 0.01 0.01B 1.09 0.00 0.00 0.005 A 1.77 0.01 0.02 0.00B 0.86 0.01 0.00 0.008 A 1.30 0.02 0.00 0.00B 1.29 0.00 0.01 0.00Table 3Measuring results when using 4th order polynomial transformation.No. Dimension Mean value (mm) Error (mm) Repeatability (mm)Min Max2 A 1.56 0.00 0.01 0.00B 0.96 0.01 0.01 0.006 A 1.77 0.01 0.01 0.00B 0.70 0.01 0.01 0.007 A 2.28 0.01 0.01 0.00B 0.34 0.01 0.01 0.001 A 1.90 0.03 0.01 0.00B 0.69 0.02 0.00 0.013 A 1.84 0.04 0.01 0.00B 0.68 0.00 0.00 0.004 A 1.57 0.00 0.01 0.01B 1.09 0.00 0.01 0.005 A 1.80 0.04 0.01 0.00B 0.84 0.03 0.00 0.018 A 1.30 0.02 0.00 0.01B 1.29 0.00 0.00 0.00<strong>The</strong> error measured in <strong>the</strong> calibration protectors (numbered 2, 6and 7) is in <strong>the</strong> range of ±0.01 mm, meaning around ±2 pixels. <strong>The</strong>repeatability values range from 0.01 to 0.00 mm.When checking <strong>the</strong> o<strong>the</strong>r five protectors, <strong>the</strong> encountered errorsare much higher. In protectors 3 and 5 <strong>the</strong> error for dimensionA is 0.04 mm, in dimension B <strong>the</strong> error is smaller having a value of0.02 mm. <strong>The</strong> repeatability is in range from 0.02 to 0.01 mm.Fig. 9 shows errors between results measured by <strong>the</strong> AVI systemand <strong>the</strong> reference values measured <strong>with</strong> <strong>the</strong> profile projector. <strong>The</strong>bars for dimensions A and B are displayed for 1st (linear) and 4thorder polynomials used to transform number of pixels to metricunits. <strong>The</strong> upper diagram shows comparison for dimension A and<strong>the</strong> bottom for dimension B. <strong>The</strong> horizontal axis represents <strong>the</strong>protector number and <strong>the</strong> vertical axis <strong>the</strong> error in millimeters.Again it can be seen that error is more equally distributed over<strong>the</strong> measuring range in <strong>the</strong> case of linear transformation.6.2. Dimensional <strong>measurements</strong> of <strong>the</strong> protectorsIn Fig. 10, a histogram shows switch-off temperatures of 220calibrated protectors from <strong>the</strong> production, <strong>with</strong>out using AVIsystem. <strong>The</strong> measurement tests were made in a laboratory oven.Error (mm)Error (mm)0.020−0.02−0.040.040.020−0.02Dimension A1 2 3 4 5 6 7 8Protector numberDimension B1 2 3 4 5 6 7 8Protector number1st order 4th orderFig. 9. <strong>The</strong> error according to <strong>the</strong> polynomial order; <strong>the</strong> profile projector values aretaken as standard.


J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675 10673No. of samples6050403020100340 360 380 400 420 440Switch−off temperature (°C)Fig. 10. Sample of 220 calibrated protectors; switch-off temperature.<strong>The</strong> horizontal axis shows switch-off temperatures in degreesCelsius, steps of 20 °C. Two vertical dashed lines represent <strong>the</strong>tolerance area of ±30 °C, according to predefined switch-offtemperature of 400 °C. <strong>The</strong> mean value of measured sample is398 °C and standard deviation 9.2 °C. <strong>The</strong>se results show that <strong>the</strong>majority of protectors switch-off in <strong>the</strong> tolerance range. Only threeprotectors switched-off outside <strong>the</strong> tolerance area, <strong>with</strong> switch-offtemperatures: 352, 369 and 441 °C.<strong>The</strong> <strong>measurements</strong> of <strong>the</strong> switch-off temperatures of protectorscalibrated in production demonstrated that <strong>the</strong>y are in most casesproperly calibrated. For this reason <strong>the</strong> mean value of <strong>the</strong> dimensionA can represent <strong>the</strong> mean switch-off temperature. <strong>The</strong> distributionof dimension A, measured <strong>with</strong> AVI system in observedsample is shown in Fig. 11. <strong>The</strong> mean value is 1.93 mm <strong>with</strong> standarddeviation 0.05 mm. Based on <strong>the</strong>se values <strong>the</strong> tolerance rangewas set to embrace equal number of protectors as seen in <strong>the</strong> tolerancearea of switch-off temperatures. This way <strong>the</strong> set tolerancearea has a width of ±0.15 mm according to <strong>the</strong> mean value, on <strong>the</strong>figure being represented by two vertical dashed lines.To replace <strong>the</strong> very slow <strong>measurements</strong> of <strong>the</strong> switch-off temperaturein <strong>the</strong> oven <strong>with</strong> <strong>the</strong> AVI system approach, <strong>the</strong> relationbetween dimension A and switch-off temperature should be linear(Fig. 12). <strong>The</strong> horizontal axis represents dimension A, <strong>the</strong> verticalaxis stands for switch-off temperature in degrees Celsius. Each circlerepresents one numbered protector, <strong>the</strong> dashed lines define toleranceareas. If <strong>the</strong> relation would be linear, <strong>the</strong>n <strong>the</strong> circles wouldappear on <strong>the</strong> line between <strong>the</strong> intersection of dashed lines. In <strong>the</strong>diagram it is clearly seen that <strong>the</strong> relation is not linear and toospread around <strong>the</strong> line. Fur<strong>the</strong>rmore, one protector <strong>with</strong> dimensionA <strong>with</strong>in <strong>the</strong> tolerance area switched-off at to high temperature.<strong>The</strong> oven measurement results of switch-off temperatures for220 non-calibrated protectors are shown in Fig. 13. <strong>The</strong> horizontalaxis shows switch-off temperatures in degrees Celsius, step is10 °C. Two vertical dashed lines represent previously used tolerancearea of ±30 °C, <strong>with</strong> desired switch-off temperature of400 °C. <strong>The</strong> mean value for <strong>the</strong> sample is much higher, 425 °C <strong>with</strong>standard deviation 23.1 °C. According to <strong>the</strong>se figures most protectorsswitch-off outside <strong>the</strong> tolerance range. 96 protectors had <strong>the</strong>switch-off temperatures higher than <strong>the</strong> maximal temperature in<strong>the</strong> oven that is 480 °C and are not included in Fig. 13.<strong>The</strong> measurement results of dimension A by using AVI systemfor non-calibrated protectors are shown as histogram on Fig. 14.Switch−off temperature (°C)4504404304204104003903803703603501.7 1.75 1.8 1.85 1.9 1.95 2 2.05 2.1 2.15Dimension A (mm)Fig. 12. Sample of 218 calibrated protectors: measured dimension A vs. switch-offtemperature.504540352520No. of samples302520No. of samples151015105501.7 1.75 1.8 1.85 1.9 1.95 2 2.05 2.1Dimension A (mm)0350 360 370 380 390 400 410 420 430 440 450 460 470 480 490Switch−off temperature (°C)Fig. 11. Sample of 218 calibrated protectors; <strong>measurements</strong> of dimension A.Fig. 13. Sample of 220 non-calibrated protectors; switch-off temperature.


10674 J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675No. of samples40353025201510501.8 1.9 2 2.1 2.2 2.3Dimension A (mm)Fig. 14. Sample of 217 non-calibrated protectors; <strong>measurements</strong> of dimension A.<strong>The</strong> mean value of distance A is 2.03, 0.1 mm more <strong>the</strong>n in sampleof calibrated protectors. <strong>The</strong> standard deviation is higher as well,having a value of 0.08 mm.In Fig. 15 is shown a correlation between <strong>the</strong> dimension A and<strong>the</strong> switch-off temperature of <strong>the</strong> toggled protectors. <strong>The</strong> horizontalaxis stands for dimension A and <strong>the</strong> vertical axis for switch-offtemperature in degrees Celsius. <strong>The</strong> dashed lines mark <strong>the</strong>tolerance area, horizontal axis defines switch-off temperaturetolerances and vertical current tolerances for dimension A. <strong>The</strong>majority, if not all samples, are away from <strong>the</strong> line between <strong>the</strong>two tolerance points, although <strong>the</strong> tendency is more linear. Manyprotectors have <strong>the</strong> dimension A inside <strong>the</strong> tolerance area, however<strong>the</strong> switch-off temperature is too high and vice versa.7. DiscussionSwitch−off temperature (°C)4604404204003803601.8 1.85 1.9 1.95 2 2.05 2.1 2.15 2.2 2.25Dimension A (mm)Fig. 15. Sample of 217 non-calibrated protectors: measured dimension A vs.switch-off temperature.For finding <strong>the</strong> edges by using <strong>the</strong> AVI system, we have used linearand square polynomial approximation. <strong>The</strong> superiority of ourapproach is based on <strong>the</strong> least mean square approximation method(Eqs. (2)–(4)) that filter <strong>the</strong> edges. This approach proved to be veryuseful in our investigation, due to dust particles that are frequentlycovering <strong>the</strong> edges. Also, <strong>the</strong> distances were calculated from ma<strong>the</strong>maticalequations of <strong>the</strong> edges and not directly from number ofpixels, which increases <strong>the</strong> resolution into subpixel region.<strong>The</strong> <strong>measurements</strong> made on five reference protectors <strong>with</strong> acertified profile projector have proved that measurement accuracydepends on <strong>the</strong> polynomial order used to transform <strong>the</strong> number ofpixels into metric units. When <strong>the</strong> linear function is applied, <strong>the</strong>factor R 2 shows <strong>the</strong> lowest error on all eight test protectors anddoes not exceed ±0.02 mm. With 4th order polynomial, <strong>the</strong> factorR 2 was maximal, while <strong>the</strong> error was larger from 0.04 to 0.02 mm.<strong>The</strong> detailed analysis of <strong>the</strong> group of three calibrated protectorsshowed larger error if linear pixel to metric unit transformation isused. <strong>The</strong> range of <strong>the</strong> error is ±0.02 mm. With 4th order transformationpolynomial, <strong>the</strong> results are much better, having an error of±0.01 mm. However, 4th order polynomial is less appropriate fordescribing o<strong>the</strong>r distances. For this reason, <strong>the</strong> linear transformationis selected to be used in <strong>the</strong> future, this way distributing <strong>the</strong>error more equally across <strong>the</strong> whole measurement area.Small part of <strong>the</strong> measurement error can originate from <strong>the</strong> referenceprofile projector. Following this analysis it can be specifiedthat measurement uncertainty is <strong>with</strong>in ±0.01 mm. <strong>The</strong> parts of <strong>the</strong>protector having <strong>the</strong> edges little rounded and also <strong>the</strong> material thatis very shiny are limiting factors for even higher accuracy.<strong>The</strong> measurement procedure <strong>with</strong> <strong>the</strong> profile projector is identicalto <strong>the</strong> AVI system. <strong>The</strong> biggest difference is in <strong>the</strong> lighting conditions.Namely, <strong>the</strong> AVI system illuminates <strong>the</strong> background and<strong>the</strong> profile projector illuminates <strong>the</strong> foreground, which is causinga difference in determining <strong>the</strong> edges. However, using <strong>the</strong> profileprojector is <strong>the</strong> best possible measurement solution, in fact, it is<strong>the</strong> only possible. <strong>The</strong> contact distance measurement system isnot usable to acquire desired dimensions.Despite <strong>the</strong> measurement uncertainty (Eq. (7)) of <strong>the</strong> profileprojector <strong>the</strong> main source of <strong>the</strong> measurement error is <strong>the</strong> AVI systemitself or an edge detection algorithm. In some cases <strong>the</strong> shadowsemerge as a consequence of <strong>the</strong> limit element position. <strong>The</strong>seshadows influence on <strong>the</strong> offset of <strong>the</strong> ma<strong>the</strong>matically describededge for a few pixels, <strong>with</strong> <strong>the</strong> pixel having a dimension of approximately4 lm. <strong>The</strong> shadows are most frequently present in <strong>the</strong> areawhere <strong>the</strong> edge of <strong>the</strong> toggle element is determined and also in <strong>the</strong>area where exact bimetal edge is approximated. <strong>The</strong>se two edgesdetermine <strong>the</strong> most important distances A and B. Several <strong>measurements</strong>showed that <strong>the</strong> error originating from <strong>the</strong> shadows is in <strong>the</strong>range of ±0.02 mm.<strong>The</strong> measurement results can be to some order fur<strong>the</strong>r improvedby using <strong>the</strong> camera <strong>with</strong> a larger resolution. Someimprovement could be also achieved <strong>with</strong> special and more expensivemacro lenses. <strong>The</strong>se would have smaller blurring and higherdepth of field as it is presented in this article.<strong>The</strong> development originated from need that measured distance Awould be obtained contactless as a replacement for slow reference<strong>measurements</strong> of <strong>the</strong> switch-off temperatures. Comparative <strong>measurements</strong>on larger number of protectors did not confirm a directcorrelation between distance A and switch-off temperature on bothcalibrated and non-calibrated groups of protectors (Figs. 12 and 15).When observing <strong>the</strong> non-calibrated protectors quite linear correlationwas recognized. However, <strong>the</strong> characteristic seem to be steep.Fur<strong>the</strong>r analysis and tests using o<strong>the</strong>r measurement methodsshowed that unloaded bimetal has linear bending in <strong>the</strong> temperaturerange up to 425 °C. In <strong>the</strong> protector <strong>the</strong> bimetal is loaded,meaning that linear characteristics end at approximately 300 °C.For this reason it is impossible to completely replace slow referencemeasuring procedure in <strong>the</strong> oven <strong>with</strong> <strong>dimensional</strong> <strong>measurements</strong>of <strong>the</strong> protector. <strong>The</strong> bimetal has too much non-repeatableand non-linear characteristics.Today <strong>the</strong> presented AVI system is used in parallel <strong>with</strong> <strong>the</strong>slow reference temperature measurement procedure in <strong>the</strong>laboratory. Before a set of protectors is placed in <strong>the</strong> oven, all


J. Rejc et al. / Expert Systems <strong>with</strong> Applications 38 (2011) 10665–10675 10675dimensions are measured <strong>with</strong> an AVI system. This is important insearching for o<strong>the</strong>r correlations, as well as to quickly find false calibratedprotectors. In <strong>the</strong> future, <strong>the</strong> AVI system use is planned for<strong>the</strong> production line <strong>with</strong> <strong>the</strong> task of eliminating badly calibratedprotectors as well as a protector <strong>assembly</strong> control system.8. ConclusionWe have developed, calibrated and tested an AVI system fornon-contact <strong>dimensional</strong> <strong>measurements</strong> of <strong>the</strong> <strong>mechanical</strong> system,called <strong>the</strong> protector. <strong>The</strong> system consists of a standard monochromaticvideo camera, standard optics <strong>with</strong> extension rings and twostandard white light emitting diodes (LED). <strong>The</strong> software enablessystem calibration, where <strong>the</strong> user can flexibly transform a numberof pixels into metric units. <strong>The</strong> software also enables flexible <strong>measurements</strong>,<strong>with</strong> various tolerance ranges and saving all necessarymeasured data into a database.In comparison <strong>with</strong> <strong>the</strong> reference profile projector <strong>measurements</strong>ystem, <strong>the</strong> AVI system is much quicker, but also less accurate.<strong>The</strong> main benefit of presented measurement system is <strong>the</strong>measurement speed, where all five dimensions are determined inless than a second. With <strong>the</strong> use of <strong>the</strong> profile projector <strong>measurements</strong>ystem <strong>the</strong> measurement of <strong>the</strong>se dimensions takes severalminutes.<strong>The</strong> tests and <strong>measurements</strong> have shown that <strong>the</strong> developedmeasurement system can not be used as replacement of <strong>the</strong> currenttemperature measuring method, because <strong>the</strong> characteristicsof <strong>the</strong> bimetal are not linear and repeatable at higher temperatures,resulting in a wide gap between dimension A and <strong>the</strong>switch-off temperature of <strong>the</strong> protector.<strong>The</strong> AVI system can be used as a control system in <strong>the</strong> productionfor elimination of protectors that have dimensions out of toleranceranges. Also, <strong>the</strong> option of saving all measured data can beused in <strong>the</strong> future for statistic analysis.AcknowledgmentThis work was financially supported by ETA Cerkno Company.ReferencesBatchelor, B. G., & Whelan, P. F. (1996). Machine vision systems: Proverbs,principles, prejudices & priorities. In Proceedings of <strong>the</strong> SPIE conference onapplied machine vision (Vol. 96, pp. 7–19).Chin, R. T., & Harlow, C. A. (1982). Automated visual inspection: A survey. IEEETransactions on Pattern Analysis and Machine Intelligence, 4(6), 557–573.Davies, E. R. (2005). Machine vision: <strong>The</strong>ory, algorithms, practicalities (3rd ed.). SanFrancisco: Elsevier.Dom, B. E., & Brecher, V. (1995). Recent advances in <strong>the</strong> automatic inspection ofintegrated circuits for pattern defects, applications. Springer-Verlag.Don Braggins, Industrial vision application sectors. .European Co-operation for Accreditation (1999). Expressions of <strong>the</strong> uncertainty of<strong>measurements</strong> in calibration, EA-4/02.Fang, Y.-C., Liu, T.-K., Macdonald, J., Chou, J.-H., Wu, B.-W., Tsai, H.-L., et al. (2006).Optimizing chromatic aberration calibration using a novel genetic algorithm.Journal of Modern Optics, 53(10), 1411–1427.Griffin, P. M., & Rene Villalobs, J. (1992). Process of computer vision. PatternRecognition, 24(1), 69–93.Haralick, R. M., & Shapiro, L. H. (1991). Glossary of computer vision. PatternRecognition, 24(1), 69–93.Ho, C.-S. (1983). Precision of digital vision systems. IEEE Transactions on PatternAnalysis and Machine Intelligence, PAMI-5(6), 593–601.Hsua, H.-Y., Lina, G. C. I., & Lee, S.-H. (2005). Enhanced image-based coordinatemeasurement using a super-resolution method. Robotics and Computer-Integrated Manufacturing, 21, 579–588.International Standard ISO 9445 (2006). Continuously cold-rolled stainless steelnarrow strip, wide strip, plate/sheet and cut lengths. Tolerances on dimensions andform. Geneva: International Organization for Standardization.Miller, J. L., & Friedman, E. (2003). Photonics rules of thumb, eBook. McGraw-HillProfessional. p. 418.Murase, H., & Nayar, S. K. (1994). Illumination planning for object recognition usingparametric eigenspaces. IEEE Transactions on Pattern Analysis and MachineIntelligence, 16(12), 1219–1227.Newman, T. S., & Jain, A. K. (1995). A survey of automated visual inspection.Computer Vision and Image Understanding, 61(2), 231–262.Nguyen, H. G. (1995). A simple method for range finding via laser triangulation,Technical document 2734. San Diego, CA: Naval Command, Control and OceanSurveillance Center, RDT&E Division.Ravishankar Rao, A. (1996). Future directions in industrial machine vision: Casestudy of semiconductor manufacturing applications. Image and VisionComputing, 14, 3–19.Sato, O., Ishikawa, H., Hiraki, M., & Takamasu, K. (2002). <strong>The</strong> calibration of parallel-CMM: Parallel-coordinate measuring machine. In Proceeding of <strong>the</strong> 3rd Euspeninternational conference (pp. 573–576). <strong>The</strong> Ne<strong>the</strong>rlands: Eindhoven.Tarabanis, K. A., Allen, P. K., & Tsai, R. Y. (1995). A survey of sensor planning incomputer vision. IEEE Transactions on Robotics and Automation, 11(1), 86–104.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!