Method for discrimination of product units and apparatus therefor

Abstract: A conveying system for multiple product units conveyed on two parallel conveyors past a sensing section. The sensing section includes multiple line scan sensors which each receive input from both conveyors and a calibration standard object in a thin line scan across the conveyors. Optics include an objective lens and a 1X relay lens divided in two and including a prism between halves. The exit pupil of the objective lens is imaged onto the entrance pupil of the 1X relay lens where a slit is positioned to define an image of the thin portion of the product unit in the sensing area. The optics spread the spectrum perpendicularly to the spatial direction to define a grid received by a CCD camera. The CCD camera and associated CPU operate on the data to bin attenuated pixels, train for filtering by spectral range and employ that training to subsequently train for the establishment of algorithms which sense differences in the filter data between product units of different attributes. Various algorithms are thus prepared for determining color, maturity, blemishes, size and the like.

Description: Background Of The Invention The present invention relates to a method and a system for discriminating like product units according to the preambles of the independent claims 1 and 12. Such a method and a system for discriminating like product units is known, e.g., from WO 97/46856 A1. Product handling activities for the discrimination of product units have long been used, particularly in the food product industry. Such discrimination has been based on size, ripeness, color, blemishes and the like. Until recent times, this activity was generally undertaken by manual labor. The versatility of workers for handling and processing large amounts and varieties of food products has generally been unsurpassed. Such processing systems typically include a conveyor passing working stations where workers distinguish and separate product units. Difficulties in finding experienced seasonal workers and the normal administrative problems associated with a fluctuating work force have long created a need for less labor intensive systems. Product discrimination systems employing the sensing of a variety of light spectra, which may include wavelengths both in and beyond the visible spectrum, from product units being classified have particular utility in sorting food products such as fruits and vegetables. The magnitudes of the sensed light spectra is analyzed to determine such attributes of a product as size, ripeness, blemishes and color. Such systems may employ a variety of sensing hardware including line scan cameras as well as fiber optics with filters and sensing diodes. Variations in products, conditions and sorting criteria can require experienced skill in changing applied spectral ranges. Also, defects are sometimes difficult to sense because of the load of information input to the system which must operate at near real time and because of the sensitivity limits of such systems. Discrimination systems often need product handling systems to present the products for sensing. Many food products need to be handled with great care to avoid damage. The perishable nature and large batch quantities of products in season make rapid processing a necessity. The variety of products which must be processed at different times to economically justify a food processing facility places great demand for versatility on the equipment. U.S. Patents Nos. 4,106,628; 4,961,489; 5,029,692; 5,106,195; 5,018,864; 5,156,278; 5,195,628; 5,215,179; 5,223,917; 5,286,980; 5,401,954; and 5,474,167, the disclosures of which are incorporated herein by reference, illustrate conveying systems and relevant product discrimination systems. UK Patent Application GB 2 221 985 A discloses a discrimination method and apparatus therefor, wherein a selection method includes the steps of applying light ot objects for selection passing an observation position, converting light having a specific wavelength among the rays of light reflected from the objects into an electrical signal by means of a signal converter, and selecting a specific substance from among the objects on the basis of the electrical signal. A dual photon bone densitometry apparatus is known from U.S. Patent No. 5,150,394, which uses an area scanning technique to minimize scanning time, and wherein x-rays are generated by an x-ray source which pass through a region of a subject's body, forming an x-ray image which reaches a scintillation screen. U.S. Patent No. 5,751,833 discloses an apparatus and a method for inspecting articles such as agricultural produce, wherein a complete system is provided including a sequence of interlacing cable conveyers for conveying objects to be sorted, such as apples or other agricultural produce, from bulk storage at the input of the system, through the system, and along to drops at the output of the system. Summary Of The Invention The present invention is directed to a method and to a system for the discrimination of product units using electromagnetic spectra according to the characterizing portions of the independent claims 1 and 12. The electromagnetic spectra is separated into spectral ranges for processing. Preferred embodiments of the present invention are described in the dependent claims 2 to 11 and 13 to 17. An image of a thin portion of a product unit is passed through a prism to spread the spectrum of the image perpendicularly to the major dimension of the slit and then to a camera. An array can be generated for sensing by the camera which has spatial pixels distributed in a first direction and the spectra for each spatial pixel distributed in a direction perpendicular to the first direction. The entire product unit may be treated sequentially as the unit is passed by the sensing system. This product unit may more specifically be a unit of produce. Attributes of the entire unit or portions thereof may be employed for discrimination using electro-magnetic spectral images. A number of techniques may be uniquely employed advantageously, either independently or in combination, to manage data with a system separating electromagnetic spectra into spectral ranges for processing. Binning of data in areas of system weakness can prove useful to overcome optic and camera sensitivity. Summing of pixel counts and pixel magnitudes in selected spectral ranges can be used to reduce data storage and manipulation. The creation of histograms also provides such an effect. Ongoing recalibration through reference to a standard can accommodate nonsteady state conditions such as changes in the light source and in system temperature. A system separating electromagnetic spectra into spectral ranges converted to a digital format is employed with algorithms to measure and compare various attributes of the product units processed. Area and other attributes recognized by different spectral ranges can be used or combined to provide discrimination based on calculated size, maturity, color, shape and damage. Filter training is used in a system separating electromagnetic spectra into spectral ranges based on selecting product units with distinguishing attributes. Scanning of such units and processing the resulting image data with a pattern recognition routine can be used to select specific spectral ranges for use in product unit processing algorithms. Data magnitude can be reduced through such a process by 98% or more without significant loss to selected sensitivity. Algorithm training based on selecting product units with distinguishing attributes is used in a system which separates electromagnetic spectra of a line scan into spectral ranges. Scanning of such units with filtering in place and processing the filtered data with a pattern recognition routine can be used for generating feature estimation algorithms. Such a routine can be applied for initial setup, changes in the product processed, changes in the conditions of the product being processed or changes in selection criteria based on amended output requirements. Optics employing a prism are arranged in conjunction with a conveyor to produce an image array for digitizing by a camera. The array reflects spatial location across the conveyor in a first direction and the wavelength of the transmitted electromagnetic radiation in a second direction perpendicular to the first direction. The image intensity of the array divided into pixels may be the output. The image may be created by a slit positioned over the product to be imaged. Digitizing may employ a CCD camera. An objective lens and a relay lens placed to either side of the slit in optical alignment and with the exit pupil of the objective lens imaged onto the entrance pupil of the relay lens to better achieve the desired spreading of the relevant spectra may be included. The transmission and sensing of a wide range of spectra is preferred. A range of 450 nm to 1150 nm is contemplated. Accordingly, it is the object of the present invention to discriminate like product units by spectral attributes by receiving and conditioning thin images of the product unit through a slit including spreading and digitizing the spectra of the images in pixels using a CCD camera, summing the pixels above a predetermined threshold magnitude, generating a histogram of the sums generated and identifying attributes from the histogram. Brief Description Of The Drawings Figure 1 is a schematic side view of a sensing system. Figure 2 is a schematic end view of the sensing system of Figure 1. Figure 3 is a schematic plan view of the light pattern of, the sensing system of Figure 1. Figure 4 is a side view of an optical lens system employable with the sensing system of Figures 1-3. Figure 5 is a plan view of the optical lens system of Figure 4. Figure 6 is a plan view of the slit positioned in the optical lens system of Figures 4 and 5. Figure 7 is a logic flow chart of the separator system. Figure 8 is a detail logic flow chart of each sensor. Detailed Description Of The Preferred Embodiment Turning in detail to the preferred embodiment, a system is disclosed which provides a sensing of product units using electromagnetic spectra. In this embodiment, the product units contemplated to be inspected are units of produce, fruits and vegetables in the broad sense. Conveyors stably move product units through sensing areas. Between sensing views, the product units may be rotated to provide complete exposure to the sensing system. Off loading mechanisms associated with the conveyor respond to control by the separator system for selectively collecting the product units along the conveying system. Actuators associated with the off-loading mechanisms divert product units from the conveyor responsive to input signals from the separator system. An indexing unit using an encoder and associated with the conveyor provides location and movement information to coordinate the sensing and off-loading functions. Two parallel conveyors 10 run through the section. The conveyors include rollers 12 upon which product units 14 are randomly distributed. Plates 16 or other mechanisms are employed to rotate the rollers 12 between viewing positions so as to expose multiple sides of the product units. A light system, generally designated 18, provides illumination of the passing product units 14. A plurality of sensors, generally designated 20, provide line scan sensing across both conveyors 10. A CPU 22 common to all of the sensors 20 provides overall control of the conveying system and the sensed data. The light system 18 provides a grid of illumination of the product units 14 in the sensing area. The lights employed are 225 watt incandescent light tubes 24. They are arranged in rows of four axially aligned tubes extending perpendicularly to and above the conveyor paths. The light tubes 24 are positioned within reflectors 26. The reflectors 26 are elliptical in cross section and also extend across and above the conveyor paths. The reflectors 26 are displaced from one another so that images of the product units can pass between the reflectors 26 to the sensors 20. The grid of light tubes 24 is such that there are four tubes 24 in two parallel lines around each product unit as it is being sensed. Two or more sensors 20 are employed in the sensing section. Three is normally preferred. Rotation of the product units between the first and second sensors 20 and again between the second and third sensors 20 provide substantial coverage of the entire surface of the product unit. A fourth sensor 20 with rotation between the third and fourth sensors may be advantageous where accuracy is shown to improve significantly. The sensors 20 receive an image of the product units which is in the form of a slit one-tenth inch in the direction of travel of the product unit and extending across both conveyors 10 so as to sense adequately the full width of each product unit. As the product units 14 move along the conveyors 10, sequential thin images are exposed. The sensors 20 receive and process juxtaposed one-tenth inch thick images fully across the product units as they pass through the sensing section. The products travel at a rate requiring approximately 250 fps for the sensor. A section of white pipe 28 is located between the conveyors 10 to act as a standard for calibration. There is one such standard object 28 for each sensor 20. As each object 28 is centrally positioned in the image area, data is received on the standard object 28 in each frame. The sensors 20 include a CCD camera 30 with special optics best illustrated in Figures 4 and 5. The optics may be described as a series of optically aligned components. An objective lens 32 is developed from a split triplet design chosen for its ability to cover a large field of view with a fast relative aperture and control of chromatic aberrations over a large spectral band. The objective lens 32 in the preferred embodiment comprises five elements 34, 36, 38, 40 and 42 in three groups plus an aperture stop 43. All of the five elements contribute to image formation at the plane of a slit 44 plus aberration correction in this image. The third through fifth elements 38, 40 and 42 are forced to produce an image of the aperture stop 43 beyond the plane of the slit 44 at the location of an entrance pupil of a relay lens 46, 48. This condition eliminates the need for a field element adjacent to the plane of the slit 44. Such a field element is typically used in systems that have multiple relayed image surfaces such as the present system. Elimination of the field lens avoids the addition of strong field curvature aberrations which are difficult to eliminate and minimize distortion in the image falling on the slit plane. The second and fifth elements 36 and 42 are made of a flint glass which has strong dispersion (change of reflective index with wavelength). These elements are used to correct for axial chromatic aberration and lateral chromatic aberration respectively, other design forms can be made to achieve these objectives. However, they are likely to be more complex, have steeper radii, and be more expensive to fabricate. The second element 36 also provides a strong correction of the field curvature that is introduced by the remaining elements in the objective lens. The objective lens 32 must produce an image on the plane of the slit 44 that is very sharply focused and essentially free of optical aberrations. In other words, the objective lens is self-corrected and does not rely on any aberration correction from elements in the relay lens 46, 48. The objective lens 32 receives the image between the reflectors 26. This image is focused by the objective lens 32 at the slit 44 as seen in Figure 6. The slit 44 is 5.0 mm x 0.022 mm. In combination with the objective lens 32, the slit 44 defines the thin portion of a product unit imaged at the conveyor as 460 mm x 2 mm. The relay lens is divided into two identical halves 46 and 48 with a prism 62 located between reversed halves. By using identical lens halves to create a 1X lens, cancellation of several optical aberrations and a reduction in fabrication costs are achieved. The light from the point object is afocal between the two halves 46 and 48. The afocal condition means that the light rays from a point object are essentially parallel. This condition is also called collimation. The afocal condition advantageously accommodates the use of the dispersion prism 62 placed in the afocal space without producing strong . optical aberrations. Further, the alignment of the system becomes noncritical. Each half 46, 48 of the relay lens comprises three doublets 50, 52 and 54. Each doublet uses a crown (low dispersion) positive powered element plus a flint (high dispersion) negative powered element to correct for chromatic aberrations. The doublet 50 which is closest to the plane of the slit 44 corrects lateral chromatic aberration while the other two doublets 52 and 54 correct axial chromatic aberration. Normally two identical lens halves will correct lateral chromatic aberration by means of the system symmetry, but the presence of the dispersion prism 62 alters the system symmetry and lateral chromatic aberration correction is recovered by the doublet form. The doublet 50 near the plane of the slit 44 serves the function of helping image the objective lens exit pupil onto the relay lens entrance pupil by controlling the position of the relay lens entrance pupil. The absence of a field lens can, therefore, be attributed to the refractive power that is usually provided by the field lens being vested in the two groups in the relay and objective lenses that are nearest to the plane of the slit 44. The relay lens design uses six doublets in an arrangement providing vignetting free operation. The resolution of the combined relay with the prism 62 is a range of 44 nm per pixel at 1150 nm in the spectrum, 8 nm at 650 nm and 4 nm at 450 nm. The first relay lens half 46 has an entrance pupil which is coincident with the exit pupil of the objective lens 32. Again, the slit 44 is positioned at the coincident location of the pupils. There is no field lens at the slit 44. The lack of a field lens eliminates strong contributions to field curvature and astigmatism aberrations that are associated with field lenses. The design of the objective lens and the relay lens are forced to image the objective exit pupil onto the relay entrance pupil by controlling the refractive power in the elements in both lens systems. The prism 62 located between the relay lens halves 46 and 48 has an angle of inclusion of 35°. The axis of the prism is parallel to the major dimension of the slit 44. Consequently, the image of the thin portion of the product unit, effectively defining a line scan image subsequently digitized into pixels, is spread perpendicularly to the major dimension of the image to establish a spread spectrum of each spatial pixel along the image. Because of the prism 62, a substantially rectangular image is created which varies spatially along the image of the thin portion of the product unit in one direction and varies in spectral wavelength in the perpendicular direction. This spread image is presented at the image plane of the second relay lens half 48 where the CCD camera 30 is positioned. These optics are appropriately arranged in a cylindrical housing with the lens elements separated by cylindrical spacers. A non-vignetted aperture is used. The lenses are also designed to sharply focus a spectrum from 450 nm to 1050 nm. The CCD camera 30 is a high-speed camera with one frame sampled in 0.004 seconds (250 fps). The camera has a pitch of 10 microns x 10 microns with a 100% fill factor on a 512 x 512 array. The optics provide 490 pixels in the spectrally dispersed direction on the chip and 500 pixels in the spatial direction. This allows for modest misalignment. With the spread spectra of the image of the thin portion of a product unit 14 recorded as an array by the CCD camera 30, the full range of electromagnetic spectra across the thin portion of product unit is digitized and identified by array location and magnitude. Wavelength is translated by this arrangement into pixel location in the spectral direction. Binning, filtering and a wide variety of algorithms can be applied to compress and select data on a real time basis which, when accumulated with the remaining thin portions of the product unit, can form the basis for discrimination by attribute for sorting. As noted above, the spreading effected by the prism 62 is greater at the short wavelength region than at the long wavelength region. Consequently, spectral differences within the array occur because of this phenomenon. Further, the capabilities of the optics, the spectral emittance of the source and the sensitivity of the camera 30 can create other disparities in sensitivity within the array. Empirical determinations can be made through system testing to find where system weakness occurs in the sensed array. Where such areas are present, binning of pixels in the spectral direction may be introduced to increase overall sensitivity in those areas. Pixel binning enables two or more adjacent pixels in either a row or a column of the CCD camera to be summed together while being read by the camera. The full range of spectra spread on the camera for each spatial pixel of the product unit is available for use in discriminating product attributers. However, only a portion of this spectra is needed for discrimination of any given attribute. Of course, different portions are typically necessary for different attributes. Filtering to reduce the amount of data processed to that useful portion is, therefore, possible and desirable. The selection may be of single pixels or groups of pixels, either falling within a set of desired classes. These pixels are selected in the spectral direction to be applied to each spatial position. The selections themselves are determined by an analysis of the results of sensing hand selected sample product units. The product units are selected by color or other visual indicators such as blemishes or by using measurements of various parameters established by testing the product units such as for sugar or pressure. In this way, the distinguishing product attributes can be empirically measured directly by the system from selected product units exhibiting variations in the selected attribute. It is contemplated that up to eight separate spectral points and/or ranges be used to analyze each spatial pixel. A first mechanism by which such filtering can occur is through the foregoing empirical testing with the results being analyzed manually. Dominant spectral areas are observed and the filter selections incorporated into the CPU 22 as a memorized routine for the specific product type. Very satisfactory results can be achieved with this process. An alternative filtering process involves the application of available pattern recognition routines through a multi-layered perceptron (MLP), a type of neural network. A selected group of product units containing one or more attributes to be recognized by the system may be used in a training exercise to allow the CPU to define the dominant spectral areas within different overall spectral ranges and synthesize outputs based on the pattern recognized. By selecting different groups of product units exhibiting different attributes, the pattern recognition routine is able to select a limited number of dominant points or ranges from the spectral patterns of all of these units for discriminating variations in the selected attributes. In this way, the number of spectral points per spatial pixel can be reduced from 490 to 8 or less of synthesized data signals reflecting the magnitudes of the selected significant patterns. An MLP is often viewed as an interconnected network of nodes which are simple computational elements. The nodes are arranged in layers. The first layer is the input layer, the last layer is the output layer, and there are normally one or more hidden layers. The hidden layers often apply a sigmoidal function to the weighted sum of the inputs. A range of numerical values is desired for each output. This allows an operator to adjust set points. This output scheme is known as an estimation problem (as opposed to a classification problem). For estimation problems, the outputs normally perform a simple weighted sum of their inputs. The separate weights (multipliers) exist for each connection in the network. The computational structure of the MLP includes the input layer of nodes which receive input signals from each of the data points as a magnitude. The first hidden layer of nodes are each connected to every one of the input layer of nodes and are also each connected to every node in the next layer which may be another hidden layer or the output layer. Each connection represents a weighted input from the upstream node and each node in the hidden layers and in the output layer performs a summing operation. With an input of x i , a hidden nodal layer with nodes y j and output nodes z k , the following relationships are established: y j = 1 (1 + e - sum ) y j is the value associated with hidden code j. W jo is the bias (offset) for hidden node j. W ji is the weight (multiplier) for the connection from i-th input node to hidden node j. x i is the i-th input z k is output node k. W ko is bias (offset) for output node k. W kj is weight (multiplier) for the connection from the j-th hidden node to output node k. y j is the input from the j-th hidden node. For filter training, the inputs are the raw spectral magnitudes of the pixels for each spatial point. Associated with each such spatial point is the set of raw spectral measurements. Backpropagation is an error-minimizing training function associated with MLP which tunes the weights to generate the desired mapping. The error function used is usually the mean-squared-error over a data set. As an aid in selecting the filter regions, the result of interest is the set of weights relating the inputs to the outputs. The outputs represent the desired classes to be measured such as color, blemish and maturity. Spatial points are selected which represent various combinations of outputs. The purpose of the filtering is to identify the important portions of the input spectrum. The importance of an input x i to an output z k is determined by the sum of the weights along the various paths from the input to the output. This can be written as A plot of z ki magnitude vs. i would identify the regions of the spectrum important to the output z k . k such plots can be used to identify filter regions important to simultaneously measuring the k outputs. This can be done either interactively through an operator or automatically by correlating the plots and identifying the peaks. In a separate training operation, the filtered results can be subjected to a further pattern recognition step. This second step provides a mechanism for establishing algorithms to separate the product units by attribute. With the filtering already accomplished, the routine for establishing the selection of filtered points for applying to appropriate algorithms is greatly simplified. Hand selected sample product units are used to exemplify the attributes of interest. These selected product units are sensed. The resulting filtered profiles are analyzed to establish patterns indicative of product attribute which can then be incorporated into the sorting algorithms by hand. Alternatively, the analysis and selection of patterns can be processed by a pattern recognition routine.. Of course, the data resulting from the initial filter learning operation may be used for this operation or new data taken. Again, the application of available pattern recognition routines through a multi-layered perceptron (MLP) may be used. The routine determines the differences between separate groups of filtered data which are presented such that the program itself identifies the spectral patterns to be used in the sorting algorithms. For algorithm training, the inputs are the filter outputs. The outputs are the same outputs used for filter training and the training process is very similar. In this case, however, the optimized algorithm that results is the signal which is used to determine the discrimination of the product unit. The algorithm generates output measurements (such as color, blemish, and maturity) for each spatial point. These measurements are in turn used by the system to make the appropriate selections of the product units. Note that the MLP algorithm is given as one example. There are many other possibilities along with the heuristic approach where the algorithm is defined by a training operator and based on intuition. A number of attributes may be discerned from analysis of electromagnetic spectra of the product units. Accumulations of such spectra in various forms by the CPU 22 are employed for product discrimination and sorting. Color is possibly the most obvious produce sorting attribute discernable from analysis of electromagnetic spectra. Color may be categorized by a summation of the number of spatial pixels falling within a spectral range exceeding a threshold value. The absence of a second color may also be of interest to such an analysis. More refined color can be accomplished through a binning of magnitudes for a selected spectral range above a threshold value or within a bounded range of magnitudes. Multiple ranges may be used in an additive sense where appropriate. The size or weight of the product unit may be quite accurately determined by a summation of pixels defining what amounts to the cross-sectional area of the unit scanned. Where appropriate, the length may also be incorporated in determining volume. Shape may also be determined through, for example, a summation of thin widths to suggest a long neck. Blemishes may also be detected through a threshold pixel count in a spectral range predetermined to indicate bruising, rot or other adverse localized feature. Less obvious attributes such as a deteriorating core on certain apples may also be recognized through a combination of spectral indicators. Certain spectral lines appear to change with maturity, causing more or less light absorption in certain spectral ranges. A comparison of the magnitudes of the pixels in such ranges with the pixel count in a spectral range indicative of presence of the product unit independent of product attributes will indicate variations in the magnitude relative to the cross-sectional area as a function of ripeness. The accumulation of data in certain forms can provide the input for the foregoing calculations. A summation may be maintained of the number of pixels detected above a minimum threshold intensity. Spectral ranges may be selected which do not vary with other attributes associated with the product unit, useful for area calculations. Alternatively, spectral ranges may be used which specifically indicate sizes of specific attributes. The lengths of each thin-scan area image of a product may be accumulated as the product moves through the scanning section. The number of such scans taken between product beginning and product end may also be accumulated to establish product length. The magnitudes of electromagnetic intensity above a threshold may also be summed for selected points or ranges. In addition, histograms can be generated which sum the intensities of pixels within different spectral ranges which fall above a threshold or within an intensity range. By maintaining running totals or calculated running total values, the amount of data to be manipulated in real time is reduced over maintaining information about each pixel for later summation on each product unit. With binning and filtering, the array generated by the optical system provides for no more than the magnitude of eight synthesized data points for each of 500 pixels as measured in the spatial dimension. With eight filtered points per spatial pixel in a single line scan of the thin image, manipulation and entry into one or more of the various summations and commands is most manageable on a real time basis. As the juxtaposed thin scan image is then received, the same number of values are again manipulated and an appropriate output generated. To insure that the CCD camera remains in calibration in spite of fluctuations in temperature, light conditions and the like, the standard object 28 is repeatedly measured for width within the thin scan area based on a pixel count. The value observed for the cross-sectional width of the white target object 28 is compared with a standard maintained within the CPU 22. If the count varies from that standard, the duration of the image is expanded or contracted to again arrive at the standard value for the observed reading. Drifting is avoided by this technique. Applying the foregoing in practice, Figure 7 provides a logic flow chart for the overall sensing system. The routine begins at the step 64. Three spectral line scan sensors serially view a product unit as it passes through each thin-scan area of the sensing section. The sensors are coupled with the CPU 22 where information is gathered and sorted based on indexing with the conveyor. In the step 66 the resultant accumulation from all three or more spectral line scan sensors is determined such as by averaging or averaging with the discarding of extreme values. Once appropriately categorized, an off-loading mechanism is assigned at the step 68 and the product unit continues along the conveyor until off-loaded at that mechanism. The routine is then recycled. However, it must be recognized that the system is capable of handling multiple units at one time. In this way, the units do not need to be spaced apart to the extent that only one passes through all line scan sensors before the next such unit is introduced. Figure 8 is a further detail of the step 64 as applied to any one of the spectral line scan sensors effectively defined by the optics, the cameras 30 and the CPU 22. In the step 70 the system is initialized with all values equal to zero in anticipation of a new product unit 14 passing through the sensing section. In the step 72, the next index position is sensed to initiate the remainder of the process. The CCD camera employed allows pixel binning as discussed above. In the present application, pixel binning is performed in the spectral dimension in the step 74. The illumination from the tungsten lamps and the responsivity of the CCD camera are not uniform across the spectrum. Regions of the spectrum with low illumination levels and low responsivity will be binned in order to even out the response across the spectrum. The step 76 processes the sensed data in one of two ways depending on the mode setting of the device. The device may be set on filter training such that raw data is employed in the training process. If the system is in the normal run mode, data will simply proceed onto a first level of manipulation. Instead of training the system in a single manipulation, two separate manipulations are used. The first is undertaken in the steps 78 and 80. A pattern recognition routine is employed for filter training. Selected product units are run through the system screening section where products are sensed to define various points or ranges of pixels in the spectral direction. The sampling may be done either by visually selecting images of multiple products such as color or surface defects or by using measurements of various parameters such as sugar or pressure, also from multiple product units. The standard pattern recognition algorithms of the step 80 are than employed to resolve the data accumulation in the step 78 to achieve a selection of various spectral points and/or regions to act as filters of the raw data, converting 490 pixel readings per spatial pixel into up to 8 separate categories or points. Numerous sets of samples are recorded at step 78 before the calculations of step 80 are performed. Once filter training is accomplished, the mode of the system is adjusted such that the step 76 leads to the step 82 where the large quantity of spectral information is compressed to a much smaller number. This is accomplished by applying the categories of points and ranges as established in the steps 78 and 80. This filtering is able to reduce the amount of data accumulated by a factor of two magnitudes. The filtered data then progresses to the step 84 where another mode selection of training or running is encountered. When training, the filtered data is presented in the step 86 where the pixels and groups of pixels are assigned to a set of desired classes. This is done by again running product units through the sensing section to load in the profiles of selected attributes. In the step 88, standard pattern recognition algorithms are used to determine algorithms for estimating the desired features from the compressed image data. Numerous sets of samples are recorded at step 86 before the calculations of step 88 are performed. When not in the algorithm training mode, the step 84 determines product presence and the estimation of selected features. When running, the step 84 leads to the step 90 where a selected spectral range is employed which does not vary with color, ripeness or the like. The number of pixels in the spatial direction measuring the presence of a product unit are summed to establish the width of the thin portion of the product unit being imaged as W p . At the same time, the width W std of the standard object 28 is also measured in pixels. In the step 92, the measured width W std of the standard object 28 is compared with a standard STD. In the step 94, the line scan camera is recalibrated to expand or contract the period of each sensing step as a means for achieving recalibration such that W std is again comparable with the width standard STD. At the step 96, algorithms are present to detect the beginning and the end of each product unit. Appropriate routing either returns the system to the step 70 where no product is present, begins or continues the summing process before recycling to the step 72 when the product is present or provides some concluding algorithms before continuing on to the step 66. Further, at the step 96, an algorithm for detecting and discriminating between two products that touch is used to identify the units as two separate objects. When a product is present, the number of pixels indicating the product is present at that pixel are summed as W p and added to the prior SUM p , if any. The length which is an incremental unit for each successive juxtaposed thin portion of product unit defined by each frame is accumulated through the addition of one unit per cycle. In the step 100, multiple features may be calculated for each pixel. These features represent measurements of various product characteristics such as color, surface blemishes and sugar. Maturity may be established in conjunction with the step 98 as previously discussed. A SUM f for each of the features is maintained. Histograms are updated for each feature. Once the product end is established, the size is determined based on an estimated volume calculated in the step 102 from the cross-sectional area defined in the step 98. In the step 104, minimum criteria for the various summed and calculated amounts established in the step 100 are compared with the accumulated amount for the product unit being measured. Each piece of product is checked against the grade criteria with the best grade being considered first. The product unit is selected for the grade for which it first qualifies. Hierarchy in grading can also be established so that classes and subclasses may be graded. For example, ripe fruit may be distinguished from immature fruit and the ripe fruit then divided into large, medium and small sizes. Accordingly, a system for the discrimination of product units particularly applicable for produce is presented. While embodiments and applications of this invention have been shown and described, it would be apparent to those skilled in the art that many more modifications are possible without departing from the inventive concepts herein. The invention, therefore is not to be restricted except in the scope of the appended claims.

Claims: A method for discriminating like product units by selected electromagnetic spectral ranges, wherein an image of a thin portion of a product unit (14) is successively passed through a slit (44) and a prism (62), thereby spreading the spectrum of the image perpendicularly to the major dimension of the image, and wherein the magnitudes of the spread image are digitized in pixels by a CCD camera (30), the method being characterized by separately summing pixels of selected electromagnetic spectral ranges above predetermined threshold magnitudes; generating a histogram of the sums generated; and identifying attributes of the product unit (14) from the histogram. The method of daim 1 further characterized by calculating the width of the thin portion of the product unit (14) by counting the number of pixels of image of the product unit (14) in the major dimension of the image in a spectral range indicative of the presence of the product unit (14). The method of claim 1 further characterized by summing the magnitude intensity of at least one selected electromagnetic spectral range of the image of the thin portion of the product unit (14); generating a histogram of the sums generated. The method of claim 1 further characterized by passing a calibration image of a thin portion of a standard object (28) through a prism (62) to spread the spectrum of the calibration image perpendicularly to the major dimension of the image; digitizing the magnitudes of the spread image in pixels; comparing the calibration image with a calibration standard; recalibrating the CCD camera based on the comparison. The method of claim 1, wherein digitizing the magnitudes of the spread image by the CCD camera (30) in pixels is characterized by binning of selected adjacent pixels arranged perpendicularly to the major dimension of the image to compensate for known optical or sensor weakness. The method of claim 1 further characterized by moving the product unit (14) past a sensing station along a conveying path (10); successively passing images of juxtaposed thin portions of the product unit (14) through the slit (44); successively passing the images of the thin portions of the product unit (14) from the slit (44) through the prism (62) to spread the spectrum of the images perpendicularly to the major dimensions of the images; successively digitizing the magnitudes of the spread images in pixels by the CCD camera (30). The method of claim 6, further characterized by calculating the widths of the thin portions of the product unit (14) moving along the conveying path (10) past the sensing station by counting the number of pixels of each filtered image of the product unit (14) in the major dimensions of the images in a spectral range indicative of the presence of the product unit (14) independently of product color; summing the calculated widths; summing the number of images of thin portions of the product unit (14); calculating the cross-sectional area of the product unit (14) from the summed number of images and the summed calculated widths. The method of claim 7, further characterized by filtering the digitized magnitudes of the spread images of the product unit (14) moving along the conveying path (10) past the sensing station; summing the magnitudes of at least one selected filtered electromagnetic spectral range of the images of the thin portions of the product unit (14) which deviates from a fixed ratio with the calculated cross-sectional area as a function of maturity of the product unit (14), the product unit (14) being a unit of produce; comparing the sum of the magnitudes of the at least one selected electromagnetic spectral range of the product unit (14) and the calculated cross-sectional area of the product unit (14) with a generated feature estimation algorithm. The method of claim 1 further characterized by filter training including passing images of thin portions of first preselected product units through the prism (62) to spread the spectrums of the images perpendicularly to the major dimensions of the images, digitizing the magnitudes of the spread images of the thin portions of the first preselected product units in pixels, applying a pattern recognition routine to the digitized magnitudes of the spread images of the thin portions of the first preselected product units to create filtering for compressing data. The method of claim 9 further characterized by algorithm training including passing images of thin portions of second preselected product units through the prism (62) to spread the spectrums of the images perpendicularly to the major dimensions of the images, digitizing the magnitudes of the spread images of the thin portions of the second preselected product units in pixels, filtering the digitized magnitudes of the spread images of the thin portions of the second preselected product units, applying a pattern recognition algorithm to the filtered digitized magnitudes of the spread images of the thin portions of the second preselected product units to generate feature estimation algorithms. The method of claim 10 further characterized by separately summing pixels of filtered electromagnetic spectral ranges selected by the generated feature estimation algorithms above predetermined threshold magnitudes; generating a histogram of the sums generated. A system for discriminating like product units by selected electromagnetic spectral ranges, wherein a scan area extending across a conveyor (10), a slit (44), a prism (62), and a CCD camera (30) are in optical alignment, the slit (44) being oriented to transmit to the prism (62) images of thin portions of product units conveyed through the scan area, the prism (62) dispersing the images perpendicular to the major dimension of the slit (44), and the CCD camera (30) having a sensing cycle to receive from the prism (62) contiguous images of the thin portions of the product units with movement of the conveyor (10), the system being characterized by a processing unit (22) being configured to separately sum pixels of selected electromagnetic spectral ranges above predetermined threshold magnitudes; generate a histogram of the sums generated; and identify attributes of the product unit (14) from the histogram. The system of claim 12, the processing unit (22) being additionally configured to sum the magnitude intensity of at least one selected electromagnetic spectral range of the image of the thin portion of the product unit (14); The system of claim 12, the processing unit (22) being additionally configured to calculate the widths of the thin portions of the product unit (14) by counting the number of pixels of each image of the product unit (14) in the major dimensions of the images in a spectral range indicative of the presence of the product unit (14) independently of product color and summing the calculated widths for cross-sectional area. The system of claim 14, the at least one selected electromagnetic spectral range of the images of the thin portions of the product unit (14) deviating from a fixed ratio with the calculated cross-sectional area as a function of maturity of the product unit (14), the product unit (14) being a unit of produce. The system of claim 12, the processing unit (22) being additionally configured to pass a calibration image of a thin portion of a standard object (28) through the slit (44), compare the calibration image with a calibration standard, and recalibrate the CCD camera (30) based on the comparison. The system of claim 12, the processing unit (22) being additionally configured to bin selected adjacent pixels arranged perpendicularly to the major dimension of each image to compensate for known optical or sensor weakness.

Inventors: RICHERT GERALD R, RICHERT, GERALD R.
Applicants: OMS OPTICAL MEASURING SYSTEM
Application year: 1999
Main classification: B07C5
IPC codes: G01N21