Method and apparatus for adaptive learning type general purpose image measurement and recognition

Abstract: This invention is an adaptive learning type general purpose image measurement and recognition method which comprises the steps of extracting a large number of basic initial features which are invariance related to parallel displacement of an object to be caught in an image frame and which have additivity with respect to a screen, and performing statistical feature extraction having learning function used multivariate analysis methods based on the extracted initial features to thereby enable use for various types of measurement adaptively. Further, this invention relates toan adaptive learning type general purpose image measurement and recognition apparatus which comprises a pick-up means to pick up objects of measurement in two dimensions, an image cutting-out means which partially cuts video signals of said picked-up images, a window signal generating means which generates a window signal for designating a meausrment scope, a correlating means which computes N th order autocorrelation of said cut-out data within the scopes of said window signal, a memory means which stores coefficients of said autocorrelation, and an arithmetic controlling means which controls said respetive means as well as calculates multivariate analysis based on said computed values to thereby enable use for various types of measurement adaptively.

Description: This invention relates to a method and apparatus for various image measurements (including counting and discrimination) of the shapes and numbers of objects expressed in binary images in the fields of image measurement such as inspection or identification of parts on production lines, material or medical fields, and more particularly to a general or universal purpose image measurement and recognition device which either counts or measures geometric characteristics (such as a number or length of a circumference) of objects as the two-dimensional patterns at a high speed or discriminates two-dimensional patterns at a high speed by learning and to a method therefor. Still more particular, the invention relates to a processor-implemented adaptive learning-type general purpose image measurement and recognition method and to an apparatus for various image measurements of the shapes and numbers of objects expressed in binary images. Further, the method is largely used as the general purpose image measurement and recognition device in which adaptive learning function and high speed of real time are requested. In the prior art, an image measurement device is realized by sequentially and serially combining image processing techniques which are judged necessary in order to achieve particular tasks as shown in FIG.1 (Sequential and Procedural Method). For example, in order to count the number of two types of particles in binary image including a large number of particles of two different radii, all the particles (black circles) on a screen (white background) are first detected, and discriminated by attaching labels (numbers) to the respective particles. Next, their diameters, areas and so on are respectively measured, the type of the groups is decided to which each particle belongs, and the decision numbers are counted to finally obtain the respective numbers of particles of two different groups. Since the above prior art devices are realized by combining various and complicated image processing techniques sequentially, the processing takes a long time for the calculation, and the whole system inevitably becomes large and complicated, posing a problem in high speed processing. The most critical problem inherent to these devices is that the duration of time necessary for the processing increases in proportion to the degree of complexity (e.g. the number of the particles in the above example) of the objective images. Another problem lies in that since these series of processings are those each prepared to achieve a specific and predetermined purpose, the device is dedicated solely to the predetermined purposes, and techniques should be modified for different uses. Moreover, these devices can be applied only to problems which are clearly known what is to be measured by which technique in what procedure. Besides the above mentioned serial measurement method, there is proposed a parallel and adaptive method such as the models of "perceptron" or "neural networks" in pattern recognition. FIG.2 shows the structure of such the neural networks which is modelled after the information processing by the brain. In the figure, layers (input layer, intermediate layer and output layer) having a large number of elements modelled after characteristics of neurons are connected in multilayers, and their connection coefficients are set as variable weights (parameters). In order to output desirable results (measured results) for the inputs, a large number of data for the learning are sequentially inputted, and the above connection coefficients are sequentially modified every time an error is made in output. However, the above-mentioned measuring method is slow in convergence speed of the learning although it is fast in measuring processing because of the parallel processing. Further, local optimal solutions sometimes make obtaining the global optimal result difficult. Although the measuring method is adaptive and universal, the practical application inevitably takes a trial-and-error manner because it is not known what number of elements should be combined in what way to a particular problem or what should be inputted. The elements used in such the neural networks are restricted to use the input and output signals in the two values of "0" and "1" or the values therebetween on the model of neuron cells. Therefore, the weighted sum 10 of a large number of inputs is non-linearly transformed 11 before becoming one output as shown in FIG.3. Although the expression of information in this type of measuring method is significant as a model of a neurological information processing, it is not quite important in practice and is rather limitative and inefficient. Therefore, the measuring method has some problem and limitation as a practical image measuring device. U.S. Patent 4,288,779 corresponding to Japanese Patent Publication (KOKOKU) No. 47064/1983 discloses a system which can discriminate two-dimensional patterns at a high speed and measure geometrical characteristics of the patterns at a high speed. However, since the measuring method must have other machines do arithmetic operations necessary for the character recognition to have the results in advance, its usage is limited. It is limited in usages for reading out the characters because it solely aims at providing the characteristics which do not need segmentation of a character, and it is not quite adaptive to the changes in the size and forms of the objective patterns. Therefore, the measuring method is not quite adaptive nor universal when a user wishes to apply it to a particular need at his shop. Since it is generally not easy to predict environment conditions (disturbance, for example mistiness and image quality) and so on of the device in advance, it is impossible to prepare a method which is most adaptive and optimal to particular conditions. This invention was conceived to eliminate such problems encountered in the prior art and aims at providing an improved adaptive learning type general purpose image measurement and recognition method and apparatus. This object is solved according to the invention by a processor-implemented learning-type general purpose image measurement and recognition method according to claim 1 as well as by such method according to claim 2 and also by an apparatus for various image measurements of the shapes and numbers of objects expressed in binary images according to claim 3. For achieving the objects described above. Features are extracted in two stages of a relatively simple structure based on the observation of basic and principle conditions of the image measurement, and adaptively measures the images for arbitrary objects or usages suitable for environments by high speed learning. There is provided an adaptive learning type general purpose image measurement and recognition method which comprises the steps of extracting a large number of basic initial feature which are based on N th order autocorrelation and invariant to parallel displacement of an object to be caught in an image frame and which have additivity with respect to the image frame, and performing statistical features extraction having learning function used multivariate analysis methods based on the extracted initial features to thereby enable use for various types of measurement adaptively. There is provided an adaptive learning type general purpose image measurement and recognition apparatus which comprises a pick-up means to pick-up objects of measurement in two-dimension, an image cutting-out means which partially cuts out video signals of said picked-up images, a window signal generating means which generates a window signal for designating a measurement scope, a correlating means which computers N th order autocorrelation of said cut-out data within the scopes of said window signal, a memory means which stores coefficients of said autocorrelation, and an arithmetic controlling means which controls said respective as well as calculates multivariate analysis based on said computed values to thereby enable use for various types of measurement adaptively. The nature, principle and utility of the invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. In the accompanying drawings: FIG.1 is a conceptual block diagram to show the conventional serial measurement method; FIGs.2 and 3 are charts to show a parallel and adaptive method and the element suggests by neuro-computing, respectively; FIG.4 is a conceptual block diagram to show the fundamental method of this invention measurement; FIG.5 is a flow chart to show the measurement and recognition principle according to this invention; FIG.6 is a chart to show the local displacement direction to compute N th order autocorrelation; FIG.7 is a view to show local autocorrelation masks up to the second order; FIGs.8A, 8B and FIG.9 are views to show the local autocorrelation masks with hexagonal shapes up to the second order, respectively; FIG.10 is a flow chart to show an example of the operation for the basic initial feature extraction; FIG.11 is a chart to show a linear combination for the statistical feature extraction; FIG.12 is a flow chart to show the learning mode and the measuring recognition mode of the system; FIGs. 20A to 20D are image views in number measurement of two type particles; FIGs.21A to 21D are image views in the measurement of topological characteristics; and FIG.13 is a block diagram to show an embodiment of this invention device; FIG.14 is a detailed circuit to show partial image cutting-out circuit; FIG.15 and FIGs.16A and 16B are views to show examples thereof in output, respectively; FIG.17 is a block diagram to show the structure of an output section; FIG.18 is a circuit to show an embodiment of a window signal generating circuit; FIG.19 is a view to explain the coordinates of a window; FIGs.20A to 20D are image views in number measurement of two type particles; FIGs.21A to 21D are image views in the measurement of topological characteristics; and FIGs.22 through 25 are views to explain application of this invention to pattern recognition. Most of the problems encountered in practical image measurement are those of measuring the area or circumference of an object caught within the frame (or on a screen) of images, and the counting of the number of holes or the counting of the number of objects of a large number of the same groups on the screen. Problems of recognition to decide an object are also included in the measurement (such as those of shape measurement) problems in a broader sense. The measured results to the problems of those measurements of various images are generally given in the form of measured values(numeral values), and therefore the image measurement can be regarded as a problem for extracting the features from an image. The fundamental conditions to be met are as follows. 1 ○ Invariant to parallel displacement 2 ○ Additivity with respect to a screen (an image frame) 3 ○ Adaptive learning possibility The first condition 1 ○ means that no matter where an object exists within the frame, its measured value (for example, an area) would be the same and will not be changed. The second condition 2 ○ means that when the screen is divided into plural sections, the sum of measured values in all the sections becomes equal to the measured value of the whole screen as is obvious from an example of counting the number of particles on the screen. The third condition 3 ○ is important in order to attain a device of the universal purpose which is an object of this invention. Feature extraction comprising the following two stages F1 and F2 is proposed in order to satisfy the above fundamental three conditions 1 ○ to 3 ○. F1: A large number of general and basic features which satisfy the above conditions 1 ○ and 2 ○ are extracted from the whole screen as initial characteristics (Geometrical characteristic extraction). F2: New features which are optimized to various applications are adaptively extracted through the learning by means of linearly combining the above-mentioned initial features (Statistical characteristic extraction). For the geometrical feature extraction of the stage F1, for instance, we can use the feature extraction by local autocorrelation masks based on the principle of autocorrelation of N th order (refer to U.S. Patent 4,288,779 corresponding to Japanese Patent Publication No.47064/1983). The statistical feature extraction of the stage F2 can be realized by the technique of linear regression analysis or the like in multivariate analysis. The linear combination in the statistical feature extraction F2 is necessary to maintain the above condition to show the learning mode and the measuring recognition mode of the system. The measuring concept of this invention, as shown in FIG.5, based on the feature extractions in the above two stages of F1 and F2 is a parallel and adaptive measuring method which can satisfy the fundamental conditions 1 ○ through 3 ○, and is simple in structure and easy to implement. The measuring method enables the image measurement adaptive to various and many uses by the high speed learning. The measuring device according to this invention measures the images of the two-dimensional patterns universally and rapidly in real time based on the aforementioned operation. The measuring principle of this invention will now be described referring to attached drawings. An object of measurement as shown in FIG.5 is expressed as gray scale (multi-values) within a frame through a TV camera (for instance, CCD) 1. Although this measuring method is applicable to the gray scale (signal SG1) as it is, it is applied here to binary images which are binarized by a binarizing circuit 2 for facilitating the explanation since the objects for the measurement are mostly the binary images in practice. The gray scale is binarized by a predetermined threshold value and divided into object areas (value 1: black) and background areas (value 0: white), and are inputted into an image memory (M × M pixels) 3. A geometrical feature extraction section 4 extracts the initial features for an image f( r ) (wherein r = (i,j) is a two-dimensional vector representing its position on the screen) caught within the image frame (on the image memory 3; hereinafter referred to simply as on the screen). The features to be extracted are specifically the autocorrelation functions of N th order shown below (refer to U.S. Patent 4,288,779. Labers underlined hereinbelow represent vectors. The extraction of the initial features is based on the principle of the above formula (1). In other words, the extraction of the initial features represents positional unchangeability or invariance with regard to any parallel displacement therein f( r )→ f ( r + b ) within the image frame of the object. Although the displacement direction ( a 1 , ......, a N ) may be arbitrarilly determined, it would suffice for practical purposes if N is limited to the order of two and the displacement direction is limited to the directions of the locality 3× 3 around a reference point r in order to satisfy the above condition 2 ○. FIG.6 shows an example of the local displacement direction. In this case, the N th order autocorrelation function of the above formula (1) can be calculated by scanning once the whole screen with a local frame (with the center r ) of 3 × 3. In the case of the binary images, this procedure means none other than the procedure of counting the number of times the expression holds as f( r ) f( r + a 1 ) ...... f( r + a N ) = 1 or the local patterns in a whole image where all the pixels (N + 1) of the functions in the local frames 3×3 become to "1". The such local patterns on a (N + 1) pixel point apparently exist in the number (in the case of up to the 2nd degree, N = 0,1,2) of combination which allows the (N + 1) point to be selected from the number 3×3 = 9. When we take the scanning into consideration, however, the patterns translatable in parallel displacement within the local frame are equivalent to each other, and the number of independent patterns up to the 2nd order ultimately becomes "25" as shown in FIG.7. In the patterns in FIG.7, "1" represents pixels to be examined while "*" represents those to be ignored. These twenty-five patterns are called local autocorrelation masks. By scanning a whole screen once with these masks M j (j = 1 through 25) and obtaining respective sums of products, twenty-five local autocorrelation coefficients x j are obtained as the initial features. The procedure of calculatiton is shown in the Steps S1 through S3 in FIG.10. U.S. Patent 4,288,779 corresponding to Japanese Patent Publication No.47064/1983 discloses the details of the calculating circuit method. Mask patterns are not limited the same shown in FIG.6, and they may be hexagonal patterns. The mask pattern may be hexagonal as shown in FIG.8A or 8D instead of the square of the size 3B ×3 as shown in FIG.7. The correlation using such a hexagonal pattern is effective in that fluctuation of intervals between the pixels from the center pixel is smaller than those with square pattern, that the number of the independent patterns can be reduced to "13" due to the invariance of parallel displacement, and that efficienct is higher compared to the case shown in FIG.7. In practical construction, the phases of the clock signal may be deviated by 180 degrees for each scanning line. FIG.9 shows a case of the autocorrelation mask (No.1 through No.17) which is independent in terms of the invariance of parallel displacement in the hexagonal patterns. The "1" and "*" within the patterns are similar to those shown in FIG.7. The initial features x j from the geometrical feature extraction section 4 are inputted to the statistical feature extraction section 5 as shown in FIG.5. Description will now be given to the statistical feature extraction (F2). The initial features x j obtained as above are the features which are general and fundamental and which are not dependent on measurement problems. However, they cover the information of an objective image necessary for a measurement problem. Therefore, from these linear combinations, in the structure as shown in FIG.11, and in accordance with the following formula (2), new features (measurement values themselves or forecast approximate values) effective to the measurement problem can be obtained as y i . where K is equal to 25 in this case The letter M represents the number of the feature values which are simultaneously measured. The above formula (2) can be simplified as the following formula (2') if the initial features x j and the new features y i are sorted in the vertical vector x = (x 1 ,......, x 25 )' and y = (y 1 , ....... , y n )' and a coefficient matrix A = [a ij ]' is used (wherein"'" represents a transposition). y = A' x The coefficient A may be obtained trivially depending on problems. For example, the coefficient A is apparently obtained as y 1 = x 1 when the task is to count the area of a measuring object caught by the binary image, because the pixel number of the object is given by the autocorrelation coefficient x 1 with the mask M 1 the 0th order. By logical observation, other measuring values may be represented in a linear combination. However, these artificial methods are too complicated to be popularly used. This invention method therefore tries to obtain an optimal coefficient A automatically through the learning by means of a multivariate analysis method as shown in FIG.12. Multiple regression analysis which is one of the multivariate analysis methods is an effective and direct method especially suitable for the measurement problems. It is assumed herein that a set of objective images to be used in the learning is denoted as G = {f i ( r )} (provided i = 1 through L), a correct measurement vector for the image f i as z i , and the initial feature vector calculated at the Step S10 as x i (therefore the outputis y i = A'x i ). The optimal coefficient A is obtained so as to minimize the following means square error (3) at the Step S12, and the optimal solution is explicitly given by the formula (4). A = R xx -1 R xz The following formula (5) represents an autocorrelation matrix with respect to the initial features x i and a crosscorrelation matrix with respect to the input data x i and z i , respectively. To the power of "-1" herein represents an inverse matrix. The system in FIG.5 can hereafter estimate quite accurately the measurement vector for an input image f( r ) in the running mode (Right half of FIG.12) by using the coefficient A obtained at the Steps S11 and S12 in the learning mode (Left half of FIG.12). If the accurate measurement vector z i can be expressed by the above formula (2), a correct coefficient A is automatically obtained by the learning. Recognition of objects may be possible in a similar manner. In the case of the multiple regression analysis, it can be solved by considering the measurement vectors ( z i and y ) as codes differentiating the classes of the objects to be recognized, and doing the similar learning. For instance, when the objects comprising two classes, the coefficient A is learned in the learning mode for the class "1" as z = (1, 0)' and for the class "2" as z = (0, 1)'. In the measuring (recognition) mode, a classification section 6 in FIG.5 compares the feature y 1 with another feature y 2 for y = (y 1 ,y 2 )' obtained for an input objective image (Step S22), and if y 1 is greater than y 2 , it judges that is class"1", and if it is smaller, it judges that is class "2". If the classes are in a large number (K), similar operation can classify them. Accordingly, in the mode of the recognition, a processing for the classification such as detection of the maximum value of the feature y i becomes necessary. Discriminant analysis may be used as the learning of the coefficient A for recognition. In this case, the coefficient A can be obtained as a solution (eigenvectors) of an eigenvalue problem below in a manner to optimally separate (discriminate) K classes in the space of the vector y . X B A = X W A Λ (A'X W A = I) wherein the letter Λ denotes diagonal eigenvalue matrix, and I denotes the unit matrix. Further, the letters X W and X B denote respectively the within-class covariance matrix and the between-class covariant matrix of the initial feature vector x , and are defined by the following formula. wherein ω j and X j and X j represents respectively the occurrence probability, the mean vector and the covariance matrix of class "j", and X T the total mean vector. A classification method for the discriminant analysis may be a method which calculates the distance from an input ( y ) to the mean vectors ( y j = A' X j )of each class and decides the input into the class which gives the minimum distance. The image measuring device according to this invention is based on the aforementioned principle, and an embodiment will now be described referred to FIG.13. An industrial TV camera 101 picks up an objective image 100, and sequentially outputs two-dimensional video images IS in time series to a sampling circuit 102 and an output image synthesizing/switching circuit 154. The sampling circuit 102 converts the video images IS sequentially into digital values (herein binary values) BP in accordane with a clock signal CLK fed from a timing signal generating circuit 103. The clock signal CLK is of about 6 MHz if the whole screen is assumed to have 320-pixels horizontally and 240-pixels vertically. The binary images BP from the sampling circuit 102 are inputted to the output image synthesizing/switching circuit 154 and a partial image cutting-out circuit 110 to be shown in more detail in FIG.14. In the partial image cutting-out circuit 110, the binary images BP in serial time are converted into parallel image data a 11 through a 55 of 5×5 = 25 pixels when they are inputted to shift registers 111 through 114 which delay images by one horizontal line. Nine pixels are selected from the parallel image data a 11 through a 55 . If it is assumed that pixels for outputs are P 1 through P 9 in FIG.15 as listed in Table 1, nine pixels in a square shape of 3 × 3 size as shown in FIG.16A or nine pixels in a square shape of 5×5 size as shown in FIG.16B will be outputted. The relationship between the mask patterns and the objective image may be modified size-wise in similar figures. The size may easily be increased to 7 × 7 or 9 × 9 simply by adding other circuits. By preparing plural sets of the mask patterns, parallel and simultaneous processing becomes possible. These functions enable the extraction of the features with an appropriately sized mask pattern adaptively to the size of the objective pattern but without the necessity of changing the magnification of the pick-up lens system. input A input B output a 11 a 22 P 1 a 13 a 23 P 2 a 15 a 24 P 3 a 31 a 32 P 4 a 33 a 33 P 5 a 35 a 34 P 6 a 51 a 42 P 7 a 53 a 43 P 8 a 55 a 44 P 9 The pixels may be selected with a selection signal SL from a controlling section comprising a CPU 150 and so on by, for instance, a multiplexer 115 as shown in FIG.17. For example, either one of the pixels a 11 and a 22 is selected and then outputted. The video images DP thus cut-out are inputted to a matching circuit 120 within a correlating circuit 160, and correlated to an autocorrelation mask as it is unchanged by the parallel displacement. The matching circuit 120 matches them within the scope of a window signal WS generated by a window signal generating circuit 140. Description will be first given to the window signal generating circuit 140. The window signal generating circuit 140 is structured as shown in FIG.18. For simplicity's sake, the explanation is made in respect of a case where a circuit is structured to process the hatched portion (or window) out of the video signals as shown in FIG.19. The circuit inputs horizontal synchronizing signals HD, vertical synchronizing signals VD and the clock signal CLK from the timing signal generating circuit 103, and counters 141 and 145 generate X-coordinates XS and Y-coordinates YS. In other words, the counter 141 counts the clock signal CLK using the horizontal synchronizing signals HD as a clear signal while the counter 145 counts the horizontal synchronizing signals HD using the vertical synchronizing signals VD as a clear signal. The output XS from the counter 141 and the output YS from the counter 145 are compared by digital comparators 142, 143 and 146, 147 respectively with the coordinates X 1 , X 2 and Y 1 , Y 2 shown in FIG.19 set in the controlling section. Then, only when AND circuits 144, 148 and 149 judge that X 1 ≦ X-coordinates XS≦ X 2 and Y 1 ≦Y-coordinates YS≦Y 2 , the AND circuit 149 outputs the window signal WS. In other words, the window signal WS is outputted in a manner so that when the output XS from the counter 141 exists between the set values X 1 and X 21 the output AN1 from the AND circuit 144 becomes "1", when the output YS from the counter 145 exists between the set values Y 1 and Y 2 , the output AN2 from the AND circuit 148 becomes "1", and when the both of the outputs AN1 and AN2 are "1", the output from the AND circuit 149 becomes "1". Therefore, when the output exists within the hatched portion in FIG. 19, the window signal WS becomes "1". The window signal WS is inputted to the matching circuit 120 to designate the scope of matching and the output image synthesizing/switching circuit 154. Correlation histogram is counted only when the window signal WS is "1" (or possibly "0") . The end of this window signal WS becomes a sign to finish the counting operation. The window signal WS is effective since it can process only the objects. cut out in accordance with the size of the object, and sequentially scan a screen at an arbitrary interval. The matching circuit 120 conducts matching operation with the autocorrelation mask as shown in FIG.7 by obtaining logical products of the portion of "1" in the figure. If the image is of multivalues, the sum of the portions of "1" will suffice. The correlation data CL matched by the matching circuit 120 are inputted to the counting means 130 comprising plural counters in the number equivalent to the autocorrelation masks, and outputs thereof are then sequentially counted by the plural counters. The counted data are stored in an RAM 152 and may be read out at any time. Then, the data of the counting means 130 are initialized by the horizontal and vertical synchronizing signals from the timing signal generating circuit 103. The output image synthesizing/switching circuit 154 switches the video images IS from the TV camera 101 and the binary images BP with the switching signal PS from the CPU 150 to display, and displays the window signal WS when the need arises. The CPU 150 makes necessary setting at the sampling circuit 102, the partial image cutting-out circuit 110 and the counting means 130 in accordance with the program stored in the ROM 151, conducts the learning and the arithmetic operations, and does the measurement and output. The CPU 150 is connected with such input devices as a keyboard via an input/output interface 153 so that it can input the teaching data, direct the learning sampling, output the results and input for directly various settings. For instance, the size (5 ×5 or 3×3) to be cut out of images is controlled in a way since the mask pattern No.1 represents the area (size) of an object pattern, if this value is greater than a predetermined value, the size 5 ×5 will be chosen while if it is less than the value, the size 3 ×3 will be chosen. In these constructions, the object 100 which has been picked up by the TV camera 101 is extracted of the features in the form of 25-demensional vector or initial features x j as a matching histogram (counted values) with the mask patterns. Only the space within the window becomes the object of measurement, and the initial features x j are extracted every time the window signal WS ends. In the process of the learning, the initial features x j are stored in the RAM 152 together with the information teached in accordance with plural commands. In the process of the arithmetic analysis, the plural data within the memory are processed with the technique of the multivariate analysis so as to determine the parameters for the subsequent measurements. In the process of the measurement, with these parameters, the initial features x j extractedfrom unknown object are judged to output the result of the measurement. Concrete embodiments in which this invention method is applied to various uses will be explained hereinafter. The binary image is considered and an example in a case that multiple regression analysis is used as the statistical feature extraction by an adaptive learning is explained, and the case of discriminant analysis is omitted. First, the result of applying the method to a problem to simultaneously measure the number of two circles (particles) in an image frame which have different diameters is explained. Fourty images including two type circles in random are prepared and the examples are shown in FIGs.20A to 20D. The image in FIG.20D shows a real binarized image which is inputted to a system through a TV camera for the image in FIG.20C and the image in FIG.20D is seen to be greatly influenced with noises. The learning is performed by using the above images. In this case, the teaching input to the respective images is two-dimensional vector of z = (z 1 , z 2 )', the letter z 1 is number of larger circles and the letter z 2 is number of smaller circles. The most suitable coefficient matrix A (25×2) is obtained by the learning and the measurement (estimation) to the inputted image is performed by y = (y 1 , Y 2 )' of the formula (2') used the coefficient matrix A. For example, the measurement to the image in FIG.20A was (y 1 , y 2 ) = (4.10, 5.88), the image in FIG.20B (y 1 , y 2 ) = (3,09. 0.88) and the image in FIG.20C (y 1 , y 2 ) = (1.97, 3.02). It is possible to obtain good results while the images are in noises (Right number is realy obtained by round with a margin). Next, measurement examples of topological characteristic of the objective image are shown in FIGs.21A to 21D. For example, the examples are numbers of the objects separated in the image frame (FIGs.21A and 21B) and are numbers of holes of the objects (FIGs.21C and 21D). It is an important matter as the topological characteristics that the number is irrespective of the shapes of the objects or the holes. For the forty-eight images including the various objects separated, the learning is performed as the teaching inputs z 1 of the right number. FIGs.21A and 21B are examples of the images which are used in the above examples. As a result, the system rightly measure the number of separated objects for the inputted images which are optionally given. The value y 1 was respectively "1, 2" for FIGs. 21A and 21B. The measurement of the hole number also could obtain very good results. The value y 1 was respectively "5, 1" for FIGs.21C and 21D. The above measurement principle proves that Euler's formula in topology is substantially approximated with models. What is most significant herein is the system according to this invention method automatically learns the Euler's formula (instead of being tought as a program). The application to the recognition is explained. The objects are generated "84" numbers in triangle of optional shape and are respetively allotted to the learning images. The recognition problem discriminates which is acute or obtuse angle and the teaching inputs were (z 1 , z 2 ) = (0, 1) for the obtuse angle triangles and (z 1 , z 2 ) = (1, 0) for the acute angle triangles. When the 84-images are recognized by using the most suitable coefficient matrix A, only one was missed the acute angle as the obtuse angle. The missed triangle was almost a rectangular triangle. An example of practial application of the aforementioned image measuring device will now be described hereinbelow. The device may be applied to a system which discriminates faces wearing glasses as shown in FIG.22 from faces without glasses as shown in FIG.23. The system first shows the faces with glasses in FIG.22, then sets windows to include one face in each, indicates classes (in other words whether or not the face wears a pair of glasses) and samples them. Sampling data comprises 25-dimensional vectors and classes (i .e. "1" or "2"). These faces are inputted in a manner to allow slight disturbance (e.g. giving a minute angular displacement for 10 times). The similar operation is conducted for the faces without glasses shown in FIG.23. This makes the ninety initial features x stored in the RAM 152, and the learning process ended. The CPU 150 does the discriminant analysis in its arithmetic operation to xtract the statistical features optimal to decide the faces with glasses from the faces without glasses. While in FIG.24 the data of the faces form lumps randomly with class 1 and class 2 mixed, in FIG.25 (after the discriminant analysis) the two classes 1 and 2 are distinctively separate. The statistical features which can discriminate the faces with glasses from those without glasses are extracted, and may be applied to unknown faces. In FIG.24, the first principal component is plotted on the horizontal axis and the second principal component on the vertical axis to show the result of the principal component analysis. In FIG.25, the first eigen-projection is plotted on the horizontal axis, and the second eigen-projection on the vertical axis to show the result of the discriminant analysis. In the measurement (discrimination) process, unknown face data x are judged in the discriminant space by comparing Y = A x with the mean vector of each class and classification rule of their classes (i.e. the faces with or without glasses). The result is indicated, for example, by outputting a text that this particular face wears glasses when the face is judged to belong to the class 1. It is possible to measure images at very high speed and in real time by performing the most suitable statistical feature extraction adaptive to the respective measurement problems obtained by the learning from the common initial features obtained by the once scanning of the image frame without consideration of the cutting, while the conventional method cuts the objective region from the image frame and sequentially applies specific image processing and feature extraction. Moreover, important matter is that the processing time is constant irrespective of the measurment problems. For example, in a case of particle measurement, the measurement time for "1000" particles is equal to the same for "1". Further, according to this invention, it is easy to rrealize the device since the structure is simple and essentially parallel calculation. It is possible to apply the same device to various usages by the adaptive learning, and the device has high generality, and the learning due to the multivariate analysis is simple and high speed. Especially, it does not need to give an algorithm how to measure and it is sufficient to show an images to simply become examples and answers (measuring values to be obtained) for those. In this connection, it is possible to apply the invention to the problem which is impossible by the prior art sequential method and measurement algorithm is unknown. Further, since the position is invariable, it is possible to measure moving images (objects sequentially moving in time, for example, parts on the belt-conveyor). Therefore, the present method has good effects as a cheap general purpose image measuring device. Further, the feature extraction according to this invention has good effciency and universal character, and therefore it is possible to link to neuro-computers, especially multilayered feed-forward neural networks with an error back propagation learning. For example, in a case of inputting letters (images) of 32 ×32, it needs input layers of 1024 if the input for pizels thereof is directly performed. On the contrary, the number of the input is 13 to 25 if the output of the local autocorrelation mask according to this invention is used. In this connection, the structure of the neuro-computer may be small. The efficiency becomes great if the object image is large. Fyrther, since the system does not need position-invariant learning and can efficiently learn, the learning time becomes short. The neuro-computer is described in "Parallel Distributed Processing", Vol. I , II, MIT Press, 1986, by D.E.Rumelhart, J.L.Mcclellard and the PDP Research Group. As described above, according to this invention measurement and recognition device, users of the device can learn the device about the objects they wish to measure, to thereby allow the device automatically to select the optimum measurement method under the particular situation and to measure them at a higher speed. Terefore, this invention device can be applied to any uses no matter how difficult it is to determine an optimal means for discrimination. Further, the device performs the measurement at high resistance against the disturbance at the site as it can learn about surrounding environment. The device is not only adaptive but also easy to use as it can provide the extraction of the feature effectively and adaptively by such functions as windows and mask size switching. The device can perform a high speed processing in real time due to parallel calculation irrespective of the position of a particular object with a window. Since it is of the type of the adaptive learning, the same device can be applied to various purposes and thus is of universal type. The device does not have to be fed with any algorithm, but can measure if users simply provide example images and corresponding answers (or measurement values to obtain).

Claims: Processor-implemented adaptive learning-type general purpose image measurement and recognition method, comprising the following steps: a) entering an image to be measured f( r ) within an image frame, wherein r = (i,j) is a two-dimensional vector representing the position of the image; b) extraction of a predefined number K of initial features x j ( a 1 , ..., a N ) of an initial feature vector x for said image f( r ) according to whereby the features to be extracted are the autocorrelation functions of the Nth order, the Nth order autocorrelation functions being calculated by scanning once the whole image memory with K local autocorrelation masks and by obtaining respective sums of products; c) obtaining from said initial features x j ( a 1 , ..., a N ) new features y being measurement values effective to the measurement problem according to y = A' x , thereby using a predefined coefficient matrix A , the coefficient matrix A being optimal for the measurement has been learnt in a learning mode for several classes of the objects; and d) classifying said measured results y for recognition. Processor-implemented adaptive learning-type general purpose image measurement and recognition method, comprising: a) a learning process comprising the steps of: al) entering a set of objective images f i ( r ) within an image frame, i = 1 to L , into an image memory, wherein r = (i,j) is a two-dimensional vector representing the position of the image; a2) extraction of a predefined number K of initial features x j ( a 1 , ..., a N ) of an initial feature vector x i for said image f i ( r ) according to whereby the features to be extracted are the autocorrelation functions of the Nth order, the Nth order autocorrelation functions being calculated by scanning once the whole image memory with K local autocorrelation masks and by obtaining respective sums of products; and a3) performing a multivariate analysis method for obtaining an optimal coefficient matrix A , in that to each image f i ( r ) a desired measurement vector z i is provided, whereby said optimal coefficient matrix A is obtained if the accurate measurement vector z i can be expressed by z i = A' x i ; b) a recognition process comprising the steps of: bl) entering an image to be measured f( r ) within an image frame, wherein r = (i,j) is a two-dimensional vector representing the position of the image; b2) extraction of a predefined number K of initial features x j ( a 1 , ..., a N ) of an initial feature vector x for said image f( r ) according to whereby the features to be extracted are the autocorrelation functions of the Nth order, the Nth order autocorrelation functions being calculated by scanning once the whole image memory with K local autocorrelation masks and by obtaining respective sums of products; b3) obtaining from said initial features x j ( a 1 , ..., a N ) new features y being measurement values effective to the measurement problem according to y = A'x , thereby using the coefficient matrix A which has been learnt in said learning mode; and b4) classifying said measured results y for recognition. Apparatus for various image measurements of the shapes and numbers of objects expressed in binary images, comprising: a) an image input subsystem (101, 110, 140) entering an image to be measured f( r ) within an image frame, wherein r = (i,j) is a two-dimensional vector representing the position of the image, said image input subsystem having: a1) pick-up means (101) to pick up objects of measurement in two dimensions, a2) image cutting-out means (110) which partially cuts video signals of said picked-up images, and a3) window signal generating means (140) which generates a window signal for designating measurement scope; b) correlating means (160) extracting a predefined number K of initial features x j ( a 1 , ..., a N ) of an initial feature vector x for said image f( r ) according to whereby the features to be extracted are the autocorrelation functions of the Nth order of said cut-out data within said scopes of said window signal, the Nth order autocorrelation function being calculated by scanning once the whole image memory with said predetermined number K of local autocorrelation masks and by obtaining respective sums of products; and c) arithmetic means (150) calculating from said initial features x j ( a 1 , ..., a N ) new features y being measurement values effective to the measurement problem according to y = A'x , thereby using a coefficient matrix A , the coefficient matrix A being optimal for the measurement has been learnt in a learning mode for several classes of the objects, and classifying said measured results y for recognition.

Inventors: KURITA TAKIO, KUWASHIMA SHIGESUMI, OTSU NOBUYUKI, KURITA, TAKIO, KUWASHIMA, SHIGESUMI, OTSU, NOBUYUKI
Applicants: AGENCY IND SCIENCE TECHN, OYO KEISOKU KENKYUSHO KK, AGENCY OF INDUSTRIAL SCIENCE AND TECHNOLOGY, KABUSHIKI KAISHA OUYO KEISOKU KENKYUSHO
Application year: 1989
Main classification: G06K9
IPC codes: G06K9