CN108960233A - Identify the method and device of identity card validity period - Google Patents

Identify the method and device of identity card validity period Download PDF

Info

Publication number
CN108960233A
CN108960233A CN201810608642.8A CN201810608642A CN108960233A CN 108960233 A CN108960233 A CN 108960233A CN 201810608642 A CN201810608642 A CN 201810608642A CN 108960233 A CN108960233 A CN 108960233A
Authority
CN
China
Prior art keywords
character
validity period
probability distribution
date
probability
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
Application number
CN201810608642.8A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810608642.8A priority Critical patent/CN108960233A/en
Publication of CN108960233A publication Critical patent/CN108960233A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2415Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Probability & Statistics with Applications (AREA)
  • Character Discrimination (AREA)

Abstract

The disclosure is directed to a kind of method and devices for identifying identity card validity period, including determining the detection zone in ID Card Image comprising validity period;Each character of validity period in the detection zone is identified respectively, obtains the probability distribution that each character in validity period is directed to target identification result;For the expression moon and/or each character of day in validity period, according to the first probability distribution and the second probability distribution of the character, adjust the probability distribution of the character, first probability distribution is the probability distribution of the character in the from date of validity period, and second probability distribution is the probability distribution of the character in the Close Date of validity period;According to the probability distribution of character each in validity period adjusted, determine the recognition result of each character, validity period is obtained, using the relevance of from date and Close Date, can be improved the accuracy of identification according to the method and device of the identification identity card validity period of the embodiment of the present disclosure.

Description

Identify the method and device of identity card validity period
Technical field
This disclosure relates to image identification technical field more particularly to a kind of method and device for identifying identity card validity period.
Background technique
With the development of internet, it needs user to upload identity card picture under many situations and carries out real-name authentication.In order to anti- Only user uploads identity card not before the deadline, needs to identify the validity period of identity card.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method and dress for identifying identity card validity period It sets, can be improved the accuracy of identification.
According to the first aspect of the embodiments of the present disclosure, a kind of method identifying identity card validity period is provided, including determines body It include the detection zone of validity period in part card image;Each character of validity period in the detection zone is identified respectively, Obtain the probability distribution that each character in validity period is directed to target identification result;For indicating the every of the moon and/or day in validity period A character adjusts the probability distribution of the character according to the first probability distribution and the second probability distribution of the character, and described first is general Rate is distributed as the probability distribution of the character in the from date of validity period, and second probability distribution is the Close Date of validity period In the character probability distribution;According to the probability distribution of character each in validity period adjusted, the identification knot of each character is determined Fruit obtains validity period.
In one possible implementation, the method also includes: according to character each in validity period for target know The probability distribution of other result, obtains the position of connector;According to the position of the connector, the validity period is divided into starting Date and Close Date;According to the position of the connector, expression each of the moon and/or day in the from date is determined respectively Character and the expression moon and/or each character of day in the Close Date.
In one possible implementation, described for the moon and/or each character of day is indicated in validity period, according to this The first probability distribution and the second probability distribution of character, adjust the probability distribution of the character, comprising: for indicating the moon in validity period And/or each character of day, the first probability distribution of the character and the second probability distribution are averaged, the flat of the character is obtained Equal probability distribution;The Average probability distribution of the character is identified as the character in the from date and Close Date of validity period Probability distribution.
It in one possible implementation, include the detection zone of validity period in the determining ID Card Image, comprising: According to the position of target object in ID Card Image, the detection zone is determined.
In one possible implementation, each character to validity period in the detection zone is known respectively Not, the probability distribution that each character in validity period is directed to target identification result is obtained, comprising: cut from the ID Card Image The image of the detection zone out obtains validity period image;Binary conversion treatment is carried out to the validity period image, obtains binaryzation Image;Connected domain analysis is carried out to the binary image, filters out the connected domain for not meeting preset condition;By filtered two-value Change image to be projected to trunnion axis, obtains perspective view;The position of each character in validity period is determined according to the perspective view; Character in each position is identified respectively, obtains the probability distribution that each character in validity period is directed to target identification result.
According to the second aspect of an embodiment of the present disclosure, a kind of device for identifying identity card validity period is provided, including region is true Cover half block, for determining the detection zone in ID Card Image comprising validity period;Character recognition module, for the detection zone Each character of validity period is identified respectively in domain, is obtained each character in validity period and is divided for the probability of target identification result Cloth;Probability adjusts module, the moon and/or each character of day is indicated for being directed in validity period, according to the first probability of the character Distribution and the second probability distribution, adjust the probability distribution of the character, and first probability distribution is in the from date of validity period The probability distribution of the character, second probability distribution are the probability distribution of the character in the Close Date of validity period;As a result really Cover half block determines the recognition result of each character, is had for the probability distribution according to character each in validity period adjusted The effect phase.
In one possible implementation, described device further include: position determination module, for according to every in validity period A character is directed to the probability distribution of target identification result, obtains the position of connector;Date division module, for according to the company The validity period is divided into from date and Close Date by the position for connecing symbol;Character determining module, for according to the connection The position of symbol, determining respectively indicates the moon and/or each character of day and indicates in the Close Date in the from date Each character of the moon and/or day.
In one possible implementation, probability adjustment module includes: that probability be averaged submodule, is had for being directed to The interim expression moon and/or each character of day are imitated, the first probability distribution of the character and the second probability distribution are averaged, obtained To the Average probability distribution of the character;Determine the probability submodule, for the Average probability distribution of the character to be identified as The from date of effect phase and in the Close Date character probability distribution.
In one possible implementation, the area determination module includes: that region determines submodule, for according to body The position of target object, determines the detection zone in part card image.
In one possible implementation, the character recognition module includes: cutting submodule, is used for from the identity It is cut into the image of the detection zone in card image, obtains validity period image;Binary conversion treatment submodule, for having to described Effect phase image carries out binary conversion treatment, obtains binary image;Submodule is analyzed, for being connected to the binary image Domain analysis filters out the connected domain for not meeting preset condition;Project submodule, for by filtered binary image to trunnion axis It is projected, obtains perspective view;Position determination submodule, for determining each character in validity period according to the perspective view Position;Character recognition submodule obtains each character in validity period and is directed to for identifying respectively to the character in each position The probability distribution of target identification result.
According to the third aspect of an embodiment of the present disclosure, a kind of device for identifying identity card validity period is provided, comprising: processing Device;Memory for storage processor executable instruction;Wherein, the processor is configured to executing the above method.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by processor, enable a processor to execute the above method.
The technical scheme provided by this disclosed embodiment can include the following benefits: in the disclosure, for effective The interim expression moon and/or each character of day, according to the probability distribution of the character in the from date of validity period and validity period The probability distribution of the character in Close Date, adjusts the probability distribution of the character, utilizes the association of from date and Close Date Property, improve the accuracy of identification.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of device for identifying identity card validity period shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device for identifying identity card validity period shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of device of identity card validity period for identification shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment, the party Method can be used in terminal, such as mobile phone, tablet computer and computer etc..Referring to Fig.1, the method for the identification identity card validity period Process the following steps are included:
In step s 11, the detection zone in ID Card Image comprising validity period is determined.
Contain much information in ID Card Image, terminal can be by the region where information to be identified from ID Card Image It marks off and, which is identified using corresponding disaggregated model.In the embodiments of the present disclosure, validity period is identified, eventually End can determine the region in ID Card Image comprising validity period, as detection zone.
In one possible implementation, terminal can determine institute according to the position of target object in ID Card Image State detection zone.
Image classification can determine the classification for the object for including in piece image.Target detection is on the basis of image classification On, object positioning can also be carried out.Terminal can be determined in ID Card Image using object detection methods such as YOLO or SSD The position of target object.In one example, target object can be national emblem.Make in the lower right region that terminal can choose national emblem For detection zone.
It should be noted that terminal can also determine the position of target object using other object detection methods, to this Disclosure is with no restrictions.
In step s 12, each character of validity period in the detection zone is identified respectively, is obtained in validity period Each character is directed to the probability distribution of target identification result.
Each character of validity period has 0 to 9 and connector totally 11 kinds of possible recognition results, these possible identifications As a result it is properly termed as target identification result.One character includes the character for the knowledge of each target to the probability distribution of target identification result The probability of other result.
In step s 13, for the moon and/or each character of day is indicated in validity period, according to the first probability of the character Distribution and the second probability distribution, adjust the probability distribution of the character, and first probability distribution is in the from date of validity period The probability distribution of the character, second probability distribution are the probability distribution of the character in the Close Date of validity period.
It include from date and Close Date in validity period.In ID Card Image, from date and Close Date with The form of XXXX.YY.ZZ indicates that wherein XXXX is four characters for indicating year, and YY is two characters for indicating the moon, and ZZ is to indicate Two characters of day.It is the moon and day of from date, identical as the moon of Close Date and day respectively in validity period.Table in validity period Show the moon and/or the character of day includes: the primary character for indicating the moon, the deputy character of the expression moon, indicates the first of day The character of position and the deputy character for indicating day.
Terminal can be according to the probability distribution of the primary character of the expression moon and validity period in the from date of validity period Close Date in indicate the moon deputy character probability distribution, adjust validity period in indicate the moon primary character.
Similarly, terminal can in validity period indicate the moon deputy character, in validity period indicate day it is primary Character and in validity period indicate day deputy character be adjusted, which is not described herein again.
In one possible implementation, step S13 may include: for indicating the every of the moon and/or day in validity period First probability distribution of the character and the second probability distribution are averaged, obtain the Average probability distribution of the character by a character; The Average probability distribution of the character is identified as to the probability distribution of the character in the from date and Close Date of validity period. It will be understood by those skilled in the art that the first probability distribution and the second probability distribution are averaged, a kind of example only adjusted Property mode, the disclosure do not limit the concrete mode of adjustment.
It is the moon and day of from date, identical as the moon of Close Date and day respectively due in validity period, therefore for effective The interim expression moon and/or each character of day, the first probability distribution of the character and the second probability distribution of the character are really To the recognition result of identical characters.Terminal can not determine the recognition result of the first probability distribution or the second probability distribution more Accurately, being averaged by the two, can reduce some character the first probability distribution or the second probability distribution error it is larger and Cause the probability of the character-recognition errors.
In step S14, according to the probability distribution of character each in validity period adjusted, the identification knot of each character is determined Fruit obtains validity period.
Compared to the probability distribution of each character into validity period identified in step S12, by the adjustment in step S13 it Afterwards, indicate that the probability distribution of the moon and/or the character of day is changed in validity period.
To be illustrated for the primary character for indicating the moon in validity period, due to being to validity period in detection zone Each character identified respectively, therefore indicates the first of the moon in the from date of the character that obtains in step s 12 of terminal The probability distribution (the first distribution probability) of the character of position and in the Close Date the primary character of the expression moon probability distribution (the Two probability distribution) may primary characters different, that the moon is indicated in from date recognition result and indicated in the Close Date Month the recognition result of primary character may also be different, this in validity period, the moon and day of from date, respectively with end The moon on date is identical with day not to be consistent.
Terminal in step s 13 can be according to the probability point for the primary character for indicating the moon in the from date of validity period The probability distribution of the primary character of the moon is indicated in the Close Date of cloth and validity period, adjusting indicates the first of the moon in validity period The character of position, in this way, making the probability distribution for the primary character for indicating the moon in from date and indicating the moon in the Close Date Primary character probability distribution it is consistent, i.e., in from date indicate the moon primary character recognition result and end It indicates that the recognition result of the primary character of the moon is consistent in date, eliminate from date or indicates the moon in the Close Date Error between primary character improves the accuracy of identification.
In the disclosure, for the moon and/or each character of day is indicated in validity period, according in the from date of validity period The probability distribution of the character and in the Close Date of validity period the character probability distribution, adjust the probability distribution of the character, benefit With the relevance of from date and Close Date, the accuracy of identification is improved.
Fig. 2 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment.Reference Fig. 2, the method for the identification identity card validity period further include: step S15 to step S17.
In step S15, it is directed to the probability distribution of target identification result according to character each in validity period, obtains connector Position.
In step s 16, according to the position of the connector, the validity period is divided into from date and closing day Phase.
In step S17, according to the position of the connector, determine indicates the moon and/or day respectively in the from date Each character and the moon and/or each character of day are indicated in the Close Date.
For character each in validity period, terminal can be according to the corresponding target of maximum probability in the probability distribution of the character Recognition result is determined as the target identification result of the character.Terminal can be according to the target identification of each character as a result, determination has Imitating which interim character is connector "-".
In ID Card Image, the from date of validity period and between the Close Date by connector separate.Terminal determines After the position of connector, validity period it can will be divided into from date and Close Date.It is being connected in the character of validity period Character before symbol is the character of from date, and first before connector is to indicate in from date to the 4th character The character of the moon and/or day.Character in the character of validity period after connector is the character of Close Date, and after connector The 5th to the 8th character be that the moon and/or the character of day are indicated in the Close Date.
Terminal, which has determined, to be indicated the moon and/or each character of day and indicates the moon in the Close Date in from date And/or after each character of day, it can be adjusted by probability distribution of the step S13 to these characters, to improve identification Accuracy.
Fig. 3 is a kind of flow chart of method for identifying identity card validity period shown according to an exemplary embodiment.Reference Fig. 3, step S12 identify each character of validity period in the detection zone respectively, obtain each character in validity period Probability distribution for target identification result may include: step S121 to step S126.
In step S121, it is cut into the image of the detection zone from the ID Card Image, obtains validity period figure Picture.
In step S122, binary conversion treatment is carried out to the validity period image, obtains binary image.
In step S123, connected domain analysis is carried out to the binary image, filters out the connection for not meeting preset condition Domain.
In step S124, filtered binary image is projected to trunnion axis, obtains perspective view.
In step s 125, the position of each character in validity period is determined according to the perspective view.
Wherein, preset condition includes that area is less than area threshold, length is greater than length threshold, is highly greater than height threshold. Area threshold, length threshold and height threshold, which can according to need, to be configured, with no restrictions to this disclosure.
The connected domain for being less than area threshold by filtering out area, can remove " " (year, month, day character in detection zone Between list separator), by filter out length be greater than length threshold connected domain, validity period upper and lower in region can be will test Background area removal, by filter out height be greater than height threshold connected domain, or so validity period can be will test in region Background area removal.
After terminal is projected filtered binary image to trunnion axis, the foreground target of available each column is high Degree, by the positional relationship of wave crest and trough, may be implemented the segmentation of character, determines the position of each character in validity period.
In step S126, the character in each position is identified respectively, obtains each character in validity period and be directed to mesh Mark the probability distribution of recognition result.
Terminal can be cut into validity period image from the ID Card Image, and then be cut into according to the position of each character The image of the corresponding sub- detection zone of each character, carries out target detection to the image being respectively cut into respectively, obtains every in validity period A character is directed to the probability distribution of target identification result.
Fig. 4 is a kind of block diagram of device for identifying identity card validity period shown according to an exemplary embodiment.Referring to figure 4, which includes: area determination module 41, character recognition module 42, probability adjustment module 43 and result determining module 44.
The area determination module 41 is configured to determine that the detection zone in ID Card Image comprising validity period;
The character recognition module 42 is configured as identifying each character of validity period in the detection zone respectively, Obtain the probability distribution that each character in validity period is directed to target identification result;
Probability adjustment module 43 is configured as the moon and/or each character of day is indicated in validity period, according to the word The first probability distribution and the second probability distribution of symbol, adjust the probability distribution of the character, and first probability distribution is validity period From date in the character probability distribution, second probability distribution be validity period Close Date in the character probability Distribution;
The result determining module 44 is configured as the probability distribution according to character each in validity period adjusted, determines each The recognition result of character, obtains validity period.
In the disclosure, for the moon and/or each character of day is indicated in validity period, according in the from date of validity period The probability distribution of the character and in the Close Date of validity period the character probability distribution, adjust the probability distribution of the character, benefit With the relevance of from date and Close Date, the accuracy of identification is improved.
Fig. 5 is a kind of block diagram of device for identifying identity card validity period shown according to an exemplary embodiment.Referring to figure 5, in one possible implementation, the device 40 further include: position determination module 45, date division module 46 and character are true Cover half block 47.
The position determination module 45 is configured as the probability point according to character each in validity period for target identification result Cloth obtains the position of connector;
The date division module 46 is configured as the position according to the connector, and the validity period is divided into starting date Phase and Close Date;
The character determining module 47 is configured as the position according to the connector, determines table in the from date respectively Show each character of the moon and/or day and indicates the moon and/or each character of day in the Close Date.
In one possible implementation, probability adjustment module 43 includes: that probability is averaged submodule 431 and probability Determine submodule 432.
The probability submodule 431 that is averaged is configured as the moon and/or each character of day is indicated in validity period, by the word The first probability distribution and the second probability distribution of symbol are averaged, and the Average probability distribution of the character is obtained;
The determine the probability submodule 432 is configured as the Average probability distribution of the character being identified as rising for validity period The probability distribution of the character in date beginning and Close Date.
In one possible implementation, the area determination module 41 includes: that region determines submodule 411.
The region determines that submodule 411 is configured as the position according to target object in ID Card Image, determines the inspection Survey region.
In one possible implementation, the character recognition module 42 includes: cutting submodule 421, at binaryzation Manage submodule 422, analysis submodule 423, projection submodule 424, position determination submodule 425 and character recognition submodule 426.
The cutting submodule 421 is configured as being cut into the image of the detection zone from the ID Card Image, obtains To validity period image;
The binary conversion treatment submodule 422 is configured as carrying out binary conversion treatment to the validity period image, obtains two-value Change image;
The analysis submodule 423 be configured as to the binary image carry out connected domain analysis, filter out do not meet it is default The connected domain of condition;
The projection submodule 424 is configured as projecting filtered binary image to trunnion axis, is projected Figure;
The position determination submodule 425 is configured as determining the position of each character in validity period according to the perspective view It sets;
The character recognition submodule 426 is configured as identifying the character in each position respectively, obtain in validity period Each character is directed to the probability distribution of target identification result.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram of device 800 of identity card validity period for identification shown according to an exemplary embodiment. For example, device 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, plate set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera 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 device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides 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 are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number 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 executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure 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 principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood 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 the accompanying claims.

Claims (12)

1. a kind of method for identifying identity card validity period characterized by comprising
Determine the detection zone in ID Card Image comprising validity period;
Each character of validity period in the detection zone is identified respectively, each character in validity period is obtained and is directed to target The probability distribution of recognition result;
For the moon and/or each character of day is indicated in validity period, according to the first probability distribution of the character and the second probability point Cloth adjusts the probability distribution of the character, and first probability distribution is the probability distribution of the character in the from date of validity period, Second probability distribution is the probability distribution of the character in the Close Date of validity period;
According to the probability distribution of character each in validity period adjusted, determines the recognition result of each character, obtain validity period.
2. the method according to claim 1, wherein the method also includes:
It is directed to the probability distribution of target identification result according to character each in validity period, obtains the position of connector;
According to the position of the connector, the validity period is divided into from date and Close Date;
According to the position of the connector, determine indicates the moon and/or each character of day, Yi Jisuo respectively in the from date Stating indicates the moon and/or each character of day in the Close Date.
3. the method according to claim 1, wherein described for expression each of the moon and/or day in validity period Character adjusts the probability distribution of the character according to the first probability distribution and the second probability distribution of the character, comprising:
For the moon and/or each character of day is indicated in validity period, by the first probability distribution and the second probability distribution of the character It is averaged, obtains the Average probability distribution of the character;
The Average probability distribution of the character is identified as to the probability of the character in the from date and Close Date of validity period Distribution.
4. the method according to claim 1, which is characterized in that wrapped in the determining ID Card Image Detection zone containing validity period, comprising:
According to the position of target object in ID Card Image, the detection zone is determined.
5. the method according to claim 1, which is characterized in that described to having in the detection zone Each character of effect phase is identified respectively, obtains the probability distribution that each character in validity period is directed to target identification result, packet It includes:
It is cut into the image of the detection zone from the ID Card Image, obtains validity period image;
Binary conversion treatment is carried out to the validity period image, obtains binary image;
Connected domain analysis is carried out to the binary image, filters out the connected domain for not meeting preset condition;
Filtered binary image is projected to trunnion axis, obtains perspective view;
The position of each character in validity period is determined according to the perspective view;
Character in each position is identified respectively, each character in validity period is obtained and divides for the probability of target identification result Cloth.
6. a kind of device for identifying identity card validity period characterized by comprising
Area determination module, for determining the detection zone in ID Card Image comprising validity period;
Character recognition module identifies respectively for each character to validity period in the detection zone, obtains validity period In each character be directed to target identification result probability distribution;
Probability adjusts module, the moon and/or each character of day is indicated for being directed in validity period, according to the first probability of the character Distribution and the second probability distribution, adjust the probability distribution of the character, and first probability distribution is in the from date of validity period The probability distribution of the character, second probability distribution are the probability distribution of the character in the Close Date of validity period;
As a result determining module determines the identification of each character for the probability distribution according to character each in validity period adjusted As a result, obtaining validity period.
7. device according to claim 6, which is characterized in that described device further include:
Position determination module is connected for being directed to the probability distribution of target identification result according to character each in validity period The position of symbol;
The validity period is divided into from date and closing day for the position according to the connector by date division module Phase;
Character determining module, for the position according to the connector, determine indicates the moon and/or day respectively in the from date Each character and the moon and/or each character of day are indicated in the Close Date.
8. device according to claim 6, which is characterized in that the probability adjusts module and includes:
Probability is averaged submodule, for for the moon and/or each character of day is indicated in validity period, by the first probability of the character Distribution and the second probability distribution are averaged, and the Average probability distribution of the character is obtained;
Determine the probability submodule, for the Average probability distribution of the character to be identified as to from date and the end of validity period The probability distribution of the character in date.
9. the device according to any one of claim 6 to 8, which is characterized in that the area determination module includes:
Region determines submodule, for the position according to target object in ID Card Image, determines the detection zone.
10. the device according to any one of claim 6 to 8, which is characterized in that the character recognition module includes:
It cuts submodule and obtains validity period image for being cut into the image of the detection zone from the ID Card Image;
Binary conversion treatment submodule obtains binary image for carrying out binary conversion treatment to the validity period image;
Submodule is analyzed, for carrying out connected domain analysis to the binary image, filters out the connected domain for not meeting preset condition;
It projects submodule and obtains perspective view for projecting filtered binary image to trunnion axis;
Position determination submodule, for determining the position of each character in validity period according to the perspective view;
Character recognition submodule obtains each character in validity period and is directed to for identifying respectively to the character in each position The probability distribution of target identification result.
11. a kind of device for identifying identity card validity period characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing such as method described in any one of claim 1 to 5.
12. a kind of non-transitorycomputer readable storage medium, which is characterized in that when the instruction in the storage medium is by handling When device executes, enable a processor to execute the method according to claim 1 to 5.
CN201810608642.8A 2018-06-13 2018-06-13 Identify the method and device of identity card validity period Pending CN108960233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810608642.8A CN108960233A (en) 2018-06-13 2018-06-13 Identify the method and device of identity card validity period

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810608642.8A CN108960233A (en) 2018-06-13 2018-06-13 Identify the method and device of identity card validity period

Publications (1)

Publication Number Publication Date
CN108960233A true CN108960233A (en) 2018-12-07

Family

ID=64488473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810608642.8A Pending CN108960233A (en) 2018-06-13 2018-06-13 Identify the method and device of identity card validity period

Country Status (1)

Country Link
CN (1) CN108960233A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276355A (en) * 2019-06-04 2019-09-24 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of training classifier
CN111181671A (en) * 2019-12-27 2020-05-19 东南大学 Deep learning-based downlink channel rapid reconstruction method
WO2023142914A1 (en) * 2022-01-29 2023-08-03 北京有竹居网络技术有限公司 Date recognition method and apparatus, readable medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789073A (en) * 2009-01-22 2010-07-28 富士通株式会社 Character recognition device and character recognition method thereof
US20160275378A1 (en) * 2015-03-20 2016-09-22 Pfu Limited Date identification apparatus
CN106886774A (en) * 2015-12-16 2017-06-23 腾讯科技(深圳)有限公司 The method and apparatus for recognizing ID card information
CN107665354A (en) * 2017-09-19 2018-02-06 北京小米移动软件有限公司 Identify the method and device of identity card
CN108073926A (en) * 2016-11-17 2018-05-25 杭州海康威视数字技术股份有限公司 A kind of licence plate recognition method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789073A (en) * 2009-01-22 2010-07-28 富士通株式会社 Character recognition device and character recognition method thereof
US20160275378A1 (en) * 2015-03-20 2016-09-22 Pfu Limited Date identification apparatus
CN106886774A (en) * 2015-12-16 2017-06-23 腾讯科技(深圳)有限公司 The method and apparatus for recognizing ID card information
CN108073926A (en) * 2016-11-17 2018-05-25 杭州海康威视数字技术股份有限公司 A kind of licence plate recognition method and device
CN107665354A (en) * 2017-09-19 2018-02-06 北京小米移动软件有限公司 Identify the method and device of identity card

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276355A (en) * 2019-06-04 2019-09-24 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of training classifier
CN111181671A (en) * 2019-12-27 2020-05-19 东南大学 Deep learning-based downlink channel rapid reconstruction method
CN111181671B (en) * 2019-12-27 2022-01-11 东南大学 Deep learning-based downlink channel rapid reconstruction method
WO2023142914A1 (en) * 2022-01-29 2023-08-03 北京有竹居网络技术有限公司 Date recognition method and apparatus, readable medium and electronic device

Similar Documents

Publication Publication Date Title
CN104156149B (en) Acquisition parameters control method and device
CN104918107B (en) The identification processing method and device of video file
CN108401527A (en) The method for obtaining the public control resource set running time-frequency resource position of remaining critical system information
CN105335714B (en) Photo processing method, device and equipment
CN108307308B (en) Positioning method, device and storage medium for wireless local area network equipment
CN108960233A (en) Identify the method and device of identity card validity period
CN105208284B (en) Shoot based reminding method and device
CN104636453A (en) Illegal user data identification method and device
CN104850849A (en) Method, device and terminal for sending character
CN109034150A (en) Image processing method and device
CN108717542A (en) Identify the method, apparatus and computer readable storage medium of character area
CN109599104A (en) Multi-beam choosing method and device
CN107330391A (en) Product information reminding method and device
CN105426904B (en) Photo processing method, device and equipment
CN108769769A (en) Playback method, device and the computer readable storage medium of video
CN110490303A (en) Super-network construction method, application method, device and medium
CN105808096B (en) Sliding block display methods and device
CN110399082A (en) A kind of terminal attribute control method, device, electronic equipment and medium
CN104850855B (en) The method and apparatus for calculating confidence level
CN110312300A (en) Control method, device and storage medium
CN110059548A (en) Object detection method and device
CN108268667A (en) Audio file clustering method and device
CN109376674A (en) Method for detecting human face, device and storage medium
CN108509863A (en) Information cuing method, device and electronic equipment
CN109992754A (en) Document processing 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