TREATING WORKPIECES

Abstract: A system for identifying workpiece by scanning them and "reading" details of their configuration (shape) is adapted for treating them in accordance with a desired pattern, e.g. applying a desired pattern of material in liquid form (e.g. ink) or in powder form (e.g. toner material or a hot melt adhesive) to the workpieces, regardless of their location and orientation on a workpiece support (18, 118). This is achieved by modifying pattern data (relating to the desired pattern) selected from a store (memory) in accordance with positional data (relating to the workpiece location and orientation) obtained during scanning (Figure 2). Where the applied material is liquid, a suitable tool is a pen (152) or other liquid applicator; where in powder form, a suitable tool is an electrostatic printer (36), e.g. an ionographic printer.

Description: This invention is concerned with methods of and apparatus for treating workpieces at a desired location thereof and in accordance with a desired pattern. One example of such treatment involves the surface treatment of a shoe upper component to apply a stitch-marking or a decorative or purposive pattern thereto. In another example, adhesive may be applied to the workpiece. An example of the apparatus is an apparatus for effecting a progressive surface treatment on workpieces, e.g. a printing apparatus. Where workpieces are to be treated, it is customarily necessary for them to be located in a desired position in relation to the operating tool and also in the correct orientation in such position. To this end, it has been proposed, where the workpieces are fed in a random orientation, to re-orientate them correctly and locate them at a desired position prior to feeding them to an operating tool: see e.g. US-A 3356237. Using such an apparatus, however, there are limitations on the degree of mis-orientation of the workpiece which can be accommodated, while still allowing the workpiece to be properly presented to the operating tool. It is an object of the present invention to provide an improved method of treating workpieces at a desired location thereof and in accordance with a desired pattern, wherein the need for any re-orientation is dispensed with prior to presentation to the operating tool. The invention thus provides in one of its several aspects, a method of treating workpieces at a desired locality thereof and in accordance with a desired pattern, wherein pattern data relating to the desired pattern is stored in a computer memory, such data being used to control the operation of an operating tool on each workpiece presented thereto, in carrying out which method workpieces randomly located and randomly oriented on a support are successively scanned whereby positional data relating to the location and orientation of each such workpiece is obtained using a computer by which workpiece shape data obtained by such scanning and taught workpiece shape data stored in the computer memory are compared and the orientation of each such workpiece is calculated on the basis of the comparison, the stored pattern data is modified for each such workpiece utilising the positional data obtained as aforesaid in respect of such workpiece, and the thus modified pattern data is used to cause the operating tool to operate in accordance with the desired pattern and at the desired locality of the workpiece, when the latter is presented thereto. It will be appreciated that in using the above method the orientation and location of the workpiece can be accommodated without limitation by the modification within the computer of the pattern data in accordance with the computer-generated positional data obtained. For obtaining the positional data, conveniently an apparatus as described in GB-A 2067326 may be used. In such a case both taught workpiece shape data relating to a plurality of different workpiece shapes and sizes and also pattern data relating to a plurality of different patterns may be stored in the computer memory, one pattern being associated with each workpiece and the appropriate workpiece shape and pattern data being associated accordingly. In carrying out the method of the present invention, furthermore, conveniently the workpiece shape data obtained by scanning as aforesaid is utilised to identify the workpiece by comparison with the taught workpiece shape data, and the operating tool is caused to operate as aforesaid under the control of the pattern data associated with the compared taught workpiece shape data but modified as aforesaid utilising the positional data for the workpiece. It will thus be appreciated that, using this method, workpieces of different shapes and sizes can be placed at random on a support and be identified, whereafter they can be presented to an operating tool for an operation to be performed thereon at a desired locality, without interference by an operator and regardless of the location and orientation of the workpiece. In one embodiment of the invention the operating tool is caused to operate progressively on a workpiece by relative movement between the tool and the support being caused to take place along orthogonal axes in accordance with the desired pattern; more particularly, in this embodiment the support is movable forwardly and rearwardly in one direction and the tool is movable forwardly and rearwardly in a direction extending transversely of said one direction. The tool may be omni-directional or uni-directional; in the latter case, conveniently the tool is mounted for rotation so as to maintain the tool in the correct orientation in relation to the workpiece during its operation. Conveniently also the control of rotation is effected under control of the computer in accordance with the pattern data. One example of an omni-directional operating tool (i.e. a tool not requiring rotation) is a stitch-marking pen by which a pattern is drawn in ink on the workpiece surface. An example of a uni-directional operating tool (i.e. a tool which does require rotation) is an adhesive-applying nozzle of the type described in GB-A 2098884, by which a band of adhesive is applied to the workpiece surface. In an alternative embodiment the tool may be constituted by an electrostatic printing device, see the co-pending application EP-A-0268402. The invention also provides, in another of its several aspects, apparatus for effecting a progressive surface treatment on workpieces at a desired location thereof and in accordance with a desired pattern, comprising a workpiece support, a scanning device, means for effecting relative movement between the scanning device and the workpiece support whereby a workpiece supported by the workpiece support is scanned by the scanning device, compiling means responsive to signals emitted by the scanning device for compiling positional data relating to both the location and the orientation of the workpiece on the workpiece support, data storage means for stored the positional data and also pattern data relating to the desired surface treatment pattern, data modifying means whereby the pattern data is modified using the positional data, a surface treatment tool, and means for effecting relative movement between the tool and the workpiece support whereby the tool is caused to operate progressively on the workpiece surface in accordance with the desired pattern, said last-mentioned means being operable under the control of the modified pattern data whereby the tool is caused to operate as aforesaid at the desired location on the workpiece surface. For assisting in the retrieval of data from the data storage means and also the matching of pattern data with positional data as aforesaid, conveniently the data storage means comprises a first permanent store of dimensional data relating to workpieces of different configuration and also a second permanent store of pattern data relating to different patterns to be followed, selected pattern data from the second store being associated with the dimensional data for each such workpiece, and the compiling means also compiles dimensional data relating to the workpiece scanned by the scanning device, the apparatus further comprising comparator means for comparing the compiled dimensional data with the data in the first permanent store thus to identify the scanned workpiece, and selector means for selecting from the second permanent store and pattern data associated with the workpiece as identified. There now follows a detailed description, to be read with reference to the accompanying drawings, of two methods and two apparatuses in accordance with the invention. It will be appreciated that these methods and apparatuses have been selected for description merely by way of non-limiting example of the invention. In the accompanying drawings:- Fig. 1 is a schematic view indicating the lay-out of a first apparatus in accordance with the invention; Fig. 2 is a flowchart setting out schematically the software controlling each method in accordance with the invention; and Fig. 3 is a perspective view of a second apparatus in accordance with the invention. The first apparatus in accordance with the invention (Fig. 1) comprises a pattern recognition system located at a data pattern recognition station generally designated A and a printing apparatus located at a printing station generally designated B, both being controlled by a central processor unit CPU. The pattern recognition system is generally similar, except as hereinafter described, to the system described in GB-A 2067326 and comprises two conveyor belts 18, 20 between which is a narrow gap 12 which can be bridged by a workpiece W being fed in the direction of the arrow F through the stations A, B. Aligned with the gap 12, beneath the conveyor belts 18, 20, is an array of filament lamps 10, while disposed in opposed relationship with said lamps, above the level of the workpiece-carrying surfaces of the belts 18, 20, is an array of light detectors 14 arranged to receive light emitted by the lamps 10 and focussed onto the detectors by a high-resolution lens 16; the array 14 and lens 16 are generally referred to as a "camera". It will thus be appreciated that the optical paths of the light will be interrupted upon the passage of a workpiece across the gap 12, the advancing movement of the workpiece being progressive whereby the workpiece is "scanned" by the array 14 as it is fed. For moving the conveyor belts 18, 20 a numerically controlled motor drive system generally designated 22 is provided. The system 22 typically comprises a stepping motor SM having an output shaft 24 carrying a pulley which is connected by a timing belt 26 with a corresponding pulley on a shaft supporting the drive pulleys for the conveyor belt 18. Similarly, a timing belt 28 connects the output shaft 30, itself connected by a timing belt 32 to a drive pulley associated with the conveyor belt 20. In this way, the two conveyor belts 18, 20 are driven synchronously under the stepping motor control. The stepping motor SM is controlled by the CPU. The CPU is also operable, after each unit distance of movement, to record which of the array of detectors 14 has detected a workpiece as aforesaid. The unit distance is typically in the order of 300 microns. The printing station B is arranged "downstream" of the gap 12 (viewed along the direction F), the conveyor belt 20 passing through the printer station B and out at the opposite side. Arranged in a suitable cabinet 34 at the printing station B is a printer generally designated 36 of the electrostatic type, more particularly an ionographic printing device. Such a device is generally similar, except as hereinafter described, to the apparatus described in US-A 4267556 and comprises a print roller 38 which is coated with a suitable dielectric material, a charging head 40 by means of which a latent electrostatic image, in a desired pattern, is provided on the dielectric layer and toner applying means, including a toner applicator head 42 by which charged, coloured particulate material is applied to the latent image. The print roller 38 is arranged above the workpiece-supporting surface of the belt 20 such that a workpiece supported by said surface is engaged by the print roller. For applying suitable pressure to the workpiece to effect the transfer of the toner material, a further, pressure, roller 44 is provided, this latter roller being desirably coated with a thermoplastic material. The two rollers 38, 44 are synchronously driven using a gear and timing belt drive arrangement generally designated 46, so that they rotate in contrary directions, and further the drive arrangement 46 is itself connected to the drive arrangement 22 in such a manner (not shown) that the two rollers 38, 44 rotate at a peripheral speed which matches that of the conveyor belt 20. In the operation of this apparatus, in carrying out a first of the methods in accordance with the invention, a workpiece W is placed on the conveyor belt 18 in any orientation and is advanced across the gap 12 onto the upper reach of the belt 20, the camera 14, 16 being effective to scan the workpiece as it crosses the gap and thereby identify it. As described in detail in GB-A 2067326, the camera is connected to the CPU the data storage means of which comprises a first permanent store of dimensional data relating to workpieces of different configuration, and which also comprises comparator means for comparing compiled dimensional data for the particular the data in the first permanent store. The workpiece with CPU, in identifying a workpiece, also determines, from the signals from the camera 14, 16, positional data relating to both the location of the workpiece on the conveyor belt and further the orientation of the workpiece. Thus, when the workpiece has reached the conveyor belt 20, both its identity and also its location and orientation on the belt 20 are "known". The data storage means of the CPU also comprises a second permanent store of pattern data relating to different desired patterns which are to be applied to workpieces being treated in the apparatus. Furthermore, the data storage means also identifies to which workpiece configuration any given pattern whose pattern data is thus stored is to be applied. Thus, when a workpiece of a given configuration is identified as aforesaid, selector means in the CPU is effective to select its associated pattern data from the second permanent store. The pattern data selected is then processed by the CPU according to the location and orientation of the workpiece using data modifying means forming part of the CPU and appropriate signals are then supplied by the CPU to the charging head 40 of the printing device 36 in accordance with the modified pattern data. The latent image is then formed on the surface of the dielectric layer on the print roller 38, at a location on said surface which, when the surface engages the workpiece surface to be printed, corresponds to the desired location on the workpiece surface. The latent image is then toned, as described in US-A 4267556, and the toned image is then pressed against the workpiece surface to effect a printing operation thereon. Whereas in using an ionographic printer, it is necessary to apply pressure to the pattern of the toner material, in other electrostatic printers, e.g. laser printers and xerographic printers, it is desirable to apply heat. Fig. 2 is a flowchart setting out in more detail a preferred method in accordance with the invention for effecting shape recognition and for controlling the print operation. At step 200 the workpiece W placed on the conveyor belt 18 is passed across the gap 12 as aforesaid and scanned using the camera 14, 16. The camera, at step 202, effects an edge detection process using 3 x 3 convolution techniques. That is to say, the region scanned is sub-divided into nine pixels and each pixel is scanned as to whether it is registering light detection, a "O" signal, or no light, a "1" signal. Where there is a "1", then the adjacent pixels are scanned for further "1" signals, which would indicate the presence of an edge. In this way the edge configuration of the workpiece is built up as the workpiece progresses through the gap 12. At step 204 the edge points are passed to the CPU. From this information the CPU calculates various characteristics of the workpiece (step 206). In particular, the area is calculated by summing all the "1" signals (sigma a). In addition, the first moment of area is calculated (sigma ax, sigma ay) with respect to an arbitrary datum and from this information the location of the centroid is calculated: Also at this stage second moments of area are calculated (sigma ax², sigma ay², sigma axy). At step 208, using the parallel axis theorem, second moments of area are then calculated about the centroid. As a further calculation, at step 210 the orientation of the principal axes, about which the second moments of area have minimum and maximum values respectively, are calculated. It will of course be appreciated that the orientation of the axes is ambiguous in so far as they are capable of two positions which differ by 180°. To overcome this, also in this step the longest side of the major axis is established and this is the final part of determining the orientation of the workpiece unambiguously. As a final part of the calculation, at step 212 the furthest edge point along each of a number of equispaced radii emanating from the centroid is determined and in each case the square of the distance along the radius is used as a "candidate" feature, i.e. a feature of the set of information which subsequently will be used to identify the workpiece. Up to this stage, the apparatus operates in the same manner whether the workpiece configuration (shape) is being taught or whether the workpiece is being "recognised". At step 214 this question is asked. If the reply is "Taught" then at step 216 the whole of the database is reprocessed adding the new data and re-calculating the feature sets stored for each workpiece in order to ensure that each remains unique. This calculation is based upon the "minimum distance" feature set out in GB-A 2067326. If the answer at step 214 is "Recognised", then at step 218 the dimensional data thus obtained as aforesaid is compared feature by feature with the data stored in the first permanent store of the data storage means of the CPU. In order to limit the search, the first comparison is one of area. At step 220 the question is posed whether there are sufficient identical features between the workpiece and the compared data to satisfy the minimum distance requirements. If the answer is "No", then step 218 is returned to for further features to be compared, and this process continues until the identity of the workpiece is established. At the same time the positional data relating to the identified workpiece is determined and stored (step 222). More particularly, the location of the centroid is stored and also the orientation of the principal axes calculated at step 210. The selecting means of the computer control means is then effective to select from the second permanent store of the data storage means the pattern data which is associated with the dimensional data in the first permanent store (step 224). At this stage the workpiece W is advancing to the printing station B. It is of course important also at this stage to ensure that the workpiece does not lose registration in terms of its location on the conveyor belt 20 and its orientation. To this end, therefore, the belt 20 may be perforated and pass over a suction chamber whereby the workpiece W is maintained in position on the workpiece-supporting surface of the belt. The pattern data in the data storage means is in the form of a set of x and y coordinates, which are related to a datum, said relationship reflecting the relationship between the centroid to which the pattern is to be applied and the position of such pattern in relation to the centroid. At step 226 transformation is applied to the pattern data in accordance with the stored data relating to the location and orientation of the workpiece on the workpiece-supporting surface of the conveyor belt 20. The transformed (modified) data is then passed at step 228 to a controller which controls the operation of the electrostatic printing device 36. The controller then executes the printing operation (step 230), that is to say, the data is utilised to form on the dielectric layer providing the surface of the print roller 38 a latent electrostatic image corresponding to the desired pattern at a location which is so arranged that it corresponds to the location and orientation of the workpiece on the workpiece-supporting surface, whereby, as the workpiece is advanced and the print roller is rotated, the latent image picks up toner material and applies it to the workpiece surface at the desired locality thereof. It will thus be appreciated that, in carrying out said method in accordance with the invention, the positional data which is obtained relating to the location and orientation of the workpiece, which has been identified as aforesaid, is utilised to modify the pattern data which has been selected for application to such identified workpiece, and the operating tool, in this case the print roller, is caused to operate at the desired location on the workpiece surface regardless of the location and orientation of the workpiece on the workpiece-supporting surface. It will of course be appreciated that the pattern which is printed on the workpiece surface may be for decorative or other purposes. One non-decorative example would be stitch-marking, that is to say marking on the surface of the workpiece (constituted e.g. by a shoe upper component) a marking, e.g. a delible line marking, which serves to locate a further workpiece in relation to the printed workpiece prior to securing the two together by stitching. Alternatively, instead of toner material, adhesive, e.g. hot melt adhesive, in powder material may be applied using the foregoing method. The second apparatus in accordance with the invention is illustrated in Fig. 3 and more particularly is concerned with the stitch-marking of the shoe upper components. The second apparatus, which is generally similar, except as hereinafter described, to the apparatus described in GB-A 2067326, thus comprises a table 118 for supporting a workpiece and having a transparent cover 120. The table 118 is movable along a path between a light source, in the form of a line of filament lamps 110, and an array of light detectors 114 arranged to receive light emitted by the lamps, the light being focussed onto the detectors by a high resolution lens 116. For moving the table 118 a suitable numerically controlled drive arrangement 122 is provided, comprising a stepping motor SM1 which is connected by a timing belt 128 to the table 118. By operation of the arrangement 122 the table 118 is caused to move step-by-step between the light source and the array 114 whereby a workpiece W supported thereon is "scanned". "Downstream" of the array 114 of light detectors is arranged a marking station comprising a bridge member 150 on which a stitch-marking pen 152 is movable along a path extending perpendicularly transversely of the path of movement of the table 118. For moving the pen 152 thus transversely, a further numerically controlled drive arrangement 154 is provided, comprising a stepping motor SM2 operatively connected by a timing belt 156 to the pen. The pen 152 incorporates any suitable ink supply arrangement (not shown). In the operation of the second apparatus in accordance with the invention a workpiece is first scanned and thereby identified and its location and orientation on the table 118 is established. Thereafter, the table moves to the marking station at which, by cooperation between the stepping motors SM1, SM2, the pen 152 is caused to follow a desired pattern in accordance with pattern data stored in the second permanent store of the date storage means of the computer control and selected therefrom in accordance with the identity of the workpiece W as determined from the first permanent store of said data storage means. In carrying out the second of the methods in accordance with the invention, using the second apparatus, essentially the same software is used as with the first method. Thus, steps 200 to 228 are identical in carrying out both methods. In executing the marking operation in the case of the second method, however, the X and Y data to which the tranformation has been applied is utilised to effect both movement of the table 118 longitudinally (X axis) and also transverse movement of the pen 152 (Y axis) in order to apply the desired pattern to the workpiece. Whereas the second method is specifically described in terms of stitch-marking, it will of course be appreciated that such a system could also be used for other printing operations, e.g. decorative operations. Instead of a pen, a uni-directional applicator, e.g. an adhesive-applying nozzle of the type described in GB-A 2098884, could be used for applying a pattern of adhesive to the workpiece. In this case it will be necessary also to provide for rotation of the nozzle about an axis extending heightwise of the table 118 so that the nozzle is correctly oriented in accordance with its direction of travel relative to the workpiece at any given time. The rotational data thus forms part of the pattern data and is appropriately modified according to the location and orientation of the workpiece on the table 118. It will be appreciated that while the two methods disclosed, and the apparatuses for carrying them out, are related to printing opreations, in its broader aspects the invention is generally applicable to a plurality of operations, e.g. sewing, cutting, punching and the like. In addition the invention should not be considered to be restricted to the treatment of shoe upper components, but rather to any suitable workpieces.

Claims: Method of treating workpieces (W) at a desired locality thereof and in accordance with a desired pattern, wherein pattern data relating to the desired pattern is stored in a computer memory, such data being used to control the operation of an operating tool (36; 152) on each workpiece (W) presented to said tool, and wherein workpieces randomly located and randomly oriented on a support (18,20; 118) are successively scanned whereby positional data relating to the location and orientation of each such workpiece (W) is obtained using a computer (CPU) by which workpiece shape data obtained by such scanning (14,16; 114, 116) and taught workpiece shape data stored in the computer memory are compared and the orientation of each such workpiece is calculated on the basis of the comparison, the stored pattern data is modified for each such workpiece utilising the positional data obtained as aforesaid in respect of such workpiece, and the thus modified pattern data is used to cause the operating tool (36; 152) to operate in accordance with the desired pattern and at the desired locality of the workpiece, when the latter is presented to said tool. Method according to Claim 1 wherein taught workpiece shape data relating to a plurality of different workpiece shapes and sizes and pattern data relating to a plurality of different patterns are stored in the computer memory, one pattern being associated with each workpiece and the appropriate workpiece shape and pattern data being associated accordingly, and wherein the workpiece shape data obtained by scanning (14, 16; 114, 116) as aforesaid is utilised to identify the workpiece by comparison with the taught workpiece shape data, and the operating tool (36; 152) is caused to operate as aforesaid under the control of the pattern data associated with the compared taught workpiece shape data but modified as aforesaid utilising the positional data for the workpiece. Method according to either one of the preceding Claims wherein the operating tool (152) is caused to operate progressively on the workpiece by relative movement between the workpiece and the tool (152) being caused to take place along orthogonal axes. Method according to Claim 3 wherein the operating tool is a unidirectional tool and is mounted for rotation so as to maintain the tool in the correct orientation in relation to the workpiece during the operation. Method according to Claim 3 wherein the tool is constituted by a stitch-marking pen (152). Method according to Claim 4 wherein the tool is constituted by a unidirectional adhesive-applying nozzle. Apparatus for effecting a progressive surface treatment on workpieces at a desired location thereof and in accordance with a desired pattern, comprising a workpiece support 918, 20; 118), a scanning device (14, 16; 114, 116), means for effecting relative movement between the scanning device (14, 16; 114, 116) and the workpiece support (18, 20; 118) whereby a workpiece (W) supported by the workpiece support is scanned by the scanning device, compiling means responsive to signals emitted by the scanning device (14, 16; 114, 116) for compiling positional data relating to both the location and the orientation of the workpiece on the workpiece support (18, 20; 118), data storage means for storing the compiled positional data and also pattern data relating to the desired surface treatment pattern, data modifying means for modifying the pattern data using the positional data, a surface treatment tool (36; 152), and means (SM; SM1, SM2) for effecting relative movement between the tool (36; 152) and the workpiece support (18, 20; 118) whereby the tool is caused to operate progressively on the workpiece surface in accordance with the desired pattern, said last-mentioned means being operable under the control of the modified pattern data whereby the tool (36; 152) is caused to operate as aforesaid at the desired location on the workpiece surface. Apparatus according to Claim 7 wherein the data storage means comprises a first permanent store of dimensional data relating to workpieces of different configuration and also a second permanent store of pattern data relating to different patterns to be followed, selected pattern data from the second store being associated with the dimensional data for each such workpiece, and wherein the compiling means also compiles dimensional data relating to the workpiece scanned by the scanning device (14, 16; 114, 116), the apparatus further comprising comparator means for comparing the compiled dimensional data with the data in the first permanent store thus to identify the scanned workpiece, and selector means for selecting from the second permanent store the pattern data associated with the workpiece as identified.

Inventors: PREECE, CLIVE, REEDMAN, DAVID CREYKE
Applicants: BRITISH UNITED SHOE MACHINERY LIMITED
Application year: 1987
Main classification: G05B19
IPC codes: B41J2, B43L13, A43D8, A43D119, A43D1, G05B19, B41M5