WO2020051114A1 - Information detection method, apparatus and device - Google Patents

Information detection method, apparatus and device Download PDF

Info

Publication number
WO2020051114A1
WO2020051114A1 PCT/US2019/049291 US2019049291W WO2020051114A1 WO 2020051114 A1 WO2020051114 A1 WO 2020051114A1 US 2019049291 W US2019049291 W US 2019049291W WO 2020051114 A1 WO2020051114 A1 WO 2020051114A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
image
identification
target identification
target
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.)
Ceased
Application number
PCT/US2019/049291
Other languages
French (fr)
Other versions
WO2020051114A9 (en
Inventor
Dandan Zheng
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to SG11202011407VA priority Critical patent/SG11202011407VA/en
Publication of WO2020051114A1 publication Critical patent/WO2020051114A1/en
Publication of WO2020051114A9 publication Critical patent/WO2020051114A9/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0418Architecture, e.g. interconnection topology using chaos or fractal principles
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/09Supervised learning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Definitions

  • the present specification relates to the technical field of computers, and in particular, to a method, an apparatus, and a device for information detection.
  • the electronic process of real-name authentication needs to implement text line detection for identifications of many different countries or regions in order to extract names, addresses, identification numbers and other information on the identifications.
  • characteristics of the identifications of different countries or regions are also different.
  • the detection of text lines in an identification is realized by traditional graphic methods, such as connected-component based schemes or text detection methods based on stroke width conversion.
  • the detection methods have low accuracies and complicated rules, and for new types of identifications, it is required to rewrite corresponding detection codes. Therefore, it is desired to establish a simple and universal way to accurately detect information of key fields on an identification.
  • the objective of the embodiments of the present specification is to provide a method, an apparatus, and a device for information detection to establish a simple and universal way to accurately detect information of key fields on an identification.
  • An information detection method provided by the present specification includes:
  • the determining the key point information in the target identification from the target image based on the preset deep learning algorithm includes:
  • the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
  • the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
  • the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
  • the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
  • the determining the key point information in the target identification from the target image based on the constructed regression network model includes:
  • the method before determining the information of the preset field from the image of the target identification according to the image of the target identification and the preset identification template matching the target identification, the method further includes:
  • An information detection apparatus includes:
  • a key point determining module configured to determine key point information in a target identification from a target image based on a preset deep learning algorithm
  • an identification obtaining module configured to obtain an image of the target identification from the target image according to the key point information
  • a field information determining module configured to determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
  • the key point determining module includes:
  • a model constructing unit configured to determine, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model; and [0029] a key point determining unit, configured to determine key point information in the target identification from the target image based on the constructed regression network model.
  • the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
  • the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
  • the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
  • the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
  • the key point detennining unit is configured to determine, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image, and determine, based on the constructed regression network model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
  • the apparatus further includes: [0036] an image adjusting module, configured to adjust a size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
  • An information detection device provided by some embodiments of the present specification, including:
  • a memory arranged to store computer executable instructions that, when executed, cause the processor to:
  • [0042] determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
  • key point infomiation in a target identification is determined from a target image based on a preset deep learning algorithm; then, an image of the target identification is obtained from the target image according to the key point infomiation; information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected.
  • the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified.
  • the solutions are not limited by the type of the identification and may be applied to more types of identifications.
  • FIG. 1 shows an embodiment of an information detection method in the present specification
  • FIG. 2 is a schematic diagram of a target image with a target identification in the present specification
  • FIG. 3 shows an embodiment of another information detection method in the present specification
  • FIG. 4 is a schematic diagram of a region formed by four right angles of a target identification in the present specification
  • FIG. 5 is a schematic diagram of obtaining key points in a target identification based on the region formed by the four right angles of the target identification in the present specification
  • FIG. 6 is a schematic diagram of a matching result after matching a preset identification template in the present specification
  • FIG. 7 shows an embodiment of an information detection apparatus in the present specification.
  • FIG. 8 shows an embodiment of an information detection device in the present specification. DETAILED DESCRIPTION
  • Embodiments of the present specific ation provide an information detection method, apparatus and device.
  • the embodiment of the present specification provides an information detection method.
  • the execution entity of the method may be a terminal device or a server.
  • the terminal device may be a device such as a personal computer, or may be a mobile terminal device, such as a mobile phone and a tablet computer; and the terminal device may be a terminal device used by a user.
  • the server may be a stand-alone server, or a server cluster formed by multiple servers.
  • the server may be a background server of a certain service, or a background server of a website (e.g., a network shopping website or a payment application).
  • the method may be used in the process of accurately detecting the information of a key field on an identification in a simple and universal manner.
  • the execution entity is a server
  • the execution entity is a terminal device
  • the method may specifically include the following steps.
  • step S102 key point information in a target identification is determined from a target image based on a preset deep learning algorithm.
  • the deep learning algorithm may be an algorithm based on representation learning of data in machine learning.
  • the target image may be any image in which an image of a certain identification is included. For example, a user takes a photo of an ID card placed on a desk with a camera of a mobile phone, and during the shooting process, a part of an image of the desk (e.g., an image of the desktop around the ID card) is also captured in the image, and the captured image may be the target image.
  • the target identification may be a credential and/or document used to prove an identity, experience, etc., and the target identification may include many types of forms.
  • the target identification may be a card of a preset size, or the target identification may be one or more credentials and/or documents of a preset size.
  • the key point information may be information of one or more prominent or notable positions, and the key point information may include position information, coordinate information, etc. of key points.
  • the electronic process of real-name authentication does not require users to verify identifications and personal information on site for real-name authentication, thus greatly saving costs of users and real-name authentication authorities (such as banks). Therefore, it is increasingly accepted by real-name authentication authorities.
  • the electronic process of real-name authentication needs to implement text line detection for identifications of different countries or regions in order to extract names, addresses, identification numbers and other information on the identifications.
  • characteristics of the identifications in different countries or regions are different. For example, some countries or regions have multiple versions of identifications, and the names and addresses on the identifications may occupy 1-3 lines according to the length of their contents.
  • identifications of some countries or regions there are both English and a local language, and it is thus desired to establish a simple and universal way to accurately detect the information of key fields on the identifications.
  • the core of the SSD algorithm may be predicting category scores, offset, etc. of a series of default bounding boxes by virtue of a convolutional kernel on a feature map.
  • the process of the Faster RCNN algorithm may be: first inputting an entire picture into a CNN to obtain a Feature Map, and then inputting convolutional features into an RPN (Region Proposal Network) to obtain feature information of candidate boxes; determining, by a classifier, whether features extracted from the candidate boxes belong to a particular class; and for a candidate box belonging to a feature, further adjusting the position of the candidate box by using a regressor.
  • the text detection based on the deep learning target detection algorithm has higher accuracy.
  • the embodiment of the present specification provides a solution for detecting a text line in an identification, which may specifically include the following contents.
  • an image i.e., the target image
  • an identification i.e., the target identification
  • the image of the target identification may be extracted from the target image.
  • the image of the target identification is determined by a plurality of key points. For example, as shown in FIG. 2, points corresponding to the four comers of the target identification in the target image may be used as key points, and points corresponding to the four edges of the target identification in the target image may be used as key points, etc.
  • a region defined by the key points corresponding to the four comers and the key points corresponding to the four edges is the region where the target identification is located, and for this reason, key point detection of the target identification may be performed on the basis of a multi - Patch key point positioning method.
  • a deep learning algorithm may be preset, and the deep learning algorithm may be used to detect key point information of the identification from the image, and then, a certain number of sample images may be selected. Each sample image includes an image of a certain identification, and the preset deep learning algorithm may be trained by the sample images to obtain a deep learning algorithm capable of detecting key point information of the identification contained therein from the sample images.
  • the target image may be input into the trained deep learning algorithm.
  • the key points corresponding to the four corners of the target identification and the key points corresponding to the four edges may be extracted from the target image.
  • the key points of the target identification are not limited to the above-mentioned multiple key points, and may also include other key points in addition to the above-mentioned key points, which is not limited in the embodiment of the present specification.
  • step S104 an image of the target identification is obtained from the target image according to the key point information.
  • the obtained key point information may be respectively set at corresponding positions in the target image, and then the key point information or a region defined by the key points may be determined, for example, the region defined by the key points corresponding to the four comers of the target identification and the key points corresponding to the four edges, as shown in FIG. 2.
  • the above detennined region may be determined as a region where the target identification is located. Then the image of the above- described region may be extracted or intercepted from the target image as the image of the target identification.
  • step S 106 information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
  • the preset identification template may be an identification having the same size, the same field name of each field, and the same relative position of each field on an identification, but the present identification template does not contain the contents of the fields.
  • the preset field may be any field determined in advance, such as a name field, an address field, a gender field, or the like.
  • one or more identification templates may be pre- configured, which may match identifications commonly used at present.
  • the image of the target identification is obtained by the processing of the step S 104, in order to be able to intuitively match a preset identification template, the image of the target identification may be scaled to match the size of the preset identification templates. Then a preset identification template having fields that match fields included in the target identification is selected from the preset identification templates.
  • the preset field may be obtained from the selected preset identification template, and information of the preset field may be obtained from a position in the image of the target identification which corresponds to the preset field.
  • a name field may be obtained from the selected preset identification template, in which the name field is positioned at the top and the leftmost side of the preset identification template.
  • information positioned at the top and the leftmost side of the identification may be searched in the image of the target identification, from which name information in the target identification may be obtained.
  • the process of comparing the image of the target identification and the preset identification template matching the target identification, and the process of obtaining the information of the preset field may be implemented using a preset algorithm.
  • the preset algorithm may be set according to actual conditions, which may correspond to, for example, methods based on connected components or methods based on stroke width conversion, which is not limited in the embodiment of the present specification.
  • the process of a text detection method based on stroke width conversion includes: calculating a Canny edge of an image; then, calculating stroke width conversion of the image according to direction information of the edge; integrating pixels into connected components according to stroke width information; filtering the connected components by geometric inference such as a depth-width ratio of the connected components, a variance, mean, or median of the connected component strokes, etc.; integrating the connected components into a text line; and finally partitioning the text line into individual words.
  • key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected.
  • the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified.
  • the solutions are not limited by the type of the identification and may be applied to more types of identifications.
  • the embodiment of the present specification provides an information detection method.
  • the execution entity of the method may be a terminal device or a server.
  • the terminal device may be a device such as a personal computer, or may be a mobile terminal device, such as a mobile phone and a tablet computer; and the terminal device may be a terminal device used by a user.
  • the server may be a stand-alone server or a server cluster formed by multiple servers.
  • the server may be a background server of a certain sendee, or may be a background server of a website (such as a network shopping website or a payment application).
  • the method may be used in the process of accurately detecting the information of a key field on an identification in a simple and universal manner.
  • step S302 based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image, and an avatar in the identification in the sample image is determined to construct a regression network model.
  • the data of the sample image may be pixel data of the sample image, for example,
  • the regression network model may be a netw ork model constructed based on a preset deep learning algorithm, and the regression network model may include various types, such as a convolutional neural network model or a deep confidence network model.
  • a certain number of sample images may be selected to train the preset deep learning algorithm.
  • the deep learning algorithm is essentially an input-to-output mapping, which can leam a large number of mapping relationships between input and output without any precise mathematical expression between input and output; as long as a corresponding regression network is trained with known patterns, the regression netw'ork has the ability to map between input and output pairs.
  • Sample data for the regression network may be formed by vector pairs in the form of (input vector, ideal output vector). All weights may be initialized with a few different small random numbers before starting the training. The small random numbers may be used to ensure that the netw'ork does not become saturated due to excessive weights, which leads to a training failure.
  • the training of the deep learning algorithm may include two stages.
  • Stage 1 is a forward propagation stage, i.e., selecting a sample data (X, Yp) from a set of sample data, and inputting X into a regression network corresponding to the deep learning algorithm, and then, calculating the corresponding actual output Op.
  • Stage 2 is a backward propagation stage, i.e., calculating the difference between the actual output Op and a corresponding ideal output Yp, and then carrying out backward propagation according to an error minimizing method to adjust the weight matrix.
  • the trained regression network model may be obtained after performing the two stages.
  • the preset deep learning algorithm may be used to determine, according to the data of the preset sample image, the relationship among the key points corresponding to the four right angles of the identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image, and a regression network model is then constructed on the basis of the relationship.
  • the constructed regression network model may include five stages.
  • the first stage may include a first convolutional layer, a first pooling layer, and a first dropout layer.
  • the first convolutional layer may perform a convolutional operation, through which the original image features may be enhanced and noise may be reduced.
  • the first convolutional layer may be formed by one or more Feature Maps.
  • the first pooling layer may subsample images according to the principle of local correlation of images, which may reduce data to be processed while maintaining useful information. Features may be pre-defined.
  • the first convolutional layer substantially functions to automatically learn the features, and the first pooling layer may reduce the dimensions while keeping the main features.
  • the first dropout layer may be not added to the first convolutional layer. However, because the data of the sample image is limited, for the versatility between the identifications, the first dropout layer may increase the noise and improve the generalization ability.
  • the second stage can include a second convolutional layer, a second pooling layer, and a second dropout layer.
  • Multiple convolutional layers may be set for the following reason that the features learned by one convolutional layer are often local, and the higher level the convolutional layer is located, the more global the learned features may be, so that the overall features of the edges of the identification can be learnt step by step.
  • the third stage may include a third convolutional layer and a third dropout layer.
  • noise may be increased while the global features may continue to be learned, and no pooling layer is used for pooling process.
  • the fourth stage may include a first fiilly connected layer.
  • the first fully connected layer may include a plurality of cells (the number of cells may be determined based on a design of the output layer, for example, 500 cells, and so on).
  • the first fully connected layer may have a function of mapping the learned“distributed feature representation” to a data space of the sample image.
  • the first fully connected layer may be fully connected to an upper layer and may have a certain number of trainable parameters. Like a classical neural network, the first fully connected layer calculates a dot product between an input vector and a weight vector, then adds a bias to the dot product, and finally passes it to the next layer.
  • the fifth stage may include a second fully connected layer.
  • the second fully connected layer may include eight cells, and the eight cells respectively correspond to four points and eight parameters of the identification.
  • the regression network model may include a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fiilly connected layer, and a second fully connected layer.
  • the first convolutional layer is connected to an input layer
  • the second fully connected layer is connected to an output layer
  • all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second firlly connected layer.
  • the first dropout layer, the second dropout layer, and the third dropout layer may be used to increase preset noise information.
  • the first fully connected layer may include a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
  • the second fully connected layer may include eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the identification in the image and eight parameters.
  • the image may be normalized to avoid a gradient explosion.
  • step S304 key point information in the target identification is determined from the target image based on the constructed regression network model.
  • the data of the target image i.e., pixel data of the target image
  • the constructed regression network model for calculation, from which the relationship among the key points corresponding to the four right angles of the target identification in tire target image and edges of the target identification and an avatar in the target identification may be determined, and the key point information in the target identification may also be detennined.
  • the specific processing manner of the step S304 may be various. In order to improve the accuracy of the target identification detection, key point detection based on small patches may be performed additionally.
  • the step S304 may specifically include the following step 1 and step 2.
  • step 1 a region formed by the four right angles of the target identification is determined from the target image based on the constructed regression network model.
  • the data of the target image (i.e., the pixel data of the target image) may be input into the constructed regression network model for calculation. That is, the pixel data of the target image is first input to the first convolutional layer of the first stage of the regression network model for calculation, and then an output result is input to the first pooling layer for pooling processing, and then the pooled data is input to the first dropout layer for processing, thus obtaining a corresponding processing result.
  • the processing result may be subjected to the processing of the second stage, the third stage, the fourth stage, and the fifth stage, respectively, and finally the key point information corresponding to the four right angles of the target identification may be obtained.
  • step 2 based on the constructed regression network model, key point information in the target identification is determined from the determined region formed by the four right angles of the target identification.
  • the region formed by four right angles of the target identification may be used as an initial image, and input into the regression model again for calculation. That is, the processing of the first stage, the second stage, the third stage, the fourth stage, and the fifth stage is respectively performed on pixel data of an image of the region formed by the four right angles of the target identification, thus finally obtaining key point information in the target identification in the image of the region formed by the four right angles of the target identification, as shown in FIG. 5. Through the processing process, the key point information in the target identification may be more accurate.
  • step S306 an image of the target identification is obtained from the target image according to the key point information.
  • the image of the target identification After the image of the target identification is obtained from the target image through the processing process, the image of the target identification may be subjected to affine transformation correction which will be detailed in the step S308.
  • step S308 based on preset reference size information of the identification, a size of the image of the target identification is adjusted to obtain an image of the target identification matching the reference size information.
  • the reference size information may be real size (or standard size) information of the target identification in actual application or may be information of a size matching the real size.
  • information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
  • the preset identification template may be an identification template set based on any of a reference size, a standard size, or a real size.
  • the preset field may be any field in the target identification, such as a name field or a gender field.
  • a required field and a range of pixel values of its corresponding region may be configured.
  • the following rules may be set: the name field starts from pixel coordinates (100, 50) and ends at pixel coordinates (180, 90), the gender field starts from pixel coordinates (100, 100) and ends at pixel coordinates (140, 140), and the pixel coordinates of the name field are located above the pixel coordinates of the gender field.
  • template correction may further be performed on the above-mentioned preset identification template, and in the identification template of the reference size (or the standard size, or the real size), a text line in the target identification may be identified by a connected-component based method or the like.
  • tire target identification and the preset identification template matching the target identification may be compared for a difference, and connected components of the preset field may be extracted and corrected by a connected-component based method or the like. For example, information of some fields may be written across lines, so that corresponding rules or the like may be configured directly through the configuration of the template.
  • a text line such as the text line of the name field and the text line of the gender field, may be extracted according to the template matching result to obtain corresponding information of the preset field.
  • key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact loc ation of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected.
  • the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified.
  • the solutions are not limited by the type of the identification and may be applied to more types of identifications.
  • tire embodiment of the present specification further provides an information detection apparatus, as shown in FIG. 7.
  • the infomiation detection apparatus includes: a key point determining module 701 , an identification obtaining module 702 and a field information determining module 703.
  • the key point determining module 701 is configured to determine key point information in a target identification from a target image based on a preset deep learning algorithm.
  • the identification obtaining module 702 is configured to obtain an image of the target identification from the target image according to the key point information.
  • the field information determining module 703 is configured to determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
  • the key point determining module 701 includes:
  • a model constructing unit configured to determine, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model;
  • a key point determining unit configured to determine key point information in the target identification from the target image based on the constructed regression network model.
  • the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer , wherein the first convolutional layer is connected to an input layer, the second frilly connected layer is connected to an output layer, and all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
  • the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
  • the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
  • the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
  • the key point determining unit is configured to determine, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image, and determine, based on the constructed regression netw ork model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
  • the apparatus further includes:
  • an image adjusting module configured to adjust the size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
  • key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained. Then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected.
  • the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified.
  • the solutions are not limited by the type of the identification and may be applied to more types of identifications.
  • the embodiment of the present specification further provides an information detection device, as shown in FIG. 8.
  • the information detection device may be the serv er or the terminal device provided by the foregoing embodiments.
  • the information detection device may vary considerably depending on different configurations or performances, and may include one or more processors 801 and a memory 802.
  • the memory 802 may store one or more stored applications or data.
  • the memory 802 may be a non-permanent memory or a permanent memory.
  • the application stored in the memory 802 may include one or more modules (not shown), each of which may include a series of computer executable instructions for the information detection device.
  • the processor 801 may be configured to communicate with the memory 802 to execute, on the information detection device, a series of computer executable instructions in the memory 802.
  • the information detection device may also include one or more power sources 803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, and one or more keyboards 806.
  • the information detection device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the information detection device.
  • one or more processors may execute the one or more programs, including performing the following computer executable instructions:
  • the determining key point information in a target identification from a target image based on a preset deep learning algorithm includes:
  • the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer , wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
  • the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
  • the first frilly connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
  • the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
  • the determining key point information in the target identification from the target image based on the constructed regression network model includes: [0133] determining, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image; and
  • key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained. Then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected.
  • the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified.
  • the solutions are not limited by the type of the identification and may be applied to more types of identifications.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • HDLs such as ABEL Advanced Boolean Expression Language (ABEL), Altera Hardware Description Language (AHDL), Confluence, Georgia University Progra ming Language (CUPL), HDCal, Java Hardware Description Language (JHDL), Lava, Lola, MyHDL, PALASM, Ruby Hardware Description Language (RHDL), or the like.
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog are most commonly used at present. It should also be apparent to those skilled in the art that a hardware circuit for implementing a logic process may be easily obtained by simply logically programming the process with a few hardware description languages described above and programming it into an integrated circuit.
  • a controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or processor, and a computer readable medium storing a computer readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, or an embedded microcontroller.
  • a computer readable program code e.g., software or firmware
  • the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320; and a memory controller can also be implemented as a part of the memory's control logic.
  • the controller may achieve the same function in the format of a logic gate, a switch, an ASIC, a programmable logic controller, an embedded microcontroller or the like by logically programming process steps.
  • a controller may therefore be considered as a hardware component, and an apparatus included in the controller and configured to implement various functions may also be considered as a structure within the hardware component.
  • an apparatus for implementing various functions may be considered as both a software module for an implementation method and a structure within a hardware component.
  • the systems, apparatuses, modules or units illustrated in the above embodiments may specifically be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
  • embodiments of the present specification may be provided as a method, a system, or a computer program product. Accordingly, the embodiments of tire present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer usable storage media (including, but not limited to, disk memories, CD-ROMs and optical memories) comprising computer usable program codes.
  • These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine such that instructions are executed by the processor of the computer or other programmable data processing devices to generate an apparatus for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
  • These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing devices to function in a particular manner such that the instructions stored in the computer readable memory produce an article of manufacture inc luding an instruction means which implements functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing devices to cause a series of operating steps to be performed on the computer or other programmable devices to produce computer-implemented processing, and the instmctions executed on the computer or other programmable devices provide steps for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
  • a computing device includes one or more processors
  • the memory may be in a form of a non-permanent memory, a random access memory (RAM), and/or a nonvolatile memory, such as a read-only memory (ROM) or a flash RAM, in computer-readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer readable media include permanent and non-permanent, removable and non-removable media and may store information by any method or technology. The information may be a computer readable instruction, a data structure, a module of a program, or other data.
  • Examples of computer storage media include, but are not limited to, a phase change memory (PRAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), other types of random access memories (RAMs), a read only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory or other memory technologies, a compact disk read-only memory (CD-ROM), a digital versatile disc (DVD) or other optical storage devices, a magnetic tape cassette, a magnetic tape/disk storage or other magnetic storage devices, or any other non-transmission medium, and may be used for storing information accessible by computing devices.
  • the computer readable media do not include transitory media, such as modulated data signals and carriers.
  • one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware.
  • one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer usable storage media (including, but not limited to, disk memories, CD-ROMs and optical memories) comprising computer usable program codes.
  • One or more embodiments of the present specification may be described in the general context of computer executable instructions executed by a computer, such as program modules.
  • the program modules include routines, programs, objects, components, data structures, or the like that perform particular tasks or implement particular abstract data types.
  • One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)

Abstract

The embodiments of the present specification disclose an information detection method, an information detection apparatus, and an information detection device. The method comprises: determining key point information in a target identification from a target image based on a preset deep learning algorithm; obtaining an image of the target identification from the target image according to the key point information; and determining information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.

Description

INFORMATION DETECTION METHOD, APPARATUS AND DEVICE
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This international application is based upon and claims priority to Chinese Application No. 201811025620.5, filed on September 4, 2018, the entire content of which is incorporated herein by reference.
TECHNICAL FIELD
[0002] The present specification relates to the technical field of computers, and in particular, to a method, an apparatus, and a device for information detection.
TECHNICAL BACKGROUND
[0003] With continuous development of an electronic process of real-name authentication, as a weak real-name authentication solution, the electronic process of real-name authentication does not require users to go to a real-name authentication site to verily identifications and personal information, thus greatly saving costs of users and real-name authentication authorities (such as banks). Therefore, it is increasingly accepted by real-name authentication authorities.
[0004] Despite the above advantages, the electronic process of real-name authentication needs to implement text line detection for identifications of many different countries or regions in order to extract names, addresses, identification numbers and other information on the identifications. Moreover, characteristics of the identifications of different countries or regions are also different. Generally, the detection of text lines in an identification is realized by traditional graphic methods, such as connected-component based schemes or text detection methods based on stroke width conversion. However, the detection methods have low accuracies and complicated rules, and for new types of identifications, it is required to rewrite corresponding detection codes. Therefore, it is desired to establish a simple and universal way to accurately detect information of key fields on an identification.
SUMMARY OF THE INVENTION
[0005] The objective of the embodiments of the present specification is to provide a method, an apparatus, and a device for information detection to establish a simple and universal way to accurately detect information of key fields on an identification.
[0006] To achieve the above technical solutions, the embodiments of the present specification are implemented as follows:
[0007] An information detection method provided by the present specification, includes:
[0008] determining key point information in a target identification from a target image based on a preset deep learning algorithm;
[0009] obtaining an image of the target identification from the target image according to the key point information; and
[0010] determining information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0011] Optionally, the determining the key point information in the target identification from the target image based on the preset deep learning algorithm includes:
[0012] determining, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model; and
[0013] determining the key point information in the target identification from the target image based on the constructed regression network model.
[0014] Optionally, the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
[0015] Optionally, the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
[0016] Optionally, the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
[0017] Optionally, the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
[0018] Optionally, the determining the key point information in the target identification from the target image based on the constructed regression network model includes:
[0019] determining, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image; and [0020] determining, based on the constructed regression network model, the key point infomiation in the target identification from the determined region formed by the four right angles of the target identification.
[0021] Optionally, before determining the information of the preset field from the image of the target identification according to the image of the target identification and the preset identification template matching the target identification, the method further includes:
[0022] adjusting a size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
[0023] An information detection apparatus provided by some embodiments of the present specification, includes:
[0024] a key point determining module, configured to determine key point information in a target identification from a target image based on a preset deep learning algorithm;
[0025] an identification obtaining module, configured to obtain an image of the target identification from the target image according to the key point information; and
[0026] a field information determining module, configured to determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0027] Optionally, the key point determining module includes:
[0028] a model constructing unit, configured to determine, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model; and [0029] a key point determining unit, configured to determine key point information in the target identification from the target image based on the constructed regression network model.
[0030] Optionally, the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
[0031] Optionally, the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
[0032] Optionally, the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
[0033] Optionally, the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
[0034] Optionally, the key point detennining unit is configured to determine, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image, and determine, based on the constructed regression network model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
[0035] Optionally, the apparatus further includes: [0036] an image adjusting module, configured to adjust a size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
[0037] An information detection device provided by some embodiments of the present specification, including:
[0038] a processor, and
[0039] a memory arranged to store computer executable instructions that, when executed, cause the processor to:
[0040] determine key point information in a target identification from a target image based on a preset deep learning algorithm;
[0041] obtain an image of the target identification from the target image according to the key point information; and
[0042] determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0043] It can be seen from the technical solutions provided by the embodiments of the present specification that according to the embodiments of the present specification, key point infomiation in a target identification is determined from a target image based on a preset deep learning algorithm; then, an image of the target identification is obtained from the target image according to the key point infomiation; information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected. For example, by comparison with the preset identification template, the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified. Moreover, the solutions are not limited by the type of the identification and may be applied to more types of identifications.
BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, drawings to be used for description of embodiments and the prior art will be introduced briefly hereinafter. Apparently, drawings referred to in the following description are merely some embodiments set forth in the present specification, and those skilled in the art also can obtain other drawings based on these drawings without creative labor.
[0045] FIG. 1 shows an embodiment of an information detection method in the present specification;
[0046] FIG. 2 is a schematic diagram of a target image with a target identification in the present specification;
[0047] FIG. 3 shows an embodiment of another information detection method in the present specification;
[0048] FIG. 4 is a schematic diagram of a region formed by four right angles of a target identification in the present specification; [0049] FIG. 5 is a schematic diagram of obtaining key points in a target identification based on the region formed by the four right angles of the target identification in the present specification;
[0050] FIG. 6 is a schematic diagram of a matching result after matching a preset identification template in the present specification;
[0051] FIG. 7 shows an embodiment of an information detection apparatus in the present specification; and
[0052] FIG. 8 shows an embodiment of an information detection device in the present specification. DETAILED DESCRIPTION
[0053] Embodiments of the present specific ation provide an information detection method, apparatus and device.
[0054] In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in embodiments of the present specification will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present specification. Apparently, the described embodiments are only a part, not all of the embodiments of the present specification. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without creative efforts shall fall within the scope of the present specification.
[0055] Embodiment 1
[0056] As shown in FIG. 1, the embodiment of the present specification provides an information detection method. The execution entity of the method may be a terminal device or a server. The terminal device may be a device such as a personal computer, or may be a mobile terminal device, such as a mobile phone and a tablet computer; and the terminal device may be a terminal device used by a user. The server may be a stand-alone server, or a server cluster formed by multiple servers. Moreover, the server may be a background server of a certain service, or a background server of a website (e.g., a network shopping website or a payment application). The method may be used in the process of accurately detecting the information of a key field on an identification in a simple and universal manner. In order to improve the detection efficiency of the information, an example where the execution entity is a server is described in this embodiment to explain the method. The case where the execution entity is a terminal device may be handled according to the following related content and will not be elaborated here. The method may specifically include the following steps.
[0057] In step S102, key point information in a target identification is determined from a target image based on a preset deep learning algorithm.
[0058] The deep learning algorithm may be an algorithm based on representation learning of data in machine learning. There may be many types of deep learning algorithms, such as kNN (k-Nearest Neighbor) algorithm or CNN (Convolutional Neural Network) algorithm. The target image may be any image in which an image of a certain identification is included. For example, a user takes a photo of an ID card placed on a desk with a camera of a mobile phone, and during the shooting process, a part of an image of the desk (e.g., an image of the desktop around the ID card) is also captured in the image, and the captured image may be the target image. The target identification may be a credential and/or document used to prove an identity, experience, etc., and the target identification may include many types of forms. For example, the target identification may be a card of a preset size, or the target identification may be one or more credentials and/or documents of a preset size. The key point information may be information of one or more prominent or notable positions, and the key point information may include position information, coordinate information, etc. of key points.
[0059] In the implementation, with continuous development of the electronic process of real-name authentication, as a weak real-name authentication solution, the electronic process of real-name authentication does not require users to verify identifications and personal information on site for real-name authentication, thus greatly saving costs of users and real-name authentication authorities (such as banks). Therefore, it is increasingly accepted by real-name authentication authorities. However, despite the above advantages, the electronic process of real-name authentication needs to implement text line detection for identifications of different countries or regions in order to extract names, addresses, identification numbers and other information on the identifications. However, characteristics of the identifications in different countries or regions are different. For example, some countries or regions have multiple versions of identifications, and the names and addresses on the identifications may occupy 1-3 lines according to the length of their contents. For identifications of some countries or regions, there are both English and a local language, and it is thus desired to establish a simple and universal way to accurately detect the information of key fields on the identifications.
[0060] There are two ways to detect text lines in an identification, one of which may be implemented by traditional graphic methods, such as connected-component schemes, text detection methods based on stroke width conversion, or schemes based on pixel variation to find edge characteristics, such as MSER (Maximally Stable Extremal Regions). The purpose of the MSER is to find a region that can have significant changes with respect to the surrounding region. When detecting text lines in an identification, the traditional graphic methods have low accuracies and complicated rules. For newly emerging types of identifications, it is required to rewrite corresponding detection codes. The other way is text detection based on a deep learning target detection algorithm, such as SSD (Single Shot multibox Detector), Faster RCNN and other algorithms for text detection. The core of the SSD algorithm may be predicting category scores, offset, etc. of a series of default bounding boxes by virtue of a convolutional kernel on a feature map. The process of the Faster RCNN algorithm may be: first inputting an entire picture into a CNN to obtain a Feature Map, and then inputting convolutional features into an RPN (Region Proposal Network) to obtain feature information of candidate boxes; determining, by a classifier, whether features extracted from the candidate boxes belong to a particular class; and for a candidate box belonging to a feature, further adjusting the position of the candidate box by using a regressor. The text detection based on the deep learning target detection algorithm has higher accuracy. However, for texts in the identifications of different countries or regions, a large amount of data is required to train a model. Moreover, it cannot distinguish which field is name and which field is address, etc. Therefore, it may also require assistance of other rules or language models to further determine whether the text line in the identification belongs to a name or an address. Therefore, the embodiment of the present specification provides a solution for detecting a text line in an identification, which may specifically include the following contents.
[0061] Considering that an image (i.e., the target image) may not only have an image of an identification (i.e., the target identification), it may also contain an image other than the identification, and since the image other than the identification does not help the text line detection of the target identification, the image of the target identification may be extracted from the target image. It can be considered that the image of the target identification is determined by a plurality of key points. For example, as shown in FIG. 2, points corresponding to the four comers of the target identification in the target image may be used as key points, and points corresponding to the four edges of the target identification in the target image may be used as key points, etc. hi such a way, a region defined by the key points corresponding to the four comers and the key points corresponding to the four edges is the region where the target identification is located, and for this reason, key point detection of the target identification may be performed on the basis of a multi - Patch key point positioning method. Specifically, a deep learning algorithm may be preset, and the deep learning algorithm may be used to detect key point information of the identification from the image, and then, a certain number of sample images may be selected. Each sample image includes an image of a certain identification, and the preset deep learning algorithm may be trained by the sample images to obtain a deep learning algorithm capable of detecting key point information of the identification contained therein from the sample images.
[0062] After the deep learning algorithm is trained in the above manner, the target image may be input into the trained deep learning algorithm. Through the calculation with the trained deep learning algorithm, the key points corresponding to the four corners of the target identification and the key points corresponding to the four edges may be extracted from the target image. In practical applications, the key points of the target identification are not limited to the above-mentioned multiple key points, and may also include other key points in addition to the above-mentioned key points, which is not limited in the embodiment of the present specification.
[0063] In step S104, an image of the target identification is obtained from the target image according to the key point information.
[0064] In the implementation, after the key point information in the target identification in the target image is obtained by the processing of the step S 102, the obtained key point information may be respectively set at corresponding positions in the target image, and then the key point information or a region defined by the key points may be determined, for example, the region defined by the key points corresponding to the four comers of the target identification and the key points corresponding to the four edges, as shown in FIG. 2. The above detennined region may be determined as a region where the target identification is located. Then the image of the above- described region may be extracted or intercepted from the target image as the image of the target identification.
[0065] In step S 106, information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0066] The preset identification template may be an identification having the same size, the same field name of each field, and the same relative position of each field on an identification, but the present identification template does not contain the contents of the fields. The preset field may be any field determined in advance, such as a name field, an address field, a gender field, or the like.
[0067] In the implementation, in order to accurately identify different fields and the corresponding information of the fields, one or more identification templates may be pre- configured, which may match identifications commonly used at present. When the image of the target identification is obtained by the processing of the step S 104, in order to be able to intuitively match a preset identification template, the image of the target identification may be scaled to match the size of the preset identification templates. Then a preset identification template having fields that match fields included in the target identification is selected from the preset identification templates. The preset field may be obtained from the selected preset identification template, and information of the preset field may be obtained from a position in the image of the target identification which corresponds to the preset field. For example, a name field may be obtained from the selected preset identification template, in which the name field is positioned at the top and the leftmost side of the preset identification template. In this example, information positioned at the top and the leftmost side of the identification may be searched in the image of the target identification, from which name information in the target identification may be obtained.
[0068] It should be noted that the process of comparing the image of the target identification and the preset identification template matching the target identification, and the process of obtaining the information of the preset field may be implemented using a preset algorithm. The preset algorithm may be set according to actual conditions, which may correspond to, for example, methods based on connected components or methods based on stroke width conversion, which is not limited in the embodiment of the present specification. The process of a text detection method based on stroke width conversion includes: calculating a Canny edge of an image; then, calculating stroke width conversion of the image according to direction information of the edge; integrating pixels into connected components according to stroke width information; filtering the connected components by geometric inference such as a depth-width ratio of the connected components, a variance, mean, or median of the connected component strokes, etc.; integrating the connected components into a text line; and finally partitioning the text line into individual words.
[0069] According to the information detection method provided by the embodiment of the present specification, key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected. For example, by comparison with the preset identification template, the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified. Moreover, the solutions are not limited by the type of the identification and may be applied to more types of identifications.
[0070] Embodiment 2
[0071] As shown in FIG. 3, the embodiment of the present specification provides an information detection method. The execution entity of the method may be a terminal device or a server. The terminal device may be a device such as a personal computer, or may be a mobile terminal device, such as a mobile phone and a tablet computer; and the terminal device may be a terminal device used by a user. The server may be a stand-alone server or a server cluster formed by multiple servers. Moreover, the server may be a background server of a certain sendee, or may be a background server of a website (such as a network shopping website or a payment application). The method may be used in the process of accurately detecting the information of a key field on an identification in a simple and universal manner. In order to improve the detection efficiency of the information, an example where the execution entity is a server is described in this embodiment to explain the method. The case where the execution entity is a terminal device may be handled according to the following related content and will not be elaborated here. The method may specifically include the following steps: [0072] In step S302, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image, and an avatar in the identification in the sample image is determined to construct a regression network model.
[0073] The data of the sample image may be pixel data of the sample image, for example,
32x32 or 100c100. The regression network model may be a netw ork model constructed based on a preset deep learning algorithm, and the regression network model may include various types, such as a convolutional neural network model or a deep confidence network model.
[0074] In the implementation, a certain number of sample images may be selected to train the preset deep learning algorithm. The deep learning algorithm is essentially an input-to-output mapping, which can leam a large number of mapping relationships between input and output without any precise mathematical expression between input and output; as long as a corresponding regression network is trained with known patterns, the regression netw'ork has the ability to map between input and output pairs. Sample data for the regression network may be formed by vector pairs in the form of (input vector, ideal output vector). All weights may be initialized with a few different small random numbers before starting the training. The small random numbers may be used to ensure that the netw'ork does not become saturated due to excessive weights, which leads to a training failure. The difference between the small random numbers can be used to ensure that the network can leam normally. The training of the deep learning algorithm may include two stages. Stage 1 is a forward propagation stage, i.e., selecting a sample data (X, Yp) from a set of sample data, and inputting X into a regression network corresponding to the deep learning algorithm, and then, calculating the corresponding actual output Op. Stage 2 is a backward propagation stage, i.e., calculating the difference between the actual output Op and a corresponding ideal output Yp, and then carrying out backward propagation according to an error minimizing method to adjust the weight matrix. The trained regression network model may be obtained after performing the two stages.
[0075] Based on the principle of the regression network model corresponding to the deep learning algorithm described above, the preset deep learning algorithm may be used to determine, according to the data of the preset sample image, the relationship among the key points corresponding to the four right angles of the identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image, and a regression network model is then constructed on the basis of the relationship. The constructed regression network model may include five stages. The first stage may include a first convolutional layer, a first pooling layer, and a first dropout layer. The first convolutional layer may perform a convolutional operation, through which the original image features may be enhanced and noise may be reduced. The first convolutional layer may be formed by one or more Feature Maps. Each neuron in the Feature Maps may be connected to the neighborhood of N*M in the input, where N and M are both natural numbers. The first pooling layer may subsample images according to the principle of local correlation of images, which may reduce data to be processed while maintaining useful information. Features may be pre-defined. The first convolutional layer substantially functions to automatically learn the features, and the first pooling layer may reduce the dimensions while keeping the main features. The first dropout layer may be not added to the first convolutional layer. However, because the data of the sample image is limited, for the versatility between the identifications, the first dropout layer may increase the noise and improve the generalization ability. [0076] The second stage can include a second convolutional layer, a second pooling layer, and a second dropout layer. Multiple convolutional layers may be set for the following reason that the features learned by one convolutional layer are often local, and the higher level the convolutional layer is located, the more global the learned features may be, so that the overall features of the edges of the identification can be learnt step by step.
[0077] The third stage may include a third convolutional layer and a third dropout layer. In the third stage, noise may be increased while the global features may continue to be learned, and no pooling layer is used for pooling process.
[0078] The fourth stage may include a first fiilly connected layer. The first fully connected layer may include a plurality of cells (the number of cells may be determined based on a design of the output layer, for example, 500 cells, and so on). The first fully connected layer may have a function of mapping the learned“distributed feature representation” to a data space of the sample image. The first fully connected layer may be fully connected to an upper layer and may have a certain number of trainable parameters. Like a classical neural network, the first fully connected layer calculates a dot product between an input vector and a weight vector, then adds a bias to the dot product, and finally passes it to the next layer.
[0079] The fifth stage may include a second fully connected layer. The second fully connected layer may include eight cells, and the eight cells respectively correspond to four points and eight parameters of the identification.
[0080] Based on the above description, the regression network model may include a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fiilly connected layer, and a second fully connected layer. The first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second firlly connected layer.
[0081] The first dropout layer, the second dropout layer, and the third dropout layer may be used to increase preset noise information. The first fully connected layer may include a plurality of cells for mapping a learned distributed feature representation into a space of the sample image. The second fully connected layer may include eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the identification in the image and eight parameters.
[0082] It should be noted that in the process of training and subsequent prediction of the regression network model corresponding to the deep learning algorithm, the image may be normalized to avoid a gradient explosion.
[0083] In step S304, key point information in the target identification is determined from the target image based on the constructed regression network model.
[0084] In the implementation, after constructing the regression network model by the processing of the step S302, the data of the target image (i.e., pixel data of the target image) may be input into the constructed regression network model for calculation, from which the relationship among the key points corresponding to the four right angles of the target identification in tire target image and edges of the target identification and an avatar in the target identification may be determined, and the key point information in the target identification may also be detennined. [0085] The specific processing manner of the step S304 may be various. In order to improve the accuracy of the target identification detection, key point detection based on small patches may be performed additionally. That is, the regions of the four right angles in the detected target identification are extracted, and the calculation of the key point detection is performed on the regions of the four right angles in the target identification (i.e., the processing of the five stages as described above). Thus, more accurate key point information in the target identification is obtained, so that the accuracy of the key point detection may be greatly improved. To this end, the step S304 may specifically include the following step 1 and step 2.
[0086] In step 1, a region formed by the four right angles of the target identification is determined from the target image based on the constructed regression network model.
[0087] In the implementation, as shown in FIG. 2 and FIG. 4, the data of the target image (i.e., the pixel data of the target image) may be input into the constructed regression network model for calculation. That is, the pixel data of the target image is first input to the first convolutional layer of the first stage of the regression network model for calculation, and then an output result is input to the first pooling layer for pooling processing, and then the pooled data is input to the first dropout layer for processing, thus obtaining a corresponding processing result. The processing result may be subjected to the processing of the second stage, the third stage, the fourth stage, and the fifth stage, respectively, and finally the key point information corresponding to the four right angles of the target identification may be obtained. Then, based on the key point information corresponding to the four right angles of the target identification, a region (i.e., the region as shown in FIG. 4) formed by the four right angles of the target identification is determined. [0088] In step 2, based on the constructed regression network model, key point information in the target identification is determined from the determined region formed by the four right angles of the target identification.
[0089] In an implementation, the region formed by four right angles of the target identification may be used as an initial image, and input into the regression model again for calculation. That is, the processing of the first stage, the second stage, the third stage, the fourth stage, and the fifth stage is respectively performed on pixel data of an image of the region formed by the four right angles of the target identification, thus finally obtaining key point information in the target identification in the image of the region formed by the four right angles of the target identification, as shown in FIG. 5. Through the processing process, the key point information in the target identification may be more accurate.
[0090] In step S306, an image of the target identification is obtained from the target image according to the key point information.
[0091 ] After the image of the target identification is obtained from the target image through the processing process, the image of the target identification may be subjected to affine transformation correction which will be detailed in the step S308.
[0092] In the step S308, based on preset reference size information of the identification, a size of the image of the target identification is adjusted to obtain an image of the target identification matching the reference size information.
[0093] The reference size information may be real size (or standard size) information of the target identification in actual application or may be information of a size matching the real size. [0094] In step S310, information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0095] The preset identification template may be an identification template set based on any of a reference size, a standard size, or a real size. The preset field may be any field in the target identification, such as a name field or a gender field.
[0096] In the implementation, according to the identification template of the reference size (or the standard size or the real size), a required field and a range of pixel values of its corresponding region may be configured. For example, the following rules may be set: the name field starts from pixel coordinates (100, 50) and ends at pixel coordinates (180, 90), the gender field starts from pixel coordinates (100, 100) and ends at pixel coordinates (140, 140), and the pixel coordinates of the name field are located above the pixel coordinates of the gender field.
[0097] In addition, template correction may further be performed on the above-mentioned preset identification template, and in the identification template of the reference size (or the standard size, or the real size), a text line in the target identification may be identified by a connected-component based method or the like. Moreover, tire target identification and the preset identification template matching the target identification may be compared for a difference, and connected components of the preset field may be extracted and corrected by a connected-component based method or the like. For example, information of some fields may be written across lines, so that corresponding rules or the like may be configured directly through the configuration of the template.
2~> [0098] As shown in FIG. 6, a text line, such as the text line of the name field and the text line of the gender field, may be extracted according to the template matching result to obtain corresponding information of the preset field.
[0099] According to the information detection method provided by the embodiment of the present specification, key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact loc ation of the target identification in the target image may be obtained, and then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected. For example, by comparison with the preset identification template, the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified. Moreover, the solutions are not limited by the type of the identification and may be applied to more types of identifications.
[0100] Embodiment 3
[0101] The above is the information detection method provided by the embodiments of the present specification. Based on the same concept, tire embodiment of the present specification further provides an information detection apparatus, as shown in FIG. 7.
[0102] The infomiation detection apparatus includes: a key point determining module 701 , an identification obtaining module 702 and a field information determining module 703. [0103] The key point determining module 701 is configured to determine key point information in a target identification from a target image based on a preset deep learning algorithm.
[0104] The identification obtaining module 702 is configured to obtain an image of the target identification from the target image according to the key point information.
[0105] The field information determining module 703 is configured to determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0106] In the embodiment of the present specification, the key point determining module 701 includes:
[0107] a model constructing unit, configured to determine, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model; and
[0108] a key point determining unit, configured to determine key point information in the target identification from the target image based on the constructed regression network model.
[0109] In the embodiment of the present specification, the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer , wherein the first convolutional layer is connected to an input layer, the second frilly connected layer is connected to an output layer, and all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
[0110] In the embodiment of the present specification, the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
[0111] In the embodiment of the present specification, the first fully connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
[0112] In the embodiment of the present specification, the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
[0113] In the embodiment of the present specification, the key point determining unit is configured to determine, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image, and determine, based on the constructed regression netw ork model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
[0114] In the embodiment of the present specification, the apparatus further includes:
[0115] an image adjusting module, configured to adjust the size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
[0116] According to an information detection apparatus provided by the embodiment of the present specification, key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained. Then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected. For example, by comparison with the preset identification template, the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified. Moreover, the solutions are not limited by the type of the identification and may be applied to more types of identifications.
[0117] Embodiment 4
[0118] The above description is the information detection apparatus provided by the embodiments of the present specification. Based on the same concept, the embodiment of the present specification further provides an information detection device, as shown in FIG. 8.
[0119] The information detection device may be the serv er or the terminal device provided by the foregoing embodiments.
[0120] The information detection device may vary considerably depending on different configurations or performances, and may include one or more processors 801 and a memory 802. The memory 802 may store one or more stored applications or data. The memory 802 may be a non-permanent memory or a permanent memory. The application stored in the memory 802 may include one or more modules (not shown), each of which may include a series of computer executable instructions for the information detection device. Still further, the processor 801 may be configured to communicate with the memory 802 to execute, on the information detection device, a series of computer executable instructions in the memory 802. The information detection device may also include one or more power sources 803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, and one or more keyboards 806.
[0121] Specifically, in this embodiment, the information detection device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the information detection device. Through configuration, one or more processors may execute the one or more programs, including performing the following computer executable instructions:
[0122] determining key point information in a target identification from a target image based on a preset deep learning algorithm;
[0123] obtaining an image of the target identification from the target image according to the key point information; and
[0124] determining information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
[0125] In the embodiment of the present specification, the determining key point information in a target identification from a target image based on a preset deep learning algorithm includes:
[0126] determining, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image to construct a regression network model; and [0127] determining key point information in the target identification from the target image based on the constructed regression netw ork model.
[0128] In the embodiment of the present specification, the regression network model includes a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first fully connected layer, and a second fully connected layer , wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and all the layers are connected in the following order: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
[0129] In the embodiment of the present specification, the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
[0130] In the embodiment of the present specification, the first frilly connected layer includes a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
[0131] In the embodiment of the present specification, the second fully connected layer includes eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
[0132] In the embodiment of the present specification, the determining key point information in the target identification from the target image based on the constructed regression network model includes: [0133] determining, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image; and
[0134] determining, based on the constructed regression network model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
[0135] In the embodiment of the present specification, before determining the information of the preset field from the image of the target identification according to the image of the target identification and the preset identification template matching the target identification, the following step is further included:
[0136] adjusting the size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
[0137] According to an information detection device provided by the embodiment of the present specification, key point information in a target identification is determined from a target image based on a preset deep learning algorithm. Then, an image of the target identification is obtained from the target image according to the key point information. Information of a preset field is determined from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification. Therefore, key points of the target identification in the target image are detected by the deep learning algorithm, so that the exact location of the target identification in the target image may be obtained. Then by matching the detected target identification with the preset identification template, information of any field or a specified field may be accurately detected. For example, by comparison with the preset identification template, the information of a name field and/or the information of an address field in the target identification may be accurately detected, so that the processing of detecting the information of the key field on the identification is simplified. Moreover, the solutions are not limited by the type of the identification and may be applied to more types of identifications.
[0138] The specific embodiments of the specification are described as above. Other embodiments are within the scope of the claims appended. In some cases, actions or steps recited in the claims may be performed in a different order than that in the embodiments and still achieve the desired results. In addition, the processes depicted in the figures are not necessarily in a particular order or in a sequential order to achieve the desired results. In some embodiments, multitasking processing and parallel processing are also possible or may be advantageous.
[0139] In the l990s, improvements to a technology could be distinguished between hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, and switches) and software improvements (improvements to processes). However, with the development of technologies, many process improvements at present may be seen as direct improvements in hardware circuit structures. Designers almost always obtain a corresponding hardware circuit structure by programming an improved process into a hardware circuit. Therefore, it cannot be said that the improvement of a process cannot be implemented by a hardware entity module. For example, a Programmable Logic Device (PLD) (e.g., a Field Programmable Gate Array (FPGA)) is such an integrated circuit, the logic function of which is determined by a user through programming the device. Designers program by themselves to“integrate” a digital system on a PLD without asking a chip manufacturer for designing and fabricating a dedicated integr ated circuit chip. Moreover, instead of manually making integrated circuit chips, this programming is now mostly implemented using "logic compiler" software which is similar to a software compiler used in programming development. Moreover, to compile previous original codes, a specific programming language called Hardware Description Language (HDL) must be used. There is not only one, but many, HDLs, such as ABEL Advanced Boolean Expression Language (ABEL), Altera Hardware Description Language (AHDL), Confluence, Cornell University Progra ming Language (CUPL), HDCal, Java Hardware Description Language (JHDL), Lava, Lola, MyHDL, PALASM, Ruby Hardware Description Language (RHDL), or the like. Very-High-Speed Integrated Circuit Hardware Description Language (VHDL) and Verilog are most commonly used at present. It should also be apparent to those skilled in the art that a hardware circuit for implementing a logic process may be easily obtained by simply logically programming the process with a few hardware description languages described above and programming it into an integrated circuit.
[0140] A controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or processor, and a computer readable medium storing a computer readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, or an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320; and a memory controller can also be implemented as a part of the memory's control logic. Those skilled in the art will also appreciate that in addition to implementing the controller by a purely computer readable program code, the controller may achieve the same function in the format of a logic gate, a switch, an ASIC, a programmable logic controller, an embedded microcontroller or the like by logically programming process steps. Such a controller may therefore be considered as a hardware component, and an apparatus included in the controller and configured to implement various functions may also be considered as a structure within the hardware component. Or, an apparatus for implementing various functions may be considered as both a software module for an implementation method and a structure within a hardware component.
[0141] The systems, apparatuses, modules or units illustrated in the above embodiments may specifically be implemented by a computer chip or an entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0142] For the convenience of description, the above devices are described separately as various units divided by function. Of course, the functions of the various units may be implemented in one or more pieces of software and/or hardware in the implementation of one or more embodiments of the present specification.
[0143] Those skilled in the art should appreciate that embodiments of the present specification may be provided as a method, a system, or a computer program product. Accordingly, the embodiments of tire present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer usable storage media (including, but not limited to, disk memories, CD-ROMs and optical memories) comprising computer usable program codes.
[0144] The embodiments of the present specification are described with reference to the flowcharts and/or the block diagrams of a method, a device (system), and a computer program product according to the embodiments of the present specification. It should be understood that each process and/or block in the flowcharts and/or block diagrams, and combinations of the processes and/or blocks in the flowcharts and/or the block diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine such that instructions are executed by the processor of the computer or other programmable data processing devices to generate an apparatus for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
[0145] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing devices to function in a particular manner such that the instructions stored in the computer readable memory produce an article of manufacture inc luding an instruction means which implements functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
[0146] These computer program instructions may also be loaded onto a computer or other programmable data processing devices to cause a series of operating steps to be performed on the computer or other programmable devices to produce computer-implemented processing, and the instmctions executed on the computer or other programmable devices provide steps for implementing the functions specified in one or more processes in the flowcharts and/or one or more blocks in the block diagrams.
[0147] In a typical configuration, a computing device includes one or more processors
(CPUs), input/output interfaces, network interfaces, and a memory. [0148] The memory may be in a form of a non-permanent memory, a random access memory (RAM), and/or a nonvolatile memory, such as a read-only memory (ROM) or a flash RAM, in computer-readable media. The memory is an example of computer-readable media.
[0149] Computer readable media include permanent and non-permanent, removable and non-removable media and may store information by any method or technology. The information may be a computer readable instruction, a data structure, a module of a program, or other data. Examples of computer storage media include, but are not limited to, a phase change memory (PRAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), other types of random access memories (RAMs), a read only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory or other memory technologies, a compact disk read-only memory (CD-ROM), a digital versatile disc (DVD) or other optical storage devices, a magnetic tape cassette, a magnetic tape/disk storage or other magnetic storage devices, or any other non-transmission medium, and may be used for storing information accessible by computing devices. As defined herein, the computer readable media do not include transitory media, such as modulated data signals and carriers.
[0150] It should be further noted that the term“include,”“comprise” or any other variations thereof are intended to cover non-exclusive inclusions such that a process, method, article, or device that includes a series of elements not only includes those elements but also includes other elements that are not listed explicitly, or also includes inherent elements of the process, method, article, or device. In the absence of more limitations, an element defined by the sentence "including a/an..." does not exclude that the process, method, article or device including the element further has other identical elements. [0151] Those skilled in the art should understand that embodiments of the present specification may be provided as a method, a system, or a computer program product. Accordingly, one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer usable storage media (including, but not limited to, disk memories, CD-ROMs and optical memories) comprising computer usable program codes.
[0152] One or more embodiments of the present specification may be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, the program modules include routines, programs, objects, components, data structures, or the like that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
[0153] The various embodiments in the present specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referenced to each other, and each embodiment focuses on differences from other embodiments. In particular, because the system embodiments are basically similar to the method embodiments, they are described in a brief way, and the description of the method embodiments may be referred to for relevant parts.
[0154] The above descriptions are only embodiments of the present specification and are not intended to limit the present specification. For those skilled in the art, various modifications and changes of the present specification may be made. Any modifications, equivalent replacements, improvements, etc., made within the spirit and scope of the present specification, are intended to be included within the scope of the claims of the present specification.

Claims

1. An information detection method, comprising:
determining key point information in a target identification from a target image based on a preset deep learning algorithm;
obtaining an image of the target identification from the target image according to the key point information; and
determining information of a preset fiel from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
2. The method according to claim 1 , wherein the determining the key point information in the target identification from the target image based on the preset deep learning algorithm comprises:
determining, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image, to construct a regression network model; and
determining the key point information in the target identification from the target image based on the constructed regression network model.
3. The method according to claim 2, wherein the regression network model comprises a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer, a third dropout layer, a first frilly connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
4. The method according to claim 3, wherein the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
5. The method according to claim 4, wherein the first fully connected layer comprises a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
6. The method according to claim 5, wherein the second fully connected layer comprises eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
7. The method according to claim 2, wherein the determining the key point information in the target identification from the target image based on the constructed regression network model comprises:
determining, based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image; and
determining, based on the constructed regression network model, the key point information in the target identification from the determined region fonned by the four right angles of the target identification.
8 The method according to claim 1. wherein before determining the information of the preset field from the image of the target identification according to the image of the target identification and the preset identification template matching the target identification, the method further comprises:
ad justing a size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
9. An information detection apparatus, comprising:
a key point determining module, configured to determine key point information in a target identification from a target image based on a preset deep learning algorithm;
an identification obtaining module, configured to obtain an image of the target identification from the target image according to the key point information; and
a field information determining module, configured to determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
10. The apparatus according to claim 9, wherein the key point determining module comprises:
a model constructing unit, configured to determine, based on data of a preset sample image, a relationship among key points corresponding to four right angles of an identification in the sample image and edges of the identification in the sample image and an avatar in the identification in the sample image, to construct a regression network model; and a key point determining unit, configured to determine the key point information in the target identification from the target image based on the constructed regression network model.
11. The apparatus according to claim 10, wherein the regression network model comprises a first convolutional layer, a first pooling layer, a first dropout layer, a second convolutional layer, a second pooling layer, a second dropout layer, a third convolutional layer a third dropout layer, a first fully connected layer, and a second fully connected layer, wherein the first convolutional layer is connected to an input layer, the second fully connected layer is connected to an output layer, and layers are connected in an order of: the first convolutional layer, the first pooling layer, the first dropout layer, the second convolutional layer, the second pooling layer, the second dropout layer, the third convolutional layer, the third dropout layer, the first fully connected layer, and the second fully connected layer.
12. The apparatus according to claim 1 1 , wherein the first dropout layer, the second dropout layer, and the third dropout layer are used to increase preset noise information.
13. The apparatus according to claim 12, wherein the first fully connected layer comprises a plurality of cells for mapping a learned distributed feature representation into a space of the sample image.
14. The apparatus according to claim 13, wherein the second fully connected layer comprises eight cells, and the eight cells respectively correspond to the key points corresponding to the four right angles of the target identification and eight parameters.
15. The apparatus according to claim 10, wherein the key point determining unit is configured to
determine based on the constructed regression network model, a region formed by the four right angles of the target identification from the target image; and
determine, based on the constructed regression network model, key point information in the target identification from the determined region formed by the four right angles of the target identification.
16. The apparatus according to claim 9, further comprising:
an image adjusting module, configured to adjust a size of the image of the target identification based on preset reference size information of the identification to obtain an image of the target identification matching the reference size information.
17. An information detection device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determine key point information in a target identification from a target image based on a preset deep learning algorithm;
obtain an image of the target identification from the target image according to the key point information; and
determine information of a preset field from the image of the target identification according to the image of the target identification and a preset identification template matching the target identification.
PCT/US2019/049291 2018-09-04 2019-09-03 Information detection method, apparatus and device Ceased WO2020051114A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG11202011407VA SG11202011407VA (en) 2018-09-04 2019-09-03 Information detection method, apparatus and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811025620.5 2018-09-04
CN201811025620.5A CN109389038A (en) 2018-09-04 2018-09-04 A kind of detection method of information, device and equipment

Publications (2)

Publication Number Publication Date
WO2020051114A1 true WO2020051114A1 (en) 2020-03-12
WO2020051114A9 WO2020051114A9 (en) 2020-04-16

Family

ID=65418731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2019/049291 Ceased WO2020051114A1 (en) 2018-09-04 2019-09-03 Information detection method, apparatus and device

Country Status (5)

Country Link
US (2) US11250291B2 (en)
CN (1) CN109389038A (en)
SG (1) SG11202011407VA (en)
TW (1) TWI733127B (en)
WO (1) WO2020051114A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10853698B2 (en) * 2016-11-09 2020-12-01 Konica Minolta Laboratory U.S.A., Inc. System and method of using multi-frame image features for object detection
CN109886274A (en) * 2019-03-25 2019-06-14 山东浪潮云信息技术有限公司 Social security card identification method and system based on opencv and deep learning
CN110263782B (en) * 2019-05-09 2024-05-07 平安科技(深圳)有限公司 Card detection method and device based on deep learning
CN110689010B (en) * 2019-09-27 2021-05-11 支付宝(杭州)信息技术有限公司 A method and device for identifying a certificate
CN111191652A (en) * 2019-12-20 2020-05-22 中国建设银行股份有限公司 Certificate image identification method and device, electronic equipment and storage medium
CN113449275B (en) * 2020-03-24 2023-07-07 深圳法大大网络科技有限公司 User identity authentication method and device and terminal equipment
CN111401319B (en) * 2020-04-15 2024-04-12 北京深智恒际科技有限公司 Method for solving text blocking during PSENT network progressive expansion post-processing
CN111667479A (en) * 2020-06-10 2020-09-15 创新奇智(成都)科技有限公司 Pattern verification method and device for target image, electronic device and storage medium
CN111709434B (en) * 2020-06-28 2022-10-04 哈尔滨工业大学 Robust multi-scale template matching method based on nearest neighbor feature point matching
CN112580618A (en) * 2020-10-30 2021-03-30 中电万维信息技术有限责任公司 Electronic license verification method based on OCR
CN112508005B (en) 2020-12-22 2023-11-17 北京百度网讯科技有限公司 Methods, devices, equipment and storage media for processing images
CN112541240B (en) * 2020-12-26 2024-07-19 晟通科技集团有限公司 Part drawing method, computer device and storage medium
CN113239339A (en) * 2021-02-26 2021-08-10 平安普惠企业管理有限公司 Certificate shooting method and device, computer equipment and storage medium
CN115391211A (en) * 2022-08-31 2022-11-25 上海高德威智能交通系统有限公司 Problem positioning method and device of algorithm component and storage medium
CN116524017B (en) * 2023-03-13 2023-09-19 明创慧远科技集团有限公司 Underground detection, identification and positioning system for mine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180108101A1 (en) * 2016-10-17 2018-04-19 Confirm, Inc. System and method for classification and authentication of identification documents using a machine learning based convolutional neural network

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9330331B2 (en) * 2013-11-11 2016-05-03 Wipro Limited Systems and methods for offline character recognition
US9245175B1 (en) * 2014-10-21 2016-01-26 Rockwell Collins, Inc. Image capture and individual verification security system integrating user-worn display components and communication technologies
GB201512278D0 (en) * 2015-07-14 2015-08-19 Apical Ltd Hybrid neural network
CN105894042B (en) * 2016-04-27 2019-05-07 北京小米移动软件有限公司 Method and device for detecting document image occlusion
CN106203454B (en) * 2016-07-25 2019-05-21 重庆中科云从科技有限公司 The method and device of certificate format analysis
US10530579B2 (en) * 2016-08-12 2020-01-07 Venafi, Inc. Cryptographic key control based on debasing condition likelihood estimation
CN108021913A (en) 2016-10-28 2018-05-11 北京嘀嘀无限科技发展有限公司 Certificate photograph information identifying method and device
CN106910185B (en) 2017-01-13 2019-01-01 陕西师范大学 A kind of DBCC disaggregated model construction method based on CNN deep learning
CN107330429B (en) 2017-05-17 2021-03-09 北京捷通华声科技股份有限公司 Certificate item positioning method and device
CN107169493A (en) * 2017-05-31 2017-09-15 北京小米移动软件有限公司 information identifying method and device
US10839251B2 (en) * 2017-06-26 2020-11-17 Rank One Computing Corporation Method and system for implementing image authentication for authenticating persons or items
US20190065932A1 (en) * 2017-08-31 2019-02-28 Paypal, Inc. Densely connected neural networks with output forwarding
CN108229299B (en) 2017-10-31 2021-02-26 北京市商汤科技开发有限公司 Identification method and device for certificate, electronic device, computer storage medium
CN107832721B (en) * 2017-11-16 2021-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for outputting information
CN108320290B (en) 2017-12-29 2021-10-22 中国银联股份有限公司 Target image extraction and correction method and device, computer equipment and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180108101A1 (en) * 2016-10-17 2018-04-19 Confirm, Inc. System and method for classification and authentication of identification documents using a machine learning based convolutional neural network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Graphics Recognition. Ten Years Review and Future Perspectives", vol. 3926, 31 December 2006, SPRINGER BERLIN HEIDELBERG, Berlin, Heidelberg, ISBN: 978-3-540-34711-8, article TAE JONG KIM ET AL: "Crosscheck of Passport Information for Personal Identification", pages: 162 - 172, XP055632874, DOI: 10.1007/11767978_15 *
SINDHU: "Information Extraction from ID Cards - Using YOLOv2", 4 July 2018 (2018-07-04), pages 1 - 4, XP055632832, Retrieved from the Internet <URL:https://blog.francium.tech/information-extraction-from-id-cards-using-yolov2-e3c846cb3796> [retrieved on 20191016] *

Also Published As

Publication number Publication date
WO2020051114A9 (en) 2020-04-16
SG11202011407VA (en) 2020-12-30
US20200074216A1 (en) 2020-03-05
TWI733127B (en) 2021-07-11
US20200167595A1 (en) 2020-05-28
CN109389038A (en) 2019-02-26
TW202011264A (en) 2020-03-16
US11250291B2 (en) 2022-02-15

Similar Documents

Publication Publication Date Title
US11250291B2 (en) Information detection method, apparatus, and device
WO2022213879A1 (en) Target object detection method and apparatus, and computer device and storage medium
CN116168017A (en) Deep learning-based PCB element detection method, system and storage medium
US20240104951A1 (en) Image and semantic based table recognition
US11551027B2 (en) Object detection based on a feature map of a convolutional neural network
CN111859002B (en) Method and device for generating point of interest name, electronic device and medium
US11734799B2 (en) Point cloud feature enhancement and apparatus, computer device and storage medium
KR20170134158A (en) System and method to recognize objects in an image
WO2022142550A1 (en) Image recognition method and apparatus, and storage medium
JP7429307B2 (en) Character string recognition method, device, equipment and medium based on computer vision
WO2022142551A1 (en) Form processing method and apparatus, and medium and computer device
US10217224B2 (en) Method and system for sharing-oriented personalized route planning via a customizable multimedia approach
CN117315090A (en) Image generation method and device based on cross-modal style learning
CN112348008A (en) Identification method, device, terminal device and storage medium of certificate information
CN111914890A (en) Image patch matching method between images, image registration method and product
WO2025209282A1 (en) Positioning initialization method and apparatus, storage medium and computer program product
US20200005078A1 (en) Content aware forensic detection of image manipulations
CN119180333A (en) Method, apparatus, device and storage medium for visual data processing
CN118097293A (en) Small sample data classification method and system based on residual graph convolutional network and self-attention
CN114936119A (en) Page element positioning method and device, computer equipment and storage medium
CN117975044B (en) Image processing method and device based on feature space
CN118298002B (en) A method and device for optimizing network security image target detection model algorithm
CN115240183B (en) A method, apparatus, device, and medium for recognizing distorted text images.
US20240177514A1 (en) Learning a form structure
Dong et al. Corner points localization in electronic topographic maps with deep neural networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19769679

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19769679

Country of ref document: EP

Kind code of ref document: A1