CN108764422A - Quick Response Code insertion, extracting method and the device of image - Google Patents

Quick Response Code insertion, extracting method and the device of image Download PDF

Info

Publication number
CN108764422A
CN108764422A CN201810464648.2A CN201810464648A CN108764422A CN 108764422 A CN108764422 A CN 108764422A CN 201810464648 A CN201810464648 A CN 201810464648A CN 108764422 A CN108764422 A CN 108764422A
Authority
CN
China
Prior art keywords
image
quick response
response code
target
obtains
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.)
Pending
Application number
CN201810464648.2A
Other languages
Chinese (zh)
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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201810464648.2A priority Critical patent/CN108764422A/en
Publication of CN108764422A publication Critical patent/CN108764422A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of insertion of the Quick Response Code of image, extracting method and devices.The Quick Response Code embedding grammar of described image includes:Obtain target Quick Response Code;Obtain the first image;According to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, obtains the second image;Wherein, when showing described first image and second image in same display screen, described first image and second image are consistent in appearance.The Quick Response Code extracting method of described image includes:Obtain second image;According to preset Quick Response Code extraction model, is extracted from second image and obtain the first image and target Quick Response Code;Wherein, when showing described first image and second image in same display screen, described first image and second image are consistent in appearance.Using the present invention, the aesthetics for the image for being embedded in Quick Response Code can be improved, and improve the safety of 2 D code information.

Description

Quick Response Code insertion, extracting method and the device of image
Technical field
The present invention relates to a kind of insertion of the Quick Response Code of field of computer technology more particularly to image, extracting method and devices.
Background technology
The use of Quick Response Code is more and more extensive at present, but there is a problem of that the form of two-dimension code image is excessively single, and And Quick Response Code, in most cases as a kind of external interface actively disclosing oneself partial information, safety problem does not account for It arrives.For above 2 points, following situations is relatively common, for example, in visual effect, in order to achieve the effect that publicity, often exists A no small two-dimension code image is sticked on propagating poster, but two-dimension code image is sticked on propagating poster influences U.S. very much It sees;Quick Response Code from security standpoint, such as train ticket can include the privacy information of individual, if this information is by broken Solution can cause individual privacy to reveal, or even cause serious economic consequences.
And common solution is, for aesthetic problem, the method that each businessman takes is usually that Quick Response Code is placed on Unremarkable position;For safety problem, each manufacturer may take the encrypted mode of different Quick Response Codes, to reach manner of decryption Also the purpose of different from can limit the improper operation of general user, as wechat and QQ cannot access mutually Quick Response Code.And this The defect of kind common practice is unsightly property and simple encryption without fundamentally solving the problems, such as Quick Response Code itself, when It is related to the safe class requirement of high intensity, the information therein of either collecting money of such as transferring accounts once is utilized or distorts, can cause More serious economic consequences.
Invention content
The embodiment of the present invention proposes a kind of embedded Quick Response Code of image, extracting method and device, can improve and be embedded in two The aesthetics of the image of code is tieed up, and improves the safety of 2 D code information.
A kind of Quick Response Code embedding grammar of image provided in an embodiment of the present invention, specifically includes:
Obtain target Quick Response Code;
Obtain the first image;
According to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, obtains second Image;Wherein, when showing described first image and second image in same display screen, described first image and described Second image is consistent in appearance.
Further, the first image of the acquisition, specifically includes:
It generates and instructs in response to image, generating instruction to described image parses, and obtains described first image.
Further, described according to preset Quick Response Code incorporation model after the acquisition target Quick Response Code, it will be described Target Quick Response Code is embedded in described first image, before obtaining the second image, further includes:
According to preset Quick Response Code pretreated model, the target Quick Response Code is pre-processed.
Further, the Quick Response Code incorporation model is watermarking algorithm;
It is then described according to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, is obtained The second image is obtained, is specifically included:
According to the watermarking algorithm, the target Quick Response Code is embedded in described first image as watermark, is obtained Second image.
A kind of Quick Response Code extracting method of image provided in an embodiment of the present invention, specifically includes:
Obtain the second figure generated according to the Quick Response Code embedding grammar of image according to any one of claims 1 to 4 Picture;
According to preset Quick Response Code extraction model, extraction obtains the first image from second image and target is two-dimentional Code;Wherein, when showing described first image and second image in same display screen, described first image and described Two images are consistent in appearance.
Further, described according to preset Quick Response Code extraction model, it is extracted from second image and obtains the first figure Picture and target Quick Response Code, specifically include:
According to preset Quick Response Code detection model, second image is detected, judge be in second image No includes the target Quick Response Code;
When it includes the target Quick Response Code to judge in second image, according to the Quick Response Code extraction model, from institute It states extraction in the second image and obtains the target Quick Response Code.
Further, it described according to preset Quick Response Code extraction model, is extracted from second image and obtains first After image and target Quick Response Code, further include:
According to preset Quick Response Code against pretreated model, inverse pretreatment is carried out to the target Quick Response Code.
Further, the Quick Response Code extraction model is watermark extraction algorithm;
It is then described according to preset Quick Response Code extraction model, it is extracted from second image and obtains the first image and target Quick Response Code specifically includes:
According to the watermark extraction algorithm, watermark extracting is carried out to second image, obtains the target Quick Response Code.
Correspondingly, the embodiment of the present invention additionally provides a kind of Quick Response Code flush mounting of image, specifically includes:
Target Quick Response Code obtains module, for obtaining target Quick Response Code;
First image obtains module, for obtaining the first image;And
Second image obtains module, for according to preset Quick Response Code incorporation model, the target Quick Response Code to be embedded in Described first image obtains the second image;Wherein, when showing described first image and second image in same display screen When, described first image and second image are consistent in appearance.
The embodiment of the present invention additionally provides a kind of Quick Response Code extraction element of image, specifically includes:
Second image obtains module, for obtaining second generated according to the Quick Response Code embedding grammar of image as described above Image;And
Target Quick Response Code extraction module, for according to preset Quick Response Code extraction model, being extracted from second image Obtain the first image and target Quick Response Code;Wherein, when showing described first image and second image in same display screen When, described first image and second image are consistent in appearance.
Implement the embodiment of the present invention, has the advantages that:
Quick Response Code insertion, extracting method and the device of image provided in an embodiment of the present invention, by according to preset two dimension Quick Response Code is implicitly embedded in image by code incorporation model, while the appearance of image being kept not change, so that After Quick Response Code is embedded in image, the aesthetics of image is not influenced, improves the aesthetics of the image comprising Quick Response Code.Separately Outside, since Quick Response Code can be implicitly embedded in image, can by 2 D code information (as subsidiary identity information, Location information etc.) it hides, to improve the safety of 2 D code information.It is extracted from image by preset Quick Response Code extraction model Obtain implicit Quick Response Code so that even if after being implicitly embedded in Quick Response Code in image, remain able to carry from the image Acquisition Quick Response Code is taken, without necessarily requiring Quick Response Code to be shown in image in a manner of dominant, thus not U.S. of influence diagram picture The property seen, improves the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can be implicitly embedded in image, because This can hide 2 D code information (such as subsidiary identity information, address information), to improve the safety of 2 D code information Property.
Description of the drawings
Fig. 1 is the flow diagram of a preferred embodiment of the Quick Response Code embedding grammar of image provided by the invention;
Fig. 2 is the flow diagram of a preferred embodiment of the Quick Response Code extracting method of image provided by the invention;
Fig. 3 is that the flow of embedded, extracting method the preferred embodiment of the Quick Response Code of image provided by the invention is shown It is intended to;
Fig. 4 is the structural schematic diagram of a preferred embodiment of the Quick Response Code flush mounting of image provided by the invention;
Fig. 5 is the structural schematic diagram of a preferred embodiment of the Quick Response Code extraction element of image provided by the invention;
Fig. 6 is a kind of structural schematic diagram of a preferred embodiment of mobile device provided by the invention;
Fig. 7 is the structural schematic diagram of a preferred embodiment of another mobile device provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments 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 creative efforts Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the flow of a preferred embodiment for the Quick Response Code embedding grammar of image provided by the invention Schematic diagram, including step S11 to S13, it is specific as follows:
S11:Obtain target Quick Response Code.
It should be noted that the embodiment of the present invention is by mobile terminal execution.Wherein, which can be intelligent hand Machine, tablet computer, personal computer etc..
S12:Obtain the first image.
It should be noted that above-mentioned first image can be coloured image.
Further, above-mentioned steps S12 further comprises step S1201, specific as follows:
S1201:It generates and instructs in response to image, generating instruction to described image parses, and obtains described first image.
The selection operation of image can be generated according to user it should be noted that above-mentioned first image generates instruction.On It can be the image obtained by camera shooting to state the first image.
S13:According to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, is obtained Second image;Wherein, when showing described first image and second image in same display screen, described first image and Second image is consistent in appearance.
It should be noted that above-mentioned mobile terminal is after obtaining target Quick Response Code and the first image, according to above-mentioned two dimension Code incorporation model, above-mentioned target Quick Response Code is implicitly embedded in above-mentioned first image, and it includes above-mentioned target Quick Response Code to obtain The second image, impacted without the appearance to the first image, that is, above-mentioned first image and above-mentioned second image are in appearance It is consistent, has no difference.It rephrases the statement, if the first image is considered as a strong signal, target Quick Response Code is exactly weak Signal, so that strong signal still maintains primary characteristic after weak signal is embedded in strong signal, the waveform without influencing strong signal, To realize visual not sentience.
In some specific embodiments, mobile terminal is sent to shifting after generating the second image, by second image It is shown in the display screen of dynamic terminal.Another mobile terminal can be by clapping the second image being shown in aforementioned display screen It takes the photograph, and second image is parsed, to obtain above-mentioned target Quick Response Code.
It should be further noted that above-mentioned target Quick Response Code is generated according to target information.Specifically, which can Think resource to be shared, resource link etc., which can be selected by the corresponding user of above-mentioned mobile terminal, can also It is automatically generated by above-mentioned mobile terminal.
In the present embodiment, by being implicitly embedded in Quick Response Code in image according to preset Quick Response Code incorporation model, It keeps the appearance of image not change simultaneously, so that after Quick Response Code is embedded in image, does not influence U.S. of image The property seen, improves the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can be implicitly embedded in image, because This can hide 2 D code information (such as subsidiary identity information, address information), to improve the safety of 2 D code information Property.
In another preferred embodiment, further include step before above-mentioned steps S13 after above-mentioned steps S11 S14, it is specific as follows:
S14:According to preset Quick Response Code pretreated model, the target Quick Response Code is pre-processed.
It should be noted that in the present embodiment, target Quick Response Code is embedded according to above-mentioned Quick Response Code incorporation model Before in first image, can also denoising, filtering, marginalisation processing, time-domain and frequency-domain conversion be carried out to the target Quick Response Code first Deng pretreatment.
In yet another preferred embodiment, the Quick Response Code incorporation model is watermarking algorithm;
Then above-mentioned steps S13 further comprises step S1301, specific as follows:
S1301:According to the watermarking algorithm, first figure is embedded in using the target Quick Response Code as watermark Picture obtains second image.
It should be noted that in the present embodiment, above-mentioned target Quick Response Code is embedded in above-mentioned first figure in the form of watermark As in.Wherein, above-mentioned watermarking algorithm includes quantization index modulation algorithm, adaptive quantizing index modulation algorithm, iteration One or more of adaptive quantizing index modulation algorithm etc., a combination thereof mode and parameter configuration etc. can be according to practical feelings Condition needs and carries out the setting and adjustment of adaptability.
The Quick Response Code embedding grammar of image provided in an embodiment of the present invention, by being incited somebody to action according to preset Quick Response Code incorporation model Quick Response Code is implicitly embedded in image, while the appearance of image being kept not change, so that being embedded in by Quick Response Code To after in image, the aesthetics of image is not influenced, improves the aesthetics of the image comprising Quick Response Code.In addition, due to Quick Response Code It can implicitly be embedded in image, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, To improve the safety of 2 D code information.
As shown in Fig. 2, the flow of a preferred embodiment for the Quick Response Code extracting method of image provided by the invention Schematic diagram, including step S21 to S22, it is specific as follows:
S21:Obtain the second image that the Quick Response Code embedding grammar of the image according to any embodiment as above generates.
It should be noted that the embodiment of the present invention is by another mobile terminal execution.Wherein, which can be intelligence Mobile phone, tablet computer, personal computer etc..The mobile terminal configuration has camera, for being scanned to above-mentioned second image Or shooting.
S22:According to preset Quick Response Code extraction model, is extracted from second image and obtain the first image and target two Tie up code;Wherein, when showing described first image and second image in same display screen, described first image and described Second image is consistent in appearance.
It should be noted that due to implicitly embedding in the second image for being generated according to the Quick Response Code embedding grammar of above-mentioned image Target Quick Response Code is entered, therefore, above-mentioned Quick Response Code extraction model can be to the stealthy target Quick Response Code in above-mentioned second image It is identified, and extraction obtains target Quick Response Code from the second image.
Further, above-mentioned steps S22 further comprises step S2201 to S2202, specific as follows:
S2201:According to preset Quick Response Code detection model, second image is detected, judges second figure Whether include the target Quick Response Code as in.
S2202:When it includes the target Quick Response Code to judge in second image, mould is extracted according to the Quick Response Code Type extracts from second image and obtains the target Quick Response Code.
It should be noted that in the present embodiment, before the second extracting target from images Quick Response Code, can also lead to first Calling Quick Response Code detection model is crossed to judge in second image whether to include Quick Response Code, if so, Quick Response Code is called to extract mould Type extracts from the second image and obtains target Quick Response Code, if it is not, not processed to the second image then.
In some specific embodiments, above-mentioned target Quick Response Code is generated according to target information.Specifically, the target information Can be resource, resource link etc. to be shared.Therefore, after extraction obtains target Quick Response Code in the second image, may be used also To be parsed to the target Quick Response Code, to obtain corresponding target information, that is, corresponding resource or resource link are obtained Deng.
The present embodiment is extracted from image by preset Quick Response Code extraction model and obtains implicit Quick Response Code so that even if After being implicitly embedded in Quick Response Code in image, remains able to the extraction from the image and obtain Quick Response Code, without having to Quick Response Code is asked to be shown in image in a manner of dominant, so that the not aesthetics of influence diagram picture, improves the figure comprising Quick Response Code The aesthetics of picture.In addition, since Quick Response Code can be implicitly embedded in image, it can be by 2 D code information (as being attached to Identity information, address information etc.) hide, to improve the safety of 2 D code information.
In another preferred embodiment, further include step S23 after above-mentioned steps S22, it is specific as follows:
S23:According to preset Quick Response Code against pretreated model, inverse pretreatment is carried out to the target Quick Response Code.
It should be noted that in the present embodiment, target Quick Response Code is embedded according to above-mentioned Quick Response Code incorporation model Before in first image, can also denoising, filtering, marginalisation processing, time-domain and frequency-domain conversion be carried out to the target Quick Response Code first Deng pretreatment.Therefore, from the second image extraction obtain target Quick Response Code after, can also be correspondingly to the target Quick Response Code Inverse pretreatment is carried out, to completely be restored to target Quick Response Code.
In yet another preferred embodiment, the Quick Response Code extraction model is watermark extraction algorithm;
Then above-mentioned steps S22 further comprises step S2201, specific as follows:
S2201:According to the watermark extraction algorithm, watermark extracting is carried out to second image, obtains the target two Tie up code.
It should be noted that in the present embodiment, above-mentioned target Quick Response Code is embedded in above-mentioned first figure in the form of watermark As in.It is therefore possible to use corresponding watermark extraction algorithm, carries out watermark extracting operation, to obtain target to the second image Quick Response Code.
As shown in figure 3, embedded, extracting method the preferred embodiment of Quick Response Code for image provided by the invention Flow diagram.Wherein, attack function is influence (such as attacked by noise for being used to imitate the second image of actual environment pair in an experiment Deng) function, actual use operate in can delete.
The Quick Response Code extracting method of image provided in an embodiment of the present invention, by preset Quick Response Code extraction model from image Middle extraction obtains implicit Quick Response Code so that even if after being implicitly embedded in Quick Response Code in image, remains able to from the figure Extraction obtains Quick Response Code as in, without necessarily requiring Quick Response Code to be shown in image in a manner of dominant, thus not influence diagram The aesthetics of picture improves the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can implicitly be embedded in image In, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, to improve 2 D code information Safety.
Correspondingly, the present invention also provides a kind of Quick Response Code flush mounting of image, the figure in above-described embodiment can be realized All flows of the Quick Response Code embedding grammar of picture.
As shown in figure 4, the structure of a preferred embodiment for the Quick Response Code flush mounting of image provided by the invention Schematic diagram specifically includes:
Target Quick Response Code obtains module 41, for obtaining target Quick Response Code;
First image obtains module 42, for obtaining the first image;And
Second image obtains module 43, for according to preset Quick Response Code incorporation model, the target Quick Response Code to be embedded in To described first image, the second image is obtained;Wherein, when showing described first image and second figure in same display screen When picture, described first image and second image are consistent in appearance.
Further, described first image obtains module, specifically includes:
First image acquiring unit is instructed for being generated in response to image, and generating instruction to described image parses, and obtains Obtain described first image.
Further, the Quick Response Code flush mounting of described image further includes:
Quick Response Code preprocessing module, for according to preset Quick Response Code pretreated model, being carried out to the target Quick Response Code Pretreatment.
Further, the Quick Response Code incorporation model is watermarking algorithm;
Then second image obtains module, specifically includes:
Second image generation unit is used for according to the watermarking algorithm, and the target Quick Response Code is embedding as watermark Enter to described first image, obtains second image.
The Quick Response Code flush mounting of image provided in an embodiment of the present invention, by being incited somebody to action according to preset Quick Response Code incorporation model Quick Response Code is implicitly embedded in image, while the appearance of image being kept not change, so that being embedded in by Quick Response Code To after in image, the aesthetics of image is not influenced, improves the aesthetics of the image comprising Quick Response Code.In addition, due to Quick Response Code It can implicitly be embedded in image, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, To improve the safety of 2 D code information.
The present invention also provides a kind of Quick Response Code extraction elements of image, can realize the two dimension of the image in above-described embodiment All flows of code extracting method.
As shown in figure 5, the structure of a preferred embodiment for the Quick Response Code extraction element of image provided by the invention Schematic diagram specifically includes:
Second image obtains module 51, for obtaining the two dimension according to image according to any one of claims 1 to 4 The second image that code embedding grammar generates;And
Target Quick Response Code extraction module 52, for according to preset Quick Response Code extraction model, being carried from second image It takes and obtains the first image and target Quick Response Code;Wherein, when showing described first image and second figure in same display screen When picture, described first image and second image are consistent in appearance.
Further, the target Quick Response Code extraction module, specifically includes:
Target Quick Response Code detection unit, for according to preset Quick Response Code detection model, being examined to second image It surveys, judges in second image whether to include the target Quick Response Code;And
Target Quick Response Code extraction unit is used for when it includes the target Quick Response Code to judge in second image, according to The Quick Response Code extraction model extracts from second image and obtains the target Quick Response Code.
Further, the Quick Response Code extraction element of described image further includes:
Quick Response Code is used for according to preset Quick Response Code against preprocessing module against pretreated model, to the target Quick Response Code Carry out inverse pretreatment.
Further, the Quick Response Code extraction model is watermark extraction algorithm;
The then target Quick Response Code extraction module, specifically includes:
Target Quick Response Code extraction unit, for according to the watermark extraction algorithm, carrying out watermark to second image and carrying It takes, obtains the target Quick Response Code.
The Quick Response Code extraction element of image provided in an embodiment of the present invention, by preset Quick Response Code extraction model from image Middle extraction obtains implicit Quick Response Code so that even if after being implicitly embedded in Quick Response Code in image, remains able to from the figure Extraction obtains Quick Response Code as in, without necessarily requiring Quick Response Code to be shown in image in a manner of dominant, thus not influence diagram The aesthetics of picture improves the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can implicitly be embedded in image In, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, to improve 2 D code information Safety.
The present invention also provides a kind of mobile devices.
As shown in fig. 6, the structural schematic diagram of a preferred embodiment for mobile device provided by the invention, including place It manages device 61, memory 62 and is stored in the memory 62 and is configured as the computer journey executed by the processor 61 Sequence, the processor 61 realize the Quick Response Code insertion side of the image described in any embodiment as above when executing the computer program Method.
It should be noted that Fig. 6 only by the mobile device a memory and a processor be connected for into Row signal, in some specific embodiments, in the mobile device can also include multiple memories and/or multiple processors, Its specific number and connection type can need to be configured and be adaptively adjusted according to actual conditions.
Mobile device provided in an embodiment of the present invention, by according to preset Quick Response Code incorporation model by Quick Response Code implicitly It is embedded in image, while the appearance of image being kept not change, so that after Quick Response Code is embedded in image, no The aesthetics for influencing image, improves the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can be implicitly embedded in Into image, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, to improve Quick Response Code The safety of information.
The present invention also provides another mobile devices.
As shown in fig. 7, the structural schematic diagram of a preferred embodiment for mobile device provided by the invention, including place It manages device 71, memory 72 and is stored in the memory 72 and is configured as the computer journey executed by the processor 71 Sequence, the processor 71 realize the Quick Response Code extraction side of the image described in any embodiment as above when executing the computer program Method.
It should be noted that Fig. 7 only by the mobile device a memory and a processor be connected for into Row signal, in some specific embodiments, in the mobile device can also include multiple memories and/or multiple processors, Its specific number and connection type can need to be configured and be adaptively adjusted according to actual conditions.
Mobile device provided in an embodiment of the present invention, extracted from image by preset Quick Response Code extraction model obtain it is hidden The Quick Response Code contained so that even if after being implicitly embedded in Quick Response Code in image, remain able to extract from the image and obtain Quick Response Code, without necessarily requiring Quick Response Code to be shown in image in a manner of dominant, so that the not aesthetics of influence diagram picture, carries The high aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can be implicitly embedded in image, can incite somebody to action 2 D code information (such as subsidiary identity information, address information) is hidden, to improve the safety of 2 D code information.
The present invention also provides a kind of computer readable storage mediums, specifically include the computer program of storage, wherein Equipment where controlling the computer readable storage medium when computer program operation executes described in any embodiment as above Image Quick Response Code embedding grammar.
It should be noted that the present invention realizes all or part of flow in above-described embodiment method, meter can also be passed through Calculation machine program is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium In, the computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the calculating Machine program includes computer program code, and the computer program code can be source code form, object identification code form, can hold Style of writing part or certain intermediate forms etc..The computer-readable medium may include:The computer program code can be carried Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be further noted that the content that the computer-readable medium includes can basis Legislation and the requirement of patent practice carry out increase and decrease appropriate in jurisdiction, such as in certain jurisdictions, according to legislation And patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
Computer readable storage medium provided in an embodiment of the present invention, by according to preset Quick Response Code incorporation model by two Dimension code is implicitly embedded in image, while the appearance of image being kept not change, so that being embedded in by Quick Response Code After in image, the aesthetics of image is not influenced, improves the aesthetics of the image comprising Quick Response Code.In addition, due to Quick Response Code energy It is enough to be implicitly embedded in image, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, from And improve the safety of 2 D code information.
The present invention also provides another computer readable storage mediums, specifically include the computer program of storage, wherein Equipment where controlling the computer readable storage medium when the computer program is run executes any embodiment institute as above The Quick Response Code extracting method for the image stated.
It should be noted that the present invention realizes all or part of flow in above-described embodiment method, meter can also be passed through Calculation machine program is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium In, the computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the calculating Machine program includes computer program code, and the computer program code can be source code form, object identification code form, can hold Style of writing part or certain intermediate forms etc..The computer-readable medium may include:The computer program code can be carried Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be further noted that the content that the computer-readable medium includes can basis Legislation and the requirement of patent practice carry out increase and decrease appropriate in jurisdiction, such as in certain jurisdictions, according to legislation And patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
Computer readable storage medium provided in an embodiment of the present invention, by preset Quick Response Code extraction model from image Extraction obtains implicit Quick Response Code so that even if after being implicitly embedded in Quick Response Code in image, remains able to from the image Middle extraction obtains Quick Response Code, without necessarily requiring Quick Response Code to be shown in image in a manner of dominant, thus not influence diagram picture Aesthetics, improve the aesthetics of the image comprising Quick Response Code.In addition, since Quick Response Code can implicitly be embedded in image In, therefore 2 D code information (such as subsidiary identity information, address information) can be hidden, to improve 2 D code information Safety.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. a kind of Quick Response Code embedding grammar of image, which is characterized in that including:
Obtain target Quick Response Code;
Obtain the first image;
According to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, obtains the second image; Wherein, when showing described first image and second image in same display screen, described first image and described second Image is consistent in appearance.
2. the Quick Response Code embedding grammar of image as described in claim 1, which is characterized in that the first image of the acquisition, specifically Including:
It generates and instructs in response to image, generating instruction to described image parses, and obtains described first image.
3. the Quick Response Code embedding grammar of image as described in claim 1, which is characterized in that the acquisition target Quick Response Code it Afterwards, described according to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, obtains the second figure Before picture, further include:
According to preset Quick Response Code pretreated model, the target Quick Response Code is pre-processed.
4. the Quick Response Code embedding grammar of image as claimed any one in claims 1 to 3, which is characterized in that the Quick Response Code Incorporation model is watermarking algorithm;
It is then described according to preset Quick Response Code incorporation model, the target Quick Response Code is embedded in described first image, obtains the Two images, specifically include:
According to the watermarking algorithm, described first image is embedded in using the target Quick Response Code as watermark, described in acquisition Second image.
5. a kind of Quick Response Code extracting method of image, which is characterized in that including:
Obtain the second image generated according to the Quick Response Code embedding grammar of image according to any one of claims 1 to 4;
According to preset Quick Response Code extraction model, is extracted from second image and obtain the first image and target Quick Response Code;Its In, when showing described first image and second image in same display screen, described first image and second figure As consistent in appearance.
6. the Quick Response Code extracting method of image as claimed in claim 5, which is characterized in that described to be carried according to preset Quick Response Code Modulus type extracts from second image and obtains the first image and target Quick Response Code, specifically includes:
According to preset Quick Response Code detection model, second image is detected, judges whether wrapped in second image Containing the target Quick Response Code;
When it includes the target Quick Response Code to judge in second image, according to the Quick Response Code extraction model, from described the Extraction obtains the target Quick Response Code in two images.
7. the Quick Response Code extracting method of image as claimed in claim 5, which is characterized in that described according to preset Quick Response Code Extraction model, from second image extraction obtain the first image and target Quick Response Code after, further include:
According to preset Quick Response Code against pretreated model, inverse pretreatment is carried out to the target Quick Response Code.
8. the Quick Response Code extracting method of the image as described in any one of claim 5 to 7, which is characterized in that the Quick Response Code Extraction model is watermark extraction algorithm;
Then described according to preset Quick Response Code extraction model, extraction obtains the first image from second image and target is two-dimentional Code, specifically includes:
According to the watermark extraction algorithm, watermark extracting is carried out to second image, obtains the target Quick Response Code.
9. a kind of Quick Response Code flush mounting of image, which is characterized in that including:
Target Quick Response Code obtains module, for obtaining target Quick Response Code;
First image obtains module, for obtaining the first image;And
Second image obtains module, for according to preset Quick Response Code incorporation model, the target Quick Response Code being embedded in described First image obtains the second image;Wherein, when showing described first image and second image in same display screen, Described first image and second image are consistent in appearance.
10. a kind of Quick Response Code extraction element of image, which is characterized in that including:
Second image obtains module, is embedded according to the Quick Response Code of image according to any one of claims 1 to 4 for obtaining The second image that method generates;And
Target Quick Response Code extraction module, for according to preset Quick Response Code extraction model, extracting and obtaining from second image First image and target Quick Response Code;Wherein, when showing described first image and second image in same display screen, institute It states the first image and second image is consistent in appearance.
CN201810464648.2A 2018-05-15 2018-05-15 Quick Response Code insertion, extracting method and the device of image Pending CN108764422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810464648.2A CN108764422A (en) 2018-05-15 2018-05-15 Quick Response Code insertion, extracting method and the device of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810464648.2A CN108764422A (en) 2018-05-15 2018-05-15 Quick Response Code insertion, extracting method and the device of image

Publications (1)

Publication Number Publication Date
CN108764422A true CN108764422A (en) 2018-11-06

Family

ID=64007958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810464648.2A Pending CN108764422A (en) 2018-05-15 2018-05-15 Quick Response Code insertion, extracting method and the device of image

Country Status (1)

Country Link
CN (1) CN108764422A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958453A (en) * 2019-11-14 2020-04-03 北京奇艺世纪科技有限公司 Method and device for generating and identifying graphic identifier, electronic equipment and storage medium
WO2020237881A1 (en) * 2019-05-31 2020-12-03 平安科技(深圳)有限公司 Method and apparatus for injecting anti-counterfeit information, computer device, and storage medium
CN112560530A (en) * 2020-12-07 2021-03-26 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950410A (en) * 2010-09-08 2011-01-19 优视科技有限公司 Digital image processing method and device based on mobile terminal and mobile terminal
CN103886545A (en) * 2014-04-17 2014-06-25 上海理工大学 Transformation domain printing-scanning resistant digital watermarking method based on computer-generated holography
CN104408684A (en) * 2014-12-13 2015-03-11 天津远目科技有限公司 Digital watermarking method with high robustness
CN105184345A (en) * 2015-10-13 2015-12-23 北京工业大学 Digital-watermark-based implicit two-dimensional code
CN106030615A (en) * 2013-12-17 2016-10-12 因富通国际有限公司 Composite information bearing device
CN106485641A (en) * 2016-08-31 2017-03-08 南京师范大学 A kind of tile data digital watermarking based on QR code generates embedded and extracting method
CN107103577A (en) * 2017-04-11 2017-08-29 中国科学院信息工程研究所 Half fragile uniqueness image watermark insertion and extracting method for integrity protection
US20170366700A1 (en) * 2015-09-16 2017-12-21 Institute For Information Industry Method and device for picture-based barcode decoding

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950410A (en) * 2010-09-08 2011-01-19 优视科技有限公司 Digital image processing method and device based on mobile terminal and mobile terminal
CN106030615A (en) * 2013-12-17 2016-10-12 因富通国际有限公司 Composite information bearing device
CN103886545A (en) * 2014-04-17 2014-06-25 上海理工大学 Transformation domain printing-scanning resistant digital watermarking method based on computer-generated holography
CN104408684A (en) * 2014-12-13 2015-03-11 天津远目科技有限公司 Digital watermarking method with high robustness
US20170366700A1 (en) * 2015-09-16 2017-12-21 Institute For Information Industry Method and device for picture-based barcode decoding
CN105184345A (en) * 2015-10-13 2015-12-23 北京工业大学 Digital-watermark-based implicit two-dimensional code
CN106485641A (en) * 2016-08-31 2017-03-08 南京师范大学 A kind of tile data digital watermarking based on QR code generates embedded and extracting method
CN107103577A (en) * 2017-04-11 2017-08-29 中国科学院信息工程研究所 Half fragile uniqueness image watermark insertion and extracting method for integrity protection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨榆,雷敏: "《信息隐藏与数字水印》", 31 October 2017, 北京邮电大学出版社 *
熊淑华,卜云,周激流,付媛媛: "一种基于小波变换的非均匀量化索引调制水印算法", 《四川大学学报(工程科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020237881A1 (en) * 2019-05-31 2020-12-03 平安科技(深圳)有限公司 Method and apparatus for injecting anti-counterfeit information, computer device, and storage medium
CN110958453A (en) * 2019-11-14 2020-04-03 北京奇艺世纪科技有限公司 Method and device for generating and identifying graphic identifier, electronic equipment and storage medium
CN110958453B (en) * 2019-11-14 2022-02-11 北京奇艺世纪科技有限公司 Method and device for generating and identifying graphic identifier, electronic equipment and storage medium
CN112560530A (en) * 2020-12-07 2021-03-26 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device
CN112560530B (en) * 2020-12-07 2024-02-23 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device

Similar Documents

Publication Publication Date Title
Singh et al. A new robust watermarking system in integer DCT domain
CN107959895B (en) Video playing tracing method, device, equipment and storage medium
CN108764422A (en) Quick Response Code insertion, extracting method and the device of image
CN101201939B (en) Method and system for generating picture identifying code
CN110362571A (en) Data safety retroactive method and device based on block chain
CN104023332B (en) A kind of electric terminal and its SMS encryption, decryption method
CN105956469A (en) Method and device for identifying file security
CN106161710B (en) A kind of user account safety management system based on smart phone
CN109829843A (en) A kind of image blind watermarking processing method and processing device improving robustness and encoding amount
CN110113535A (en) End message source tracing method, device, terminal and medium
CN107391976A (en) A kind of document protection method and apparatus based on ambient noise and vector watermark
Veni et al. Digital image watermark embedding and extraction using oppositional fruit Fly algorithm
Khadam et al. Advanced security and privacy technique for digital text in smart grid communications
US20220156873A1 (en) Image synthesis device and method for embedding watermark
CN108256360A (en) The display methods and terminal of a kind of sensitive information
KR102180924B1 (en) System and Method for Embedding and Extracting Digital Watermark Using QR Code
CN114845115A (en) Information transmission method, device, equipment and storage medium
CN109118273A (en) The recovery and treatment method and system of electronic equipment
Singla et al. A Hash Based Approach for secure image stegnograpgy using canny edge detection method
CN111698082A (en) Method for generating fingerprint identification of hybrid terminal equipment based on JS
Mantoro et al. Stegano-image as a digital signature to improve security authentication system in mobile computing
Kumar et al. Encoder-Decoder Architecture for Image Steganography using Skip Connections.
CN112434327A (en) Information protection method and device and electronic equipment
CN117473469B (en) Model watermark embedding method and device, electronic equipment and storage medium
Wazirali et al. Steganographic authentication in cloud storage for mitigation of security risks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106