CN108717744A - Identify the method, apparatus and terminal device of the seal serial number on financial documents - Google Patents

Identify the method, apparatus and terminal device of the seal serial number on financial documents Download PDF

Info

Publication number
CN108717744A
CN108717744A CN201810392213.1A CN201810392213A CN108717744A CN 108717744 A CN108717744 A CN 108717744A CN 201810392213 A CN201810392213 A CN 201810392213A CN 108717744 A CN108717744 A CN 108717744A
Authority
CN
China
Prior art keywords
serial number
seal
area
image
binary image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810392213.1A
Other languages
Chinese (zh)
Other versions
CN108717744B (en
Inventor
傅博扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201810392213.1A priority Critical patent/CN108717744B/en
Publication of CN108717744A publication Critical patent/CN108717744A/en
Application granted granted Critical
Publication of CN108717744B publication Critical patent/CN108717744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon
    • G07D7/2016Testing patterns thereon using feature extraction, e.g. segmentation, edge detection or Hough-transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/416Extracting the logical structure, e.g. chapters, sections or page numbers; Identifying elements of the document, e.g. authors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Character Input (AREA)

Abstract

The present invention is suitable for image identification technical field, provides a kind of method, apparatus, terminal device and computer readable storage medium identifying the seal serial number on financial documents, the method includes:Characteristic area is intercepted from financial documents to be identified, binary conversion treatment is carried out to the image of the characteristic area, binary image is obtained, based on the pixel distribution feature in the binary image, the position for determining seal serial number in the binary image identifies the seal serial number of the position.The present invention can improve the accuracy of the seal serial number of E-seal on identification financial documents.

Description

Identify the method, apparatus and terminal device of the seal serial number on financial documents
Technical field
The invention belongs to a kind of sides of the seal serial number in image identification technical field more particularly to identification financial documents Method, device, terminal device and computer readable storage medium.
Background technology
Currently, general on some financial documents (such as check) all have the E-seal printed, it is printed on E-seal Seal serial number, the seal serial number can as to the check carry out false distinguishing a feature, therefore, bank, which has, powers on financial documents The demand that the seal serial number of sub- seal is identified.
However, generally there are many characters, the characters of these characters and the seal serial number on E-seal on financial documents It is easy to happen and obscures, cause to identify mistake so that the accuracy that seal serial number is identified in the prior art is not high enough.
Invention content
In view of this, the present invention provides a kind of method, apparatus of the seal serial number on identification financial documents, terminal devices And computer readable storage medium, to improve the accuracy of the seal serial number of E-seal on identification financial documents.
The first aspect of the present invention provides a kind of method identifying the seal serial number on financial documents, the method packet It includes:
Characteristic area is intercepted from financial documents to be identified, wherein the characteristic area includes on the financial documents Region residing for seal;
Binary conversion treatment is carried out to the image of the characteristic area, obtains binary image;
Based on the pixel distribution feature in the binary image, the position of seal serial number in the binary image is determined It sets;
Identify the seal serial number on the position.
It is described to be based on the binary image based in a first aspect, in first aspect in the first possible realization method In pixel distribution feature, determine the position of seal serial number in the binary image, including:
Based on the pixel distribution feature in the binary image, chosen and preset image in the binary image The target area that template matches;
According to the seal ordinal position that described image template indicates, the position of seal serial number in the target area is determined.
The first possible realization method based on first aspect, in second of possible realization method of first aspect, institute It includes the first foreground area and first background area to state image template, and the pixel distribution feature of described image template includes:It is described Foreground pixel quantity in first foreground area is more than the first default value, the background pixel quantity in the first background area More than the second default value;
The pixel distribution feature based in the binary image, in the binary image choose with it is preset The target area that image template matches, including:
Described image template is slided with default step-length on the binary image;
Count the pixel distribution feature of corresponding region of the image template on the binary image described in sliding process;
Pixel distribution feature and described image mould in corresponding region of the described image template on the binary image When the pixel distribution feature of plate is consistent, determine that corresponding region of the described image template on the binary image is and the figure The target area to match as template.
Based on second of possible realization method of first aspect, in first aspect in the third possible realization method, institute The up-and-down boundary for stating the first foreground area is used to indicate the up-and-down boundary of seal serial number;
The seal ordinal position indicated according to described image template, determines the position of seal serial number in the target area It sets, including:
Based on the up-and-down boundary of first foreground area, the up-and-down boundary of seal serial number in the target area is determined.
Based on second of possible realization method of first aspect, in the 4th kind of possible realization method of first aspect, institute The left margin for stating first background area is used to indicate the left margin of seal serial number;
The seal ordinal position indicated according to described image template, determines the position of seal serial number in the target area It sets, including:
Based on the left margin of the first background area, the left margin of seal serial number in the target area is determined.
Based on second of possible realization method of first aspect, in the 5th kind of possible realization method of first aspect, institute It further includes second background area, third background area, the 4th background area and the second foreground area, described image to state image template The pixel distribution feature of template further includes:The second background area, the third background area and the 4th background area In background pixel quantity be all higher than second default value, the foreground pixel quantity in second foreground area is more than the Three predetermined threshold values, the foreground pixel in the second background area concentrate on preset row;
Wherein, the third background area is described between first foreground area and second foreground area The top of third background area is second foreground area, and the lower section of the third background area is first foreground zone Domain.
Based on first aspect second to the possible realization method of any one of the 5th kind of possible realization method, the 6th In kind possible realization method, binary conversion treatment is carried out in the image to the characteristic area, obtain binary image it After further include:
Calculate the integral image of the binary image;
Correspondingly, the picture of corresponding region of the image template on the binary image described in the statistics sliding process Plain distribution characteristics, including:
Based on the integral image, correspondence area of the image template on the binary image described in sliding process is counted The pixel distribution feature in domain.
The second aspect of the present invention provides a kind of device identifying the seal serial number on financial documents, described device packet It includes:
Region interception unit, for intercepting characteristic area from financial documents to be identified, wherein the characteristic area packet Include the region residing for the seal on the financial documents;
The image of binarization unit, the characteristic area for being intercepted to the region interception unit carries out binary conversion treatment, Obtain binary image;
Position determination unit, the pixel distribution feature in the binary image for being obtained based on the binarization unit, Determine the position of seal serial number in the binary image;
Seal serial number recognition unit, the seal serial number on position that the position determination unit determines for identification.
The third aspect of the present invention provides a kind of terminal device, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program The step of method of seal serial number on any one identification financial documents.
The fourth aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Computer program is contained, the print identified as described in any one on financial documents is realized when the computer program is executed by processor The step of method of chapter serial number.
Existing advantageous effect is the present invention compared with prior art:
By intercepting characteristic area from financial documents to be identified;The image of the characteristic area is carried out at binaryzation Reason, obtains binary image;Based on the pixel distribution feature in the binary image, seal in the binary image is determined The position of serial number;Identify the seal serial number on the position;On the one hand, it can directly exclude on financial documents on non-characteristic area Character;On the other hand, there is due to seal serial number on the binary image of characteristic area specific pixel distribution feature, example If the character pixels of seal serial number concentrate on a specific region, another specific region except seal serial number may be not present for background The character boundary of seal serial number can be accurately positioned by these pixel distribution features for character pixels, so as to be printed in identification Other characters unrelated on financial documents are eliminated when chapter serial number, improve the seal serial number of E-seal on identification financial documents Accuracy.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the method for the seal serial number on identification financial documents provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of financial documents provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the characteristic area provided in an embodiment of the present invention intercepted from financial documents;
Fig. 4 is the schematic diagram of binary image provided in an embodiment of the present invention;
Fig. 5 is the implementation process of the method for the seal serial number on the identification financial documents that another embodiment of the present invention provides Figure;
Fig. 6-a are a kind of schematic diagrames of image template provided in an embodiment of the present invention;
Fig. 6-b are a kind of schematic diagrames for image template that another embodiment of the present invention provides;
Fig. 7 is the structural schematic diagram of the device of the seal serial number on identification financial documents provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
To make the object, technical solutions and advantages of the present invention clearer, pass through specific embodiment below in conjunction with attached drawing To illustrate.
Referring to Fig. 1, it illustrates the realities of the method for the seal serial number on identification financial documents provided in an embodiment of the present invention Existing flow chart, details are as follows:
Step 101 intercepts characteristic area from financial documents to be identified, wherein the characteristic area includes the finance The region residing for seal on document;
In embodiments of the present invention, financial documents, such as check, seal above are generally E-seal, electronic seal Position of the chapter on the financial documents is relatively fixed, and gradient is smaller;Therefore it is relatively solid on financial documents based on seal Fixed position, can intercept characteristic area on financial documents to be identified, and this feature region includes the region residing for seal.
It is a kind of schematic diagram of financial documents provided in an embodiment of the present invention specifically, referring to Fig. 2;Have on financial documents There is the E-seal of corresponding bank, includes seal serial number S5F374UY037ZBPME on E-seal.
It is the signal of the characteristic area provided in an embodiment of the present invention intercepted from financial documents specifically, referring to Fig. 3 Figure, this feature region includes the region residing for seal on financial documents.
Step 102 carries out binary conversion treatment to the image of the characteristic area, obtains binary image;
In embodiments of the present invention, the image of characteristic area is obtained by the equipment including imaging sensor, and to described The image of characteristic area carries out binary conversion treatment, obtains the binary image of the image in this feature region, the binary image by Foreground pixel and background pixel composition, foreground pixel form the foreground character in this feature region.
Specifically, maximum variance between clusters (OTSU algorithms) may be used, and a coefficient is multiplied by determine binaryzation point Threshold value is cut, the coefficient can choose 0.5.Specifically, referring to Fig. 4, for showing for binary image provided in an embodiment of the present invention It is intended to;On the binary image, foreground pixel (character point) is assigned a value of 1, background pixel (non-character point) is assigned a value of 0.
Step 103, based on the pixel distribution feature in the binary image, determine seal sequence in the binary image Number position;
In embodiments of the present invention, the pixel distribution feature in the binary image is counted, the picture based on statistics Plain distribution characteristics determines the position of seal serial number in the binary image;Specifically, based on foreground on the binary image The distribution characteristics of pixel and the distribution characteristics of background pixel determine seal sequence in the binary image by template matching method Position where number.That is, by preset seal serial number template, searched and the seal serial number template in binary image The region to match, the position using where the region as seal serial number.
Seal serial number in step 104, the identification position.
In the embodiment of the present invention, after the position for determining seal serial number, based on preset recognizer to the position into Row identification, obtains corresponding seal serial number.
From the foregoing, it will be observed that the present invention from financial documents to be identified by intercepting characteristic area;To the characteristic area Image carries out binary conversion treatment, obtains binary image;Based on the pixel distribution feature in the binary image, determine described in The position of seal serial number in binary image;Identify the seal serial number on the position;On the one hand, it can directly exclude financial single According to the character on upper non-characteristic area;On the other hand, have on the binary image of characteristic area due to seal serial number specific Pixel distribution feature, such as the character pixels of seal serial number concentrate on a specific region, another specific except seal serial number Region is that character pixels may be not present in background, and the character side of seal serial number can be accurately positioned by these pixel distribution features Boundary improves identification financial documents so as to eliminate other characters unrelated on financial documents in identifying stamp serial number The accuracy of the seal serial number of upper E-seal.
Fig. 5 shows the implementation flow chart of the seal serial number on the identification financial documents that another embodiment of the present invention provides, Details are as follows:
Step 501 intercepts characteristic area from financial documents to be identified, wherein the characteristic area includes the finance The region residing for seal on document;
Step 502 carries out binary conversion treatment to the image of the characteristic area, obtains binary image;
In the embodiment of the present invention, above-mentioned steps 501 to step 502 specifically refer to the step 101 in embodiment illustrated in fig. 1 To step 102.
Step 503, based on the pixel distribution feature in the binary image, chosen in the binary image with it is pre- If the target area that matches of image template;
In the embodiment of the present invention, chosen and preset image mould on the binary image by way of template matches The target area that plate matches determines the mesh when target area is consistent with the pixel distribution feature in described image template Mark region matches with described image template.
Optionally, it is a kind of schematic diagram of image template provided in an embodiment of the present invention, described image mould referring to Fig. 6-a Plate may include the first foreground area 601 and first background area 611, specifically, first foreground area 601 corresponds to seal The character zone of upper seal serial number, first background area 611 correspond to the blank background region in the seal serial number upper left corner on seal.Institute The pixel distribution feature for stating image template includes:It is default that foreground pixel quantity in first foreground area 601 is more than first Numerical value, the background pixel quantity in the first background area 611 are more than the second default value;
The realization method of target area to match with described image template is chosen on the binary image is specially:
Described image template is slided with default step-length on the binary image;
Count the pixel distribution feature of corresponding region of the image template on the binary image described in sliding process;
Pixel distribution feature and described image mould in corresponding region of the described image template on the binary image When the pixel distribution feature of plate is consistent, determine that corresponding region of the described image template on the binary image is and the figure The target area to match as template.
In the embodiment of the present invention, is chosen on binary image by slip window sampling and matched with described image template The shapes and sizes of target area, the sliding window are consistent with described image template.
Optionally, in order to reduce calculation amount, increase calculating speed, in the embodiment of the present invention, count one on binary image The mode of the pixel distribution feature in a region is specially:
Calculate the integral image of the binary image;
Based on the integral image, correspondence area of the image template on the binary image described in sliding process is counted The pixel distribution feature in domain.
Optionally, referring to Fig. 6-b, for a kind of schematic diagram for image template that another embodiment of the present invention provides;The figure As template includes the first foreground area 601, first background area 611, second background area 612, third background area 613, the Four background areas 614 and the second foreground area 602, wherein second background area 612 corresponds to the background area in the seal serial number upper right corner Domain, third background area 613 correspond to the background area between seal serial number and " service-specific chapter " printed words, the 4th background area 614 correspond to the background area below seal serial number, and the second foreground area 602 corresponds to " service-specific chapter " printed words on seal.
Wherein, the pixel distribution feature of described image template further includes:Second background area 612, third background area 613 It is all higher than second default value, the foreground in the second foreground area 602 with the background pixel quantity of the 4th background area 614 Pixel quantity is more than third predetermined threshold value, and the foreground pixel in second background area 602 concentrates on preset row (the second background Region 602 passes through the right margin of table on financial documents, the foreground pixel point on the preset corresponding right margin of row).
Wherein, third background area 613 is between the first foreground area 601 and the second foreground area 602, third background The top in region 613 is the second foreground area 602, and the lower section of third background area 613 is the first foreground area 601.
Step 504, the seal ordinal position indicated according to described image template, determine seal serial number in the target area Position;
In the embodiment of the present invention, described image template can be obtained with measured seal image, therefore be printed on image template What the position where chapter serial number was to determine, then, the position based on seal serial number in described image template, you can determine target Position in region where seal serial number.
Optionally, the up-and-down boundary of the first foreground area 601 may be used to indicate the up-and-down boundary of seal serial number, exemplary , the up-and-down boundary of first foreground area can be with the up-and-down boundary of seal serial number, that is, the first foreground area 601 is A part of region in seal serial number.
Correspondingly, in the embodiment of the present invention, determine that the concrete mode of the position of seal serial number in the target area includes:
Based on the up-and-down boundary of the first foreground area 601, the up-and-down boundary of seal serial number in the target area is determined.
Optionally, the left margin of first background area 611 is used to indicate the left margin of seal serial number;Illustratively, first The left margin of background area 611 can be consistent with the left margin of seal serial number.
Correspondingly, in the embodiment of the present invention, determine that the concrete mode of the position of seal serial number in the target area is also wrapped It includes:
Based on the left margin of first background area 611, the left margin of seal serial number in the target area is determined.
Seal serial number in step 505, the identification position.
In embodiments of the present invention, step 505 specifically refers to the step 104 in embodiment illustrated in fig. 1, no longer superfluous herein It states.
From the foregoing, it will be observed that the present invention from financial documents to be identified by intercepting characteristic area;To the characteristic area Image carries out binary conversion treatment, obtains binary image;Based on the pixel distribution feature in the binary image, determine described in The position of seal serial number in binary image;Identify the seal serial number on the position;On the one hand, it can directly exclude financial single According to the character on upper non-characteristic area;On the other hand, have on the binary image of characteristic area due to seal serial number specific Pixel distribution feature, such as the character pixels of seal serial number concentrate on a specific region, another specific except seal serial number Region is that character pixels may be not present in background, and the character side of seal serial number can be accurately positioned by these pixel distribution features Boundary improves identification financial documents so as to eliminate other characters unrelated on financial documents in identifying stamp serial number The accuracy of the seal serial number of upper E-seal.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
It is the device of the invention embodiment below to refer to above-mentioned corresponding the details of wherein not detailed description Embodiment of the method.
Fig. 7 shows the structural representation of the device of the seal serial number on identification financial documents provided in an embodiment of the present invention Figure, for convenience of description, illustrate only with the relevant part of the embodiment of the present invention, details are as follows:
As shown in fig. 7, the device 7 of the seal serial number on identification financial documents includes:Region interception unit 71, binaryzation list Member 72, position determination unit 73 and seal serial number recognition unit 74.
Region interception unit 71, for intercepting characteristic area from financial documents to be identified, wherein the characteristic area Including the region residing for the seal on the financial documents;
The image of binarization unit 72, the characteristic area for being intercepted to region interception unit 71 carries out binary conversion treatment, Obtain binary image;
Position determination unit 73, the pixel distribution feature in the binary image for being obtained based on binarization unit 72, Determine the position of seal serial number in the binary image;
Seal serial number recognition unit 74, the seal serial number on position that position determination unit 73 determines for identification.
Optionally, identify that the device 7 of the seal serial number on financial documents further includes:
Template matches unit is used for based on the pixel distribution feature in the binary image, in the binary image The target area that middle selection matches with preset image template;
Position determination unit is additionally operable to, and according to the seal ordinal position that described image template indicates, determines the target area The position of seal serial number in domain.
Optionally, described image template includes the first foreground area and first background area, the pixel of described image template Distribution characteristics includes:Foreground pixel quantity in first foreground area is more than the first default value, first background area Background pixel quantity in domain is more than the second default value;
Identify that the device 7 of the seal serial number on financial documents further includes:
Template sliding unit, for sliding described image template on the binary image with default step-length;
Statistic unit, for counting corresponding region of the image template described in sliding process on the binary image Pixel distribution feature;
The template matches unit is additionally operable to, the picture in corresponding region of the described image template on the binary image When plain distribution characteristics is consistent with the pixel distribution feature of described image template, determine described image template in the binary image On corresponding region be the target area to match with described image template.
Optionally, the up-and-down boundary of first foreground area is used to indicate the up-and-down boundary of seal serial number;
Position determination unit 73 is additionally operable to, and based on the up-and-down boundary of first foreground area, determines the target area The up-and-down boundary of middle seal serial number.
Optionally, the left margin of the first background area is used to indicate the left margin of seal serial number;
Position determination unit 73 is additionally operable to, and based on the left margin of the first background area, is determined in the target area The left margin of seal serial number.
Optionally, described image template further includes second background area, third background area, the 4th background area and second The pixel distribution feature of foreground area, described image template further includes:The second background area, the third background area and Background pixel quantity in 4th background area is all higher than second default value, in second foreground area before Scape pixel quantity is more than third predetermined threshold value, and the foreground pixel in the second background area concentrates on preset row;
Wherein, the third background area is described between first foreground area and second foreground area The top of third background area is second foreground area, and the lower section of the third background area is first foreground zone Domain.
Optionally, identify that the device 3 of the seal serial number on financial documents further includes:
Integral image computing unit, the integral image for calculating the binary image;
The statistic unit is additionally operable to, and is based on the integral image, counts image template described in sliding process described The pixel distribution feature of corresponding region on binary image.
From the foregoing, it will be observed that the present invention from financial documents to be identified by intercepting characteristic area;To the characteristic area Image carries out binary conversion treatment, obtains binary image;Based on the pixel distribution feature in the binary image, determine described in The position of seal serial number in binary image;Identify the seal serial number on the position;On the one hand, it can directly exclude financial single According to the character on upper non-characteristic area;On the other hand, have on the binary image of characteristic area due to seal serial number specific Pixel distribution feature, such as the character pixels of seal serial number concentrate on a specific region, another specific except seal serial number Region is that character pixels may be not present in background, and the character side of seal serial number can be accurately positioned by these pixel distribution features Boundary improves identification financial documents so as to eliminate other characters unrelated on financial documents in identifying stamp serial number The accuracy of the seal serial number of upper E-seal.
Fig. 8 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 8, the terminal of the embodiment is set Standby 8 include:Processor 80, memory 81 and it is stored in the meter that can be run in the memory 81 and on the processor 80 Calculation machine program 82.The processor 80 realizes the seal on above-mentioned each identification financial documents when executing the computer program 82 Step in the embodiment of the method for serial number, such as step 101 shown in FIG. 1 is to step 104.Alternatively, the processor 80 executes Realize the function of each module/unit in above-mentioned each device embodiment when the computer program 82, for example, unit 71 shown in Fig. 7 to 74 function.
Illustratively, the computer program 82 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 81, and are executed by the processor 80, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 82 in the terminal device 8 is described.For example, the computer program 82 can be divided It is cut into region interception unit, binarization unit, position determination unit and seal serial number recognition unit, each unit concrete function is such as Under:
Region interception unit, for intercepting characteristic area from financial documents to be identified, wherein the characteristic area packet Include the region residing for the seal on the financial documents;
The image of binarization unit, the characteristic area for being intercepted to the region interception unit carries out binary conversion treatment, Obtain binary image;
Position determination unit, the pixel distribution feature in the binary image for being obtained based on the binarization unit, Determine the position of seal serial number in the binary image;
Seal serial number recognition unit, the seal serial number on position that the position determination unit determines for identification.
The terminal device 8 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The terminal device may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 The only example of terminal device 8 does not constitute the restriction to terminal device 8, may include than illustrating more or fewer portions Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 80 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 81 can be the internal storage unit of the terminal device 8, such as the hard disk of terminal device 8 or interior It deposits.The memory 81 can also be to be equipped on the External memory equipment of the terminal device 8, such as the terminal device 8 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 81 can also both include the storage inside list of the terminal device 8 Member also includes External memory equipment.The memory 81 is for storing needed for the computer program and the terminal device Other programs and data.The memory 81 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of the seal serial number on identification financial documents, which is characterized in that the method includes:
Characteristic area is intercepted from financial documents to be identified, wherein the characteristic area includes the seal on the financial documents Residing region;
Binary conversion treatment is carried out to the image of the characteristic area, obtains binary image;
Based on the pixel distribution feature in the binary image, the position of seal serial number in the binary image is determined;
Identify the seal serial number on the position.
2. the method for the seal serial number on identification financial documents according to claim 1, which is characterized in that described to be based on institute The pixel distribution feature in binary image is stated, determines the position of seal serial number in the binary image, including:
Based on the pixel distribution feature in the binary image, chosen and preset image template in the binary image The target area to match;
According to the seal ordinal position that described image template indicates, the position of seal serial number in the target area is determined.
3. the method for the seal serial number on identification financial documents according to claim 2, which is characterized in that described image mould Plate includes the first foreground area and first background area, and the pixel distribution feature of described image template includes:First foreground Foreground pixel quantity in region is more than the first default value, and the background pixel quantity in the first background area is more than second Default value;
The pixel distribution feature based in the binary image is chosen and preset image in the binary image The target area that template matches, including:
Described image template is slided with default step-length on the binary image;
Count the pixel distribution feature of corresponding region of the image template on the binary image described in sliding process;
Pixel distribution feature and described image template in corresponding region of the described image template on the binary image When pixel distribution feature is consistent, determine that corresponding region of the described image template on the binary image is and described image mould The target area that plate matches.
4. the method for the seal serial number on identification financial documents according to claim 3, which is characterized in that before described first The up-and-down boundary of scene area is used to indicate the up-and-down boundary of seal serial number;
The seal ordinal position indicated according to described image template, determines the position of seal serial number in the target area, Including:
Based on the up-and-down boundary of first foreground area, the up-and-down boundary of seal serial number in the target area is determined.
5. the method for the seal serial number on identification financial documents according to claim 3, which is characterized in that first back of the body The left margin of scene area is used to indicate the left margin of seal serial number;
The seal ordinal position indicated according to described image template, determines the position of seal serial number in the target area, Including:
Based on the left margin of the first background area, the left margin of seal serial number in the target area is determined.
6. the method for the seal serial number on identification financial documents according to claim 3, which is characterized in that described image mould Plate further includes second background area, third background area, the 4th background area and the second foreground area, the picture of described image template Plain distribution characteristics further includes:Background in the second background area, the third background area and the 4th background area Pixel quantity is all higher than second default value, and the foreground pixel quantity in second foreground area is more than third and presets threshold It is worth, the foreground pixel in the second background area concentrates on preset row;
Wherein, the third background area is between first foreground area and second foreground area, the third The top of background area is second foreground area, and the lower section of the third background area is first foreground area.
7. the method for identifying the seal serial number on financial documents according to claim 3 to 6 any one of them, which is characterized in that Binary conversion treatment is carried out in the image to the characteristic area, obtaining binary image further includes later:
Calculate the integral image of the binary image;
Correspondingly, the pixel point of corresponding region of the image template on the binary image described in the statistics sliding process Cloth feature, including:
Based on the integral image, corresponding region of the image template on the binary image described in sliding process is counted Pixel distribution feature.
8. a kind of device of the seal serial number on identification financial documents, which is characterized in that described device includes:
Region interception unit, for intercepting characteristic area from financial documents to be identified, wherein the characteristic area includes should The region residing for seal on financial documents;
The image of binarization unit, the characteristic area for being intercepted to the region interception unit carries out binary conversion treatment, obtains Binary image;
Position determination unit, the pixel distribution feature in the binary image for being obtained based on the binarization unit are determined The position of seal serial number in the binary image;
Seal serial number recognition unit, the seal serial number on position that the position determination unit determines for identification.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201810392213.1A 2018-04-27 2018-04-27 Method and device for identifying seal serial number on financial document and terminal equipment Active CN108717744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810392213.1A CN108717744B (en) 2018-04-27 2018-04-27 Method and device for identifying seal serial number on financial document and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810392213.1A CN108717744B (en) 2018-04-27 2018-04-27 Method and device for identifying seal serial number on financial document and terminal equipment

Publications (2)

Publication Number Publication Date
CN108717744A true CN108717744A (en) 2018-10-30
CN108717744B CN108717744B (en) 2020-08-18

Family

ID=63899238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810392213.1A Active CN108717744B (en) 2018-04-27 2018-04-27 Method and device for identifying seal serial number on financial document and terminal equipment

Country Status (1)

Country Link
CN (1) CN108717744B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658584A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 A kind of bill bank slip recognition method and device
CN109670447A (en) * 2018-12-20 2019-04-23 中科院成都信息技术股份有限公司 Recognition methods, device and the readable storage medium storing program for executing of seal ballot paper full-filling block diagram picture
CN111353485A (en) * 2018-12-20 2020-06-30 中国移动通信集团辽宁有限公司 Seal identification method, device, equipment and medium
CN111489486A (en) * 2019-01-25 2020-08-04 深圳怡化电脑股份有限公司 Method, device and equipment for detecting pasted bills and storage medium
CN112530079A (en) * 2019-09-17 2021-03-19 深圳怡化电脑股份有限公司 Method and device for detecting bill factors, terminal equipment and storage medium
CN114240803A (en) * 2021-12-27 2022-03-25 国泰新点软件股份有限公司 Material image correction method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001266070A (en) * 2000-03-17 2001-09-28 Ricoh Co Ltd Device and method for recognizing character and storage medium
CN106447910A (en) * 2016-09-08 2017-02-22 深圳怡化电脑股份有限公司 Paper money identifying method and apparatus
CN106874909A (en) * 2017-01-18 2017-06-20 深圳怡化电脑股份有限公司 A kind of recognition methods of image character and its device
CN107437294A (en) * 2017-08-01 2017-12-05 深圳怡化电脑股份有限公司 A kind of character segmentation method, device, equipment and storage medium
CN107944452A (en) * 2017-12-12 2018-04-20 深圳市创业印章实业有限公司 A kind of circular stamp character recognition method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001266070A (en) * 2000-03-17 2001-09-28 Ricoh Co Ltd Device and method for recognizing character and storage medium
CN106447910A (en) * 2016-09-08 2017-02-22 深圳怡化电脑股份有限公司 Paper money identifying method and apparatus
CN106874909A (en) * 2017-01-18 2017-06-20 深圳怡化电脑股份有限公司 A kind of recognition methods of image character and its device
CN107437294A (en) * 2017-08-01 2017-12-05 深圳怡化电脑股份有限公司 A kind of character segmentation method, device, equipment and storage medium
CN107944452A (en) * 2017-12-12 2018-04-20 深圳市创业印章实业有限公司 A kind of circular stamp character recognition method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658584A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 A kind of bill bank slip recognition method and device
CN109658584B (en) * 2018-12-14 2021-01-12 泰康保险集团股份有限公司 Bill information identification method and device
CN109670447A (en) * 2018-12-20 2019-04-23 中科院成都信息技术股份有限公司 Recognition methods, device and the readable storage medium storing program for executing of seal ballot paper full-filling block diagram picture
CN111353485A (en) * 2018-12-20 2020-06-30 中国移动通信集团辽宁有限公司 Seal identification method, device, equipment and medium
CN111353485B (en) * 2018-12-20 2023-09-05 中国移动通信集团辽宁有限公司 Seal identification method, device, equipment and medium
CN111489486A (en) * 2019-01-25 2020-08-04 深圳怡化电脑股份有限公司 Method, device and equipment for detecting pasted bills and storage medium
CN112530079A (en) * 2019-09-17 2021-03-19 深圳怡化电脑股份有限公司 Method and device for detecting bill factors, terminal equipment and storage medium
CN112530079B (en) * 2019-09-17 2022-10-11 深圳怡化电脑股份有限公司 Method, device, terminal equipment and storage medium for detecting bill factors
CN114240803A (en) * 2021-12-27 2022-03-25 国泰新点软件股份有限公司 Material image correction method, device and storage medium

Also Published As

Publication number Publication date
CN108717744B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN108717744A (en) Identify the method, apparatus and terminal device of the seal serial number on financial documents
CN107767541B (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN109272016B (en) Target detection method, device, terminal equipment and computer readable storage medium
CN108388675A (en) Circulation method and terminal device are drawn in a kind of identity
CN109146855A (en) A kind of image mole marks detection method, terminal device and storage medium
CN108229419A (en) For clustering the method and apparatus of image
CN107393118B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN112085701B (en) Face ambiguity detection method and device, terminal equipment and storage medium
CN116403094B (en) Embedded image recognition method and system
CN108091033A (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN107464011A (en) A kind of slabstone composition method, device, terminal device and readable storage medium storing program for executing
CN107742079A (en) Malware recognition methods and system
CN107016417A (en) A kind of method and device of character recognition
CN114972922A (en) Coal and gangue sorting and identifying method, device and equipment based on machine learning
CN108734127A (en) Age identifies value adjustment method, device, equipment and storage medium
WO2021218063A1 (en) Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device
JP2021510831A (en) Bone marrow leukocyte locating method based on saturation clustering
CN107742359A (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN110647895A (en) Phishing page identification method based on login frame image and related equipment
CN107705414A (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN109918277A (en) Electronic device, the evaluation method of system log cluster analysis result and storage medium
CN109739838A (en) Method for processing abnormal data and device
CN108960246A (en) A kind of binary conversion treatment device and method for image recognition
CN108573477A (en) Eliminate method, system and the terminal device of image moire fringes
CN110928441B (en) Touch object identification method, system, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant