CN107993192A - Certificate image bearing calibration, device and equipment - Google Patents
Certificate image bearing calibration, device and equipment Download PDFInfo
- Publication number
- CN107993192A CN107993192A CN201711331608.2A CN201711331608A CN107993192A CN 107993192 A CN107993192 A CN 107993192A CN 201711331608 A CN201711331608 A CN 201711331608A CN 107993192 A CN107993192 A CN 107993192A
- Authority
- CN
- China
- Prior art keywords
- certificate
- edge
- certificate image
- image
- linear representation
- 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.)
- Pending
Links
- 239000011159 matrix material Substances 0.000 claims abstract description 68
- 230000009466 transformation Effects 0.000 claims abstract description 67
- 238000001514 detection method Methods 0.000 claims abstract description 66
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000012937 correction Methods 0.000 claims description 21
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 claims description 18
- 230000001815 facial effect Effects 0.000 claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000013519 translation Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 8
- 230000008859 change Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000003702 image correction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G06T3/04—
-
- G06T5/80—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
Abstract
The disclosure is directed to a kind of certificate image bearing calibration, device and equipment, this method includes:After getting certificate image, the edge of detection acquisition certificate in the certificate image;First linear representation at the edge is determined in the coordinate system of the certificate image;According to the priori conditions of the position relationship between certificate edge, and first linear representation at the edge obtained is detected, determine the transformation matrix of the second linear representation for first linear representation to be transformed to meet the priori conditions;The certificate image is corrected according to the transformation matrix.The method, apparatus and equipment that the disclosure provides, accurately can be corrected certificate image.
Description
Technical field
This disclosure relates to technical field of image processing, more particularly to a kind of certificate image bearing calibration, device and equipment.
Background technology
With the powerful of the intelligent terminal function such as mobile phone, people have been able to handle many day ordinary affair by intelligent terminal
Business.Just including some business for needing user to provide certificate image information among these, such as, some softwares are paid in offer at present
Electricity charge water rate is received when service, it is necessary to which user is in identity card figure of the first time binding residential information with providing user during payment information
Picture, only user could be completed to bind when providing satisfactory ID Card Image, and open related service.
But often because shooting condition is poor or the reasons such as style of shooting is improper cause identity card in reality scene
Image authentication fails, and even service fulfillment fails.
The content of the invention
The disclosure provides a kind of certificate image bearing calibration, device and equipment, accurate and effective to be carried out to certificate image
Correction.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of certificate image bearing calibration, including:
After getting certificate image, the edge of detection acquisition certificate in the certificate image;
First linear representation at the edge is determined in the coordinate system of the certificate image;
It is linear according to the priori conditions of the position relationship between certificate edge, and the first of the edge of detection acquisition
Expression formula, determines the change of the second linear representation for first linear representation to be transformed to meet the priori conditions
Change matrix;
The certificate image is corrected according to the transformation matrix.
Optionally, the detection in the certificate image obtains the edge of certificate, including:
Side of the long side of certificate in the certificate image is determined according to the position and orientation of face in the certificate image
To;
Direction of the long side based on the certificate in the certificate image, the detection acquisition certificate in the certificate image
Long side and the corresponding edge of short side.
Optionally, the priori conditions of the position relationship between the edge according to certificate, and the side that detection obtains
First linear representation of edge, determines the second line for first linear representation to be transformed to meet the priori conditions
The transformation matrix of property expression formula, including:
Neighboring edge based on certificate is orthogonal, opposite edge priori conditions parallel to each other, and detection obtains
The edge the first linear representation, determine be used for first linear representation is transformed to meet the priori conditions
The second linear representation transformation matrix, wherein, the map function based on the transformation matrix includes any one following behaviour
Make:Opposite conversion is carried out relative to translation, rotation, affine or perspective existing for the priori conditions to the certificate image.
Optionally, the method further includes:
The direction of word in certificate is detected in the certificate image;
It is described that the certificate image is corrected according to the transformation matrix, including:
The direction of word in the certificate image is corrected according to the transformation matrix.
Optionally, the method further includes:
Detection obtains facial image in the certificate image;
It is described that the certificate image is corrected according to the transformation matrix, further include:
The facial image in the certificate image and the edge of certificate are corrected according to the transformation matrix.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of certificate image means for correcting, the device include:
First detection module, is configured as after certificate image is got, and detects and is demonstrate,proved in the certificate image
The edge of part;
First determining module, is configured as determining that the first of the edge is linear in the coordinate system in the certificate image
Expression formula;
Second determining module, is configured as the priori conditions according to the position relationship between certificate edge, and detection obtains
First linear representation at the edge obtained, determines to be used to be transformed to first linear representation to meet the priori bar
The transformation matrix of second linear representation of part;
Correction module, is configured as being corrected the certificate image according to the transformation matrix.
Optionally, the first detection module, including:
Determination sub-module, is configured as determining that the long side of certificate exists according to the position and orientation of face in the certificate image
Direction in the certificate image;
Detection sub-module, is configured as direction of the long side based on the certificate in the certificate image, in the card
Detection obtains the long side and the corresponding edge of short side of certificate in part image.
Optionally, second determining module, is configured as that the neighboring edge based on certificate is orthogonal, opposite edge
Priori conditions parallel to each other, and first linear representation at the edge of detection acquisition, determine to be used for described first
Linear representation is transformed to the transformation matrix for the second linear representation for meeting the priori conditions, wherein, based on the conversion
The map function of matrix includes any one following operation:The certificate image is put down relative to existing for the priori conditions
Move, rotate, affine or perspective carries out opposite conversion.
Optionally, described device further includes:
Second detection module, is configured as detecting the direction of word in certificate in the certificate image;
The correction module, including:
First correction module, is configured as carrying out the direction of word in the certificate image according to the transformation matrix
Correction.
Optionally, described device further includes:
3rd detection module, is configured as the detection in the certificate image and obtains facial image;
The correction module, further includes:
Second correction module, is configured as according to the transformation matrix to the facial image and card in the certificate image
The edge of part is corrected.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal device, including:Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
After getting certificate image, the edge of detection acquisition certificate in the certificate image;
First linear representation at the edge is determined in the coordinate system of the certificate image;
It is linear according to the priori conditions of the position relationship between certificate edge, and the first of the edge of detection acquisition
Expression formula, determines the change of the second linear representation for first linear representation to be transformed to meet the priori conditions
Change matrix;
The certificate image is corrected according to the transformation matrix.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, it is described computer-readable
Instruction is stored with storage medium, when run on a computer so that computer performs following method:
After getting certificate image, the edge of detection acquisition certificate in the certificate image;
First linear representation at the edge is determined in the coordinate system of the certificate image;
It is linear according to the priori conditions of the position relationship between certificate edge, and the first of the edge of detection acquisition
Expression formula, determines the change of the second linear representation for first linear representation to be transformed to meet the priori conditions
Change matrix;
The certificate image is corrected according to the transformation matrix.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By aspects above as it can be seen that by after certificate image is got, being detected in certificate image and obtaining certificate
Edge, and in the coordinate system of certificate image determine the edge the first linear representation, according to the position between certificate edge
The priori conditions of relation, and first linear representation at the edge of detection acquisition, determine to be used to become the first linear representation
It is changed to the transformation matrix for the second linear representation for meeting the priori conditions;So as to according to the transformation matrix to the card that gets
Part image is corrected., can since certificate image is globality when translation, rotation, affine or perspective transform occurs
Transformation matrix for being corrected to the edge of certificate in certificate image equally also can be used in carrying out whole certificate image
Correction, and in the disclosure it is the transformation matrix obtained according to the priori conditions of the position relationship between certificate edge, the conversion square
Certificate edge in the problems such as battle array can translate generation, rotate, be affine, perspective transform certificate image is translated, rotated, imitated
Penetrate, the reciprocal transformation of the operation such as perspective transform, thus also can to the certificate image with those problems it is overall carry out it is corresponding
Reciprocal transformation so that solve the image translation caused by the reasons such as shooting condition, style of shooting, rotation, it is affine, perspective
The problems such as conversion, realize the purpose of precise calibration certificate image.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of certificate image bearing calibration embodiment one according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of certificate image bearing calibration embodiment two according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of certificate image means for correcting embodiment one according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of certificate image means for correcting embodiment two according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of terminal device according to an exemplary embodiment;
Fig. 6 is the block diagram of another terminal device according to an exemplary embodiment.
Pass through above-mentioned attached drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These attached drawings
It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of certificate image bearing calibration.This method can be by a kind of certificate image means for correcting
To perform, which can be integrated in the terminal device with data-handling capacity such as mobile phone.Ginseng
Fig. 1 is examined, Fig. 1 is a kind of flow chart of certificate image bearing calibration embodiment one according to an exemplary embodiment.Such as Fig. 1
Shown, this method comprises the following steps:
In a step 101, after getting certificate image, the edge of detection acquisition certificate in the certificate image.
Certificate involved in the present embodiment can be that identity card, social security card etc. include facial image and text information
Certificate.
Certificate image involved in the present embodiment is stored in certificate image means for correcting or certificate image means for correcting institute
Terminal device in, the certificate image can be as where certificate image means for correcting terminal device shooting obtain,
Can be shot to obtain by other capture apparatus.
Alternatively, the present embodiment can use Hough (Hough) to become the edge for bringing certificate in detection certificate image.
Specifically, due to reasons such as affine, rotations, in certificate image the shape of certificate it is possible that larger change,
It is certificate long side which edge the simple None- identified from certificate, which goes out, at this time, which edge is the short side of certificate, is needed at this time
Direction of the long side of certificate in certificate image is determined according to the position and orientation of face in certificate image, and then based on certificate
Direction of the long side in certificate image, the long side of certificate and the corresponding side of short side in certificate image are detected by Hough transformation
Edge.
The long side and short side of certificate in certificate image can not also be distinguished in certain actual scene, but directly passes through image
Processing method obtains the edge of certificate in certificate image.
In a step 102, first linear representation at the edge is determined in the coordinate system of the certificate image.
Wherein, the coordinate system of certificate image can be that to set at random can also be set according to preset strategy, this reality
Apply in example and do not limit.
In step 103, according to the priori conditions of the position relationship between certificate edge, and the side that detection obtains
First linear representation of edge, determines the second line for first linear representation to be transformed to meet the priori conditions
The transformation matrix of property expression formula.By taking identity card as an example, it is assumed that the linear list that detection obtains identity card edge in ID Card Image reaches
Formula is y=aix+bi(wherein i=0,1,2,3), wherein, aiAnd biFor constant, the side of identity card in the ID Card Image after correction
The expression formula of edge is y=cjx+dj(wherein, j=0,1,2,3), then, opposite edges orthogonal according to identity card neighboring edge
Priori conditions parallel to each other, you can following priori conditions should be met by determining the slope at the edge after correction:c0=c2,c1=c3,
c0*c1=-1, wherein, c0And c2For the slope at a pair of edge parallel to each other, c1And c3For another pair edge parallel to each other
Slope.
Further, it is assumed that transformation matrix is:Then there is following expression:
Wherein, m1, m2, m3, m4, t1, t2, ci,diFor unknown parameter to be asked.
Will, aiAnd biValue and above-mentioned priori conditions substitute into above-mentioned expression formula and m1, m2, m3, m4, t1 can be calculated,
The value of t2, so that transformation matrix is obtained, any one including but not limited to following behaviour of the map function based on the transformation matrix
The inverse operation of work:Translation, rotation, affine, perspective transform.Certainly it is merely illustrative herein to illustrate rather than to the unique of the present invention
Limit.
At step 104, the certificate image is corrected according to the transformation matrix.
The present embodiment, by after certificate image is got, in certificate image detection obtain the edge of certificate, and
First linear representation at the edge is determined in the coordinate system of certificate image, according to the priori of the position relationship between certificate edge
Condition, and first linear representation at the edge of detection acquisition, determine to be used to be transformed to the first linear representation to meet institute
State the transformation matrix of the second linear representation of priori conditions;So as to be carried out according to the transformation matrix to the certificate image got
Correction.Since certificate image is globality when translation, rotation, affine or perspective transform occurs, can be used in certificate
The transformation matrix that the edge of certificate is corrected in image equally also can be used in being corrected whole certificate image, and this reality
It is the transformation matrix obtained according to the priori conditions of the position relationship between certificate edge to apply in example, which can be to hair
Certificate edge in the problems such as life moves, rotates, is affine, perspective transform certificate image is carried out with the certificate image relative to elder generation
The reciprocal transformation of the already present translation of condition, rotation, affine, perspective etc. is tested, therefore also can be to the certificate with those problems
The entirety of image carries out corresponding reciprocal transformation, so as to solve the image caused by the reasons such as shooting condition, style of shooting
The problems such as translation, rotation, affine, perspective transform, realize the purpose of precise calibration certificate image.
The disclosure provides another certificate image bearing calibration.This method is further expanding to the method shown in Fig. 1
And optimization.
With reference to figure 2, Fig. 2 is a kind of stream of certificate image bearing calibration embodiment two according to an exemplary embodiment
Cheng Tu, as shown in Fig. 2, on the basis of method shown in Fig. 1, method provided in this embodiment includes the following steps:
In step 201, after getting certificate image, determined according to the position and orientation of face in the certificate image
Direction of the long side of certificate in the certificate image.
In step 202, direction of the long side in the certificate image based on the certificate, in the certificate image
Detection obtains the long side and the corresponding edge of short side of certificate.
In step 203, first linear representation at the edge is determined in the coordinate system of the certificate image.
In step 204, according to the priori conditions of the position relationship between certificate edge, and the side that detection obtains
First linear representation of edge, determines the second line for first linear representation to be transformed to meet the priori conditions
The transformation matrix of property expression formula.
In step 205, detection obtains the direction of word and facial image in certificate in the certificate image.
In step 206, according to the transformation matrix to facial image, the edge of certificate in the certificate image, with
And words direction is corrected.
In the present embodiment, since edge of the certificate in certificate image can easier detect acquisition, according to card
The priori conditions of position relationship between part edge, are capable of transformation matrix of the acquisition of simple and fast for correction, and then improve
The efficiency of image rectification, and since text information and face information are one of mostly important information of certificate, pass through
The direction of word in certificate image is detected, facial image in certificate image is obtained, according to transformation matrix to word in certificate image
Direction and facial image are corrected, and important information can be avoided to be missed, and improve the accuracy of certificate image calibration.
Fig. 3 is a kind of block diagram of certificate image means for correcting embodiment one according to an exemplary embodiment, such as Fig. 3
Shown, which includes:
First detection module 11, is configured as after certificate image is got, and detects and obtains in the certificate image
The edge of certificate;
First determining module 12, is configured as determining that the first of the edge is linear in the coordinate system of the certificate image
Expression formula;
Second determining module 13, is configured as in the certificate image according to target acquisition position relationship between certificate four edges
Priori conditions, the linear representation of four edges for determining that certificate in the certificate image obtained will be detected is transformed to goal expression
Transformation matrix;
Correction module 14, is configured as being corrected the certificate image according to the transformation matrix.
Optionally, second determining module 13, is configured as that the neighboring edge based on certificate is orthogonal, opposite side
Edge priori conditions parallel to each other, and first linear representation at the edge that detection obtains, determine to be used for described the
One linear representation is transformed to the transformation matrix for the second linear representation for meeting the priori conditions, wherein, based on the change
Changing the map function of matrix includes any one following operation:The certificate image is put down relative to existing for the priori conditions
Move, rotate, affine or perspective carries out opposite conversion.
Certificate image means for correcting provided in this embodiment can be used in the method for performing embodiment illustrated in fig. 1, it is performed
Mode is similar with beneficial effect, repeats no more herein.
Fig. 4 is a kind of block diagram of certificate image means for correcting embodiment two according to an exemplary embodiment.Such as Fig. 4
It is shown, on the basis of embodiment illustrated in fig. 3, the first detection module 11, including:
Determination sub-module 111, is configured as determining the length of certificate according to the position and orientation of face in the certificate image
While the direction in the certificate image;
Detection sub-module 112, is configured as direction of the long side based on the certificate in the certificate image, described
Detection obtains the long side and the corresponding edge of short side of certificate in certificate image.
Described device further includes:
Second detection module 15, is configured as detecting the direction of word in certificate in the certificate image;
The correction module 14, including:
First correction module 141, is configured as the direction to word in the certificate image according to the transformation matrix
It is corrected.
Optionally, described device further includes:
3rd detection module 16, is configured as the detection in the certificate image and obtains facial image;
The correction module 14, further includes:
Second correction module 142, is configured as according to the transformation matrix to the facial image in the certificate image
It is corrected with the edge of certificate.
Certificate image means for correcting provided in this embodiment can be used in the method for performing embodiment illustrated in fig. 2, it is performed
Mode is similar with beneficial effect, repeats no more herein.
On the certificate image means for correcting in above-described embodiment, wherein modules, submodule performs the specific of operation
Mode is described in detail in the embodiment in relation to this method, and explanation will be not set forth in detail herein.
The built-in function and structure of certificate image means for correcting are the foregoing described, as shown in figure 5, in practice, the certificate figure
As means for correcting can be realized as terminal device, including:
Processor;
It is configured as the memory of storage processor-executable instruction;
Wherein, the processor is configured as:
After getting certificate image, the edge of detection acquisition certificate in the certificate image;
First linear representation at the edge is determined in the coordinate system of the certificate image;
It is linear according to the priori conditions of the position relationship between certificate edge, and the first of the edge of detection acquisition
Expression formula, determines the change of the second linear representation for first linear representation to be transformed to meet the priori conditions
Change matrix;
The certificate image is corrected according to the transformation matrix.
In the present embodiment, by after certificate image is got, detecting the edge for obtaining certificate in certificate image, and
First linear representation at the edge is determined in the coordinate system of certificate image, according to the elder generation of the position relationship between certificate edge
Condition, and first linear representation at the edge of detection acquisition are tested, determines to be used to be transformed to meet by the first linear representation
The transformation matrix of second linear representation of the priori conditions;So as to according to the transformation matrix to the certificate image that gets into
Row correction.Since certificate image is globality when translation, rotation, affine or perspective transform occurs, can be used in verifying
The transformation matrix that the edge of certificate is corrected in part image equally also can be used in being corrected whole certificate image, and this
It is the transformation matrix obtained according to the priori conditions of the position relationship between certificate edge in embodiment, which can be right
Certificate edge in the problems such as generation translates, rotates, is affine, perspective transform certificate image, progress are sent out with the certificate image
The opposite conversion such as raw translation, rotation, affine, perspective transform, therefore also can be to the certificate image with those problems
It is overall to carry out corresponding reciprocal transformation, so as to solve the image translation caused by the reasons such as shooting condition, style of shooting, rotation
Turn, affine, perspective transform the problems such as, realize the purpose of precise calibration certificate image.
Fig. 6 is the block diagram of another terminal device according to an exemplary embodiment.For example, terminal device 800 can
To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, are good for
Body equipment, personal digital assistant etc..
With reference to Fig. 6, terminal device 800 can include following one or more assemblies:Processing component 802, memory 804,
Power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor component 814,
And communication component 816.
The integrated operation of the usual control terminal equipment 800 of processing component 802, such as leads to display, call, data
The operation that letter, camera operation and record operation are associated.Processing component 802 can be held including one or more processors 820
Row instruction, to complete all or part of step of above-mentioned method.In addition, processing component 802 can include one or more moulds
Block, easy to the interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, with
Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application program or method for being operated on terminal device 800, contact data, telephone directory number
According to, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they
Combination realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal device 800.Power supply module 806 can include power supply pipe
Reason system, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal device 800.
Multimedia component 808 is included in the screen of one output interface of offer between the terminal device 800 and user.
In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch
Sensor is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or slip
The border of action, but also detection and the duration and pressure associated with the touch or slide operation.In certain embodiments,
Multimedia component 808 includes a front camera and/or rear camera.When equipment 800 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive exterior multi-medium data.Each preposition shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when terminal device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical
Letter component 816 is sent.In certain embodiments, audio component 810 further includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor component 814 includes one or more sensors, for providing the state of various aspects for terminal device 800
Assessment.For example, sensor component 814 can detect opening/closed mode of equipment 800, the relative positioning of component, such as institute
The display and keypad that component is terminal device 800 are stated, sensor component 814 can be with detection terminal equipment 800 or terminal
The position of 800 1 components of equipment changes, the existence or non-existence that user contacts with terminal device 800,800 orientation of terminal device
Or acceleration/deceleration and the temperature change of terminal device 800.Sensor component 814 can include proximity sensor, be configured to
Presence of nearby objects is detected without any physical contact.Sensor component 814 can also include optical sensor, such as
CMOS or ccd image sensor, for being used in imaging applications.In certain embodiments, which can be with
Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal device 800 and other equipment.
Terminal device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one
In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 800 can be by one or more application application-specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-metioned instruction can be performed to complete the above method by the processor 820 of terminal device 800.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of certificate image bearing calibration, the described method includes:
After getting certificate image, the edge of detection acquisition certificate in the certificate image;
First linear representation at the edge is determined in the coordinate system of the certificate image;
It is linear according to the priori conditions of the position relationship between certificate edge, and the first of the edge of detection acquisition
Expression formula, determines the change of the second linear representation for first linear representation to be transformed to meet the priori conditions
Change matrix;
The certificate image is corrected according to the transformation matrix.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.
Claims (12)
- A kind of 1. certificate image bearing calibration, it is characterised in that the described method includes:After getting certificate image, the edge of detection acquisition certificate in the certificate image;First linear representation at the edge is determined in the coordinate system of the certificate image;According to the first linear expression of the priori conditions of the position relationship between certificate edge, and the edge of detection acquisition Formula, determines the conversion square of the second linear representation for first linear representation to be transformed to meet the priori conditions Battle array;The certificate image is corrected according to the transformation matrix.
- 2. according to the method described in claim 1, it is characterized in that, the detection in the certificate image obtains the side of certificate Edge, including:Direction of the long side of certificate in the certificate image is determined according to the position and orientation of face in the certificate image;Direction of the long side based on the certificate in the certificate image, the length of detection acquisition certificate in the certificate image Side and the corresponding edge of short side.
- 3. the according to the method described in claim 1, it is characterized in that, priori of the position relationship between the edge according to certificate Condition, and first linear representation at the edge of detection acquisition, determine to be used to convert first linear representation To meet the transformation matrix of the second linear representation of the priori conditions, including:Neighboring edge based on certificate is orthogonal, opposite edge priori conditions parallel to each other, and the institute that detection obtains State first linear representation at edge, determine for first linear representation is transformed to meet the priori conditions The transformation matrix of bilinear expression formula, wherein, the map function based on the transformation matrix includes any one following operation:It is right The certificate image carries out opposite conversion relative to translation, rotation, affine or perspective existing for the priori conditions.
- 4. method according to any one of claim 1-3, it is characterised in that the method further includes:The direction of word in certificate is detected in the certificate image;It is described that the certificate image is corrected according to the transformation matrix, including:The direction of word in the certificate image is corrected according to the transformation matrix.
- 5. according to the method described in claim 4, it is characterized in that, the method further includes:Detection obtains facial image in the certificate image;It is described that the certificate image is corrected according to the transformation matrix, further include:The facial image in the certificate image and the edge of certificate are corrected according to the transformation matrix.
- A kind of 6. certificate image means for correcting, it is characterised in that including:First detection module, is configured as after certificate image is got, the detection acquisition certificate in the certificate image Edge;First determining module, is configured as determining the first linear expression at the edge in the coordinate system of the certificate image Formula;Second determining module, is configured as the priori conditions according to the position relationship between certificate edge, and detects what is obtained First linear representation at the edge, determines for first linear representation to be transformed to meet the priori conditions The transformation matrix of second linear representation;Correction module, is configured as being corrected the certificate image according to the transformation matrix.
- 7. device according to claim 6, it is characterised in that the first detection module, including:Determination sub-module, is configured as determining the long side of certificate described according to the position and orientation of face in the certificate image Direction in certificate image;Detection sub-module, is configured as direction of the long side based on the certificate in the certificate image, in the certificate figure Detection obtains the long side and the corresponding edge of short side of certificate as in.
- 8. device according to claim 6, it is characterised in that second determining module, is configured as based on certificate Neighboring edge is orthogonal, opposite edge priori conditions parallel to each other, and the First Line at the edge of detection acquisition Property expression formula, determines for the second linear representation for being transformed to meet the priori conditions by first linear representation Transformation matrix, wherein, the map function based on the transformation matrix includes any one following operation:To the certificate image phase For translating, rotating, the conversion that affine or perspective progress is opposite existing for the priori conditions.
- 9. according to the device any one of claim 6-8, it is characterised in that described device further includes:Second detection module, is configured as detecting the direction of word in certificate in the certificate image;The correction module, including:First correction module, is configured as carrying out school to the direction of word in the certificate image according to the transformation matrix Just.
- 10. device according to claim 9, it is characterised in that described device further includes:3rd detection module, is configured as the detection in the certificate image and obtains facial image;The correction module, further includes:Second correction module, is configured as according to the transformation matrix to the facial image in the certificate image and certificate Edge is corrected.
- A kind of 11. terminal device, it is characterised in that including:Processor;It is configured as the memory of storage processor-executable instruction;Wherein, the processor is configured as:After getting certificate image, the edge of detection acquisition certificate in the certificate image;First linear representation at the edge is determined in the coordinate system of the certificate image;According to the first linear expression of the priori conditions of the position relationship between certificate edge, and the edge of detection acquisition Formula, determines the conversion square of the second linear representation for first linear representation to be transformed to meet the priori conditions Battle array;The certificate image is corrected according to the transformation matrix.
- 12. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, when it is in computer During upper operation so that computer performs following method:After getting certificate image, the edge of detection acquisition certificate in the certificate image;First linear representation at the edge is determined in the coordinate system of the certificate image;According to the first linear expression of the priori conditions of the position relationship between certificate edge, and the edge of detection acquisition Formula, determines the conversion square of the second linear representation for first linear representation to be transformed to meet the priori conditions Battle array;The certificate image is corrected according to the transformation matrix.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711331608.2A CN107993192A (en) | 2017-12-13 | 2017-12-13 | Certificate image bearing calibration, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711331608.2A CN107993192A (en) | 2017-12-13 | 2017-12-13 | Certificate image bearing calibration, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107993192A true CN107993192A (en) | 2018-05-04 |
Family
ID=62038345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711331608.2A Pending CN107993192A (en) | 2017-12-13 | 2017-12-13 | Certificate image bearing calibration, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107993192A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101963A (en) * | 2018-08-10 | 2018-12-28 | 深圳市碧海扬帆科技有限公司 | Certificate image automatic positive method, image processing apparatus and readable storage medium storing program for executing |
CN109547692A (en) * | 2018-10-26 | 2019-03-29 | 华为技术有限公司 | Image posture antidote, equipment and terminal |
CN111626274A (en) * | 2020-07-30 | 2020-09-04 | 四川骏逸富顿科技有限公司 | Social security card identification method and identification system thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050083543A1 (en) * | 2003-10-20 | 2005-04-21 | Konica Minolta Business Technologies, Inc. | Image processing apparatus and method determining noise in image data |
CN101625760A (en) * | 2009-07-28 | 2010-01-13 | 谭洪舟 | Method for correcting certificate image inclination |
CN101662581A (en) * | 2009-09-09 | 2010-03-03 | 谭洪舟 | Multifunctional certificate information collection system |
CN103473541A (en) * | 2013-08-21 | 2013-12-25 | 方正国际软件有限公司 | Certificate perspective correction method and system |
CN107169493A (en) * | 2017-05-31 | 2017-09-15 | 北京小米移动软件有限公司 | information identifying method and device |
-
2017
- 2017-12-13 CN CN201711331608.2A patent/CN107993192A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050083543A1 (en) * | 2003-10-20 | 2005-04-21 | Konica Minolta Business Technologies, Inc. | Image processing apparatus and method determining noise in image data |
CN101625760A (en) * | 2009-07-28 | 2010-01-13 | 谭洪舟 | Method for correcting certificate image inclination |
CN101662581A (en) * | 2009-09-09 | 2010-03-03 | 谭洪舟 | Multifunctional certificate information collection system |
CN103473541A (en) * | 2013-08-21 | 2013-12-25 | 方正国际软件有限公司 | Certificate perspective correction method and system |
CN107169493A (en) * | 2017-05-31 | 2017-09-15 | 北京小米移动软件有限公司 | information identifying method and device |
Non-Patent Citations (1)
Title |
---|
马懿超 等: "一种集成的小型文档图像透视变形校正方法", 《模式识别与人工智能》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101963A (en) * | 2018-08-10 | 2018-12-28 | 深圳市碧海扬帆科技有限公司 | Certificate image automatic positive method, image processing apparatus and readable storage medium storing program for executing |
CN109547692A (en) * | 2018-10-26 | 2019-03-29 | 华为技术有限公司 | Image posture antidote, equipment and terminal |
CN111626274A (en) * | 2020-07-30 | 2020-09-04 | 四川骏逸富顿科技有限公司 | Social security card identification method and identification system thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105069786B (en) | Line detection method and device | |
CN103916233B (en) | A kind of information ciphering method and device | |
CN104700353B (en) | Image filters generation method and device | |
WO2017128767A1 (en) | Fingerprint template input method and device | |
CN105468767B (en) | Card information acquisition methods and device | |
CN104794382A (en) | Application starting method and device | |
CN110503023A (en) | Biopsy method and device, electronic equipment and storage medium | |
CN105426878B (en) | Face cluster method and device | |
CN106331761A (en) | Live broadcast list display method and apparatuses | |
CN104484858B (en) | Character image processing method and processing device | |
CN104461014A (en) | Screen unlocking method and device | |
CN106295499A (en) | Age estimation method and device | |
CN104933419A (en) | Method and device for obtaining iris images and iris identification equipment | |
CN107944367A (en) | Face critical point detection method and device | |
CN107247936A (en) | Image-recognizing method and device | |
CN107993192A (en) | Certificate image bearing calibration, device and equipment | |
CN107704190A (en) | Gesture identification method, device, terminal and storage medium | |
CN105094539B (en) | Reference information display methods and device | |
CN109542285A (en) | Image processing method and device | |
CN105487774A (en) | Image grouping method and device | |
CN106331337B (en) | The starting method and device of terminal peripheral hardware | |
CN105551047A (en) | Picture content detecting method and device | |
CN108509863A (en) | Information cuing method, device and electronic equipment | |
CN104240274A (en) | Face image processing method and device | |
CN105094500A (en) | Icon placing method and device |
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 |