CN105046186A - Two-dimensional code recognition method and device - Google Patents

Two-dimensional code recognition method and device Download PDF

Info

Publication number
CN105046186A
CN105046186A CN201510535436.5A CN201510535436A CN105046186A CN 105046186 A CN105046186 A CN 105046186A CN 201510535436 A CN201510535436 A CN 201510535436A CN 105046186 A CN105046186 A CN 105046186A
Authority
CN
China
Prior art keywords
picture
quick response
response code
user
data message
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
CN201510535436.5A
Other languages
Chinese (zh)
Other versions
CN105046186B (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

An embodiment of the invention provides a two-dimensional code recognition method. The two-dimensional code recognition method comprises: picture acquisition operation responding to a user, and storing a picture obtained by the picture acquisition operation; detecting whether the picture has a two-dimensional code or not; and when the picture has the two-dimensional code, recognizing data information stored in the two-dimensional code in the picture. When the image acquisition operation of the user is responded and the picture is stored, whether the picture obtained by the picture acquisition operation has the two-dimensional code or not needs to be determined; if the picture has the two-dimensional code, the data information stored in the two-dimensional code can be automatically recognized; when the picture is acquired by the user through the picture acquisition operation, automatic recognition of the two-dimensional code in the picture is triggered, so that the data information stored in the two-dimensional code can be recognized without opening a professional two-dimensional code recognition software and importing the picture into the two-dimensional code recognition software; and furthermore, the operation of the user is simplified and the efficiency of two-dimensional code recognition is improved, therefore user experience is improved.

Description

A kind of recognition methods of Quick Response Code and device
Technical field
The application belongs to image identification technical field, relates to a kind of recognition methods and device of Quick Response Code in particular.
Background technology
Along with the development of internet, the application of Quick Response Code in internet is also more and more extensive.Quick Response Code is also referred to as two-dimensional bar or two-dimensional bar code, and it has, and density of encoding is high, information capacity large, discrimination advantages of higher.User uses the electronic equipment such as mobile phone, computer such as, by identifying that Quick Response Code can realize several functions, information inquiry, data download, e-Bank payment etc.
In prior art, when user needs with Quick Response Code in electronic equipment identification exterior artwork, first need to open the professional software for identifying Quick Response Code be pre-installed in electronic equipment, secondly the two-dimensional code authentication function of this professional software is selected, scan the Quick Response Code in this exterior artwork with this professional software again, could start to identify the data message stored in the Quick Response Code of this exterior artwork.When user needs to be identified in electronic equipment the Quick Response Code in the picture shown in this electronic equipment, first the picture containing Quick Response Code is needed to preserve in the electronic device, next opens the professional software for identifying Quick Response Code be pre-installed in electronic equipment, select the two-dimensional code authentication function of this professional software again, then utilize this professional software to search and import the picture preserved in advance in the electronic device, scanned the Quick Response Code in the picture imported by this professional software, could start to identify the data message stored in the Quick Response Code of the picture imported.
Can find out, prior art needs the many more manipulations through user could start to identify the data message stored in Quick Response Code, complex operation, and recognition efficiency is low, poor user experience.
Summary of the invention
In view of this, the application provides a kind of recognition methods and device of Quick Response Code, to simplify user operation, improves the efficiency of Quick Response Code identification, improves Consumer's Experience.
For achieving the above object, the embodiment of the present invention provides a kind of recognition methods of Quick Response Code, comprising:
The picture collection operation of response user, and preservation operates by described picture collection the picture obtained;
Detect in described picture and whether there is Quick Response Code;
When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.
Preferably, the picture collection operation of described response user comprises:
The picture collection operation of the screen printing of response user, the picture collection of pictures taken operate or preserve the picture collection operation of picture.
Preferably, whether there is Quick Response Code in the described picture of described detection, comprising:
Scan described picture, judge the anchor point that whether there is Quick Response Code in described picture;
When there is the anchor point of Quick Response Code in described picture, judge to there is Quick Response Code in described picture.
Preferably, the data message stored in the Quick Response Code in the described picture of described identification, comprising:
Extract the two-dimension code area in described picture, gray processing process is carried out to described two-dimension code area, described two-dimension code area is converted to gray bitmap;
Utilize cruciform medium filtering to carry out denoising to described gray bitmap, generate denoising image;
Utilize grey level histogram instrument to carry out binary conversion treatment to described denoising image, generate binary image;
Determine the position sensing figure in described binary image, according to described position sensing figure, described binary image is positioned, and the data message stored in the described binary image after locating of decoding.
Preferably, also comprise:
Receive external program by the call instruction of routine interface for the Quick Response Code existed in described picture, the data message identified from described Quick Response Code is sent to described external program by described routine interface.
The application discloses a kind of recognition device of Quick Response Code on the other hand, comprising:
Acquisition module, for responding the picture collection operation of user, and preservation operates by described picture collection the picture obtained;
Detection module, for detecting in described picture whether there is Quick Response Code;
Identification module, when there is Quick Response Code in described picture, identifies the data message stored in the Quick Response Code in described picture.
Preferably, described acquisition module comprises:
Collecting unit, for the picture collection operation responding the picture collection operation of the screen printing of user, the picture collection of pictures taken operates or preserve picture.
Preferably, described detection module comprises:
Scanning element, for scanning described picture, judges the anchor point that whether there is Quick Response Code in described picture;
Detecting unit, for when there is the anchor point of Quick Response Code in described picture, judges to there is Quick Response Code in described picture.
Preferably, described identification module comprises:
Gray processing processing unit, extracts the two-dimension code area in described picture, carries out gray processing process to described two-dimension code area, and described two-dimension code area is converted to gray bitmap;
Denoising unit, utilizes cruciform medium filtering to carry out denoising to described gray bitmap, generates denoising image;
Binary conversion treatment unit, utilizes grey level histogram instrument to carry out binary conversion treatment to described denoising image, generates binary image;
Decoding positioning unit, determines the position sensing figure in described binary image, positions according to described position sensing figure to described binary image, and the data message stored in the described binary image after locating of decoding.
Preferably, also comprise:
Information interaction module, for receiving external program by the call instruction of routine interface for the Quick Response Code existed in described picture, sends to described external program by the data message identified from described Quick Response Code by described routine interface.
Can find out according to technique scheme, the embodiment of the present application provides a kind of recognition methods of Quick Response Code, comprises, the picture collection operation of response user, and preservation operates by described picture collection the picture obtained; Detect in described picture and whether there is Quick Response Code; When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.Can find out, the application is in the picture collection operation of response user, when preserving picture, can judge that whether picture collection operates in the picture obtained containing Quick Response Code, if containing Quick Response Code, then can automatically identify the data message stored in Quick Response Code, can when user gathers picture by picture collection operation, trigger the automatic identification to the Quick Response Code comprised in picture, thus the Quick Response Code identification software of specialty need not be opened, do not need picture to be imported the data message that just can identify in Quick Response Code identification software and store in Quick Response Code yet, simplify user operation, improve the efficiency of Quick Response Code identification, and then raising Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of the recognition methods of a kind of Quick Response Code that Fig. 1 provides for the embodiment of the present application;
The process flow diagram of the recognition methods of the another kind of Quick Response Code that Fig. 2 provides for the embodiment of the present application;
The process flow diagram of the recognition methods of another Quick Response Code that Fig. 3 provides for the embodiment of the present application;
Fig. 4 is the structural representation of the recognition device of a kind of Quick Response Code that the embodiment of the present application provides;
Fig. 5 is the structural representation of the recognition device of the another kind of Quick Response Code that the embodiment of the present application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The process flow diagram of the recognition methods of a kind of Quick Response Code that Fig. 1 provides for the embodiment of the present application.
With reference to shown in Fig. 1, the recognition methods of a kind of Quick Response Code that the application provides, comprises step:
The picture collection operation of S101, response user, and preservation operates by described picture collection the picture obtained;
In the embodiment of the present application, the operation of the picture collection of system responses user, when namely user uses picture collection function, system makes response, preserves picture collection and operate the picture obtained, then execution step S102.Preserve and operate by described picture collection the picture obtained, can also be picture is carried out Binary Conversion obtain picture stream, picture stream be kept in Installed System Memory, picture stream take the storage space of hardware, and reading speed is fast.
Preferably, comprise the picture collection operation of the screen printing of response user, the picture collection of pictures taken operates or the picture collection of preservation picture operates.
In the embodiment of the present application, the picture collection operation of user can comprise: screen printing, pictures taken or preservation picture, carry out screen printing when user browses, when using the shoot function of equipment to take pictures or need to preserve picture, the step S101 of the embodiment of the present application can be triggered.
S102, detect in described picture whether there is Quick Response Code;
In the embodiment of the present application, the object whether detection picture exists Quick Response Code judges the picture collection of user operates in the picture obtained whether there is Quick Response Code, when user has demand identification Quick Response Code, common operation to obtain the picture with Quick Response Code, such as above-mentioned use screen printing, pictures taken or the preservation picture etc. mentioned, therefore, if there is Quick Response Code in picture, then illustrate that user has the demand needing to identify Quick Response Code.
Preferably, whether there is Quick Response Code in the described picture of described detection, comprising:
Scan described picture, judge the anchor point that whether there is Quick Response Code in described picture;
When there is the anchor point of Quick Response Code in described picture, judge to there is Quick Response Code in described picture.
The application can adopt the mode of detection and location point to detect in picture whether there is Quick Response Code, also the mode of comparing with the image in 2 D code preset can be adopted to detect in picture whether there is Quick Response Code, the embodiment of the present application preferably adopts and judges that the mode whether picture exists Quick Response Code anchor point detects, Quick Response Code has three anchor points usually, utilize this characteristic of Quick Response Code, can detect in picture whether have Quick Response Code.
S103, when there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.
In the embodiment of the present application, if detect in picture to there is Quick Response Code, then identify the data message stored in Quick Response Code, like this, user just can first open other identification softwares, and then picture importing just can be identified.
In the embodiment of the present application, when the data message stored in Quick Response Code is identified, can two-dimension code area in first scanned picture determination picture, and then two-dimension code area is identified, the accuracy rate of identification can be strengthened like this.
By the data message stored in the Quick Response Code that identifies, several functions can be realized, such as information inquiry, data download, e-Bank payment etc.
Be understandable that, the picture that the picture collection operation of user also may be common screen printing, take pictures, download pictures or preservation friend send, now user does not identify the demand of Quick Response Code, therefore, when detect in picture there is not Quick Response Code time, then judge not need the just common picture not with Quick Response Code that the picture collection operation of user gathers to identify the Quick Response Code in this picture, directly preserved in the electronic device by this picture.
Can find out according to technique scheme, the embodiment of the present application provides a kind of recognition methods of Quick Response Code, comprises, the picture collection operation of response user, and preservation operates by described picture collection the picture obtained; Detect in described picture and whether there is Quick Response Code; When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.Can find out, the application is in the picture collection operation of response user, when preserving picture, can judge that whether picture collection operates in the picture obtained containing Quick Response Code, if containing Quick Response Code, then can automatically identify the data message stored in Quick Response Code, can when user gathers picture by picture collection operation, trigger the automatic identification to the Quick Response Code comprised in picture, thus the Quick Response Code identification software of specialty need not be opened, do not need picture to be imported the data message that just can identify in Quick Response Code identification software and store in Quick Response Code yet, simplify user operation, improve the efficiency of Quick Response Code identification, and then raising Consumer's Experience.
The process flow diagram of the recognition methods of the another kind of Quick Response Code that Fig. 2 provides for the embodiment of the present application.
With reference to shown in Fig. 2, the recognition methods of a kind of Quick Response Code that the application provides, comprises step:
The picture collection operation of S201, response user, and preservation operates by described picture collection the picture obtained;
In the embodiment of the present application, the operation of the picture collection of system responses user, when namely user uses picture collection function, system makes response, preserves picture collection and operate the picture obtained, then execution step S202.Preserve and operate by described picture collection the picture obtained, can also be picture is carried out Binary Conversion obtain picture stream, picture stream be kept in Installed System Memory, picture stream take the storage space of hardware, and reading speed is fast.
Preferably, comprise the picture collection operation of the screen printing of response user, the picture collection of pictures taken operates or the picture collection of preservation picture operates.
In the embodiment of the present application, the picture collection operation of user can comprise: screen printing, pictures taken or preservation picture, carry out screen printing when user browses, when using the shoot function of equipment to take pictures or need to preserve picture, the step S101 of the embodiment of the present application can be triggered.
S202, detect in described picture whether there is Quick Response Code;
In the embodiment of the present application, the object whether detection picture exists Quick Response Code judges the picture collection of user operates in the picture obtained whether there is Quick Response Code, when user has demand identification Quick Response Code, common operation to obtain the picture with Quick Response Code, such as above-mentioned use screen printing, pictures taken or the preservation picture etc. mentioned, therefore, if there is Quick Response Code in picture, then illustrate that user has the demand needing to identify Quick Response Code.
Preferably, whether there is Quick Response Code in the described picture of described detection, comprising:
Scan described picture, judge the anchor point that whether there is Quick Response Code in described picture;
When there is the anchor point of Quick Response Code in described picture, judge to there is Quick Response Code in described picture.
The application can adopt the mode of detection and location point to detect in picture whether there is Quick Response Code, also the mode of comparing with the image in 2 D code preset can be adopted to detect in picture whether there is Quick Response Code, the embodiment of the present application preferably adopts and judges that the mode whether picture exists Quick Response Code anchor point detects, Quick Response Code has three anchor points usually, utilize this characteristic of Quick Response Code, can detect in picture whether have Quick Response Code.
S203, when there is Quick Response Code in described picture, extracting the two-dimension code area in described picture, gray processing process being carried out to described two-dimension code area, described two-dimension code area is converted to gray bitmap;
In the embodiment of the present application, if detect in picture to there is Quick Response Code, then identify the data message stored in Quick Response Code, like this, user just can first open other identification softwares, then picture importing just can identified.
S204, utilize cruciform medium filtering to carry out denoising to described gray bitmap, generate denoising image;
S205, utilize grey level histogram instrument to carry out binary conversion treatment to described denoising image, generate binary image;
S206, the position sensing figure determined in described binary image, position described binary image according to described position sensing figure, and the data message stored in the described binary image after locating of decoding.
In the embodiment of the present application, preferred employing aforesaid way identifies the data message stored in Quick Response Code, by the gray processing function preset, gray processing process is carried out to described two-dimension code area, described two-dimension code area is converted to gray bitmap, by cruciform medium filtering, denoising is carried out to described gray bitmap, utilize grey level histogram instrument to carry out binary conversion treatment to described denoising image, then Quick Response Code positioned and decode, significantly can strengthen the accuracy of Quick Response Code identification.
Such as, by identifying that Quick Response Code just can realize several functions, information inquiry, data download, e-Bank payment etc.
Be understandable that, the picture that the picture collection operation of user also may be common screen printing, take pictures, download pictures or preservation friend send, now user does not identify the demand of Quick Response Code, therefore, when detect in picture there is not Quick Response Code time, then judge not need the just common picture not with Quick Response Code that the picture collection operation of user gathers to identify the Quick Response Code in this picture, directly preserved in the electronic device by this picture.
Can find out according to technique scheme, the embodiment of the present application provides a kind of recognition methods of Quick Response Code, comprises, the picture collection operation of response user, and preservation operates by described picture collection the picture obtained; Detect in described picture and whether there is Quick Response Code; When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.Can find out, the application is in the picture collection operation of response user, when preserving picture, can judge that whether picture collection operates in the picture obtained containing Quick Response Code, if containing Quick Response Code, then can automatically identify the data message stored in Quick Response Code, can when user gathers picture by picture collection operation, trigger the automatic identification to the Quick Response Code comprised in picture, thus the Quick Response Code identification software of specialty need not be opened, do not need picture to be imported the data message that just can identify in Quick Response Code identification software and store in Quick Response Code yet, simplify user operation, improve the efficiency of Quick Response Code identification, and then raising Consumer's Experience.
The process flow diagram of the recognition methods of another Quick Response Code that Fig. 3 provides for the embodiment of the present application.
With reference to shown in Fig. 3, the recognition methods of a kind of Quick Response Code that the application provides, comprises step:
The picture collection operation of S301, response user, and preservation operates by described picture collection the picture obtained;
In the embodiment of the present application, the operation of the picture collection of system responses user, when namely user uses picture collection function, system makes response, preserves picture collection and operate the picture obtained, then execution step S302.Preserve and operate by described picture collection the picture obtained, can also be picture is carried out Binary Conversion obtain picture stream, picture stream be kept in Installed System Memory, picture stream take the storage space of hardware, and reading speed is fast.
Preferably, comprise the picture collection operation of the screen printing of response user, the picture collection of pictures taken operates or the picture collection of preservation picture operates.
In the embodiment of the present application, the picture collection operation of user can comprise: screen printing, pictures taken or preservation picture, carry out screen printing when user browses, when using the shoot function of equipment to take pictures or need to preserve picture, the step S101 of the embodiment of the present application can be triggered.
S302, detect in described picture whether there is Quick Response Code;
In the embodiment of the present application, the object whether detection picture exists Quick Response Code judges the picture collection of user operates in the picture obtained whether there is Quick Response Code, when user has demand identification Quick Response Code, common operation to obtain the picture with Quick Response Code, such as above-mentioned use screen printing, pictures taken or the preservation picture etc. mentioned, therefore, if there is Quick Response Code in picture, then illustrate that user has the demand needing to identify Quick Response Code.
Preferably, whether there is Quick Response Code in the described picture of described detection, comprising:
Scan described picture, judge the anchor point that whether there is Quick Response Code in described picture;
When there is the anchor point of Quick Response Code in described picture, judge to there is Quick Response Code in described picture.
The application can adopt the mode of detection and location point to detect in picture whether there is Quick Response Code, also the mode of comparing with the image in 2 D code preset can be adopted to detect in picture whether there is Quick Response Code, the embodiment of the present application preferably adopts and judges that the mode whether picture exists Quick Response Code anchor point detects, Quick Response Code has three anchor points usually, utilize this characteristic of Quick Response Code, can detect in picture whether have Quick Response Code.
S303, when there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.
In the embodiment of the present application, if detect in picture to there is Quick Response Code, then identify the data message stored in Quick Response Code, like this, user just can first open other identification softwares, and then picture importing just can be identified.
In the embodiment of the present application, when the data message stored in Quick Response Code is identified, can two-dimension code area in first scanned picture determination picture, and then two-dimension code area is identified, the accuracy rate of identification can be strengthened like this.
By the data message stored in the Quick Response Code that identifies, several functions can be realized, such as information inquiry, data download, e-Bank payment etc.
Be understandable that, the picture that the picture collection operation of user also may be common screen printing, take pictures, download pictures or preservation friend send, now user does not identify the demand of Quick Response Code, therefore, when detect in picture there is not Quick Response Code time, then judge not need the just common picture not with Quick Response Code that the picture collection operation of user gathers to identify the Quick Response Code in this picture, directly preserved in the electronic device by this picture.
The data message identified from described Quick Response Code, by the call instruction of routine interface for the Quick Response Code existed in described picture, is sent to described external program by described routine interface by S304, reception external program.
In the electronic device, usually there is multiple application program, when Quick Response Code being detected, usually having application program and carrying out calling of Quick Response Code, after carrying out Quick Response Code identification, the data message identified also needs invokes application to perform usually.
In the embodiment of the present application, the interface of information interaction can also be provided for external program, send to external program by routine interface, the call instruction of external program can be as: open the network address after identification, share the Quick Response Code after identification (share qq micro-letter microblogging etc.).Step S204 can facilitate the operation of user after identifying Quick Response Code, user-friendly.
The application also discloses a kind of recognition device of Quick Response Code on the other hand.
The structural representation of the recognition device of a kind of Quick Response Code that Fig. 4 provides for the embodiment of the present application.
With reference to shown in Fig. 4, the recognition device of a kind of Quick Response Code disclosed in the present application, comprises,
Acquisition module 1, for responding the picture collection operation of user, and preservation operates by described picture collection the picture obtained;
Preferably, acquisition module 1 comprises,
Collecting unit, for the picture collection operation responding the picture collection operation of the screen printing of user, the picture collection of pictures taken operates or preserve picture.
Detection module 2, for detecting in described picture whether there is Quick Response Code;
Preferably, detection module 2 comprises,
Scanning element, for scanning described picture, judges the anchor point that whether there is Quick Response Code in described picture;
Detecting unit, for when there is the anchor point of Quick Response Code in described picture, judges to there is Quick Response Code in described picture
Identification module 3, when there is Quick Response Code in described picture, identifies the data message stored in the Quick Response Code in described picture.
Preferably, described identification module 3 comprises:
Gray processing processing unit, extracts the two-dimension code area in described picture, carries out gray processing process to described two-dimension code area, and described two-dimension code area is converted to gray bitmap;
Denoising unit, utilizes cruciform medium filtering to carry out denoising to described gray bitmap, generates denoising image;
Binary conversion treatment unit, utilizes grey level histogram instrument to carry out binary conversion treatment to described denoising image, generates binary image;
Decoding positioning unit, determines the position sensing figure in described binary image, positions according to described position sensing figure to described binary image, and the data message stored in the described binary image after locating of decoding.
Can find out according to technique scheme, the picture collection operation of the embodiment of the present application response user, and preservation operates by described picture collection the picture obtained; Detect in described picture and whether there is Quick Response Code; When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.Can find out, the application is in the picture collection operation of response user, when preserving picture, can judge that whether picture collection operates in the picture obtained containing Quick Response Code, if containing Quick Response Code, then can automatically identify the data message stored in Quick Response Code, can when user gathers picture by picture collection operation, trigger the automatic identification to the Quick Response Code comprised in picture, thus the Quick Response Code identification software of specialty need not be opened, do not need picture to be imported the data message that just can identify in Quick Response Code identification software and store in Quick Response Code yet, simplify user operation, improve the efficiency of Quick Response Code identification, and then raising Consumer's Experience.
The structural representation of the recognition device of the another kind of Quick Response Code that Fig. 5 provides for the embodiment of the present application.
With reference to shown in Fig. 5, the recognition device of a kind of Quick Response Code disclosed in the present application, comprises,
Acquisition module 1, for responding the picture collection operation of user, and preservation operates by described picture collection the picture obtained;
Preferably, acquisition module 1 comprises,
Collecting unit, for the picture collection operation responding the picture collection operation of the screen printing of user, the picture collection of pictures taken operates or preserve picture.
Detection module 2, for detecting in described picture whether there is Quick Response Code;
Preferably, detection module 2 comprises,
Scanning element, for scanning described picture, judges the anchor point that whether there is Quick Response Code in described picture;
Detecting unit, for when there is the anchor point of Quick Response Code in described picture, judges to there is Quick Response Code in described picture
Identification module 3, when there is Quick Response Code in described picture, identifies the data message stored in the Quick Response Code in described picture.
Preferably, described identification module 3 comprises:
Gray processing processing unit, extracts the two-dimension code area in described picture, carries out gray processing process to described two-dimension code area, and described two-dimension code area is converted to gray bitmap;
Denoising unit, utilizes cruciform medium filtering to carry out denoising to described gray bitmap, generates denoising image;
Binary conversion treatment unit, utilizes grey level histogram instrument to carry out binary conversion treatment to described denoising image, generates binary image;
Decoding positioning unit, determines the position sensing figure in described binary image, positions according to described position sensing figure to described binary image, and the data message stored in the described binary image after locating of decoding.
Information interaction module 4, for receiving external program by the call instruction of routine interface for the Quick Response Code existed in described picture, sends to described external program by the data message identified from described Quick Response Code by described routine interface.
In the electronic device, usually there is multiple application program, when Quick Response Code being detected, usually having application program and carrying out calling of Quick Response Code, after carrying out Quick Response Code identification, the data message identified also needs invokes application to perform usually.
In the embodiment of the present application, information interaction module 4 can also provide the interface of information interaction for external program, send to external program by routine interface, the call instruction of external program can be as: open the network address after identification, share the Quick Response Code after identification (share qq micro-letter microblogging etc.).Step S204 can facilitate the operation of user after identifying Quick Response Code, user-friendly.
It should be noted that, the recognition device of the Quick Response Code of the present embodiment can adopt the recognition methods of the Quick Response Code in said method embodiment, may be used for the whole technical schemes realized in said method embodiment, the function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
For convenience of description, various module is divided into describe respectively with function when describing above device.Certainly, the function of each module can be realized in same or multiple software and/or hardware when implementing the application.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a recognition methods for Quick Response Code, is characterized in that, comprising:
The picture collection operation of response user, and preservation operates by described picture collection the picture obtained;
Detect in described picture and whether there is Quick Response Code;
When there is Quick Response Code in described picture, identify the data message stored in the Quick Response Code in described picture.
2. recognition methods according to claim 1, is characterized in that, the picture collection operation of described response user comprises:
The picture collection operation of the screen printing of response user, the picture collection of pictures taken operate or preserve the picture collection operation of picture.
3. recognition methods according to claim 1, is characterized in that, whether there is Quick Response Code, comprising in the described picture of described detection:
Scan described picture, judge the anchor point that whether there is Quick Response Code in described picture;
When there is the anchor point of Quick Response Code in described picture, judge to there is Quick Response Code in described picture.
4. recognition methods according to claim 1, is characterized in that, the data message stored in the Quick Response Code in the described picture of described identification, comprising:
Extract the two-dimension code area in described picture, gray processing process is carried out to described two-dimension code area, described two-dimension code area is converted to gray bitmap;
Utilize cruciform medium filtering to carry out denoising to described gray bitmap, generate denoising image;
Utilize grey level histogram instrument to carry out binary conversion treatment to described denoising image, generate binary image;
Determine the position sensing figure in described binary image, according to described position sensing figure, described binary image is positioned, and the data message stored in the described binary image after locating of decoding.
5. recognition methods according to claim 1, is characterized in that, also comprises:
Receive external program by the call instruction of routine interface for the Quick Response Code existed in described picture, the data message identified from described Quick Response Code is sent to described external program by described routine interface.
6. a recognition device for Quick Response Code, is characterized in that, comprising:
Acquisition module, for responding the picture collection operation of user, and preservation operates by described picture collection the picture obtained;
Detection module, for detecting in described picture whether there is Quick Response Code;
Identification module, when there is Quick Response Code in described picture, identifies the data message stored in the Quick Response Code in described picture.
7. recognition device according to claim 6, is characterized in that, described acquisition module comprises:
Collecting unit, for the picture collection operation responding the picture collection operation of the screen printing of user, the picture collection of pictures taken operates or preserve picture.
8. recognition device according to claim 6, is characterized in that, described detection module comprises:
Scanning element, for scanning described picture, judges the anchor point that whether there is Quick Response Code in described picture;
Detecting unit, for when there is the anchor point of Quick Response Code in described picture, judges to there is Quick Response Code in described picture.
9. recognition device according to claim 6, is characterized in that, described identification module comprises:
Gray processing processing unit, extracts the two-dimension code area in described picture, carries out gray processing process to described two-dimension code area, and described two-dimension code area is converted to gray bitmap;
Denoising unit, utilizes cruciform medium filtering to carry out denoising to described gray bitmap, generates denoising image;
Binary conversion treatment unit, utilizes grey level histogram instrument to carry out binary conversion treatment to described denoising image, generates binary image;
Decoding positioning unit, determines the position sensing figure in described binary image, positions according to described position sensing figure to described binary image, and the data message stored in the described binary image after locating of decoding.
10. recognition device according to claim 6, is characterized in that, also comprises:
Information interaction module, for receiving external program by the call instruction of routine interface for the Quick Response Code existed in described picture, sends to described external program by the data message identified from described Quick Response Code by described routine 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 true CN105046186A (en) 2015-11-11
CN105046186B 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)

Cited By (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
CN105898487A (en) * 2016-04-28 2016-08-24 北京光年无限科技有限公司 Interaction method and device for intelligent robot
CN106101850A (en) * 2016-06-28 2016-11-09 无锡天脉聚源传媒科技有限公司 A kind of method assisting user and TV interaction and robot device
CN107172259A (en) * 2017-04-11 2017-09-15 捷开通讯(深圳)有限公司 Terminal and its information interacting method, storage device based on Quick Response Code
CN107633194A (en) * 2017-09-15 2018-01-26 维沃移动通信有限公司 A kind of recognition methods of Quick Response Code and terminal
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
CN108090391A (en) * 2017-12-29 2018-05-29 北京奇虎科技有限公司 The recognition methods of Quick Response Code and device
CN108352087A (en) * 2016-03-14 2018-07-31 株式会社东芝 Automatic ticket checker, program and information storage medium
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
CN108846664A (en) * 2018-06-26 2018-11-20 刘晓英 Mobile phone scan code system based on image procossing
CN108959998A (en) * 2018-06-25 2018-12-07 天津英创汇智汽车技术有限公司 Two-dimensional code identification method, apparatus and system
CN109165651A (en) * 2018-06-29 2019-01-08 努比亚技术有限公司 A kind of identification code recognition methods, terminal and computer readable storage medium
WO2019023864A1 (en) * 2017-07-31 2019-02-07 深圳传音通讯有限公司 Two-dimensional code identification method and system based on intelligent terminal camera
CN109472178A (en) * 2018-09-18 2019-03-15 广州思林杰网络科技有限公司 Two-dimensional code scanning method
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
CN110247882A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Communication means and system, data processing method
WO2020034850A1 (en) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Identification method for identification code, device, computer apparatus, and storage medium
CN111540065A (en) * 2020-05-26 2020-08-14 八维通科技有限公司 Subway gate code scanning identification method and mobile terminal
CN111753578A (en) * 2019-03-27 2020-10-09 北京外号信息技术有限公司 Identification method of optical communication device and corresponding electronic equipment
CN112492200A (en) * 2020-11-24 2021-03-12 维沃移动通信有限公司 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

Cited By (27)

* 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
CN108352087A (en) * 2016-03-14 2018-07-31 株式会社东芝 Automatic ticket checker, program and information storage medium
CN108352087B (en) * 2016-03-14 2021-01-12 株式会社东芝 Automatic ticket checker and information storage medium
CN105898487A (en) * 2016-04-28 2016-08-24 北京光年无限科技有限公司 Interaction method and device for intelligent robot
CN106101850A (en) * 2016-06-28 2016-11-09 无锡天脉聚源传媒科技有限公司 A kind of method assisting user and TV interaction and robot device
CN107172259A (en) * 2017-04-11 2017-09-15 捷开通讯(深圳)有限公司 Terminal and its information interacting method, storage device based on Quick Response 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
CN108090391A (en) * 2017-12-29 2018-05-29 北京奇虎科技有限公司 The recognition methods of Quick Response Code and device
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
CN110247882A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Communication means 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
WO2020034850A1 (en) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Identification method for identification code, device, computer apparatus, and storage medium
US11494577B2 (en) 2018-08-16 2022-11-08 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and storage medium for identifying identification code
CN109472178A (en) * 2018-09-18 2019-03-15 广州思林杰网络科技有限公司 Two-dimensional code scanning method
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
CN112492200A (en) * 2020-11-24 2021-03-12 维沃移动通信有限公司 Photographing method and device, electronic equipment and storage medium
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

Also Published As

Publication number Publication date
CN105046186B (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN105046186A (en) Two-dimensional code recognition method and device
CN103400099B (en) Terminal and two-dimensional code identification method
CN110796646A (en) Method and device for detecting defects of screen area of electronic device
JP6718978B2 (en) System language switching method and system language switching terminal device
CN111124888B (en) Method and device for generating recording script and electronic device
WO2014014686A1 (en) Parameter selection and coarse localization of regions of interest for mser|processing
CN103327270B (en) A kind of image processing method, device and terminal
US20150287168A1 (en) Duplicate check image resolution
TW201933175A (en) Information recognition method and system, and server and client
CN107291238B (en) Data processing method and device
CN106384071A (en) Two-dimensional code scanning recognition processing method and device
WO2015021857A1 (en) Method and apparatus for data processing
CN113595994B (en) Abnormal mail detection method and device, electronic equipment and storage medium
CN109062648B (en) Information processing method and device, mobile terminal and storage medium
CN111144156B (en) Image data processing method and related device
CN104077557A (en) Method and device for acquiring card information
JP2019517079A (en) Shape detection
CN107992872B (en) Method for carrying out text recognition on picture and mobile terminal
EP3461138B1 (en) Processing method and terminal
CN108304840B (en) Image data processing method and device
CN108776959B (en) Image processing method and device and terminal equipment
CN106454884A (en) Method for distinguishing homonymous wireless access points and equipment thereof
CN107103096A (en) Method for information display and device
CN115422958B (en) Picture operation method, electronic device and storage medium
CN113536305B (en) Method and device for detecting acquisition behavior

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