Recognition method and terminal of a two-dimensional code

A technology for identifying terminals and two-dimensional codes, which is applied to the identification method of two-dimensional codes and the field of terminals, can solve the problems of two-dimensional code positioning and identification failure, unable to correctly identify FIP, etc., and achieves the effect of improving the detection and recognition rate.

Active Publication Date: 2017-09-19
HUAWEI TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the recognition process of the above-mentioned two-dimensional code, the holder of the terminal is required to align the viewfinder frame with the image to be recognized when scanning the two-dimensional code, and requires that the image to be recognized does not contain other content other than the two-dimensional code, Once the terminal cannot meet the above requirements when recognizing the two-dimensional code (that is, in a complex scene), it will not be able to correctly identify the FIP in the image to be recognized above, which will lead to the failure of the positioning and recognition of the two-dimensional code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Recognition method and terminal of a two-dimensional code
  • Recognition method and terminal of a two-dimensional code
  • Recognition method and terminal of a two-dimensional code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] Embodiments of the present invention provide a method for identifying two-dimensional codes, such as figure 1 shown, including:

[0059] 101. The terminal collects an image to be recognized that includes a two-dimensional code;

[0060] 102. The terminal uses a preset classifier to extract the FIP in the image to be recognized, and the classifier is used to identify the FIP according to the feature descriptor of the image to be recognized;

[0061] 103. The terminal determines the four vertices of the two-dimensional code according to the FIP, so as to determine the position of the two-dimensional code in the image to be recognized, so as to recognize the two-dimensional code within the position of the two-dimensional code.

[0062] Specifically, in step 101, when the user needs to recognize the two-dimensional code through the terminal, a terminal with a camera function may be used to capture an image to be recognized including the two-dimensional code.

[0063] Amon...

Embodiment 2

[0080] Embodiments of the present invention provide a method for identifying two-dimensional codes, such as image 3 shown, including:

[0081]201. The terminal extracts the FIP of the two-dimensional code from the preset gallery as a positive sample, and the image that does not contain the two-dimensional code is a negative sample;

[0082] 202. The terminal extracts feature descriptors of positive samples and negative samples, where the feature descriptors include at least Haar features or gradient histogram features;

[0083] 203. The terminal uses a classification algorithm to train the feature descriptors of positive samples and negative samples to generate a classifier;

[0084] 204. The terminal collects the image to be recognized including the two-dimensional code;

[0085] 205. The terminal uses a preset classifier to extract the FIP in the image to be recognized, and the classifier is used to identify the FIP according to the feature descriptor of the image to be r...

Embodiment 3

[0110] Such as Figure 5 As shown, a hardware schematic diagram of a terminal is provided for an embodiment of the present invention.

[0111] The terminal is a terminal device with a camera, which can be a wireless terminal or a wired terminal, such as a mobile phone terminal, IPAD, etc. This embodiment uses a mobile phone terminal as an example to illustrate:

[0112] Such as Figure 5 , the mobile phone terminal includes a processor 01 , a transceiver 02 , a memory 03 and a bus 04 .

[0113] Wherein, the processor 01, the transceiver 02 and the memory 03 are connected through bus communication.

[0114] The processor 01 is the control center of the mobile terminal. The processor 01 processes the data received by the transceiver 02 and calls the software or program in the memory 03 to execute various functions of the mobile terminal.

[0115] The transceiver 02 can be used to receive and send signals and data during the process of sending and receiving information or coll...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a two-dimension code recognition method and terminal and relates to the field of electronic techniques. According to the two-dimension code recognition method and terminal, the terminal is allowed to carry out recognition of one or more two-dimension codes under a looser condition, and the detection and recognition rate of the two-dimension codes in a complex scene is increased. The method comprises the steps of collecting an image, containing a two-dimension code, to be recognized; extracting FIP in the image to be recognized by using a preset classifier, wherein the classifier is used for recognizing the FIP according to the character descriptors of the image to be recognized; determining the four vertexes of the two-dimension code according to the FIP so as to determine the position of the two-dimension code in the image to be recognized, and recognizing the two-dimension code in the position of the two-dimension code.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a two-dimensional code identification method and a terminal. Background technique [0002] Two-dimensional code (Two-dimensional code) is a black-and-white graphic distributed in two-dimensional direction with specific geometric figures according to certain rules. It uses several geometric figures corresponding to binary to represent text and numerical information. Automatic reading to realize automatic processing of information. Compared with the one-dimensional code, the two-dimensional code is a more advanced barcode format than the one-dimensional code. The two-dimensional code can store information in both horizontal and vertical directions, and the two-dimensional code can store information such as Chinese characters, numbers and pictures. Therefore, the application field of QR code is much wider. [0003] QR (Quick Response) code is a kind of two-dimensional code wid...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06K7/10G06K9/62
Inventor 张伟陈茂林刘金晓
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products