CN107977591A - A kind of image in 2 D code recognition methods and mobile terminal - Google Patents

A kind of image in 2 D code recognition methods and mobile terminal Download PDF

Info

Publication number
CN107977591A
CN107977591A CN201711306827.5A CN201711306827A CN107977591A CN 107977591 A CN107977591 A CN 107977591A CN 201711306827 A CN201711306827 A CN 201711306827A CN 107977591 A CN107977591 A CN 107977591A
Authority
CN
China
Prior art keywords
image
code
recognition
point
fixation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711306827.5A
Other languages
Chinese (zh)
Other versions
CN107977591B (en
Inventor
谢莲花
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711306827.5A priority Critical patent/CN107977591B/en
Publication of CN107977591A publication Critical patent/CN107977591A/en
Application granted granted Critical
Publication of CN107977591B publication Critical patent/CN107977591B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The present invention, which provides a kind of image in 2 D code recognition methods and mobile terminal, this method, to be included:Obtain the first image in 2 D code;The characteristic information of N number of identification point in first image in 2 D code is obtained, N number of identification point includes M fixation and recognition point;According to the characteristic information of the M fixation and recognition point, characteristic offset values are determined;According to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generates the second image in 2 D code;Image recognition is carried out to second image in 2 D code, obtains recognition result.In this way, characteristic offset values can be determined according to the characteristic information of M fixation and recognition point.And then feature calibration can be carried out to the first image in 2 D code according to this feature offset, obtain the second image in 2 D code.Image recognition finally can be carried out to calibrating the second obtained image in 2 D code by feature.Influence caused by display device difference or external environmental interference can be reduced, improves recognition success rate.

Description

A kind of image in 2 D code recognition methods and mobile terminal
Technical field
The present embodiments relate to field of communication technology, more particularly to a kind of image in 2 D code recognition methods and movement are eventually End.
Background technology
Image in 2 D code only can include two kinds of colors of black and white, and such a image in 2 D code is black and white image in 2 D code.Black and white The information non-zero i.e. 1 of the single identification point of image in 2 D code, the storage data of whole image in 2 D code are limited.Except black and white Quick Response Code Outside image, there is the image in 2 D code of both forms of color 2 D code image and grayscale image in 2 D code.Compared to black The information storage higher of white image in 2 D code, color 2 D code image and grayscale image in 2 D code.But in identification colour two When tieing up code image or grayscale image in 2 D code, it is possible that problem.For example, for color 2 D code image, different is aobvious Show that equipment has color distortion, show color 2 D code image can there are the problem of colour cast.In addition, extraneous each colored lights It is radiated on color 2 D code image, can also makes color 2 D code image color cast.For grayscale image in 2 D code, different displays Equipment has luminance difference, and the grayscale image in 2 D code shown can there are the problem of grayscale shift, eventually result in know by mistake The appearance of sorrow of separation condition.Therefore, in the prior art, when color 2 D code image or grayscale image in 2 D code being identified, by mistake Discrimination is higher.
The content of the invention
The embodiment of the present invention provides a kind of image in 2 D code recognition methods and mobile terminal, right to solve in the prior art When color 2 D code image or grayscale image in 2 D code are identified, the problem of false recognition rate is higher.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of image in 2 D code recognition methods, including:
Obtain the first image in 2 D code;
The characteristic information of N number of identification point in first image in 2 D code is obtained, N number of identification point includes M positioning Identification point;
According to the characteristic information of the M fixation and recognition point, characteristic offset values are determined;
According to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generates the second Quick Response Code figure Picture;
Image recognition is carried out to second image in 2 D code, obtains recognition result;
Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
First acquisition module, for obtaining the first image in 2 D code;
Second acquisition module, it is described N number of for obtaining the characteristic information of N number of identification point in first image in 2 D code Identification point includes M fixation and recognition point;
Determining module, for the characteristic information according to the M fixation and recognition point, determines characteristic offset values;
Calibration module, for according to the characteristic offset values, feature calibration, life to be carried out to the characteristic information of N number of identification point Into the second image in 2 D code;
Identification module, for carrying out image recognition to second image in 2 D code, obtains recognition result;
Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor The step of existing above-mentioned image in 2 D code recognition methods.
Fourth aspect, the embodiment of the present invention also provides a kind of computer read/write memory medium, described computer-readable Computer program is stored with storage medium, the computer program realizes above-mentioned image in 2 D code identification when being executed by processor The step of method.
In embodiments of the present invention, by obtaining the first image in 2 D code;Obtain N number of knowledge in first image in 2 D code The characteristic information of other point, N number of identification point include M fixation and recognition point;Believed according to the feature of the M fixation and recognition point Breath, determines characteristic offset values;According to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generation the Two image in 2 D code;Image recognition is carried out to second image in 2 D code, obtains recognition result;Wherein, N is whole more than 1 Number, M is the integer more than 1 and M is less than N.In this way, characteristic offset can be determined according to the characteristic information of M fixation and recognition point Amount.And then feature calibration can be carried out to the first image in 2 D code according to this feature offset, obtain the second image in 2 D code.Most Image recognition can be carried out to calibrating the second obtained image in 2 D code by feature afterwards.Can reduce display device difference or Influence caused by person's external environmental interference, improves recognition success rate.
Brief description of the drawings
Fig. 1 is one of flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention;
Fig. 2 is the two of the flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention;
Fig. 3 is each digital correspondence figure in a kind of color category and 16 systems provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of three fixation and recognition points in a kind of color 2 D code image provided in an embodiment of the present invention;
Fig. 5 is the three of the flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention;
Fig. 6 is a kind of grayscale species provided in an embodiment of the present invention and each digital correspondence figure in 16 systems;
Fig. 7 is the schematic diagram of three fixation and recognition points in a kind of grayscale image in 2 D code provided in an embodiment of the present invention;
Fig. 8 is one of structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 9 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 10 is the three of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 11 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is one of flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention, such as Fig. 1 institutes Show, comprise the following steps:
Step 101, obtain the first image in 2 D code.
In a step 101, the first image in 2 D code can be obtained.First image in 2 D code can be color 2 D code figure Picture, or grayscale image in 2 D code.
Step 102, the characteristic information for obtaining N number of identification point in first image in 2 D code, N number of identification point include M fixation and recognition point, wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
In a step 102, the characteristic information of N number of identification point in the first image in 2 D code, and N number of identification point bag can be obtained Include M fixation and recognition point.Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.In the embodiment of the present invention, M can Using value as 3.That is the first image in 2 D code can include three fixation and recognition points, and these three fixation and recognition points can distinguish position In the position in the upper left corner of the first image in 2 D code, the upper right corner and the lower left corner.
For color 2 D code image, the color of three fixation and recognition points can be respectively red, yellow and blueness.And position The color of fixation and recognition point at the upper left position of color 2 D code image can be red;Positioned at color 2 D code image The color of fixation and recognition point of upper right angular position can be yellow;Positioned at the lower-left angular position of color 2 D code image The color of fixation and recognition point can be blueness.N number of identification point can be obtained in the first image in 2 D code in hue coordinate system Hue coordinate.
For grayscale image in 2 D code, the grayscale of three fixation and recognition points can be respectively 3 ranks, 5 ranks and 8 ranks.And it is located at The grayscale of fixation and recognition point at the upper left position of grayscale image in 2 D code can be 5 ranks;Positioned at grayscale image in 2 D code The grayscale of the fixation and recognition point of upper right angular position can be 3 ranks;Lower-left angular position positioned at grayscale image in 2 D code is determined The grayscale of position identification point can be 8 ranks.The grey decision-making of N number of identification point in the first image in 2 D code can be obtained.
Step 103, the characteristic information according to the M fixation and recognition point, determine characteristic offset values.
In step 103, characteristic offset values can be determined according to the characteristic information of M fixation and recognition point.
For color 2 D code image, hue coordinate and the M prestored that can calculate M fixation and recognition point respectively are a Hue coordinate difference between standard color coordinate.Identify the positioning at the upper left position of color 2 D code image Hue coordinate (X of the color of identification point in hue coordinate system1, Y1) after, the hue coordinate (X can be utilized1, Y1) subtract Hue coordinate (the X of the canonical red prestoredStandard 1, YStandard 1), obtain with being located at the upper left position of color 2 D code image The corresponding hue coordinate difference (X of fixation and recognition pointPoor 1, YPoor 1);Identify the upper right angular position positioned at color 2 D code image Fixation and recognition point hue coordinate (X of the color in hue coordinate system2, Y2) after, the hue coordinate (X can be utilized2, Y2) subtract the hue coordinate (X of the standard yellow prestoredStandard 2, YStandard 2), obtain and the upper right positioned at color 2 D code image The corresponding hue coordinate difference (X of fixation and recognition point of angular positionPoor 2, YPoor 2);Identify positioned at the lower-left of color 2 D code image Hue coordinate (X of the color of the fixation and recognition point of angular position in hue coordinate system3, Y3) after, the color can be utilized to sit Mark (X3, Y3) subtract the hue coordinate (X of the standard blueness prestoredStandard 3, YStandard 3), obtain and be located at color 2 D code image Lower-left angular position the corresponding hue coordinate difference (X of fixation and recognition pointPoor 3, YPoor 3)。
And then the average value of the corresponding M hue coordinate difference of M fixation and recognition point can be calculated, obtain color offset Amount.Can pair hue coordinate difference corresponding with the fixation and recognition point at the upper left position of color 2 D code image (XPoor 1, YPoor 1), the corresponding hue coordinate difference of fixation and recognition point with the upper right angular position positioned at color 2 D code image (XPoor 2, YPoor 2) and hue coordinate difference corresponding with the fixation and recognition point of the lower-left angular position positioned at color 2 D code image (XPoor 3, YPoor 3) these three hue coordinate differences are averaged, obtain color offset amount (XOffset, YOffset)。
For grayscale image in 2 D code, the M mark that the grey decision-making of M fixation and recognition point can be calculated respectively and prestored Grayscale difference between quasi- grey decision-making.Identify the fixation and recognition point at the upper left position of grayscale image in 2 D code Grey decision-making is Z1Afterwards, grey decision-making Z can be utilized1Subtract the standard gray scale value Z prestoredMark 1, that is, subtract what is prestored Standard gray scale value 5, obtains grayscale difference corresponding with the fixation and recognition point at the upper left position of grayscale image in 2 D code ZPoor 1;The grey decision-making for identifying the fixation and recognition point of the upper right angular position positioned at grayscale image in 2 D code is Z2Afterwards, Ke Yili The standard gray scale value Z prestored is subtracted with grey decision-making ZMark 2, that is, the standard gray scale value 3 prestored is subtracted, obtains and is located at The corresponding grayscale difference Z of fixation and recognition point of the upper right angular position of grayscale image in 2 D codePoor 2;Identify positioned at grayscale two dimension The grey decision-making of the fixation and recognition point of the lower-left angular position of code image is Z3Afterwards, grey decision-making Z can be utilized3Subtract and deposit in advance The standard gray scale value Z of storageMark 3, that is, the standard gray scale value 8 prestored is subtracted, obtains the lower-left with being located at grayscale image in 2 D code The corresponding grayscale difference Z of fixation and recognition point of angular positionPoor 3
And then the average value of the corresponding M grayscale difference of M fixation and recognition point can be calculated, obtain grayscale offset.I.e. Can couple grayscale difference Z corresponding with the fixation and recognition point at the upper left position of grayscale image in 2 D codePoor 1, with being located at The corresponding grayscale difference Z of fixation and recognition point of the upper right angular position of grayscale image in 2 D codePoor 2And with positioned at grayscale Quick Response Code The corresponding grayscale difference Z of fixation and recognition point of the lower-left angular position of imagePoor 3These three grayscale differences are averaged, and obtain ash Rank offset ZOffset
Step 104, according to the characteristic offset values, feature calibration, generation second are carried out to the characteristic information of N number of identification point Image in 2 D code.
At step 104, feature calibration, generation can be carried out to the characteristic information of N number of identification point according to characteristic offset values Second image in 2 D code.
, can be according to color offset amount (X for color 2 D code imageOffset, YOffset), to the characteristic information of N number of identification point Colorific adjustment is carried out, generates the second image in 2 D code.
, can be according to grayscale offset Z for grayscale image in 2 D codeOffset, ash is carried out to the characteristic information of N number of identification point Rank is calibrated, and generates the second image in 2 D code.
Step 105, carry out image recognition to second image in 2 D code, obtains recognition result.
In step 105, image recognition can be carried out to the second image in 2 D code, obtains recognition result.
For color 2 D code image, reduce in color 2 D code image the real color of N number of identification point and then Color 2 D code image Jing Guo color rendition is identified.Display device difference so can be reduced or external environment is done Influence caused by disturbing, improves recognition success rate.
For grayscale image in 2 D code, reduce in grayscale image in 2 D code the real grayscale of N number of identification point and then Grayscale image in 2 D code by grayscale reduction is identified.Display device difference so can be reduced or external environment is done Influence caused by disturbing, improves recognition success rate.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
The image in 2 D code recognition methods of the embodiment of the present invention, obtains the first image in 2 D code;Obtain first two dimension The characteristic information of N number of identification point, N number of identification point include M fixation and recognition point in code image;Known according to described M positioning The characteristic information of other point, determines characteristic offset values;According to the characteristic offset values, spy is carried out to the characteristic information of N number of identification point Sign calibration, generates the second image in 2 D code;Image recognition is carried out to second image in 2 D code, obtains recognition result;Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.In this way, can be according to the characteristic information of M fixation and recognition point, really Determine characteristic offset values.And then feature calibration can be carried out to the first image in 2 D code according to this feature offset, obtain the two or two Tie up code image.Image recognition finally can be carried out to calibrating the second obtained image in 2 D code by feature.It can reduce aobvious Influence caused by showing equipment difference or external environmental interference, improves recognition success rate.
Referring to Fig. 2, Fig. 2 is the two of the flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention.This implementation The color of example and the main distinction of previous embodiment in N number of identification point in correcting color image in 2 D code is illustrated Process.As shown in Fig. 2, comprise the following steps:
Step 201, obtain the first image in 2 D code.
In step 201, the first image in 2 D code can be obtained.For example, color 2 D code image can be obtained.
It should be noted that when black and white image in 2 D code is represented compared with multiple data quantity, the identification point of black and white image in 2 D code Density is bigger.If the pixel of the camera of mobile terminal is relatively low, identifying may go out during highdensity black and white image in 2 D code The situation of existing None- identified.Black and white image in 2 D code can also be converted to color 2 D code image by the present invention.
For example, 16 kinds of colors can be chosen as base colors, and 16 systems can be represented using this 16 kinds of colors.Such as figure It is each digital correspondence figure in a kind of color category and 16 systems shown in 3.Assuming that black and white image in 2 D code has eight knowledges Other, " black " represents 1, and " white " represents 0.The data of eight identification points are assumed to be 11001001, then are converted into hexadecimal representation It is then C9.Namely original " black black and white in vain is black in vain ", can be represented with " yellowish-brown ".Thus by highdensity black and white Image in 2 D code is converted to the color 2 D code image of low-density, and the information content that image in 2 D code is carried during conversion Do not change, i.e. the information content that the color 2 D code image of low-density is carried is carried with highdensity black and white image in 2 D code Information content be identical.The recognition success rate of the relatively low camera of pixel can be improved.
Step 202, obtain hue coordinate of N number of identification point in hue coordinate system in first image in 2 D code, institute Stating N number of identification point includes M fixation and recognition point, wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
In step 202, color of N number of identification point in hue coordinate system in the first image in 2 D code can be obtained to sit Mark, and N number of identification point includes M fixation and recognition point.Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.This In inventive embodiments, M can be using value as 3, i.e., color 2 D code image can include three fixation and recognition points, and these three are positioned Identification point can be respectively positioned at the position in the upper left corner of color 2 D code image, the upper right corner and the lower left corner.
Optionally, the color value value of each fixation and recognition point is different in the M fixation and recognition point.
In color 2 D code image, the color value value of each fixation and recognition point is different in M fixation and recognition point.For example, The color of three fixation and recognition points can be respectively red, yellow and blueness.And positioned at the upper left corner of color 2 D code image position The color for putting the fixation and recognition point at place can be red;Positioned at the fixation and recognition point of the upper right angular position of color 2 D code image Color can be yellow;Color positioned at the fixation and recognition point of the lower-left angular position of color 2 D code image can be indigo plant Color.As shown in figure 4, the schematic diagram for three fixation and recognition points in a kind of color 2 D code image.
Step 203, the hue coordinate for calculating the M fixation and recognition point respectively and the M standard color seat prestored Hue coordinate difference between mark.
In step 203, for color 2 D code image, can calculate respectively the hue coordinate of M fixation and recognition point with Hue coordinate difference between the M standard color coordinate prestored.Identify positioned at the upper left of color 2 D code image Hue coordinate (X of the color of the fixation and recognition point of angular position in hue coordinate system1, Y1) after, the color can be utilized to sit Mark (X1, Y1) subtract the hue coordinate (X of the canonical red prestoredStandard 1, YStandard 1), obtain and be located at color 2 D code image Upper left position at the corresponding hue coordinate difference (X of fixation and recognition pointPoor 1, YPoor 1);Identify and be located at color 2 D code image Upper right angular position fixation and recognition point hue coordinate (X of the color in hue coordinate system2, Y2) after, can utilize should Hue coordinate (X2, Y2) subtract the hue coordinate (X of the standard yellow prestoredStandard 2, YStandard 2), obtain and be located at color 2 D The corresponding hue coordinate difference (X of fixation and recognition point of the upper right angular position of code imagePoor 2, YPoor 2);Identify and be located at color 2 D Hue coordinate (X of the color of the fixation and recognition point of the lower-left angular position of code image in hue coordinate system3, Y3) after, can be with Utilize the hue coordinate (X3, Y3) subtract the hue coordinate (X of the standard blueness prestoredStandard 3, YStandard 3), obtain with being located at coloured silk The corresponding hue coordinate difference (X of fixation and recognition point of the lower-left angular position of color image in 2 D codePoor 3, YPoor 3)。
Step 204, the average value for calculating the corresponding M hue coordinate difference of the M fixation and recognition point, it is inclined to obtain color Shifting amount.
In step 204, the average value of the corresponding M hue coordinate difference of M fixation and recognition point can be calculated, obtains color Color offset.Can pair hue coordinate corresponding with the fixation and recognition point at the upper left position of color 2 D code image Difference (XPoor 1, YPoor 1), the corresponding hue coordinate difference of fixation and recognition point with the upper right angular position positioned at color 2 D code image (XPoor 2, YPoor 2) and hue coordinate difference corresponding with the fixation and recognition point of the lower-left angular position positioned at color 2 D code image (XPoor 3, YPoor 3) these three hue coordinate differences are averaged, obtain color offset amount (XOffset, YOffset)。
Step 205, according to the color offset amount, colorific adjustment, generation second are carried out to the characteristic information of N number of identification point Image in 2 D code.
In step 205, can be according to color offset amount (XOffset, YOffset), color is carried out to the characteristic information of N number of identification point Calibration, generates the second image in 2 D code.
Step 206, carry out image recognition to second image in 2 D code, obtains recognition result.
In step 206, image recognition can be carried out to the second image in 2 D code, obtains recognition result.
For color 2 D code image, reduce in color 2 D code image the real color of N number of identification point and then Color 2 D code image Jing Guo color rendition is identified.Display device difference so can be reduced or external environment is done Influence caused by disturbing, improves recognition success rate.
The image in 2 D code recognition methods of the embodiment of the present invention, can calculate color offset amount.Then can be according to the color Color offset, carries out colorific adjustment to the first image in 2 D code, obtains the second image in 2 D code.Finally can be to by color school The second image in 2 D code that standard is obtained carries out image recognition.Display device difference or external environmental interference can so be reduced Caused by influence, improve recognition success rate.
Referring to Fig. 5, Fig. 5 is the three of the flow chart of image in 2 D code recognition methods provided in an embodiment of the present invention.This implementation Example and the main distinction of previous embodiment are in the grayscale for illustrating the N number of identification point corrected in grayscale image in 2 D code The process of value.As shown in figure 5, comprise the following steps:
Step 501, obtain the first image in 2 D code.
In step 501, the first image in 2 D code can be obtained.For example, grayscale image in 2 D code can be obtained.
It should be noted that when black and white image in 2 D code is represented compared with multiple data quantity, the identification point of black and white image in 2 D code Density is bigger.If the pixel of the camera of mobile terminal is relatively low, identifying may go out during highdensity black and white image in 2 D code The situation of existing None- identified.Black and white image in 2 D code can also be converted to grayscale image in 2 D code by the present invention.
For example, 16 kinds of grayscale can be chosen as benchmark grayscale, and 16 systems can be represented using this 16 kinds of grayscale.Such as figure It is a kind of grayscale species and each digital correspondence figure in 16 systems shown in 6.Assuming that black and white image in 2 D code has eight knowledges Other, " black " represents 1, and " white " represents 0.The data of eight identification points are assumed to be 11001001, then are converted into hexadecimal representation It is then C9.Namely original " black black and white in vain is black in vain ", can use that " grayscale 12, grayscale 9 " represent.Thus will be highly dense The black and white image in 2 D code of degree is converted to the grayscale image in 2 D code of low-density, and image in 2 D code is carried during conversion Information content do not change, i.e. the information content that the grayscale image in 2 D code of low-density is carried and highdensity black and white Quick Response Code figure As the information content carried is identical.The recognition success rate of the relatively low camera of pixel can be improved.
Step 502, the grey decision-making for obtaining N number of identification point in first image in 2 D code, N number of identification point include M A fixation and recognition point, wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
In step 502, the grey decision-making of N number of identification point in the first image in 2 D code can be obtained, and N number of identification point includes M fixation and recognition point.Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.In the embodiment of the present invention, M can be with Value is 3.I.e. grayscale image in 2 D code can include three fixation and recognition points, and these three fixation and recognition points can be located at respectively The position in the upper left corner of grayscale image in 2 D code, the upper right corner and the lower left corner.
Optionally, the grey decision-making value of each fixation and recognition point is different in the M fixation and recognition point.
In grayscale image in 2 D code, the grey decision-making value of each fixation and recognition point is different in M fixation and recognition point.For example, The grey decision-making of three fixation and recognition points can be respectively 3 ranks, 5 ranks and 8 ranks.And positioned at the upper left position of grayscale image in 2 D code The grey decision-making of the fixation and recognition point at place can be 5 ranks;Positioned at the fixation and recognition point of the upper right angular position of grayscale image in 2 D code Grey decision-making can be 3 ranks;Grey decision-making positioned at the fixation and recognition point of the lower-left angular position of grayscale image in 2 D code can be 8 Rank.As shown in fig. 7, the schematic diagram for three fixation and recognition points in a kind of grayscale image in 2 D code.
Step 503, the grey decision-making for calculating the M fixation and recognition point respectively and M standard gray scale value prestoring it Between grayscale difference.
In step 503, for grayscale image in 2 D code, can calculate respectively the grey decision-making of M fixation and recognition point with it is pre- Grayscale difference between the M standard gray scale value first stored.Identify at the upper left position of grayscale image in 2 D code The grey decision-making of fixation and recognition point be Z1Afterwards, grey decision-making Z can be utilized1Subtract the standard gray scale value Z prestoredMark 1, i.e., The standard gray scale value 5 prestored is subtracted, is obtained and the fixation and recognition point at the upper left position of grayscale image in 2 D code Corresponding grayscale difference ZPoor 1;Identify the grey decision-making of the fixation and recognition point of the upper right angular position positioned at grayscale image in 2 D code For Z2Afterwards, grey decision-making Z can be utilized2Subtract the standard gray scale value Z prestoredMark 2, that is, subtract the standard gray prestored Rank value 3, obtains grayscale difference Z corresponding with the fixation and recognition point of the upper right angular position positioned at grayscale image in 2 D codePoor 2;Know The grey decision-making for not going out the fixation and recognition point of the lower-left angular position positioned at grayscale image in 2 D code is Z3Afterwards, the ash can be utilized Rank value Z3Subtract the standard gray scale value Z prestoredMark 3, that is, the standard gray scale value 8 prestored is subtracted, obtains and is located at grayscale two Tie up the corresponding grayscale difference Z of fixation and recognition point of the lower-left angular position of code imagePoor 3
Step 504, the average value for calculating the corresponding M grayscale difference of the M fixation and recognition point, obtain grayscale offset Amount.
In step 504, the average value of the corresponding M grayscale difference of M fixation and recognition point can be calculated, it is inclined to obtain grayscale Shifting amount.Can couple grayscale difference Z corresponding with the fixation and recognition point at the upper left position of grayscale image in 2 D codePoor 1、 Grayscale difference Z corresponding with the fixation and recognition point of the upper right angular position positioned at grayscale image in 2 D codePoor 2And with positioned at grayscale The corresponding grayscale difference Z of fixation and recognition point of the lower-left angular position of image in 2 D codePoor 3These three grayscale differences are averaged, Obtain grayscale offset ZOffset
Step 505, according to the grayscale offset, grayscale calibration, generation second are carried out to the characteristic information of N number of identification point Image in 2 D code.
In step 505, can be according to grayscale offset ZOffset, grayscale calibration is carried out to the characteristic information of N number of identification point, Generate the second image in 2 D code.
Step 506, carry out image recognition to second image in 2 D code, obtains recognition result.
In step 506, image recognition can be carried out to the second image in 2 D code, obtains recognition result.
For grayscale image in 2 D code, reduce in grayscale image in 2 D code the real grayscale of N number of identification point and then Grayscale image in 2 D code by grayscale reduction is identified.Display device difference so can be reduced or external environment is done Influence caused by disturbing, improves recognition success rate.
The image in 2 D code recognition methods of the embodiment of the present invention, can calculate grayscale offset.Then can be according to the ash Rank offset, carries out grayscale calibration to the first image in 2 D code, obtains the second image in 2 D code.Finally can be to by grayscale school The second image in 2 D code that standard is obtained carries out image recognition.Display device difference or external environmental interference can so be reduced Caused by influence, improve recognition success rate.
Referring to Fig. 8, Fig. 8 is the structure chart for the mobile terminal that the present invention implements offer, as shown in figure 8, mobile terminal 800 wraps The first acquisition module 801, the second acquisition module 802, determining module 803, calibration module 804 and identification module 805 are included, wherein:
First acquisition module 801, for obtaining the first image in 2 D code;
Second acquisition module 802, for obtaining the characteristic information of N number of identification point in first image in 2 D code, the N A identification point includes M fixation and recognition point;
Determining module 803, for the characteristic information according to the M fixation and recognition point, determines characteristic offset values;
Calibration module 804, for according to the characteristic offset values, feature calibration to be carried out to the characteristic information of N number of identification point, Generate the second image in 2 D code;
Identification module 805, for carrying out image recognition to second image in 2 D code, obtains recognition result;
Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
Optionally, as shown in figure 9, second acquisition module 802 is specifically used for obtaining N in first image in 2 D code Hue coordinate of a identification point in hue coordinate system;
The determining module 803 includes:
First calculating sub module 8031, for calculating the hue coordinate of the M fixation and recognition point respectively with prestoring M standard color coordinate between hue coordinate difference;
Second calculating sub module 8032, for calculating the flat of the corresponding M hue coordinate difference of the M fixation and recognition point Average, obtains color offset amount;
The calibration module 804 is specifically used for according to the color offset amount, and color is carried out to the characteristic information of N number of identification point Coloured silk calibration, generates the second image in 2 D code.
Optionally, the color value value of each fixation and recognition point is different in the M fixation and recognition point.
Optionally, as shown in Figure 10, second acquisition module 802 is specifically used for obtaining in first image in 2 D code The grey decision-making of N number of identification point;
The determining module 803 includes:
3rd calculating sub module 8033, for the grey decision-making for calculating the M fixation and recognition point respectively and the M prestored Grayscale difference between a standard gray scale value;
4th calculating sub module 8034, for calculating being averaged for the M fixation and recognition corresponding M grayscale difference of point Value, obtains grayscale offset;
The calibration module 804 is specifically used for according to the grayscale offset, and ash is carried out to the characteristic information of N number of identification point Rank is calibrated, and generates the second image in 2 D code.
Optionally, the grey decision-making value of each fixation and recognition point is different in the M fixation and recognition point.
Mobile terminal 800 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1, Fig. 2 and Fig. 5, To avoid repeating, which is not described herein again.And mobile terminal 800 can realize the characteristic information according to M fixation and recognition point, determine Characteristic offset values.And then feature calibration can be carried out to the first image in 2 D code according to this feature offset, obtain the second two dimension Code image.Image recognition finally can be carried out to calibrating the second obtained image in 2 D code by feature.Display can be reduced Influence caused by equipment difference or external environmental interference, improves recognition success rate.
Figure 11 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention.
The mobile terminal 1100 includes but not limited to:Radio frequency unit 1101, mixed-media network modules mixed-media 1102, audio output unit 1103rd, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, storage The components such as device 1109, processor 1110 and power supply 1111.It will be understood by those skilled in the art that the movement shown in Figure 11 Terminal structure does not form the restriction to mobile terminal, and mobile terminal can include components more more or fewer than diagram, or Combine some components, or different components arrangement.In embodiments of the present invention, mobile terminal includes but not limited to mobile phone, puts down Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 1110, for obtaining the first image in 2 D code;Obtain N number of identification point in first image in 2 D code Characteristic information, N number of identification point include M fixation and recognition point;According to the characteristic information of the M fixation and recognition point, determine Characteristic offset values;According to the characteristic offset values, feature calibration, the two dimension of generation second are carried out to the characteristic information of N number of identification point Code image;Image recognition is carried out to second image in 2 D code, obtains recognition result;Wherein, N is the integer more than 1, and M is Integer and M more than 1 are less than N.
Characteristic offset values can be determined according to the characteristic information of M fixation and recognition point.And then it can be deviated according to this feature Amount carries out feature calibration to the first image in 2 D code, obtains the second image in 2 D code.Finally can be to being obtained by feature calibration The second image in 2 D code obtained carries out image recognition.Shadow caused by display device difference or external environmental interference can be reduced Ring, improve recognition success rate.
It should be understood that in the embodiment of the present invention, radio frequency unit 1101 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 1110;In addition, by uplink Data sending is to base station.In general, radio frequency unit 1101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1101 can also pass through wireless communication system and network and other Equipment communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 1102 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 1103 can be receiving by radio frequency unit 1101 or mixed-media network modules mixed-media 1102 or in memory It is sound that the voice data stored in 1109, which is converted into audio signal and exports,.Moreover, audio output unit 1103 can be with The relevant audio output of specific function performed with mobile terminal 1100 is provided (for example, call signal receives sound, message sink Sound etc.).Audio output unit 1103 includes loudspeaker, buzzer and receiver etc..
Input unit 1104 is used to receive audio or video signal.Input unit 1104 can include graphics processor (Graphics Processing Unit, GPU) 11041 and microphone 11042, graphics processor 11041 in video to capturing In pattern or image capture mode by image capture apparatus (such as camera) obtain static images or video view data into Row processing.Picture frame after processing may be displayed on display unit 1106.Picture frame after the processing of graphics processor 11041 It can be stored in memory 1109 (or other storage mediums) or be carried out via radio frequency unit 1101 or mixed-media network modules mixed-media 1102 Send.Microphone 11042 can receive sound, and can be voice data by such acoustic processing.Audio after processing Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1101 in the case of telephone calling model Formula exports.
Mobile terminal 1100 further includes at least one sensor 1105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 11061, proximity sensor can when mobile terminal 1100 is moved in one's ear, Close display panel 11061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity when static, available for identification mobile terminal appearance State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Sensor 1105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas Meter, hygrometer, thermometer, infrared ray sensor etc. are pressed, details are not described herein.
Display unit 1106 is used for the information for showing by information input by user or being supplied to user.Display unit 1106 can Including display panel 11061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) is managed to configure display panel 11061.
User input unit 1107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 1107 include contact panel 11071 with And other input equipments 11072.Contact panel 11071, also referred to as touch-screen, collect user on it or neighbouring touch are grasped Make (for example user uses any suitable objects or annex such as finger, stylus on contact panel 11071 or in contact panel Operation near 11071).Contact panel 11071 may include both touch detecting apparatus and touch controller.Wherein, touch The touch orientation of detection device detection user is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1110, Receive the order that processor 1110 is sent and performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The polytypes such as sound wave realize contact panel 11071.Except contact panel 11071, user input unit 1107 can also include Other input equipments 11072.Specifically, other input equipments 11072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 11071 can be covered on display panel 11061, when contact panel 11071 detects After touch operation on or near it, processor 1110 is sent to determine the type of touch event, is followed by subsequent processing device 1110 Corresponding visual output is provided on display panel 11061 according to the type of touch event.Although in fig. 11, contact panel 11071 realize the function that outputs and inputs of mobile terminal with display panel 11061 is the component independent as two, but In some embodiments, contact panel 11071 can be integrated with display panel 11061 and realize outputting and inputting for mobile terminal Function, does not limit specifically herein.
Interface unit 1108 is the interface that external device (ED) is connected with mobile terminal 1100.For example, external device (ED) can include Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card Port, the port for connecting the device with identification module, audio input/output (I/O) port, video i/o port, earphone Port etc..Interface unit 1108 can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) simultaneously And one or more elements that the input received is transferred in mobile terminal 1100 or it can be used in mobile terminal Data are transmitted between 1100 and external device (ED).
Memory 1109 can be used for storage software program and various data.Memory 1109 can mainly include storage program Area and storage data field, wherein, storing program area can storage program area, needed at least one function application program (such as Sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created data (ratio according to mobile phone Such as voice data, phone directory) etc..In addition, memory 1109 can include high-speed random access memory, can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 1109, and calls and is stored in storage Data in device 1109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 1110 may include one or more processing units;Preferably, processor 1110 can integrate application processor and modulation /demodulation Processor, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1110.
Mobile terminal 1100 can also include the power supply 1111 (such as battery) to all parts power supply, it is preferred that power supply 1111 can be logically contiguous by power-supply management system and processor 1110, so as to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1100 includes some unshowned function modules, details are not described herein.
Optionally, processor 1110 is additionally operable to:
Obtain hue coordinate of N number of identification point in hue coordinate system in first image in 2 D code;
The hue coordinate of the M fixation and recognition point is calculated respectively between M standard color coordinate prestoring Hue coordinate difference;
The average value of the corresponding M hue coordinate difference of the M fixation and recognition point is calculated, obtains color offset amount;
According to the color offset amount, colorific adjustment is carried out to the characteristic information of N number of identification point, generates the second Quick Response Code figure Picture.
Optionally, processor 1110 is additionally operable to:
The color value value of each fixation and recognition point is different in the M fixation and recognition point.
Optionally, processor 1110 is additionally operable to:
Obtain the grey decision-making of N number of identification point in first image in 2 D code;
The grayscale that the grey decision-making of the M fixation and recognition point is calculated respectively between M standard gray scale value prestoring Difference;
The average value of the corresponding M grayscale difference of the M fixation and recognition point is calculated, obtains grayscale offset;
According to the grayscale offset, grayscale calibration is carried out to the characteristic information of N number of identification point, generates the second Quick Response Code figure Picture.
Optionally, processor 1110 is additionally operable to:
The grey decision-making value of each fixation and recognition point is different in the M fixation and recognition point.
Mobile terminal 1100 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, this In repeat no more.And mobile terminal 1100 can determine characteristic offset values according to the characteristic information of M fixation and recognition point.And then Feature calibration can be carried out to the first image in 2 D code according to this feature offset, obtain the second image in 2 D code.Finally can be with Image recognition is carried out to calibrating the second obtained image in 2 D code by feature.Display device difference or the external world can be reduced Influence caused by environmental disturbances, improves recognition success rate.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1110, memory 1109, storage On memory 1109 and the computer program that can be run on the processor 1110, the computer program is by processor 1110 Each process of above-mentioned image in 2 D code recognition methods embodiment is realized during execution, and identical technique effect can be reached, to keep away Exempt to repeat, which is not described herein again.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake of above-mentioned image in 2 D code recognition methods embodiment when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (12)

  1. A kind of 1. image in 2 D code recognition methods, it is characterised in that including:
    Obtain the first image in 2 D code;
    The characteristic information of N number of identification point in first image in 2 D code is obtained, N number of identification point includes M fixation and recognition Point;
    According to the characteristic information of the M fixation and recognition point, characteristic offset values are determined;
    According to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generates the second image in 2 D code;
    Image recognition is carried out to second image in 2 D code, obtains recognition result;
    Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
  2. 2. according to the method described in claim 1, it is characterized in that, described obtain N number of identification in first image in 2 D code The characteristic information of point, including:
    Obtain hue coordinate of N number of identification point in hue coordinate system in first image in 2 D code;
    The characteristic information according to the M fixation and recognition point, determines characteristic offset values, including:
    The color that the hue coordinate of the M fixation and recognition point is calculated respectively between M standard color coordinate prestoring Coordinate difference;
    The average value of the corresponding M hue coordinate difference of the M fixation and recognition point is calculated, obtains color offset amount;
    It is described according to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generates the second Quick Response Code figure Picture, including:
    According to the color offset amount, colorific adjustment is carried out to the characteristic information of N number of identification point, generates the second image in 2 D code.
  3. 3. according to the method described in claim 2, it is characterized in that, each fixation and recognition point in the M fixation and recognition point Color value value is different.
  4. 4. according to the method described in claim 1, it is characterized in that, described obtain N number of identification in first image in 2 D code The characteristic information of point, including:
    Obtain the grey decision-making of N number of identification point in first image in 2 D code;
    The characteristic information according to the M fixation and recognition point, determines characteristic offset values, including:
    The grayscale difference that the grey decision-making of the M fixation and recognition point is calculated respectively between M standard gray scale value prestoring;
    The average value of the corresponding M grayscale difference of the M fixation and recognition point is calculated, obtains grayscale offset;
    It is described according to the characteristic offset values, feature calibration is carried out to the characteristic information of N number of identification point, generates the second Quick Response Code figure Picture, including:
    According to the grayscale offset, grayscale calibration is carried out to the characteristic information of N number of identification point, generates the second image in 2 D code.
  5. 5. according to the method described in claim 4, it is characterized in that, each fixation and recognition point in the M fixation and recognition point Grey decision-making value is different.
  6. A kind of 6. mobile terminal, it is characterised in that including:
    First acquisition module, for obtaining the first image in 2 D code;
    Second acquisition module, for obtaining the characteristic information of N number of identification point in first image in 2 D code, N number of identification Point includes M fixation and recognition point;
    Determining module, for the characteristic information according to the M fixation and recognition point, determines characteristic offset values;
    Calibration module, for according to the characteristic offset values, carries out the characteristic information of N number of identification point feature calibration, generation the Two image in 2 D code;
    Identification module, for carrying out image recognition to second image in 2 D code, obtains recognition result;
    Wherein, N is the integer more than 1, and M is the integer more than 1 and M is less than N.
  7. 7. mobile terminal according to claim 6, it is characterised in that second acquisition module is specifically used for described in acquisition Hue coordinate of N number of identification point in hue coordinate system in first image in 2 D code;
    The determining module includes:
    First calculating sub module, for the hue coordinate for calculating the M fixation and recognition point respectively and the M standard prestored Hue coordinate difference between hue coordinate;
    Second calculating sub module, for calculating the average value of the corresponding M hue coordinate difference of the M fixation and recognition point, is obtained Obtain color offset amount;
    The calibration module is specifically used for according to the color offset amount, and colorific adjustment is carried out to the characteristic information of N number of identification point, Generate the second image in 2 D code.
  8. 8. mobile terminal according to claim 7, it is characterised in that each fixation and recognition in the M fixation and recognition point The color value value of point is different.
  9. 9. mobile terminal according to claim 6, it is characterised in that second acquisition module is specifically used for described in acquisition The grey decision-making of N number of identification point in first image in 2 D code;
    The determining module includes:
    3rd calculating sub module, for the grey decision-making for calculating the M fixation and recognition point respectively and the M standard gray prestored Grayscale difference between rank value;
    4th calculating sub module, for calculating the average value of the corresponding M grayscale difference of the M fixation and recognition point, obtains ash Rank offset;
    The calibration module is specifically used for according to the grayscale offset, and grayscale calibration is carried out to the characteristic information of N number of identification point, Generate the second image in 2 D code.
  10. 10. mobile terminal according to claim 9, it is characterised in that each fixation and recognition in the M fixation and recognition point The grey decision-making value of point is different.
  11. 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of image in 2 D code recognition methods the step of.
  12. 12. a kind of computer read/write memory medium, it is characterised in that meter is stored with the computer read/write memory medium Calculation machine program, realizes the Quick Response Code figure as any one of claim 1 to 5 when the computer program is executed by processor As the step of recognition methods.
CN201711306827.5A 2017-12-11 2017-12-11 Two-dimensional code image identification method and mobile terminal Active CN107977591B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711306827.5A CN107977591B (en) 2017-12-11 2017-12-11 Two-dimensional code image identification method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711306827.5A CN107977591B (en) 2017-12-11 2017-12-11 Two-dimensional code image identification method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107977591A true CN107977591A (en) 2018-05-01
CN107977591B CN107977591B (en) 2020-04-28

Family

ID=62009868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711306827.5A Active CN107977591B (en) 2017-12-11 2017-12-11 Two-dimensional code image identification method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107977591B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846663A (en) * 2018-06-21 2018-11-20 维沃移动通信有限公司 A kind of two dimensional code method of adjustment, device and mobile terminal
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043940A (en) * 2009-10-14 2011-05-04 北大方正集团有限公司 Method and device for reading two-dimensional code symbol data
CN104517089A (en) * 2013-09-29 2015-04-15 北大方正集团有限公司 Two-dimensional code decoding system and method
US20170039463A1 (en) * 2014-05-14 2017-02-09 Kyodo Printing Co., Ltd. Two-dimensional code, two-dimensional-code analysis system, and two-dimensional-code generation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043940A (en) * 2009-10-14 2011-05-04 北大方正集团有限公司 Method and device for reading two-dimensional code symbol data
CN104517089A (en) * 2013-09-29 2015-04-15 北大方正集团有限公司 Two-dimensional code decoding system and method
US20170039463A1 (en) * 2014-05-14 2017-02-09 Kyodo Printing Co., Ltd. Two-dimensional code, two-dimensional-code analysis system, and two-dimensional-code generation system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846663A (en) * 2018-06-21 2018-11-20 维沃移动通信有限公司 A kind of two dimensional code method of adjustment, device and mobile terminal
CN117560402A (en) * 2024-01-12 2024-02-13 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange
CN117560402B (en) * 2024-01-12 2024-04-19 凌锐蓝信科技(北京)有限公司 SD-WAN-based system and method for industrial security isolation and data exchange

Also Published As

Publication number Publication date
CN107977591B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN107580184A (en) A kind of image pickup method and mobile terminal
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
CN108184037B (en) A kind of image display method and mobile terminal
CN107665697A (en) The adjusting method and mobile terminal of a kind of screen intensity
CN107798303A (en) A kind of method and mobile terminal for adjusting screen backlight
CN107958470A (en) A kind of color correcting method, mobile terminal
CN107678614A (en) A kind of method, equipment and computer-readable recording medium for realizing information alert
CN107977652A (en) The extracting method and mobile terminal of a kind of screen display content
CN107895352A (en) A kind of image processing method and mobile terminal
CN107846583A (en) A kind of image shadow compensating method and mobile terminal
CN108040209A (en) A kind of image pickup method and mobile terminal
CN108055388A (en) A kind of methods of exhibiting, device and the mobile terminal of virtual red packet
CN108629171A (en) A kind of unread message processing method and terminal
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN107067842A (en) Colour method of adjustment, mobile terminal and storage medium
CN108198127A (en) A kind of image processing method, device and mobile terminal
CN108037966A (en) A kind of interface display method, device and mobile terminal
CN107845363A (en) A kind of display control method and mobile terminal
CN107704812A (en) A kind of face identification method and mobile terminal
CN107153500A (en) It is a kind of to realize the method and apparatus that image is shown
CN107835402A (en) A kind of image processing method, device and mobile terminal
CN108257104A (en) A kind of image processing method and mobile terminal
CN108494936A (en) A kind of detection method of luminous intensity, mobile terminal
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107977591A (en) A kind of image in 2 D code recognition methods and mobile terminal

Legal Events

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