CN105046186B - A kind of recognition methods of Quick Response Code and device - Google Patents

A kind of recognition methods of Quick Response Code and device Download PDF

Info

Publication number
CN105046186B
CN105046186B CN201510535436.5A CN201510535436A CN105046186B CN 105046186 B CN105046186 B CN 105046186B CN 201510535436 A CN201510535436 A CN 201510535436A CN 105046186 B CN105046186 B CN 105046186B
Authority
CN
China
Prior art keywords
picture
quick response
response code
user
code
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.)
Active
Application number
CN201510535436.5A
Other languages
Chinese (zh)
Other versions
CN105046186A (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.)
Beijing Forever Technology Co Ltd
Original Assignee
Beijing Forever Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Forever Technology Co Ltd filed Critical Beijing Forever Technology Co Ltd
Priority to CN201510535436.5A priority Critical patent/CN105046186B/en
Publication of CN105046186A publication Critical patent/CN105046186A/en
Application granted granted Critical
Publication of CN105046186B publication Critical patent/CN105046186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Character Discrimination (AREA)

Abstract

The embodiment of the present application provides a kind of recognition methods of Quick Response Code, including responding the picture collection operation of user, and preserve the picture operated by the picture collection;It detects and whether there is Quick Response Code in the picture;When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.The application is in the picture collection operation of response user, when preserving picture, can judge whether contain Quick Response Code in the picture that picture collection operates, if contain Quick Response Code, data information that then can be to be stored in automatic identification Quick Response Code, it can be when user operates acquisition picture by picture collection, trigger the automatic identification to the Quick Response Code included in picture, so as to the Quick Response Code identification software without opening profession, the data information that is stored in Quick Response Code can be identified also without picture is imported in Quick Response Code identification software, simplify user's operation, improve the efficiency of Quick Response Code identification, and then improve user experience.

Description

A kind of recognition methods of Quick Response Code and device
Technical field
The application belongs to image identification technical field, the recognition methods of more specifically to a kind of Quick Response Code and device.
Background technology
With the development of internet, application of the Quick Response Code in internet is also more and more extensive.Quick Response Code is also referred to as two Bar code or two-dimensional bar code are tieed up, has many advantages, such as that density of encoding is high, information capacity is big, discrimination is high.User using mobile phone, The electronic equipments such as computer are by identifying that Quick Response Code can realize multiple functions, such as information inquiry, data download, e-Bank payment Deng.
In the prior art, when user needs to identify the Quick Response Code in exterior artwork with electronic equipment, it is necessary first to open The professional software for being used to identify Quick Response Code being pre-installed in electronic equipment, next selects the Quick Response Code of the professional software to identify Function, then the Quick Response Code in the exterior artwork is scanned with the professional software, in the Quick Response Code that could start to identify the exterior artwork The data information of storage.When user needs the Quick Response Code in the picture shown in the electronic equipment with electronic equipment identification, Firstly the need of will be preserved in the electronic device containing the picture of Quick Response Code, secondly opening, which is pre-installed in electronic equipment, is used for Identify the professional software of Quick Response Code, then the two-dimensional code authentication function of the reselection professional software is searched using the professional software And the picture pre-saved in the electronic device is imported, the Quick Response Code in the picture imported by professional software scanning can just be opened The data information stored in the Quick Response Code of picture that beginning identification imports.
As can be seen that the prior art needs many more manipulations by user that could start to identify the data stored in Quick Response Code Information, cumbersome, recognition efficiency is low, poor user experience.
Invention content
In view of this, the application provides recognition methods and the device of a kind of Quick Response Code, to simplify user's operation, improves two dimension The efficiency of code identification, improves user experience.
To achieve the above object, the embodiment of the present invention provides a kind of recognition methods of Quick Response Code, including:
The picture collection operation of user is responded, and preserves the picture operated by the picture collection;
It detects and whether there is Quick Response Code in the picture;
When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.
Preferably, the picture collection operation of the response user includes:
It responds the picture collection operation of the screen printing of user, the picture collection operation of shooting picture or preserves picture Picture collection operates.
Preferably, it whether there is Quick Response Code in the detection picture, including:
The picture is scanned, judges to whether there is the anchor point of Quick Response Code in the picture;
When there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
Preferably, the data information stored in the Quick Response Code in the identification picture, including:
The two-dimension code area in the picture is extracted, gray processing processing is carried out to the two-dimension code area, by the two dimension Code region is converted to gray bitmap;
Denoising is carried out to the gray bitmap using cross medium filtering, generates denoising image;
Binary conversion treatment is carried out to the denoising image using grey level histogram tool, generates binary image;
The position sensing figure in the binary image is determined, according to the position sensing figure to the binary picture As being positioned, and decode the data information stored in the binary image after positioning.
Preferably, it further includes:
External program is received by routine interface for the call instruction of Quick Response Code present in the picture, it will be from described The data information identified in Quick Response Code is sent to the external program by described program interface.
On the other hand the application discloses a kind of identification device of Quick Response Code, including:
Acquisition module for responding the operation of the picture collection of user, and preserves what is operated by the picture collection Picture;
Detection module whether there is Quick Response Code for detecting in the picture;
Identification module, when, there are during Quick Response Code, identifying the data stored in the Quick Response Code in the picture in the picture Information.
Preferably, the acquisition module includes:
Collecting unit, for responding the picture collection operation of the operation of the picture collection of the screen printing of user, shooting picture Or preserve the picture collection operation of picture.
Preferably, the detection module includes:
Scanning element for scanning the picture, judges to whether there is the anchor point of Quick Response Code in the picture;
Detection unit, for when there are during the anchor point of Quick Response Code, judge to have two dimension in the picture in the picture Code.
Preferably, the identification module includes:
Gray processing processing unit extracts the two-dimension code area in the picture, and gray processing is carried out to the two-dimension code area Processing, gray bitmap is converted to by the two-dimension code area;
Denoising unit carries out denoising to the gray bitmap using cross medium filtering, generates denoising figure Picture;
Binary conversion treatment unit carries out the denoising image binary conversion treatment, generation two using grey level histogram tool Value image;
Positioning unit is decoded, the position sensing figure in the binary image is determined, according to the position sensing figure The binary image is positioned, and decodes the data information stored in the binary image after positioning.
Preferably, it further includes:
Information exchange module, for receiving external program by routine interface for Quick Response Code present in the picture The data information identified from the Quick Response Code is sent to the external program by call instruction by described program interface.
According to above-mentioned technical proposal as can be seen that the embodiment of the present application provides a kind of recognition methods of Quick Response Code, including ringing It is operated using the picture collection at family, and preserves the picture operated by the picture collection;Detect in the picture whether There are Quick Response Codes;When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.It can To find out, the application is operated in the picture collection of response user, when preserving picture, can judge the picture that picture collection operates In whether contain Quick Response Code, if containing Quick Response Code, data information that can be to be stored in automatic identification Quick Response Code, can with When family operates acquisition picture by picture collection, the automatic identification of the Quick Response Code to being included in picture is triggered, so as to without opening The Quick Response Code identification software of profession, it is not required that deposited that can be identified in Quick Response Code in picture importing Quick Response Code identification software The data information of storage, simplifies user's operation, improves the efficiency of Quick Response Code identification, and then improve user experience.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the recognition methods of Quick Response Code provided by the embodiments of the present application;
Fig. 2 is the flow chart of the recognition methods of another Quick Response Code provided by the embodiments of the present application;
Fig. 3 is the flow chart of the recognition methods of another Quick Response Code provided by the embodiments of the present application;
Fig. 4 is a kind of structure diagram of the identification device of Quick Response Code provided by the embodiments of the present application;
Fig. 5 is the structure diagram of the identification device of another Quick Response Code provided by the embodiments of the present application.
Specific 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 only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of the recognition methods of Quick Response Code provided by the embodiments of the present application.
With reference to shown in Fig. 1, the recognition methods for a kind of Quick Response Code that the application provides, including step:
S101, the picture collection operation for responding user, and preserve the picture operated by the picture collection;
In the embodiment of the present application, the picture collection operation of system response user, that is, user use picture collection function When, system responds, and preserves the picture that picture collection operates, then performs step S102.It preserves through the picture The picture that acquisition operations obtain can also be picture progress Binary Conversion obtaining picture stream, picture stream is stored in system In memory, picture stream is not take up the memory space of hardware, and reading speed is fast.
Preferably, including respond user screen printing picture collection operation, shooting picture picture collection operation or Person preserves the picture collection operation of picture.
In the embodiment of the present application, the picture collection operation of user can include:Screen printing, shooting picture preserve figure Piece carries out screen printing when user browses, and when being shot photo using the shooting function of equipment or needed to preserve picture, all may be used To trigger the step S101 of the embodiment of the present application.
It whether there is Quick Response Code in S102, the detection picture;
In the embodiment of the present application, detection picture is to judge that the picture collection of user operates with the presence or absence of the purpose of Quick Response Code To picture in the presence or absence of Quick Response Code, when user has demand to identify Quick Response Code, common operation can be obtained with two dimension The picture of code, such as use screen printing mentioned above, shooting picture or preservation picture etc., therefore, if deposited in picture In Quick Response Code, then illustrate the demand of user's identification Quick Response Code in need.
Preferably, it whether there is Quick Response Code in the detection picture, including:
The picture is scanned, judges to whether there is the anchor point of Quick Response Code in the picture;
When there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
The mode of detection anchor point may be used to detect in picture with the presence or absence of Quick Response Code in the application, can also use with The mode that preset image in 2 D code is compared preferably uses to detect in picture with the presence or absence of Quick Response Code, the embodiment of the present application Judge that picture is detected with the presence or absence of the mode of Quick Response Code anchor point, there are three anchor points for Quick Response Code usually tool, utilize two dimension This characteristic of code, can detect to whether there is in picture has Quick Response Code.
S103, when, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.
In the embodiment of the present application, if it is detected that there are Quick Response Codes in picture, the data information stored in Quick Response Code is identified, In this way, user can not have to first open other identification softwares, then picture importing can just be identified again.
In the embodiment of the present application, when the data information stored in Quick Response Code is identified, can first scanned picture determine Two-dimension code area in picture, is then again identified two-dimension code area, can enhance the accuracy rate of identification in this way.
By the data information stored in the Quick Response Code that identifies, multiple functions, such as information inquiry, data can be realized Download, e-Bank payment etc..
It is understood that the picture collection operation of user may also be common screen printing, take pictures, download pictures Or the picture that friend sends is preserved, user does not identify the demand of Quick Response Code at this time, therefore, is not present when detecting in picture During Quick Response Code, then judge the only common picture without Quick Response Code of the picture collection operation acquisition of user, do not need to identify Quick Response Code in the picture directly preserves the picture in the electronic device.
According to above-mentioned technical proposal as can be seen that the embodiment of the present application provides a kind of recognition methods of Quick Response Code, including ringing It is operated using the picture collection at family, and preserves the picture operated by the picture collection;Detect in the picture whether There are Quick Response Codes;When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.It can To find out, the application is operated in the picture collection of response user, when preserving picture, can judge the picture that picture collection operates In whether contain Quick Response Code, if containing Quick Response Code, data information that can be to be stored in automatic identification Quick Response Code, can with When family operates acquisition picture by picture collection, the automatic identification of the Quick Response Code to being included in picture is triggered, so as to without opening The Quick Response Code identification software of profession, it is not required that deposited that can be identified in Quick Response Code in picture importing Quick Response Code identification software The data information of storage, simplifies user's operation, improves the efficiency of Quick Response Code identification, and then improve user experience.
Fig. 2 is the flow chart of the recognition methods of another Quick Response Code provided by the embodiments of the present application.
With reference to shown in Fig. 2, the recognition methods for a kind of Quick Response Code that the application provides, including step:
S201, the picture collection operation for responding user, and preserve the picture operated by the picture collection;
In the embodiment of the present application, the picture collection operation of system response user, that is, user use picture collection function When, system responds, and preserves the picture that picture collection operates, then performs step S202.It preserves through the picture The picture that acquisition operations obtain can also be picture progress Binary Conversion obtaining picture stream, picture stream is stored in system In memory, picture stream is not take up the memory space of hardware, and reading speed is fast.
Preferably, including respond user screen printing picture collection operation, shooting picture picture collection operation or Person preserves the picture collection operation of picture.
In the embodiment of the present application, the picture collection operation of user can include:Screen printing, shooting picture preserve figure Piece carries out screen printing when user browses, and when being shot photo using the shooting function of equipment or needed to preserve picture, all may be used To trigger the step S101 of the embodiment of the present application.
It whether there is Quick Response Code in S202, the detection picture;
In the embodiment of the present application, detection picture is to judge that the picture collection of user operates with the presence or absence of the purpose of Quick Response Code To picture in the presence or absence of Quick Response Code, when user has demand to identify Quick Response Code, common operation can be obtained with two dimension The picture of code, such as use screen printing mentioned above, shooting picture or preservation picture etc., therefore, if deposited in picture In Quick Response Code, then illustrate the demand of user's identification Quick Response Code in need.
Preferably, it whether there is Quick Response Code in the detection picture, including:
The picture is scanned, judges to whether there is the anchor point of Quick Response Code in the picture;
When there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
The mode of detection anchor point may be used to detect in picture with the presence or absence of Quick Response Code in the application, can also use with The mode that preset image in 2 D code is compared preferably uses to detect in picture with the presence or absence of Quick Response Code, the embodiment of the present application Judge that picture is detected with the presence or absence of the mode of Quick Response Code anchor point, there are three anchor points for Quick Response Code usually tool, utilize two dimension This characteristic of code, can detect to whether there is in picture has Quick Response Code.
S203, when, there are during Quick Response Code, the two-dimension code area in the picture being extracted, to the Quick Response Code in the picture Region carries out gray processing processing, and the two-dimension code area is converted to gray bitmap;
In the embodiment of the present application, if it is detected that there are Quick Response Codes in picture, the data information stored in Quick Response Code is identified, In this way, user can not have to first open other identification softwares, then can just be identified by picture importing.
S204, denoising is carried out to the gray bitmap using cross medium filtering, generates denoising image;
S205, binary conversion treatment is carried out to the denoising image using grey level histogram tool, generates binary image;
S206, position sensing figure in the binary image is determined, according to the position sensing figure to described two Value image is positioned, and decodes the data information stored in the binary image after positioning.
In the embodiment of the present application, it is preferred to use the data information stored in Quick Response Code is identified in aforesaid way, passes through Two-dimension code area described in preset gray processing function pair carries out gray processing processing, and the two-dimension code area is converted to gray level bit Figure carries out denoising, using grey level histogram tool to the denoising by cross medium filtering to the gray bitmap Image carries out binary conversion treatment, and then Quick Response Code is positioned and decoded, and can significantly increase the accuracy of Quick Response Code identification.
By identifying that Quick Response Code can realize multiple functions, such as information inquiry, data download, e-Bank payment etc..
It is understood that the picture collection operation of user may also be common screen printing, take pictures, download pictures Or the picture that friend sends is preserved, user does not identify the demand of Quick Response Code at this time, therefore, is not present when detecting in picture During Quick Response Code, then judge the only common picture without Quick Response Code of the picture collection operation acquisition of user, do not need to identify Quick Response Code in the picture directly preserves the picture in the electronic device.
According to above-mentioned technical proposal as can be seen that the embodiment of the present application provides a kind of recognition methods of Quick Response Code, including ringing It is operated using the picture collection at family, and preserves the picture operated by the picture collection;Detect in the picture whether There are Quick Response Codes;When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.It can To find out, the application is operated in the picture collection of response user, when preserving picture, can judge the picture that picture collection operates In whether contain Quick Response Code, if containing Quick Response Code, data information that can be to be stored in automatic identification Quick Response Code, can with When family operates acquisition picture by picture collection, the automatic identification of the Quick Response Code to being included in picture is triggered, so as to without opening The Quick Response Code identification software of profession, it is not required that deposited that can be identified in Quick Response Code in picture importing Quick Response Code identification software The data information of storage, simplifies user's operation, improves the efficiency of Quick Response Code identification, and then improve user experience.
Fig. 3 is the flow chart of the recognition methods of another Quick Response Code provided by the embodiments of the present application.
With reference to shown in Fig. 3, the recognition methods for a kind of Quick Response Code that the application provides, including step:
S301, the picture collection operation for responding user, and preserve the picture operated by the picture collection;
In the embodiment of the present application, the picture collection operation of system response user, that is, user use picture collection function When, system responds, and preserves the picture that picture collection operates, then performs step S302.It preserves through the picture The picture that acquisition operations obtain can also be picture progress Binary Conversion obtaining picture stream, picture stream is stored in system In memory, picture stream is not take up the memory space of hardware, and reading speed is fast.
Preferably, including respond user screen printing picture collection operation, shooting picture picture collection operation or Person preserves the picture collection operation of picture.
In the embodiment of the present application, the picture collection operation of user can include:Screen printing, shooting picture preserve figure Piece carries out screen printing when user browses, and when being shot photo using the shooting function of equipment or needed to preserve picture, all may be used To trigger the step S101 of the embodiment of the present application.
It whether there is Quick Response Code in S302, the detection picture;
In the embodiment of the present application, detection picture is to judge that the picture collection of user operates with the presence or absence of the purpose of Quick Response Code To picture in the presence or absence of Quick Response Code, when user has demand to identify Quick Response Code, common operation can be obtained with two dimension The picture of code, such as use screen printing mentioned above, shooting picture or preservation picture etc., therefore, if deposited in picture In Quick Response Code, then illustrate the demand of user's identification Quick Response Code in need.
Preferably, it whether there is Quick Response Code in the detection picture, including:
The picture is scanned, judges to whether there is the anchor point of Quick Response Code in the picture;
When there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
The mode of detection anchor point may be used to detect in picture with the presence or absence of Quick Response Code in the application, can also use with The mode that preset image in 2 D code is compared preferably uses to detect in picture with the presence or absence of Quick Response Code, the embodiment of the present application Judge that picture is detected with the presence or absence of the mode of Quick Response Code anchor point, there are three anchor points for Quick Response Code usually tool, utilize two dimension This characteristic of code, can detect to whether there is in picture has Quick Response Code.
S303, when, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture.
In the embodiment of the present application, if it is detected that there are Quick Response Codes in picture, the data information stored in Quick Response Code is identified, In this way, user can not have to first open other identification softwares, then picture importing can just be identified again.
In the embodiment of the present application, when the data information stored in Quick Response Code is identified, can first scanned picture determine Two-dimension code area in picture, is then again identified two-dimension code area, can enhance the accuracy rate of identification in this way.
By the data information stored in the Quick Response Code that identifies, multiple functions, such as information inquiry, data can be realized Download, e-Bank payment etc..
It is understood that the picture collection operation of user may also be common screen printing, take pictures, download pictures Or the picture that friend sends is preserved, user does not identify the demand of Quick Response Code at this time, therefore, is not present when detecting in picture During Quick Response Code, then judge the only common picture without Quick Response Code of the picture collection operation acquisition of user, do not need to identify Quick Response Code in the picture directly preserves the picture in the electronic device.
S304, external program is received by routine interface for the call instruction of Quick Response Code present in the picture, it will The data information identified from the Quick Response Code is sent to the external program by described program interface.
In the electronic device, usually there are a variety of application programs, when detecting Quick Response Code, it will usually have application program into The calling of row Quick Response Code, after Quick Response Code identification is carried out, the data information identified is usually also required to that application program is called to hold Row.
In the embodiment of the present application, the interface of information exchange for external program can also be provided, be sent to by routine interface External program, the call instruction of external program can be as:The Quick Response Code for open the network address after identification, sharing after identifying (is shared Qq wechat microblogging etc.).Step S204 can facilitate operation of the user after Quick Response Code is identified, user-friendly.
On the other hand the application also discloses a kind of identification device of Quick Response Code.
Fig. 4 is a kind of structure diagram of the identification device of Quick Response Code provided by the embodiments of the present application.
With reference to shown in Fig. 4, a kind of identification device of Quick Response Code disclosed in the present application, including,
Acquisition module 1 for responding the operation of the picture collection of user, and preserves what is operated by the picture collection Picture;
Preferably, acquisition module 1 includes,
Collecting unit, for responding the picture collection operation of the operation of the picture collection of the screen printing of user, shooting picture Or preserve the picture collection operation of picture.
Detection module 2 whether there is Quick Response Code for detecting in the picture;
Preferably, detection module 2 includes,
Scanning element for scanning the picture, judges to whether there is the anchor point of Quick Response Code in the picture;
Detection unit, for when there are during the anchor point of Quick Response Code, judge to have two dimension in the picture in the picture Code
Identification module 3, when, there are during Quick Response Code, identifying the data stored in the Quick Response Code in the picture in the picture Information.
Preferably, the identification module 3 includes:
Gray processing processing unit extracts the two-dimension code area in the picture, and gray processing is carried out to the two-dimension code area Processing, gray bitmap is converted to by the two-dimension code area;
Denoising unit carries out denoising to the gray bitmap using cross medium filtering, generates denoising figure Picture;
Binary conversion treatment unit carries out the denoising image binary conversion treatment, generation two using grey level histogram tool Value image;
Positioning unit is decoded, the position sensing figure in the binary image is determined, according to the position sensing figure The binary image is positioned, and decodes the data information stored in the binary image after positioning.
According to above-mentioned technical proposal as can be seen that the picture collection of the embodiment of the present application response user operates, and preserves logical Cross the picture that the picture collection operates;It detects and whether there is Quick Response Code in the picture;When there are two in the picture When tieing up code, the data information stored in the Quick Response Code in the picture is identified.As can be seen that picture of the application in response user Acquisition operations when preserving picture, can judge whether contain Quick Response Code in the picture that picture collection operates, if containing two dimension Code, then data information that can be to be stored in automatic identification Quick Response Code, can when user operates acquisition picture by picture collection, The automatic identification to the Quick Response Code included in picture is triggered, so as to the Quick Response Code identification software without opening profession, it is not required that Picture is imported to the data information that can be identified in Quick Response Code identification software and be stored in Quick Response Code, simplifies user's operation, The efficiency of Quick Response Code identification is improved, and then improves user experience.
Fig. 5 is the structure diagram of the identification device of another Quick Response Code provided by the embodiments of the present application.
With reference to shown in Fig. 5, a kind of identification device of Quick Response Code disclosed in the present application, including,
Acquisition module 1 for responding the operation of the picture collection of user, and preserves what is operated by the picture collection Picture;
Preferably, acquisition module 1 includes,
Collecting unit, for responding the picture collection operation of the operation of the picture collection of the screen printing of user, shooting picture Or preserve the picture collection operation of picture.
Detection module 2 whether there is Quick Response Code for detecting in the picture;
Preferably, detection module 2 includes,
Scanning element for scanning the picture, judges to whether there is the anchor point of Quick Response Code in the picture;
Detection unit, for when there are during the anchor point of Quick Response Code, judge to have two dimension in the picture in the picture Code
Identification module 3, when, there are during Quick Response Code, identifying the data stored in the Quick Response Code in the picture in the picture Information.
Preferably, the identification module 3 includes:
Gray processing processing unit extracts the two-dimension code area in the picture, and gray processing is carried out to the two-dimension code area Processing, gray bitmap is converted to by the two-dimension code area;
Denoising unit carries out denoising to the gray bitmap using cross medium filtering, generates denoising figure Picture;
Binary conversion treatment unit carries out the denoising image binary conversion treatment, generation two using grey level histogram tool Value image;
Positioning unit is decoded, the position sensing figure in the binary image is determined, according to the position sensing figure The binary image is positioned, and decodes the data information stored in the binary image after positioning.
Information exchange module 4, for receiving external program by routine interface for Quick Response Code present in the picture Call instruction, the data information identified from the Quick Response Code is sent to the external program by described program interface.
In the electronic device, usually there are a variety of application programs, when detecting Quick Response Code, it will usually have application program into The calling of row Quick Response Code, after Quick Response Code identification is carried out, the data information identified is usually also required to that application program is called to hold Row.
In the embodiment of the present application, information exchange module 4 can also provide the interface of information exchange for external program, pass through journey Sequence interface is sent to external program, and the call instruction of external program can be as:Open identification after network address, share identification after two Dimension code (share qq wechat microblogging etc.).Step S204 can facilitate operation of the user after Quick Response Code is identified, facilitate user Use.
It should be noted that the two dimension in above method embodiment may be used in the identification device of the Quick Response Code of the present embodiment The recognition methods of code, can be used to implement whole technical solutions in above method embodiment, the function of each function module It can be implemented according to the method in above method embodiment, specific implementation process can refer to the correlation in above-described embodiment Description, details are not described herein again.
For convenience of description, it is divided into various modules during description apparatus above with function to describe respectively.Certainly, implementing this The function of each module is realized can in the same or multiple software and or hardware during application.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device or For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates may or may not be it is physically separate, the component shown as unit can be or Person may not be physical unit, you can be located at a place or can also be distributed in multiple network element.It can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Profession Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It can directly be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.

Claims (6)

1. a kind of recognition methods of Quick Response Code, which is characterized in that including:
The picture collection operation of user is responded, and preserves the picture operated by the picture collection;
When preserving picture, detect and whether there is Quick Response Code in the picture;
When, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture;
The picture collection operation of the response user includes:
Respond the picture collection operation of the screen printing of user, the picture collection operation of shooting picture or the picture for preserving picture Acquisition operations;
The data information stored in Quick Response Code in the identification picture, including:
The two-dimension code area in the picture is extracted, gray processing processing is carried out to the two-dimension code area, by the Quick Response Code area Domain is converted to gray bitmap;
Denoising is carried out to the gray bitmap using cross medium filtering, generates denoising image;
Binary conversion treatment is carried out to the denoising image using grey level histogram tool, generates binary image;
Determine the position sensing figure in the binary image, according to the position sensing figure to the binary image into Row positioning, and decode the data information stored in the binary image after positioning.
2. recognition methods according to claim 1, which is characterized in that with the presence or absence of two dimension in the detection picture Code, including:
The picture is scanned, judges to whether there is the anchor point of Quick Response Code in the picture;
When there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
3. recognition methods according to claim 1, which is characterized in that further include:
External program is received by routine interface for the call instruction of Quick Response Code present in the picture, it will be from the two dimension The data information identified in code is sent to the external program by described program interface.
4. a kind of identification device of Quick Response Code, which is characterized in that including:
Acquisition module for responding the operation of the picture collection of user, and preserves the picture operated by the picture collection;
Detection module during for preserving picture, detecting and whether there is Quick Response Code in the picture;
Identification module, when, there are during Quick Response Code, identifying the data information stored in the Quick Response Code in the picture in the picture;
The identification module includes:
Gray processing processing unit extracts the two-dimension code area in the picture, and gray processing processing is carried out to the two-dimension code area, The two-dimension code area is converted into gray bitmap;
Denoising unit carries out denoising to the gray bitmap using cross medium filtering, generates denoising image;
Binary conversion treatment unit carries out binary conversion treatment to the denoising image using grey level histogram tool, generates binaryzation Image;
Positioning unit is decoded, the position sensing figure in the binary image is determined, according to the position sensing figure to institute It states binary image to be positioned, and decodes the data information stored in the binary image after positioning;
The acquisition module includes:
Collecting unit, for respond the picture collection of the screen printing of user operation, shooting picture picture collection operation or Preserve the picture collection operation of picture.
5. identification device according to claim 4, which is characterized in that the detection module includes:
Scanning element for scanning the picture, judges to whether there is the anchor point of Quick Response Code in the picture;
Detection unit, for when there are during the anchor point of Quick Response Code, judge that there are Quick Response Codes in the picture in the picture.
6. identification device according to claim 4, which is characterized in that further include:
Information exchange module, for receiving calling of the external program by routine interface for Quick Response Code present in the picture Instruction, the external program is sent to by the data information identified from the Quick Response Code by described program interface.
CN201510535436.5A 2015-08-27 2015-08-27 A kind of recognition methods of Quick Response Code and device Active CN105046186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510535436.5A CN105046186B (en) 2015-08-27 2015-08-27 A kind of recognition methods of Quick Response Code and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510535436.5A CN105046186B (en) 2015-08-27 2015-08-27 A kind of recognition methods of Quick Response Code and device

Publications (2)

Publication Number Publication Date
CN105046186A CN105046186A (en) 2015-11-11
CN105046186B true CN105046186B (en) 2018-06-29

Family

ID=54452716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510535436.5A Active CN105046186B (en) 2015-08-27 2015-08-27 A kind of recognition methods of Quick Response Code and device

Country Status (1)

Country Link
CN (1) CN105046186B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760867A (en) * 2016-02-19 2016-07-13 深圳市润农科技有限公司 Method and device for extracting two-dimension code and/or text in image
JP6645875B2 (en) * 2016-03-14 2020-02-14 株式会社東芝 Automatic ticket gates and programs
CN105898487B (en) * 2016-04-28 2019-02-19 北京光年无限科技有限公司 A kind of exchange method and device towards intelligent robot
CN106101850A (en) * 2016-06-28 2016-11-09 无锡天脉聚源传媒科技有限公司 A kind of method assisting user and TV interaction and robot device
CN107172259B (en) * 2017-04-11 2020-09-25 Tcl移动通信科技(宁波)有限公司 Terminal and information interaction method and storage device based on two-dimensional code
WO2019023864A1 (en) * 2017-07-31 2019-02-07 深圳传音通讯有限公司 Two-dimensional code identification method and system based on intelligent terminal camera
CN107633194A (en) * 2017-09-15 2018-01-26 维沃移动通信有限公司 A kind of recognition methods of Quick Response Code and terminal
CN109660701A (en) * 2017-10-10 2019-04-19 南京百利通信息技术有限责任公司 Law-enforcing recorder and whole video-with-audio recording method based on two-dimensional code scanning identification
CN107833042A (en) * 2017-10-20 2018-03-23 史庆靖 The beverage bottle cap Quick Response Code identification mode of payment and device opened based on bottle cap
CN108090391B (en) * 2017-12-29 2021-03-09 北京奇虎科技有限公司 Two-dimensional code identification method and device
CN110247882B (en) * 2018-03-09 2022-04-08 阿里巴巴集团控股有限公司 Communication method and system, data processing method
CN108647551A (en) * 2018-04-23 2018-10-12 佛山科学技术学院 A kind of recognition methods of Internet of Things graphic code and its system based on STM32
CN108959998A (en) * 2018-06-25 2018-12-07 天津英创汇智汽车技术有限公司 Two-dimensional code identification method, apparatus and system
CN108846664A (en) * 2018-06-26 2018-11-20 刘晓英 Mobile phone scan code system based on image procossing
CN109165651A (en) * 2018-06-29 2019-01-08 努比亚技术有限公司 A kind of identification code recognition methods, terminal and computer readable storage medium
CN109325491B (en) 2018-08-16 2023-01-03 腾讯科技(深圳)有限公司 Identification code identification method and device, computer equipment and storage medium
CN109472178B (en) * 2018-09-18 2021-12-14 广州思林杰科技股份有限公司 Two-dimensional code scanning method
CN111753578A (en) * 2019-03-27 2020-10-09 北京外号信息技术有限公司 Identification method of optical communication device and corresponding electronic equipment
CN111540065A (en) * 2020-05-26 2020-08-14 八维通科技有限公司 Subway gate code scanning identification method and mobile terminal
CN112492200B (en) * 2020-11-24 2022-10-04 维沃移动通信有限公司 Photographing method and device, electronic equipment and storage medium
CN114723766A (en) * 2022-04-14 2022-07-08 润芯微科技(江苏)有限公司 Two-dimensional code extraction and display method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624697A (en) * 2012-01-13 2012-08-01 孟智平 Medium interaction method based on two-dimensional codes and medium interaction system
CN103699869A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Method and device for recognizing two-dimension codes
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN104573597A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Two-dimension code identification method and identification device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624697A (en) * 2012-01-13 2012-08-01 孟智平 Medium interaction method based on two-dimensional codes and medium interaction system
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN104573597A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Two-dimension code identification method and identification device
CN103699869A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Method and device for recognizing two-dimension codes

Also Published As

Publication number Publication date
CN105046186A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105046186B (en) A kind of recognition methods of Quick Response Code and device
KR102516541B1 (en) Image segmentation and modification of a video stream
CN105225212B (en) A kind of image processing method and device
CN105516068B (en) Correlating method, the device of information exchange and human body biological characteristics data and account
EP3462371B1 (en) Graphical code processing method and apparatus, and storage medium
CN108985199A (en) Detection method, device and the storage medium of commodity loading or unloading operation
CN108255555B (en) A kind of system language switching method and terminal device
CN110781805B (en) Target object detection method, device, computing equipment and medium
CN109598162A (en) Identify method, apparatus, terminal device and the storage medium of two dimensional code
WO2019149020A1 (en) Information recognition method and system, and server and client
CN106649759A (en) Picture processing method and mobile terminal
CN108009546A (en) information identifying method and device
KR20160132370A (en) Methods of storing a set of biometric data templates and of matching biometrics, biometric matching apparatus and computer program
US20160189395A1 (en) Information processing apparatus, recording medium, and information processing method
CN106686545B (en) A kind of application method and device of Wireless Fidelity national code
TWI518602B (en) Image recognizing method, apparatus, terminal apparatus and server
CN107529071B (en) A kind of video data handling procedure and device
CN109214995A (en) The determination method, apparatus and server of picture quality
CN110764677A (en) Method and device for processing DOI in interactive information
CN104077557A (en) Method and device for acquiring card information
JP2019517079A (en) Shape detection
CN107291238B (en) Data processing method and device
CN104376291A (en) Data processing method and device
EP3461138B1 (en) Processing method and terminal
CN105939328A (en) Method and device for updating network attack feature library

Legal Events

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