This application is the national phase of International Application No. PCT/CN2013/078914, filed on Apr. 2, 2013, which claims the priority Chinese Patent Application No. 201310012084.6, entitled “RECOGNITION METHOD AND RECOGNITION DEVICE FOR SHEET-TYPE MEDIUM”, filed on Jan. 11, 2013 with the State Intellectual Property Office of People's Republic of China, which applications are hereby incorporated by reference to the maximum extent allowed by law.
The disclosure relates to pattern recognition technology based on image information, and in particular to a method and a device for recognizing a sheet-medium according to image information.
In the field of image-based pattern recognition, an image to be recognized is collected by a sensor, and if the image has poor resolution, accuracy of recognition results greatly decreases, particularly for recognition among confusing recognition objects, such as “O” and “D”, etc, in character recognition. Though computer technology is developing rapidly, in consideration of cost, a hardware platform only satisfying actual need instead of a high-end hardware platform may be selected. In this case, in practical manufacturing process, due to differences of hardware and diversity of recognition space, a lot of recognition errors for confusing objects may occur.
There are usually two existing solutions. One is to update hardware devices to improve image resolution, and the other one is to improve a recognition algorithm to improve recognition accuracy. In the first solution, the problem of recognition errors for confusing objects can be completely solved, but in this way resolution of the entire image is improved and accordingly information collecting device, storage device and processor, etc, need to be updated, which greatly increases production cost and weakens product competitiveness. In the second solution, signal reconstruction technology is used for processing the collected signal, to improve a ratio between useful signal data volume to noise data volume and improve signal quality. However, in the actually collected signal, the useful signal data volume is much larger than the noise data volume, and in this case reconstructing all collected signals causes large amount of data processing and slow algorithm processing speed. Therefore, this solution is not ideal even though the recognition accuracy may be improved to certain extent.
Hence, it is very important to provide an image-based character recognition method with fast processing speed and high recognition accuracy in the technical field of sheet-medium recognition and classification.
The disclosure is to provide a sheet-medium recognition method to distinguish and classify sheet-media or valuable documents such as banknotes, etc, and to implement accurate recognition among confusing objects in case of poor image resolution.
A sheet-medium recognition device is also provided according to the disclosure to implement accurate recognition for a sheet-medium through executing the foregoing recognition method.
The sheet medium recognition method includes: step 1, collecting image information; step 2, separating image information of an object to be recognized out of the collected image information; step 3, reconstructing image data of a feature region, and extracting a feature from the reconstructed image data to form an eigenvector; and step 4, inputting the eigenvector into a classifier trained through standard data to acquire a recognition result.
Reconstructing image data of the feature region in step 3 includes:
assuming that image information of the object to be recognized is A, A is a m×n image, and f(h,w) represents a gray value of an element in row h and column w of the image A , where h=1,2, . . . ,m and w=1,2, . . . ,n; and assuming that a m1×n1 image B with a higher resolution is to be reconstructed, and g(i, j) represents a gray value of an element in row i and column j of the image B, where i=1,2, . . . , m1, and j=1,2, . . . , n1;
assuming that
if x and y are both integers, then g(i,j)=f(y,x);
if x is non-integer, y is integer, and x is rounded down to wx, then
g(i,j)=(wx+1−x)·f(y,wx)+(x−wx)·f(y,wx+1)
if x is integer, y is non-integer, and y is rounded down to hy, then
g(i,j)=(hy+1−y)·f(hy,x)+(y−hy)·f(hy+1,x)
if x is non-integer, y is non-integer, x is rounded down to wx and y is rounded down to hy, then
g(i,j)=(hy+1−y)·((wx+1−x)·f(hy,wx)+(x−wx)·f(hy,wx+1))+(y−hy)·((wx+1−x)·f(hy+1,wx)+(x−wx)·f(hy+1,wx+1))
In addition, extracting the feature in step 3 includes: step 31, assuming that a matrix
represents two-dimensional gray image data A, aij represents a gray value of a pixel point in row i and column j of the image data, where i=1,2, . . . , m and j=1,2, . . . , n, assuming that Boxlist={box1, box2, . . . , boxn}, where boxi represents an ith image region in the image data A from which the feature is to be extracted, acquiring boxi from the Boxlist; step 32, acquiring data
for the image feature region designated by boxi; step 33, reconstructing
from data Bi of the feature region and storing Ci into a designated position, where t>q and u>p; step 34, determining whether all feature regions are reconstructed, executing step 35 if all feature regions are reconstructed, and repeating step 31 to step 33 to acquire a group of image regions C1, C2, . . . , Cn if not all feature regions are reconstructed; and step 35, extracting needed features from the image regions C1, C2, . . . , Cn to form eigenvectors β1, β2, . . . , βn.
The sheet-medium recognition device includes an image collection unit, configured to acquire image information of a sheet medium to be recognized; an image separation unit configured to implement adaptive separation on the image of the sheet medium; a feature region reconstruction unit, configured to implement image reconstruction for a feature region, and store the reconstructed image data of the feature region into a designated position; a feature extraction unit, configured to extract a feature from the reconstructed image data of the feature region to form an eigenvector; a data storage unit, configured to store position information of preset feature regions and standard template data; a recognition unit, configured to classify and recognize an input eigenvector; and a recognition result outputting unit, configured to output a result for the classification and recognition which is acquired by the recognition unit.
In the sheet-medium recognition method according to the disclosure, an image is reconstructed according to priori information of feature regions to improve quality of the image, which is beneficial for improving recognition accuracy. Since the reconstruction is performed only in the regions for which features are to be extracted, storage space consumption is reduced, thereby not only saving a lot of storage space and time, improving resource utilization rate, but also effectively improving recognition accuracy, and reaching a balance between resource and efficiency.
Technical solutions of the embodiments of the present disclosure are described completely and clearly with the drawings of the embodiments of the disclosure. Apparently, the described embodiments are merely a few rather than all of the embodiments of the present disclosure. Any other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
In this embodiment, a banknote having a denomination of RMB 50 yuan is taken as an object to be recognized, to illustrate a sheet-medium recognition method and a sheet-medium recognition device. Referring to
Step 1 includes: collecting image information, where the collected image information is shown in
Step 2 includes: separating image information of an object to be recognized out of the collected image information, as shown in
Step 3 includes: reconstructing image data of a feature region as shown in
Step 4 includes: inputting the eigenvector into a classifier trained through standard data to acquire a recognition result.
Step 5, ending the process.
Reconstructing the image data of the feature region in step 3 includes:
assuming that image information of the object to be recognized is A, A is a m×n image, and f(h,w) represents a gray value of an element in row h and column w of the image A, where h=1, 2, . . . , m, and w=1, 2, . . . , n; and assuming that a m1×n1, image B with a higher resolution is to be reconstructed, and g(i,j) represents a gray value of an element in row i and column j of the image B, where i=1, 2, . . . , m1, and j=1, 2, . . . , n1;
assuming that
if x and y are both integers, then g(i,j)=f(y,x);
if x is non-integer, y is integer, and x is rounded down to wx, then
g(i,j)=(wx+1−x)·f(y,wx)+(x−wx)·f(y,wx+1) formula (1);
if x is integer, y is non-integer, and y is rounded down to hy, then
g(i,j)=(hy+1−y)·f(hy,x)+(y−hy)·f(hy+1,x) formula (2);
if x is non-integer, y is non-integer, x is rounded down to wx and y is rounded down to hy, then
g(i,j)=(hy+1−y)·((wx+1−x)·f(hy,wx)+(x−wx)·f(hy,wx+1))+(y−hy)·((wx+1−x)·f(hy+1,wx)+(x−wx)·f(hy+1,wx+1)) formula (3).
In this way, an image as shown in
Referring to
Step 31, assuming that a matrix
represents data A of a two-dimensional gray image, aij represents a gray value of a pixel point in row i and column j of the image data, where i=1,2, . . . , m and j=1,2, . . . , n, assuming that Boxlist={box1, box2, . . . , boxn} where boxi represents an ith image region in the image data A from which the feature is to be extracted, acquiring boxi from the Boxlist;
Step 32, acquiring data
for the image feature region designated by boxi;
Step 33, reconstructing
from data 13, of the feature region and storing Ci into a designated position, where t>q and u>p;
Step 34, determining whether all feature regions are reconstructed, executing step 35 if all feature regions are reconstructed, and repeating step 31 to step 33 to acquire a group of image regions C1, C2, . . . , Cn if not all feature regions are reconstructed; and
Step 35, extracting needed features from the image regions C1, C2, . . . , Cn to form eigenvectors β1, β2, . . . , βn.
According to the embodiment, during the sheet-medium recognition, image of feature regions are reconstructed with the image reconstruction method in this embodiment by utilizing priori coordinate information of the feature regions, so as to improve signal to noise ratio and improve recognition accuracy without modifying hardware resource.
Referring to
an image collection unit, configured to acquire image information of a sheet-medium to be recognized;
an image separation unit configured to implement adaptive separation on the image of the sheet medium;
a feature region reconstruction unit, configured to implement image reconstruction for a feature region, and store the reconstructed image data of the feature region into a designated position;
a feature extraction unit, configured to extract a feature from the reconstructed image data of the feature region to form an eigenvector;
a data storage unit, configured to store position information of preset feature regions, standard template data, and other necessary data information needed for the recognition;
a recognition unit, configured to classify and recognize an input eigenvector; and
a recognition result outputting unit, configured to output a result for the classification and recognition which is acquired by the recognition unit.
In the sheet-medium recognition method according to the disclosure, an image is reconstructed according to priori information of feature regions to improve quality of the image, which is beneficial for improving recognition accuracy. Since the reconstruction is performed only in the regions for which features are to be extracted, storage space consumption is reduced, thereby not only saving a lot of storage space and time, improving resource utilization rate, but also effectively improving recognition accuracy, and reaching a good balance between resource and efficiency. The sheet-medium recognition device provides hardware and algorithm supports for the recognition method.
The foregoing embodiments are only preferred embodiments of the disclosure and are not meant to limit the disclosure, any equivalent change made according to the specification and the drawings of the disclosure shall fall in the scope of the claims of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 0012084 | Jan 2013 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/078914 | 7/5/2013 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2014/107947 | 7/17/2014 | WO | A |
Number | Date | Country |
---|---|---|
102034108 | Apr 2011 | CN |
102034108 | Jun 2012 | CN |
102722708 | Oct 2012 | CN |
103106412 | May 2013 | CN |
WO 2014107947 | Jul 2014 | WO |
Entry |
---|
International Search Report dated Oct. 24, 2013 from corresponding International Application PCT/CN2013/078914. |
Number | Date | Country | |
---|---|---|---|
20150178560 A1 | Jun 2015 | US |