[go: up one dir, main page]

CN105117760B - A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image - Google Patents

A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image Download PDF

Info

Publication number
CN105117760B
CN105117760B CN201510587303.2A CN201510587303A CN105117760B CN 105117760 B CN105117760 B CN 105117760B CN 201510587303 A CN201510587303 A CN 201510587303A CN 105117760 B CN105117760 B CN 105117760B
Authority
CN
China
Prior art keywords
quick response
response code
color image
picture
merged
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510587303.2A
Other languages
Chinese (zh)
Other versions
CN105117760A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510587303.2A priority Critical patent/CN105117760B/en
Publication of CN105117760A publication Critical patent/CN105117760A/en
Application granted granted Critical
Publication of CN105117760B publication Critical patent/CN105117760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The present invention proposes a kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image, including:The information input by user that generate Quick Response Code is generated into Quick Response Code, the picture to be merged chosen to user pre-processes, and the size of pretreated picture and Quick Response Code keeps the proportionate relationship of setting, and picture each several part color keep is constant.Retain Quick Response Code core scanning area when scanned, to ensure that Quick Response Code can be scanned correctly, remainder replaces being merged color image with Quick Response Code with the corresponding part of pretreated picture, color image Quick Response Code is generated, pretreated picture fusion described in the color image Quick Response Code is distributed in the region all or in part of the Quick Response Code.Color image, can be fused in Quick Response Code by the method that picture provided by the invention is merged with Quick Response Code, on the premise of ensureing that 2 D code information can be by correct scan, add the visual presentation and advertising results of Quick Response Code.

Description

A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image
Technical field
The invention belongs to Computer Applied Technology field and digital image processing field, and in particular to it is a kind of by Quick Response Code with The method of color image fusion generation color image Quick Response Code.
Background technology
Quick Response Code, also known as QR code (Quick Response code), are by certain with certain specific geometric figure The chequered with black and white graphic recording data symbol information that rule is distributed in plane (on two-dimensional directional);On coding dexterously Using form " 0 " of computer-internal logical foundations, " 1 " bit stream concept, it is corresponding several with binary system using several What body represents word numerical information, by image input device or photoelectric scanning device automatically identifying and reading to realize that information is automatic Processing:It has some general character of barcode technology:Every kind of code system has its specific character set;Each character occupies certain width Degree;With certain verifying function etc..Also there is the information automatic identification function to not going together and processing figure rotation to become at the same time Change the function of point.
Since 1994 by the Denso Wave companies invention of Japan since, Quick Response Code rapidly become it is a kind of stock with Track and traffic, manufacture, the widely used recognition methods of retail trade.Since the popularization of smart mobile phone, and Quick Response Code have energy It is enough quickly to decode and access online resource and be used for various application programs with characteristic, Quick Response Codes such as high power capacity, For example website is accessed, personal credit card information is downloaded, the social networks to release news, starts phone, replicating video or opening text This document.This multifunctionality makes them all be a valuable instrument in any industry.But one of Quick Response Code is important Defect is its influence to publicizing design esthetics.The shape and color tolerance of Quick Response Code are limited, this has seriously affected them and has incorporated Billboard design or printing material.
It is existing that there is also some color 2 D codes, such as wechat personal information Quick Response Code, Alipay personal information Quick Response Code The structure of original " trellis " code block of Quick Response Code is not significantly changed Deng, these color 2 D codes, it is simply stiff will be after dyeing Quick Response Code imbed in picture, or picture stiff ground small range is imbedded in Quick Response Code, organically combines both, and And style sheet one.
The content of the invention
For Quick Response Code shape and limited color tolerance the problem of, in order to reduce its to publicity design aesthstic shadow Ring, and overcome the reduction to Quick Response Code decoding capability thus brought, the present invention proposes that one kind melts Quick Response Code and color image Any color image can be merged the diversified fusion two of generation by symphysis into the method for color image Quick Response Code with Quick Response Code Tie up code.
The method that Quick Response Code is merged to generation color image Quick Response Code with color image of the present invention, detailed process are as follows:
Step 1, the information input by user that generate Quick Response Code is generated into Quick Response Code;
Step 2, the picture to be merged chosen to user pre-processes, pretreated picture and the Quick Response Code Size keeps the proportionate relationship of setting, and picture each several part color keep is constant;
Step 3, by retaining core scanning area of the Quick Response Code when scanned, by remainder with pretreated figure The method that the corresponding part of piece replaces, the pretreated picture is merged with the Quick Response Code, generates cromogram Piece Quick Response Code, pretreated picture merges in whole or in part described in the color image Quick Response Code is distributed in the Quick Response Code Region all or in part in.
Advantages of the present invention is with good effect:Color image can be fused in Quick Response Code, ensure Quick Response Code On the premise of information can be by correct scan, the single black and white bandwagon effect of Quick Response Code is improved, the present invention incorporates color and figure The displaying of Quick Response Code and the effect of publicity is substantially improved in piece, adds the visual presentation and advertising results of Quick Response Code.
Brief description of the drawings
Fig. 1 is the Quick Response Code and pith mark schematic diagram generated in present example;
Fig. 2 is the overall flow schematic diagram of the method for present invention fusion generation color image Quick Response Code;
Fig. 3 is to show " dark color " module in Quick Response Code with the gray scale that the appropriate section in picture merges in present example It is intended to;
Fig. 4 is to show " light color " module in Quick Response Code with the gray scale that the appropriate section in picture merges in present example It is intended to;
Fig. 5 is the flow diagram of present example generation color image Quick Response Code;
Fig. 6 is the gray-scale map for the color image Quick Response Code that present example ultimately produces.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Quick Response Code is merged the method for generation color image Quick Response Code, flow such as Fig. 2 and Fig. 5 institutes by the present invention with color image Show, the realization to each step below is specifically described.
Step 1, the information input by user that generate Quick Response Code is generated into Quick Response Code.
The information for generating Quick Response Code includes but not limited to the information such as word, numeral, network address.Generating mode includes but unlimited In using the storehouses such as Zxing, Zbar.
Step 2, the picture to be merged chosen to user pre-processes, and obtains pretreated picture.By the use The picture to be merged that family is chosen zooms in and out so that the size of pretreated picture and the size of the Quick Response Code meet thing The proportionate relationship first set, and it is constant to retain the picture each several part color.
In the embodiment of the present invention, pre-process as scaling processing, handled by scaling, the size scaling of figure is arrived and Quick Response Code Formed objects, as shown in Figure 3.
Step 3, retain core scanning area of the Quick Response Code when being scanned, picture is merged with Quick Response Code, is generated Color image Quick Response Code.
This step is according to the strategy for the core sweep test for only retaining each minimum unit module of Quick Response Code, and remainder is with advance The method that the appropriate section of picture after processing replaces, pretreated picture is merged with Quick Response Code.
Retain 3 " registration patterns " in Fig. 1, " module " of remainder is melted with the appropriate section in picture Close.As shown in fig. 1, " module " herein refer to generation Quick Response Code minimum black and white colour developing unit, be Quick Response Code most Junior unit module, " registration pattern " refer to being located at pattern in 2 D code upper left respectively, and the class of upper right and lower-left " returns " word structure.Such as Shown in Fig. 3 and Fig. 4, each " module " is divided into 3*3 small lattice, if the module is black, is only retained positioned at center Between small lattice be black, remaining 8 small lattice changes the appropriate section in pretreated picture into;If likewise, the module is White, also only retains the small lattice positioned at middle and changes the appropriate section in pretreated picture into for white, remainder.This Inventive embodiments, as shown in figure 5, Quick Response Code and color image to be carried out to warm, generation color 2 D code.
It should be noted that the method for the present invention includes but not limited to the structure that each " module " is divided into 3*3, ability The technical staff and professional person in domain are understood that and clear, and Quick Response Code is when scanned, for each " module ", in ideal In the case of, this whole " module " where the colouring information of only most middle pixel determines it is scanned into black still White, but because scanning when there are certain error, so being replaced with the small lattice of whole rectangle comprising intermediary image vegetarian refreshments.So bag Include but be not limited to 5*5, the division methods such as 7*7,9*9, you can each " module " to be divided into the small lattice of n*n, n is more than 2 Integer.It is required that at least cover " module " most middle pixel with the color lump with " module " same color.When n is more than 2 During odd number, the small lattice to including the most middle of intermediary image vegetarian refreshments, can retain the script color of the whole small lattice of rectangle, also may be used With with the other shapes color lump of black identical with small lattice or white, to cover this " module ", and the most middle pixel of covering.When When n is the even number more than 2, the color of the 4 small lattice script in bosom can be retained, black identical with small lattice or white can also be used The other shapes color lump of color covers " module ", and covers most middle pixel.Color lump shape include but not limited to it is circular, Star etc.." module " remainder is replaced with the part of the same position of pretreated picture.By above-mentioned processing, retain Quick Response Code core scanning area when scanned, ensure that Quick Response Code can be scanned correctly, and prevent Quick Response Code decoding capability The problem of reduction.
This area lead to all or part of step that technical staff is appreciated that in the various methods of above-described embodiment be can be with Relevant hardware is manipulated by program to complete, which can be stored in computer-readable recording medium, storage medium It can include:ROM, RAM, disk or CD etc..
The method and be described in detail that the picture provided above the embodiment of the present invention is merged with Quick Response Code, this Specific case is applied in text the principle of the present invention and embodiment is described, the explanation of above example is only intended to Understand the method and its core concept of the present invention;Meanwhile for those skilled in the art, according to the thought of the present invention, having Part can be changed in body embodiment and application range, in conclusion this description should not be construed as to the present invention's Limitation.

Claims (5)

  1. A kind of 1. method that Quick Response Code is merged to generation color image Quick Response Code with color image, it is characterised in that including:
    The information input by user that generate Quick Response Code is generated into Quick Response Code;
    The picture to be merged chosen to user pre-processes, and the size dimension of pretreated picture and the Quick Response Code is protected The proportionate relationship of setting is held, and each several part color keep is constant in picture;
    By retaining core scanning area of the Quick Response Code when being scanned, the appropriate section of the pretreated picture of remainder Instead of method, picture is merged with Quick Response Code, generate color image Quick Response Code;Described in the color image Quick Response Code Pretreated picture merges in whole or in part to be distributed in the region all or in part of the Quick Response Code;
    It is described by retaining core scanning area of the Quick Response Code when scanned, the phase of the pretreated picture of remainder Part substitution method is answered, including:
    " registration pattern " of upper left in Quick Response Code, upper right and lower-left is retained;
    To each minimum unit module in Quick Response Code, retain core sweep test, remainder is identical with pretreated picture The part of position replaces;The minimum unit module refers to the minimum black and white colour developing unit of Quick Response Code.
  2. 2. the method according to claim 1 that Quick Response Code is merged to generation color image Quick Response Code with color image, it is special Sign is that the picture to be merged chosen to user pre-processes, be by the picture to be merged that user chooses into Row scaling.
  3. 3. the method according to claim 1 that Quick Response Code is merged to generation color image Quick Response Code with color image, it is special Sign is that the core sweep test is the pixel positioned at minimum unit module center.
  4. 4. the method according to claim 1 that Quick Response Code is merged to generation color image Quick Response Code with color image, it is special Sign is that the minimum unit module is divided into the small lattice of n*n, and n is the integer more than 2;With with minimum unit module phase Color lump with color at least covers the most middle pixel of the minimum unit module, and minimum unit module remainder is located with pre- The part of the same position of picture after reason replaces.
  5. 5. the method according to claim 1 that Quick Response Code is merged to generation color image Quick Response Code with color image, it is special Sign is that the minimum unit module is divided into the small lattice of 3*3, only retain positioned at middle small lattice script black or The color of person's white, remaining 8 small lattice are replaced with the part of the same position of pretreated picture.
CN201510587303.2A 2015-09-15 2015-09-15 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image Active CN105117760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510587303.2A CN105117760B (en) 2015-09-15 2015-09-15 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510587303.2A CN105117760B (en) 2015-09-15 2015-09-15 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image

Publications (2)

Publication Number Publication Date
CN105117760A CN105117760A (en) 2015-12-02
CN105117760B true CN105117760B (en) 2018-04-27

Family

ID=54665743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510587303.2A Active CN105117760B (en) 2015-09-15 2015-09-15 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image

Country Status (1)

Country Link
CN (1) CN105117760B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718979B (en) * 2016-01-14 2019-06-25 厦门纳纬信息技术有限公司 A method of generating two-dimension code image
CN105718980B (en) * 2016-01-14 2019-06-25 厦门纳纬信息技术有限公司 A method of generating two-dimension code image
CN105701529B (en) * 2016-01-14 2019-06-25 厦门纳纬信息技术有限公司 A method of realizing that color image is shown on two dimensional code
CN105708563A (en) * 2016-01-18 2016-06-29 北京柏惠维康科技有限公司 Navigation positioning marker, verification method, positioning method and electronic tag reading and writing device
CN105760917B (en) * 2016-02-04 2017-10-13 陈绳旭 three-dimensional code encoding method and system
CN105787541B (en) * 2016-02-04 2017-06-20 陈绳旭 four-dimensional code encoding method and system
CN106022426A (en) * 2016-05-16 2016-10-12 微位(上海)网络科技有限公司 Method and system for generating two-dimensional code with color pattern
CN106570550B (en) * 2016-11-09 2019-10-29 上海斐讯数据通信技术有限公司 A method of generating two dimensional code
CN108073964B (en) * 2016-11-18 2020-09-29 穆亚南 Perspective two-dimensional code generation method and device
CN106599965B (en) * 2016-11-25 2019-05-31 北京矩石科技有限公司 A kind of method and apparatus that image is cartoonized and merged with two dimensional code
CN106778998A (en) * 2016-11-28 2017-05-31 北京慧眼智行科技有限公司 The generation method and device of a kind of color 2 D code
CN106779740A (en) * 2016-12-02 2017-05-31 覃勇 A kind of digital invisible two-dimensional codes checking Antiforge system and invisible two-dimensional codes modulator approach
CN107443922B (en) * 2017-07-23 2019-06-25 上海有个文化传播有限公司 A kind of anti-fake two-dimension code generation system
CN107563476B (en) * 2017-07-25 2020-05-15 浙江惠码科技有限公司 Two-dimensional code beautifying and anti-counterfeiting method
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
CN107748908A (en) * 2017-09-18 2018-03-02 中国农业大学 A kind of individual two-dimensional code constructing method
CN108229234B (en) * 2017-12-07 2020-07-03 北京航空航天大学 Scannable image generation method fusing digital coding
CN108898641B (en) * 2018-04-28 2023-06-30 深圳果力智能科技有限公司 Machine-recognizable pattern generation method, generation device, and computer-readable storage medium
CN108734250B (en) * 2018-05-29 2021-06-15 西安理工大学 Visual two-dimensional code generation method based on Sobel operator
CN110633773B (en) * 2018-06-22 2022-04-12 北京京东尚科信息技术有限公司 Two-dimensional code generation method and device for terminal equipment
CN110070163A (en) * 2019-04-30 2019-07-30 杭州甄别网络科技有限公司 Two-dimension code image encryption method and device
CN111062455B (en) * 2019-12-18 2024-05-14 北京远度互联科技有限公司 Two-dimensional code simplification and display method and device, electronic equipment and storage medium
CN113353022A (en) * 2020-03-05 2021-09-07 广州汽车集团股份有限公司 Vehicle anti-theft method and system and vehicle-mounted equipment
CN117744695B (en) * 2024-02-06 2024-05-03 浙江码尚科技股份有限公司 Automatic generation method and system for fusion two-dimensional code

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722820A (en) * 2012-06-01 2012-10-10 王学武 Double two-dimension code product counterfeit method and system
CN103606141A (en) * 2013-12-09 2014-02-26 陈绳旭 Method and system for realizing image display based on two-dimension code
CN103678260A (en) * 2013-12-25 2014-03-26 南通大学 Portable electronic business card holder and processing method
CN103854298A (en) * 2014-02-13 2014-06-11 腾讯科技(深圳)有限公司 Method for integrating pictures with two-dimension codes and terminal
CN104850814A (en) * 2015-05-14 2015-08-19 上海交通大学 Image optimization processing method with fusion of two-dimensional code
CN104851117A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method for fusing image with two-dimensional barcode and device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8978991B2 (en) * 2013-03-15 2015-03-17 Christopher Prince Generating a decorative image bar code using filter patterns

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722820A (en) * 2012-06-01 2012-10-10 王学武 Double two-dimension code product counterfeit method and system
CN103606141A (en) * 2013-12-09 2014-02-26 陈绳旭 Method and system for realizing image display based on two-dimension code
CN103678260A (en) * 2013-12-25 2014-03-26 南通大学 Portable electronic business card holder and processing method
CN103854298A (en) * 2014-02-13 2014-06-11 腾讯科技(深圳)有限公司 Method for integrating pictures with two-dimension codes and terminal
CN104851117A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method for fusing image with two-dimensional barcode and device thereof
CN104850814A (en) * 2015-05-14 2015-08-19 上海交通大学 Image optimization processing method with fusion of two-dimensional code

Also Published As

Publication number Publication date
CN105117760A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN105117760B (en) A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image
US11675985B2 (en) Systems and methods for generating and reading intrinsic matrixed bar codes
US11861450B2 (en) Multiplexed quick response (“QR”) code experience derivation
CA2709006C (en) Systems and methods for animating barcodes
US10706343B2 (en) Method and apparatus for generating two-dimensional barcode picture having dynamic effect
CN105718979B (en) A method of generating two-dimension code image
KR102235215B1 (en) Augmenting barcodes with secondary encoding for anti-counterfeiting
Li et al. An aesthetic QR code solution based on error correction mechanism
CN101765861A (en) Detection and segmentation of a two-dimensional code
CN105718980B (en) A method of generating two-dimension code image
CN103955730A (en) Manufacturing method of anti-counterfeiting photo-etched two-dimensional code labels
Lin et al. Interactive QR code beautification with full background image embedding
CN105701529B (en) A method of realizing that color image is shown on two dimensional code
CN106067054A (en) A kind of Quick Response Code based on QR code
US10282648B2 (en) Machine readable visual codes encoding multiple messages
CN112884101A (en) Graphic code, graphic code encoding method and graphic code decoding method
CN107748908A (en) A kind of individual two-dimensional code constructing method
CN101707735A (en) Code generation method suitable for mobile phone to touch-read and play multimedia
CN108021965A (en) A kind of barcode scanning method of stereoscopic two-dimensional code and stereoscopic two-dimensional code
CN106339907A (en) Data tracing interaction method
Trpovski Geometric modifications of QR code
CN106779001A (en) A kind of preparation method of gradual change Quick Response Code
WO2019023864A1 (en) Two-dimensional code identification method and system based on intelligent terminal camera
Abualsha'ar et al. Retrieve Information From Articles By Using Quick Response Code
Werner et al. DualCodes: Backward Compatible Multi-layer 2D-Barcodes

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