APPARATUS FOR EXAMINING OBJECTS

Abstract: Apparatus for examining the shape and/or dimensions of an object wherein an object is fed to a test station (12) on a stepping conveyor (14), the object is illuminated within the test station and scanned by two linear charge-coupled camera devices (18, 20) acting in mutually perpendicular directions across and along the conveyor. Logic circuitry processes the video signals to provide raw measurement signals fed into a microprocessor for analysing the signals and for providing control signals for a downstream reject mechanism.

Description: This invention relates to an apparatus for examining the shape and/or dimensions of objects, comprising conveyor means for conveying the objects along a path of movement, a test station located on said path of movement, electronic camera means at the test station for scanning the faces of the objects presented to it and providing output signals, electronic circuitry for the control of camera operation and for processing the camera output signals to provide respective measuring signals representative of the shape and/or dimensions of the objects, and comparator means for comparing the respective measurement signals with reference data signals. In the food canning industry empty cans are loaded on to a conveyor which transports them to a filling system. If a can is deformed, it may jam in the filling system and/or cause damage to the latter. Thus, in the case of nominally round cans, it is desirable to check that cans with an ovality deformation do not pass to the filling system. Another common fault present in cans is dinting, i.e. a deformation of the can lip. Exessive dinting can also create problems if the can passes to the filling system, in particular because the can may then not seal correctly. While the present invention is especially suited to the pre-examination of cans, especially round cans used in food canning, it is not limited thereto, and may find application in the final testing of filled and sealed cans, e.g. for dents, and in testing other objects altogether, such as bottled and shaped packages. An apparatus of the type mentioned above has been described in DE-A-29 16 361 for examining the rim of transparent containers. According to that document, an electronic camera is provided which continuously scans the objects in one direction. From the camera signals, signals indicative of the length of cords of the object along the scanning lines are derived, however with poor accuracy at the beginning and at the end of a scanned, e.g. circular or oval object. Measuring signals representing dimensions in a direction perpendicular to the scanning direction may be provided by processing a series of sucessive line signals, which however calls for data memories of considerable capacity and for specifically adapted computing circuitry and software. The present invention has as its object a modification of said apparatus in order to simplify and improve the examination of objects at high speed. According to the invention, such apparatus is characterized in that said camera means comprise linear first and second cameras scanning respectively in a direction of conveyor movement and in a direction perpendicular thereto, and that said electronic circuitry is arranged such that output signals of said first camera, representative of relative motion of the objects, provides a scan synchronising signal for said second camera. By this means, measuring signals related to two perpendicular directions of the objects are obtained directly from the camera means and independently of the conveyor speed. The conveying means may operate to feed the objects through the test station continuously or semi-continuously (objects touching or more preferably spaced), preferably the latter. While the linear camera means preferably comprises one or more charge-coupled devices, it is alternatively possible to employ other types of camera, such as the linear photo-diode array type. The comparator means preferably provides an output signal indicative of whether or not the shape and/or dimensions of an object comply with preset limits. Such output signal may, for example, operate an alarm device or a conveyor stop device or an object reject mechanism. Preferred processing circuitry for the camera output signals comprises means providing a first measurement pulse representing the leading edge (in the direction of scan) of the object and a second measurement pulse representing the trailing edge thereof. The spacing between these pulses, if necessary corrected for object movement during the scanning period, can provide a measurement of the object size in one direction. The other camera signal (again corrected for movement if necessary) is able to provide a measurement of object size in a transverse direction. Thus, in the case of a can for example, two diameter measurements at right angles may be obtained, and a comparison between the two provides a measurement of simple ovality. Analogous processing of the video-type signals obtained from the camera means may provide measurements of the width of the rim of the can at differing points around its circumference, thereby enabling the can to be tested for dinting. Other blemishes and deformations in objects can be similarly detected and evaluated. For reliable and repeatable detection and measurement, it is important to ensure that the output signals from the camera means show substantial variations in amplitude as features of the object are scanned. Preferably, therefore, the test station includes means for effecting substantially uniform illumination of the face of the object presented to the camera means. In a preferred apparatus, the comparator means is incorporated in a computer, dedicated or suitably programmed, wherein the reference data signals are stored, preferably with means for user adjustment and variation thereof. Such a computer is able to further process raw data (measurement signals) received from the primary processing circuitry, analyse and compare the signals obtained during and subsequent to processing, for example using both reference data and algorithms, before providing an output signal to control a device such as a reject mechanism. Moreover, it is within the compass of the invention also to develop the measurement signals within the computer, which in this instance would receive a digitised video signal output by feeding the output signals from the camera means through an analogue-to-digital converter. Protection is sought only for the embodiments covered by the claim. Brief description of drawings. The invention will now be exemplified with reference to the accompanying drawings, in which:- Figure 1 diagrammatically illustrates an object-testing apparatus in accordance with the invention; Figure 2 is a block circuit diagram; and Figure 3 comprises a set of signal waveforms. Description of embodiment. Referring to Figure 1, the apparatus of the invention includes a support 10 carrying an enclosure 12 and adapted to straddle a conveyor 14 on which cans 16 are being conveyed, e.g. empty cans in transport to a filling and sealing system. On the enclosure 12 are mounted two linear CCD cameras 18, 20, together with a light source 22 which may be a diffused multiple tungsten lamp, fluorescent lamp or laser source such as a helium-neon laser providing a plane of light through a cylindrical lens. The cameras 18, 20 are supported vertically above the path of the moving cans to be tested, which path passes through the enclosure 12, so as to view the upper nominally round face 24 thereof which is illuminated by the light source 22. One camera is aligned with its scan direction on and along the locus of movement of the centre of the face 24; the other camera is aligned at right angles thereto, taking successive measurements normal to the direction of motion as the can passes underneath. Also shown in the drawing are an electronic control box 26 housing primary logic circuitry and microcomputer, with access via an electronics control panel 28. The enclosure 12 also has a removable inspection panel 30 to enable cans passing through the test station to be visually inspected, and also to enable insertion of test pieces for alignment and calibration purposes. The first camera 18 provides, for example, a measurement of the maximum width (diameter) of the can from edge to edge, and of the width of the edge rim at both the leading and trailing edges. In addition, the relative motion of the can as detected by this first camera is used to provide scan synchronisation for the second camera 20. The electronic control circuitry 26, later described, includes a timing clock to control camera operation and data processing, if desired accompanied by data read-out to a data logger. A line scan synchronising signal is provided to indicate the start of a new line. The camera video signals are digitised with respect to the set level of a discriminator, and the digitsed signals are processed and the measurement signals analysed by the computer. In order to ensure reliability and repeatability of the measurements, the source 22 is driven by a d.c. power supply (not shown) in order to achieve a constant and uniform illumination of the face of the can viewed by the cameras. Downstream of the test station, an ejector mechanism (not shown) is controlled by a signal derived from the computer to reject cans not meeting set standards of shape and dimension which are pre-set in or programmed into the computer. Referring now to Figure 2, the control electronics include a clock 31 providing for generation of control signals within the CCD camera 20, which scans perpendicular to the line of the conveyor. Generally analogous circuitry associated with the same microcomputer 32 may exist for the camera 18. The interface between the camera 20 and the computer 32 comprises, in addition to the clock 30, integrated circuit logic which will now be described. A start-new-line signal (SNL) is generated either by an external control (e.g. another camera such as camera 18) or by the computer or again the camera may be free-running as a sub-multiple of the scan clock. The SNL generator 40 (or the control signals generator in the camera) set the new-line-detected latch (NLD) 42. The video signal from the camera 18 is converted to a digital signal in the discriminator (disc) 44 by comparison with a pre-set reference signal. The digitised signal is checked for missing or marginal pulses by the missing-pulse-detector (MPD) 46, and provides an enable signal indicating an edge or other feature of interest on the can. The leading edge of the MPD signal sets the start-pulse-detector latch (SPD) 48 and the trailing edge sets the end-pulse-detector latch (EPD) 50. The new-line-detector 42 set by the SNL 40 indicates the start of a new scan line and is reset by the EPD 50 at the end of the first detected edge. Counter 51 is reset to zero by the leading edge of the NLD 42 and thereafter counts the CCD camera diode scan position for that line. The contents of the counter are transferrd to latch 54 by the SPD latch 48 in conjunction with the NLD latch 42, thereby transferring the leading-edge coordinate of the can. Thereafter with the NLD latch reset, the EPD latch 50 transfers successive trailing edge coordinates to latch 56 until, at the end of the line scan, latch 56 contains the coordinate of the far edge of the can. Similarly counters 57 and 58 contain the width of the first and last edges of the can detected. Both counters are enabled by the MPD 46 and count clock pulses while the MPD is active. Counter 57 counts the width of the leading edge while the NLD is active while counter 58 counts successive events when the NLD is reset, until the far edge width remains at the end of the scan line: each successive event in the line causes counter 58 to be reset by the SPD latch 48, although only the first and last events in the line are associated with useful data, inbetween events generally being spurious. In the event of a single edge being detected counter 58 will contain zero. Data is transferred to the microcomputer 32 under control of the NLD latch 42. When the NLD 42 resets, an interrupt indicates that data in the latch 54 and counter 57 are ready for transfer. At the end of the scan line, or when NLD 42 goes active in the following scan line, another interrupt indicates that data in the latch 56 and counter 58 are ready for transfer. In the event of a single edge being detected the only interrupt will be at the end of the scan-line; if the contents of latch 54 is zero no edge has been detected. Referring now to Figure 3, the upper part of the illustration indicates a line scan 70 across a can top having a blemish 72 and the waveforms below indicate the resulting signals generated at the various logic circuit components above described with reference to Figure 2. Each waveform is marked to indicate the relevant component to which it relates. The measurement signals generated are:- a) the leading edge position in latch 54; b) the trailing edge position in latch 56; c) the width of rim at the leading edge in counter 57; d) the widths of blemish and rim at the trailing edge in counter 58. The computer 32 has stored therein reference values which set the limits for acceptance of the can with respect to distortions in shape and dimensional variations. If the measurement signals fail to meet the set limits, a can ejector device may be automatically operated under computer control. The preceding description relates to detection of simple ovality and dinting. However, it will be appreciated that there can be two cameras (or a two dimensional camera or other equivalent) scanning the can in mutually transverse directions and that, during passage through the test station, a large plurality of scans are able to provide a large number or measurement signals to the computer. The computer may be preset or programmed to process these signals cumulatively, and evaluate the shape and dimensions of the can more precisely as to errors in shape and dimensions, for example having regard to algorithms stored in its memory. Thus, errors in the edge rim of the can may be detected by a) comparing the width of the rim at the leading and trailing edges; b) comparing change in rim widths between successive parallel scans; c) integrating the rim width measurements over an arc around the can and effecting a comparison of the integrated values. Analogously, by monitoring the change in the leading and trailing edge positions through successive scans, it is possible to check for complex ovalities and other distortions from roundness which do not appear from a simple comparison of maximum diameters in two coordinate directions. In general, ovality can be checked by:- a) comparing diameters in mutually perpendicular directions as above mentioned; b) checking that the maximum diameter is at the centre point of the perpendicular axis; c) checking that the median of the can, as measured on the appropriate axis, has a constant position. More generally, the above-described apparatus, incorporating a suitably dedicated or programmed computer, is capable of:- (a) determining deformation of an object by comparing maximum measurements in two perpendicular axes using two line-scan cameras, while items are in continuous motion on a conveyor; (b) detecting deformation in an item which is symmetrical about the axis of motion, by measuring the width perpendicular to the axis of motion, determining the median of the object by determining the position of the two outside edges for successive scans and hence deviation of the median with respect to the axis of motion; (c) detecting ovality of an object presenting a round face to the scanning cameras; (d) determining width of edge(s) of object by scanning in one direction, memorising the width of the leading edge, then memorising width of successive events, resetting the width of each event on the detection of another feature until, at the end of the scan, the last event represents the width of the trailing edge; (e) having determined succession of edge widths of an item, being able to compute deviations in the uniformity of the total edge surface for the whole item; (f) using the scan in the axis parallel to the axis of motion to provide equal spaced scans in the other axis perpendicular to the axis of motion, thereby allowing intermittent or variable speed of the item along the conveyor; (g) examining round items (in particular cans) for ovality; (h) examining lipped items (in particular cans) for deformation of the lip. A possible modification, in connection with features (g) above, is that of using two cameras scanning in parallel, one for detecting the beginning and one the end of a can rim.

Claims: Apparatus for examining the shape and/or dimensions of objects, comprising conveyor means (14) for conveying the objects (16) along a path of movement, a test station (12) located on said path of movement, electronic camera means (18, 20) at the test station for scanning the faces (24) of the objects (16) presented to it and providing output signals, electronic circuitry (26) for the control of camera operation and for processing the camera output signals to provide respective measuring signals representative of the shape and/or dimensions of the objects (16), and comparator means (32) for comparing the respective measurement signals with reference data signals, characterised in that said camera means (18, 20) comprise linear first (18) and second (20) cameras scanning respectively in a direction of conveyor movement and a direction perpendicular thereto, and in that said electronic circuitry (26) is arranged such that output signals of said first camera (18), representative of relative motion of the objects (16), provides a scan synchronising signal for said second camera (20)

Inventors: MARTIN, MICHAEL STEPHEN
Applicants: SOUDRONIC AG
Application year: 1986
Main classification: G01B11
IPC codes: G01B11, G01N21