This application is based upon and claims the benefit of priority from prior Japanese Patent Applications No. 2005-229928, filed Aug. 8, 2005; and No. 2006-176735, filed Jun. 27, 2006, the entire contents of both of which are incorporated herein by reference.
1. Field of the Invention
This invention relates to a sheet identifying apparatus and sheet identifying method which identify the type and truth/false of each sheet such as a paper sheet by comparing an image pattern acquired from the sheet with preset reference patterns in an automatic checking apparatus for sheets such as securities.
2. Description of the Related Art
Generally, an identification process for a digital image pattern (which is hereinafter simply referred to as a pattern) tends to require a sensor input of higher resolution as it is desired to perform a higher-degree identification process. However, at this time, it is required to realize the process on the real-time basis with lower calculation cost from the viewpoint of practicality.
Therefore, various methods of selecting and processing part of the pattern (pixels or sets of pixels) are proposed. Generally, since the pattern contains much redundancy, a sufficiently high identification performance can be attained by adequately selecting portions of the pattern and performing a small amount of calculations with the resolution kept high.
For example, the technique for narrowing down to-be-processed pixels by performing a random pixel selecting operation and attaining both of the high-degree resolution and high-speed processes is known (for example, refer to Jpn. Pat. Appln. KOKAI Publication No. H9-134464). With the above well-known technique, since the pixel selecting operation is randomly performed for each checking process, it becomes practically impossible to detect a checking portion thereby to enhance the reliability.
- - - . However, with the above well-known technique, positional weighting is not taken into consideration and it is considered desirable to uniformly distribute the selected pixels in the entire pattern area. Certainly, in order to make it difficult to detect the checking portion, it is idealistic to uniformly select the pixels from the entire pattern area. However, generally, a method of uniformly processing the entire pattern area to attain an identification result has a problem that a local feature cannot be sufficiently distinctly identified or a local variation in the medium (stain, light brush-stroke or the like) gives an influence on the identification performance.
Therefore, it is desired to develop an identification method which can sufficiently identify a local feature while maintaining the high-speed operation and high reliability.
Further, when part of the pattern is selected and processed, an influence is given by a fluctuation in the printing concentration, skewing and sliding of the sheet caused by the feeding state of the sheet in some cases.
Accordingly, an object of this invention is to provide a sheet identification apparatus and sheet identification method which can efficiently estimate classes of sheets such as paper sheets and perform a pattern identification process which is robust to a variation in the medium by dividing an image pattern of each sheet into a plurality of areas (pixels or sets of pixels), weighting and selecting the areas, attaining the identification results for the respective areas and determining the identification result of the whole portion based on a logical combination of the identification results.
According to a first aspect of this invention, there is provided a sheet identification apparatus which identifies types and truth/false of sheets to be identified by comparing an image pattern acquired from the sheet with preset reference patterns and comprises area dividing means for dividing the image pattern acquired from the sheet into a plurality of areas, weighting means for weighting the areas divided by the area dividing means, area selecting means for selecting areas used for identification from the areas weighted by the weighting means, identification result acquiring means for acquiring a result of identification with the reference pattern for each area selected by the area selecting means, and identification result determining means for determining an identification result of a whole portion by a logical combination of the identification results for the respective areas acquired by the identification result acquiring means.
According to a second aspect of this invention, there is provided a sheet identification method which identifies a type and truth/false of a sheet to be identified by comparing an image pattern acquired from the sheet with preset reference patterns and comprises an area dividing step of dividing the image pattern acquired from the sheet into a plurality of areas, a weighting step of weighting the areas divided by the area dividing step, an area selecting step of selecting areas used for identification from the areas weighted by the weighting step, an identification result acquiring step of acquiring a result of identification with the reference pattern for each area selected by the area selecting step, and an identification result determining step of determining an identification result of a whole portion by a logical combination of the identification results for the respective areas acquired by the identification result acquiring step.
According to this invention, a sheet identification apparatus and sheet identification method can be provided which can efficiently estimate the class of each sheet and perform a pattern identification process which is robust to a variation in the medium by dividing an image pattern of the sheet into a plurality of areas (pixels or sets of pixels), weighting and selecting the areas, attaining the identification results for the respective areas and determining the identification result of the whole portion based on a logical combination of the above identification results.
Additional objects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out hereinafter.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention, and together with the general description given above and the detailed description of the embodiments given below, serve to explain the principles of the invention.
There will now be described embodiments of this invention with reference to the accompanying drawings.
A sheet identifying apparatus according to this invention identifies the types and truth/false of sheets (media) such as paper sheets based on image patterns of the sheets. For example, it identifies the types (classes, denominations) and truth/false of the sheets based on image patterns (image data) acquired by optically reading images printed on the paper sheets such as securities (such as banknotes).
First, a first embodiment of this invention is explained below.
First, dividing parameters are initialized (ST1). In this case, the dividing patterns indicate concrete numerical values which express area division of each pattern. For example, in
pi={hi,vi,li,di}
where pi indicates a dividing parameter of an i-th area (1≦i≦416), hi indicates the horizontal coordinate of a start point of the i-th area, vi indicates the vertical coordinate of the start point of the i-th area, li indicates the horizontal width of the i-th area, and di indicates the vertical height of the i-th area. In the dividing parameter initialization process, a concrete numerical value is substituted into pi.
Next, weighting parameters are initialized (ST2). The weighting parameter expresses the degree of importance of an area, but since the degrees of importance of the areas are not clear in the initial state, all of the weighting parameters are set to the same value. That is, the following equation is attained.
wi=1/416
where wi indicates a weighting parameter of the i-th area.
Further, selecting parameters are initialized (ST3). If the selecting parameter is set as Q, the selecting parameter Q is divided into a selection rate q0 and selected area number qj (j≧1). That is, the following equation is obtained.
Q={q0,q1,q2, . . . }
The selection rate is a ratio of the selected area to the entire area. That is, the following expression is set.
0.0≦q0≦1.0
The number of the area selected at this time is set to a selected area number. The number of selected area numbers is determined according to the selection rate. In this embodiment, the value of the selected area number is set in the following range.
1≦qj≦416
In the initial state, since the degrees of importance of the respective areas are not clear, adequate values are registered. For example, if the selection rate q0=0.25, the selection parameter Q is initialized as follows.
Q={0.25,1,2, . . . ,104}
If the parameter initialization process is completed, a reference pattern is input. For clarifying the explanation, in the present embodiment, the number of classes of the pattern is set to “2” and a 2-class identification problem is dealt with.
Further, each class to which the reference pattern belongs is known. When such a reference pattern is input, the area dividing process is performed. The area dividing process as shown in
When the reference pattern input process and the area dividing process for all of the classes are completed, the weighting parameter is updated (ST7). At this stage, the weighting parameter is updated according to a difference between the classes. For example, if reference patterns for the two classes A and B are expressed by a(0) and b(0) and the number of pixels contained in one area is set to N, the feature amounts are expressed as follows, for example.
f(a(0),i)={a(0,i,1),a(0,i,2), . . . ,a(0,i,n),a(0,i,N)}
f(b(0),i)={b(0,i,1),b(0,i,2), . . . ,b(0,i,n),b(0,i,N)}
where f(a(0), i) and f(b(0), i) are feature amounts of the i-th areas of a(0) and b(0) (1≦i≦416). Further, a(0, i, n) and b(0, i, n) are pixel values of n-th pixels of the i-th areas of a(0) and b(0) (1≦n≦N).
That is, the feature amount is an n-dimensional vector determined by the N pixel values. At this time, the weighting parameters are calculated as follows.
wi=D(f(a(0),i)),f(b(0),i))/Σi{D(f(a(0),i),f(b(0),i))}
where D(f(a(0), i), f(b(0), i)) is Euclid distance between a(0) and b(0) in the i-th areas and is expressed as follows.
D(f(a(0),i),f(b(0),i))=sqrt[Σn{b(0,i,n)−a(0,i,n)}2]
That is, the weighting parameter is derived as a value obtained by dividing the distances between the reference patterns for the respective areas by the total sum of the differences between the reference patterns of all of the areas. Generally, since it can be considered more advantageous for identification between classes in an area in which the distance between the reference patterns representing the class is longer, the above process is adequate as the first stage of the area weighting process.
However, there occurs a case wherein an area which varies in the class depending on an object pattern is present. For example, stumps, signatures, symbols or numbers may be provided. In order to attain more stable identification between the classes, the areas should be less weighted. Therefore, in the present embodiment, the weighting parameter is tuned by use of a learning pattern. In this case, the learning pattern is a sample belonging to a class which is known except the reference pattern. It is preferable that the learning pattern have a certain number of samples and reflect the distribution of sets of all of the patterns of the classes to which they belong. If the learning pattern is input, the area-dividing process is performed like the case of the reference pattern. The learning pattern input process and the area dividing process are repeatedly performed for all of the samples of all of the classes (ST8 to ST10).
When the learning pattern input process and the area dividing process for all of the samples of all of the classes are completed, the weighting parameter is updated (ST11). At this stage, the weighting parameter is updated according to a variation in the class. For example, if M learning patterns for the two classes A and B are expressed by a(k) and b(k) (1≦k≦M), the following equations indicating values expressing variations can be attained.
s(a,i)=Σk∥f(a(k),i)−μ(a,i)∥i)∥
s(b,i)=Σk∥f(b(k),i)−μ(b,i)∥
where s(a, i) and s(b, i) indicate variation values of the i-th areas of the classes A and B and μ(a(k), i) and μ(b(k), i) indicate average vectors of the i-th areas of the classes A and B. That is, the variation values in the present embodiment are obtained by deriving standard deviations of the learning patterns of the respective classes for the respective areas. At this time, the weighting parameter is updated as follows.
wi←wi/{s(a)+s(b,i)}
That is, it is obtained by dividing the original weighting value by the sum of variation values of the classes A and B. After updating, the normalization process is performed as follows.
wi←wi/Σiwi
Thus, the weighting parameter is determined by taking the difference between the classes and the variation in the class into consideration.
Next, the selecting parameter is updated (ST12). In the present embodiment, parameters of a number corresponding to the selection rate Q are selected from the upper position in an order of increasing weighting degrees. For example, in the case of selection rate q0=0.25, the numbers of 104 areas which are ¼ of the 416 areas are registered in an order of increasing weighting degrees as selected area numbers qj. Thus, the area weighting and selecting processes based on the difference between the classes and the variation in the class are performed and the learning phase is completed.
Next, an identification phase is explained. In the identification phase, an unknown pattern is input and the identification result is output. The unknown pattern is a sample belonging to a class which is unknown. If such an unknown pattern is input (ST13, ST14), the area diving process is performed like the case of the reference pattern and learning pattern (ST15).
Next, an area specified by the selecting parameter is selected (ST16). Further, the identification process is performed for each of the selected areas (ST17 to ST19).
In this invention, the algorithm of the identification process itself is not particularly limited, but in the case of a 2-class identification problem, the result of the identification process is set to one of “class A”, “class B” and “reject”. The most primitive identification algorithm utilizes Euclid distance between the reference pattern and an unknown pattern. For example, if the unknown pattern is x and the identification result of an i-th area for the unknown pattern x is z(x, i), the following relations can be obtained.
z(x,i)=class A(if D(f(x,i),f(b(0),i))>D(f(x,i),f(a(0),i))+ε)
z(x,i)=class B(if D(f(x,i),f(a(0),i))>D(f(x,i),f(b(0),i))+ε)
z(x,i)=reject(if |D(f(x,i),f(a(0),i))−D(f(x,i),f(b(0),i))|≦ε)
where ε is an adequate constant to define significant difference between the classes.
Next, the whole identification result is determined based on the identification results for the respective areas. As described before, this invention is featured in that the identification result is temporarily obtained for each area and the identification result of the whole portion is determined based on the majority rule, logical equation or weighting process thereof.
Conventionally, for example, the Euclid distance for each area is derived as described before and the simple mean or weighted mean is derived and then the whole identification result is determined without deriving the identification result for each area. However, there occurs a problem that the local feature cannot be sufficiently identified and the local medium variation (stain, light brush-stroke or the like) gives an influence on the identification performance.
According to the present embodiment, since the local feature is not dependent on the other portion and the local variation can be acquired without giving an influence by a local variation on the other portion, the identification process of higher precision can be realized. For example, if an unknown pattern is x and the whole identification result for the unknown pattern x is z(x), the following relations can be attained in the case of the majority rule.
z(x)=class A(if Σi|(z(x,i)=class A)most frequently occurs)
z(x)=class B(if Σi|(z(x,i)=class B)most frequently occurs)
z(x)=reject(if Σi|(z(x,i)=reject)most frequently occurs)
where Σi|(z(x, i)=class A), Σi|(z(x, i)=class B) and Σi|(z(x, i)=reject) indicate the numbers of areas in which the area identification results become “class A”, “class B” and “reject”.
Further, the identification result of the whole portion can be determined by expressing the relation between ρi|(z(x, i)=class A), Σi|(z(x, i)=class B) and Σi|(z(x, i)=reject) by use of logical equations.
For example, z(x)=class A if the following condition is satisfied.
Σi|(z(x,i)=class B)/Σi|(z(x,i)=class A)<α and (Σi|(z(x,i)=class A)+Σi|(z(x,i)=class B)>Σi|(z(x,i)=reject)+β
z(x)=class B if the following condition is satisfied.
Σi|(z(x,i)=class A)/Σi|(z(x,i)=class B)<α=reject)+β
z(x)=reject in other cases.
where α is an adequate constant to define significant difference between the classes and β is an adequate constant which adjusts the rate of “reject”. Thus, the fact that the behavior of the whole identification can be easily adjusted according to the parameters (α, β or the like) is also the feature of this invention.
Further, the weighted majority rule and weighted logical equation can be utilized by taking the degrees of weighting of the weighted parameters on the majority rule and logical equation into consideration. That is, the following relations can be obtained.
z(x)=class A(if Σiwi|(z(x,i)=class A)most frequently occurs)
z(x)=class B(if Σiwi|(z(x,i)=class B)most frequently occurs)
z(x)=reject(if Σiwi|(z(x, i)=reject)most frequently occurs)
Alternatively, z(x)=class A if the following condition is satisfied.
Σiwi|(z(x,i)=class B)/Σiwi|(z(x,i)=class A)<α and (Σiwi|(z(x,i)=class A)+Σiwi|(z(x,i)=class B)>Σiwi|(z(x,i)=reject)+β
z(x)=class B if the following condition is satisfied.
Σiwi|(z(x,i)=class A)/Σiwi|(z(x,i)=class B)<α and (Σiwi|(z(x,i)=class A)+Σiwi|(z(x,i)=class B)>Σiwi|(z(x,i)=reject)+β
z(x)=reject in other cases.
The identification result z(x) of the unknown pattern obtained by the above process is output (ST19).
Thus, according to the first embodiment, it becomes possible to efficiently estimate the class of the sheet or paper sheet and perform a pattern identification process which is robust to a variation in the medium by dividing an image pattern of the paper sheet into a plurality of areas (pixels or sets of pixels), weighting and selecting the areas, attaining the identification results for the respective areas and determining the identification result of the whole portion based on a logical combination of the identification results.
Particularly, since the areas are weighted and selected based on the difference between the classes and a variation in the class, the amount of calculations can be reduced and the high identification performance can be attained in comparison with the method of uniformly processing the whole portion of the pattern.
Further, since the identification results are temporarily obtained for the respective areas and the whole identification result is determined based on the majority rule, logical equation or weighting process thereof, the local feature is not dependent on the other portion and the local variation can be acquired without giving an influence by the local variation on the other portion in comparison with the simple mean of the feature amounts for the respective areas and the behavior of the whole identification process can be simply adjusted by use of the parameters.
Next, a second embodiment of this invention is explained.
After the initialization processes of the parameters are completed, a reference pattern is input like the first embodiment (ST4 to ST6). In the second embodiment, in order to clarify the explanation, the number of classes of the pattern is set to “2” and a 2-class identification problem is dealt with. The reference pattern is a pattern used as a reference of a class which is free from an influence due to a stain of a medium and an input variation. One reference pattern is set for each class. Further, a class to which the reference pattern belongs is known.
When such a reference pattern is input, the area dividing process is performed. The reference pattern input process and the area dividing process are repeatedly performed for all of the classes. In the second embodiment, the operation of updating the weighting parameters using the reference patterns of the first embodiment is not performed.
Next, like the first embodiment, a learning pattern is input (ST8, ST9). It is preferable for the learning pattern to have a certain number of samples and reflect the distribution of sets of all of the patterns of a class to which the pattern belongs. When the learning pattern is input, the area dividing process is performed (ST10).
At this time, the selected area numbers are randomly set (ST21). For example, if the selection rate q0=0.25, the numbers of 104 areas which are ¼ of the 416 areas are randomly extracted without overlapping and registered as selected area numbers qj (ST22).
Next, the randomly selected area is evaluated (ST23). The basic evaluation method is to enhance the degree of the weighting parameter of the selected area if the area is effective for identification of the input learning pattern and lower the degree of the weighting parameter of the selected area if it is ineffective. The way of determining “effective” or “ineffective” is not limited in this invention. However, the most primitive evaluation algorithm is attained by using the Euclid distance between the reference pattern and the learning pattern. For example, when the reference patterns of the two classes are set to a(0) and b(0) and the learning pattern belonging to the class A is y, then the following relation can be attained.
wi←wi+δ if ΣiD(f(y,i),f(b,(0),i))>D(f(y,i),f(a(0),i)+θ
wi←wi+δ in other cases
where θ is an adequate constant to define whether the area selection is effective or not and δ is a small correction item (δ>0) with respect to wi. The weighting parameter updating operation is repeatedly performed for all of the learning patterns (ST24) and the normalization process is performed as follows after the updating operation (ST25).
wi←wi/Σiwi
Thus, the random area selection and evaluation operations are alternately and repeatedly performed and the weighting parameter based on the evaluation is determined.
Next, the selection parameter is updated, but the contents thereof are sequentially registered as the selected area numbers in the order of increasing degrees of weighting like the first embodiment (ST26). In the second embodiment, the feature that the selected area numbers are further narrowed down (ST27) is attained. Thus, the learning phase is completed.
The identification phase (after the unknown pattern input operation (ST13 to ST19)) of the second embodiment is the same as that of the first embodiment. Finally, an identification result for the unknown pattern is output.
Further, there is provided a method for repeatedly performing the evaluation process for all of the areas without performing the random area selection and sequentially optimizing the weighting parameter based on the evaluation.
Thus, according to the second embodiment, the evaluation process for the randomly selected areas or for all of the areas is repeatedly performed and the degrees of weighting of the area are sequentially updated based on the evaluation. As a result, the identification process using parameters corresponding to real data can be performed.
Further, both of the identification performance and reliability can be enhanced by applying a random mask to the selected areas and narrowing down the areas.
Next, a third embodiment of this invention is explained.
First, a plurality of area selection processes are performed (ST31, ST32). As the area selection algorithm, the area selection algorithm in the first embodiment or second embodiment can be used. If the number of loops is set to LOOPMAX, selecting parameters Qloop of LOOPMAX can be obtained.
Qloop(1≦loop≦LOOPMAX)
Thus, the learning phase is completed (ST33 to ST35).
Next, the identification phase is explained. In the identification phase, an unknown pattern is input (ST36, ST37) and the identification result thereof is output (ST38). In this case, however, unlike the first embodiment and second embodiment, unknown pattern processes of LOOPMAX are performed based on the selecting parameters of LOOPMAX and whole identification results of LOOPMAX can be obtained as the result (ST39 to ST42). The unknown pattern is set to x and the whole identification result for the unknown pattern x based on the selecting parameters Qloop is set to z(x, loop).
Then, the final identification process is performed (ST43). As described before, the present embodiment has a feature that the final identification result is determined based on the majority rule, logical equation or weighting process thereof for a plurality of identification results obtained by a plurality of area selecting processes. For example, if the majority rule is applied, the following relations can be obtained.
z(x)=class A(if Σloop|(z(x,loop)=class A) most frequently occurs)
z(x)=class B(if Σloop|(z(x,loop)=class B) most frequently occurs)
z(x)=reject(if Σloop|(z(x,loop)=reject)most frequently occurs)
where Σloop|(z(x, loop)=class A), Σloop|(z(x, loop)=class B) and Σloop|(z(x, loop)=reject) respectively indicate the numbers by which the whole identification results become “class A”, “class B” and “reject”.
Further, it is possible to express the relation between Σloop|(z(x, loop)=class A), Σloop|(z(x, loop)=class B) and Σloop|(z(x, loop)=reject) by use of the logical equation and determine the final identification result.
z(x)=class A if the following condition is set up.
Σloop|(z(x,loop)=class B)/Σloop|(z(x,loop)=class A)<α and (Σloop|(z(x,loop)=class A)+Σloop|(z(x,loop)=class B)>Σloop|(z(x,loop)=reject)+β
z(x)=class B if the following condition is set Up.
Σloop|(z(x,loop)=class A)/Σloop|(z(x,loop)=class B)<α and (Σloop|(z(x,loop)=class A)+Σloop|(z(x,loop)=class B)>Σloop|(z(x,loop)=reject)+β
z(x)=reject in the other cases.
In this case, a indicates an adequate constant to define significant difference between classes and p indicates an adequate constant to adjust the rate of “reject”.
Further, the weighted majority rule and weighted logical equation can be attained by considering the degrees of weighting of the weighting parameters in the majority rule and logical equation. That is, the following relations can be attained.
z(x)=class A(if Σloopwi|(z(x,loop)=class A) most frequently occurs)
z(x)=class B (if Σloopwi|(z(x,loop)=class B) most frequently occurs)
z(x)=reject (if Σloopwi|(z(x, loop)=reject) most frequently occurs)
Alternatively, z(x)=class A if the following condition is set up.
Σloopwi|(z(x,loop)=class B)/Σloopwi|(z(x,loop)=class A)<α and (Σloopwi|(z(x,loop)=class A)+Σloopwi|(z(x,loop)=class B))>Σloopwi|(z(x, loop)=reject)+β
z(x)=class B if the following condition is set up.
Σloopwi|(z(x,loop)=class A)/Σloopwi|(z(x,loop)=class B)<α and (Σloopwi|(z(x,loop)=class A)+Σloopwi|(z(x,loop)=class B))>Σloopwi|(z(x,loop)=reject)+β
z(x)=reject in the other cases.
The identification result z(x) of an unknown pattern obtained by the above process is output (ST44).
Thus, according to the third embodiment, if the final identification result is determined based on the majority rule, logical equation or weighting process thereof for a plurality of identification results obtained by a plurality of area selecting processes, the results identified based on various viewpoints can be unified. Therefore, the identification performance which is more robust than that obtained by one area selecting process can be attained.
Next, a fourth embodiment of this invention is explained.
First, the result of the preceding-stage identification process is input (ST51). In the present embodiment, the algorithm of the preceding-stage identification process is not particularly limited, but the result of the identification process is generally expressed by a set of “order, class (category), score (similarity)”. For example, the following items are provided.
1, $1, 990
2, $100, 900
3, $20, 500
4, . . .
Next, candidates of the identification process are selected (ST52). For example, it is supposed in the above example that a difference between the score (990) of the first candidate of the result of the preceding-stage identification process and the score (900) of the second candidate is small and determination of “reject” is made for the preceding-stage identification process. At this time, in the present embodiment, the two classes of the first candidate ($1) and the second candidate ($100) are registered as candidates of the identification process. Alternatively, two candidates of desired orders to be identified may be selected. For example, suppose that the following items are provided in another example.
1, $20 (old), 990
2, $20 (new), 980
3, $1, 900
4, . . . .
The scores of the first candidate ($20 (old)) and the second candidate ($20 (new)) are close to each other, but only the generations thereof are different and the amounts thereof are the same, that is, distinct identification thereof is not required in some cases. In such a case, for example, the first candidate ($20 (old)) and third candidate ($1) are selected.
In this way, after the candidates of the identification process are selected, an unknown pattern is input (ST53, ST54) and the unknown pattern is processed for the candidates of the identification process (ST55). Since the processing contents are the same as those of the other embodiments described above, the explanation thereof is omitted here.
The unknown pattern identification result z(x) obtained by the above process is output (ST56).
In the fourth embodiment, it is supposed that no error occurs in the preceding-stage identification process, but in the practical case, an error may occur in the preceding-stage identification process in some cases. For example, the first candidate is $20 (old) and the second candidate is $20 (new) in the preceding-stage identification process, but there occurs a case wherein the correct answer is $20 (new). Therefore, there is provided a method for setting the number of candidates selected based on the result of the preceding-stage identification process to “n” instead of “2”, processing an unknown pattern with respect to the n candidates and determining the final identification result based on the processing results.
1, $20 (old), 990
2, $20 (new), 980
3, $1, 900
In this case, for example, suppose that the first-order unknown pattern identification results are set as follows.
z12(x)=$20 (new)
z13(x)=reject
z23 (x)=$20 (new)
The result that z12(x)=$20 (new) is obtained even if the first candidate of the result of the preceding-stage identification process is $20 (old). Further, z13(x) is “reject”. In such a case, it is considered to use a method for determining that an error occurs in the preceding-stage identification process and the result of z23(x) is set as the final unknown pattern identification result.
Thus, according to the fourth embodiment, the number of classes to be processed can be reduced by setting the first-order and second-order candidates, a plurality of (n) high-order candidates of the results of the preceding-stage identification processes obtained by different identification means provided in the preceding stage, or two or more candidates of desired orders to be identified as identification process candidates and determining the final identification result by combining the candidates. Further, even when determination of “reject” is made in the preceding-stage identification process, determination of “accept” can be made according to the high identification performance of this invention in some cases.
Next, a fifth embodiment of this invention is explained.
For example, a to-be-excluded area flag is set for each area, the to-be-excluded area flag is set to “1” if the area is a to-be-excluded area and it is set to “0” if the area is not a to-be-excluded area (ST61). Thus, it is possible to determine whether or not the area is a to-be-excluded area. Since the process performed after the to-be-excluded area flag setting process (ST61) is the same as that explained in the other embodiments, the explanation thereof is omitted here.
Thus, according to the fifth embodiment, since the process after the area selection process can be performed with the area other than the to-be-excluded area used as an object by previously registering the known to-be-excluded area, a high-speed and stable identification process can be attained.
Next, a sixth embodiment of this invention is explained.
(XLT,YLT),(XRT,YRT),(XLB,YLB),(XRB,YRB)
where (XLT, YLT) indicates the coordinate of the upper left end point of the paper sheet P, (XRT, YRT) indicates the coordinate of the upper right end point of the paper sheet P, (XLB, YLB) indicates the coordinate of the lower left end point of the paper sheet P and (XRB, YRB) indicates the coordinate of the lower right end point of the paper sheet P.
Next, assume that the position of the paper sheet P is expressed as follows when it is input under an influence of sliding and skewing caused by the feeding state of the paper sheet P or the like.
(X′LT,Y′LT),(X′RT,Y′RT),(X′LB,Y′LB),(X′RB, Y′RB)
where (X′LT,Y′LT) indicates the coordinate of the upper left end point of the paper sheet P, (X′RT, Y′RT) indicates the coordinate of the upper right end point of the paper sheet P, (X′LB, Y′LB) indicates the coordinate of the lower left end point of the paper sheet P and (X′RB, Y′RB) indicates the coordinate of the lower right end point of the paper sheet P. At this time, the sliding amounts of the paper sheet P are derived as follows, for example.
ΔXC=X′C−XC
ΔYC=Y′C−YC
Note that Xc, Yc, X′c and Y′c are calculated as follows:
XC=(XLT+XRT+XLB+XRB)/4
YC=(YLT+YRT+YLB+YRB)/4
X′C=(X′LT+X′RT+X′LBX′RB)/4
Y′C=(Y′LT+Y′RT+Y′LB+Y′RB)/4
That is, the method is to derive the centers of gravity of the four end point coordinates in the ideal case and in a case where the influence by sliding and skewing is applied and set a difference between the two centers of gravity as a sliding amount.
Further, the skewing amount is derived as follows, for example.
θ=arctan [(Y′RT−Y′LT)/(X′RT−X′LT)] or
θ=arctan [(Y′RB−Y′LB)/(X′RB−X′LB)]
That is, there is provided a method for deriving the inclination based on the coordinates of the upper left end point and upper right end point or the coordinates of the lower left end point and lower right end point of the paper sheet or the like and calculating the skew amount.
The coordinates of the respective areas are converted as follows based on the thus derived sliding amounts ΔXC, ΔYc and skew amount θ.
X′i=Xi cos [θ]−Yi sin [θ]+ΔXC,
Y′i=Xi sin [θ]+Yi cos [θ]+ΔYC,
where (Xi, Yi) is the coordinates of the n-th pixel in the i-th area in the ideal case and (X′i, Y′i) is the coordinates of the n-th pixel in the i-th area when the influence by sliding and skewing is taken into consideration.
Basically, the coordinates conversion is performed on all pixels in the region. Nonetheless, the conversion may be performed on only the center pixel in the region in a simple method. In this case, paper sheets can be identified at a high speed, while reducing the influence of the sliding and skewing of each paper sheet.
Since the amounts of calculations for the trigonometric function such as arctan, cos and sin are large, a method for previously registering partial calculation results into an offset conversion table and reading and using a corresponding offset value from the offset conversion table at the processing time can be considered.
The coordinates conversion is performed without changing the inclination of the extraction frame. In this case, the efficiency of identifying paper sheets may decrease. Nonetheless, almost all influence of the sliding and skewing of each paper sheet can be eliminated, because the coordinates of the center pixel are corrected (or converted). In view of this, the conversion performed without changing the inclination of the extraction frame is results in no problems. Rather, it is advantageous because of the high-speed sheet identification it achieves.
Thus, according to the sixth embodiment, sliding and skewing of the paper sheet caused by the feeding state of the paper sheet are detected, a corresponding offset value is read from the prepared offset conversion table based on the sliding amount and skewing amount and the coordinates of the respective areas are converted by use of the offset value. Then, the succeeding area dividing process can be performed at high speed with high precision.
Further, a seventh embodiment of this invention is explained.
The state in which the coordinate and concentration are swung is expressed by use of a parameter and is called a “shift parameter”. The shift parameter is expressed as follows, for example.
ri={αi,βi,γi,δi}
where ri is an j-th shift parameter (1≦j≦J), α is a factor expressing the horizontal offset, β is a factor expressing the vertical offset, γ is a factor expressing the concentration gain and δ is a factor expressing the concentration offset. The range in which α and β can be set is a reference ±one (pixel), for example. Further, the range in which γ can be set is a reference ±20(%) and the range in which δ can be set is a reference ±2 (levels).
In the present embodiment, the feature amount f(c(0), i) of the i-th area of the reference pattern c(0) of a class c is converted into a shift feature amount f′(c(0), i) based on the set shift parameters for J shift parameters (ST81 to ST84) and the process is performed for the shift feature amount (ST85, ST86).
Next, the way of swinging the coordinate is explained.
In this case, for clarifying the explanation, the distance is not set to the Euclid distance but is set to the sum of the concentration differences between the pixels of the two patterns. For example, the distance is expressed as follows when α and β are “0” (reference coordinate).
|0−66|+|0−0|+|0−66|+|0−0|+|80−50|+|0−0|+|0−34|+|0−0|+|60−0|=256
In
Next, the way of swinging the concentration is explained.
Thus, the coordinate and concentration can be swung in preset ranges to obtain J processing results in total. Finally, the final area identification result is determined based on the J processing results (ST87). As one example of the simplest determining method, the value of the distance which becomes minimum among the J processing results is used. In the above example, since the distance becomes minimum (0) at the time of α=1, β=1, γ=80 and δ=2, the value is used. As another method, it is considered to use a mean value of the J distances.
As described above, according to the seventh embodiment, even if sliding, skewing and illumination variations caused by the feeding state of the paper sheet occur and errors of a preset range occur in the feature amounts of the areas, the feature amount can be converted with the influence by the above errors taken into consideration by repeatedly performing the processes with the coordinate and concentration swung in the preset ranges for the one or two object patterns and determining the identification result based on the above processes when the identification results are obtained for the respective areas. Thus, the succeeding area identification process can be precisely performed.
This invention is not limited to the above embodiments. For example, since a multiple class identification problem is substantially equal to superposition of 2-class identification problems, this invention can be applied to this case. Further, the area identification algorithm is not limited to the algorithm using the Euclid distance and, for example, various methods such as the simple similarity method, subspatial method and vector quantization method can be applied.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2005-229928 | Aug 2005 | JP | national |
2006-176735 | Jun 2006 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5199543 | Kamagami et al. | Apr 1993 | A |
5216724 | Suzuki et al. | Jun 1993 | A |
5483606 | Denber | Jan 1996 | A |
5528387 | Kelly et al. | Jun 1996 | A |
5638496 | Sato | Jun 1997 | A |
5680472 | Conant | Oct 1997 | A |
5729623 | Omatu et al. | Mar 1998 | A |
6415064 | Oh | Jul 2002 | B1 |
6433896 | Ueda et al. | Aug 2002 | B1 |
6480631 | So et al. | Nov 2002 | B2 |
6741743 | Stalcup et al. | May 2004 | B2 |
6766045 | Slepyan et al. | Jul 2004 | B2 |
6785405 | Tuttle et al. | Aug 2004 | B2 |
7502493 | Ishida | Mar 2009 | B2 |
20040076341 | Dolan | Apr 2004 | A1 |
20060177118 | Ibikunle et al. | Aug 2006 | A1 |
20070122060 | Hardy et al. | May 2007 | A1 |
Number | Date | Country |
---|---|---|
0 472 192 | Feb 1992 | EP |
1 484 719 | Dec 2004 | EP |
09-134464 | May 1997 | JP |
WO 9523388 | Aug 1995 | WO |
WO 2004080865 | Sep 2004 | WO |
Number | Date | Country | |
---|---|---|---|
20070031021 A1 | Feb 2007 | US |