CN105701529A - Method of realizing color picture display on two-dimension code - Google Patents

Method of realizing color picture display on two-dimension code Download PDF

Info

Publication number
CN105701529A
CN105701529A CN201610022988.0A CN201610022988A CN105701529A CN 105701529 A CN105701529 A CN 105701529A CN 201610022988 A CN201610022988 A CN 201610022988A CN 105701529 A CN105701529 A CN 105701529A
Authority
CN
China
Prior art keywords
code
point
picture
quick response
viewing area
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
CN201610022988.0A
Other languages
Chinese (zh)
Other versions
CN105701529B (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.)
Ximen Na Wei Information Technology Co Ltd
Original Assignee
Ximen Na Wei Information 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 Ximen Na Wei Information Technology Co Ltd filed Critical Ximen Na Wei Information Technology Co Ltd
Priority to CN201610022988.0A priority Critical patent/CN105701529B/en
Publication of CN105701529A publication Critical patent/CN105701529A/en
Application granted granted Critical
Publication of CN105701529B publication Critical patent/CN105701529B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • 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
    • G06K19/06103Constructional details the marking being embedded in a human recognizable image, e.g. a company logo with an embedded two-dimensional code

Abstract

The invention discloses a method of realizing color picture display on a two-dimension code. Through reading a size of a background picture and according to the number of code points, a size of a code point display area is calculated and a size of a finally-formed PNG picture with two-dimension code information is guaranteed to be consistent with the size of the background picture. When a transparent PNG picture is formed, sizes and shapes of the code points are not restricted, and the code points only have to fall into the code point display area and there is no a fixed size concept. The code points present a stereo feeling and are not mixed with a bottom graph color so that codes are easily to distinguish. An error rate of code scanning points is reduced and decoding efficiency is high.

Description

A kind of on Quick Response Code, realize the method that colour picture shows
Technical field
The invention belongs to Computer Applied Technology field and digital image processing field, particularly relate to and a kind of on Quick Response Code, realize the method that colour picture shows。
Background technology
As it is shown in figure 1, Quick Response Code to be fused is also known as QR code (QuickResponse quickly responds Quick Response Code), it is the chequered with black and white graphic recording data symbol information being distributed in plane (on two-dimensional directional) according to certain rules with certain specific geometric figure;Coding utilizes the concept of " 0 ", " 1 " bit stream constituting computer-internal logical foundations dexterously, use several geometrical bodies corresponding with binary system to represent word numerical information, automatically processed to realize information by image input device or photoelectric scanning device automatically identifying and reading: it has some general character of barcode technology, every kind of code system has its specific character set, each character occupies certain width, there is certain verifying function, also there is the information automatic identification function to different rows and process the function of the rotationally-varying point of figure。
Quick Response Code to be fused includes attribute information district and data field, and the information in attribute information district and data field all represents with the form of code element。Wherein data field is for storing the data of coding, and attribute information district is for storing the attribute information of Quick Response Code to be fused, and this attribute information is the necessary information identifying Quick Response Code to be fused。Attribute information district includes position sensing figure, position sensing figure marker space, location figure, correction graph, format information and version information etc.。When a code element in the first region to be fused of Quick Response Code to be fused is positioned at the attribute information district of Quick Response Code to be fused, can determine that the code element that this code element is the attribute information representing Quick Response Code to be fused。
Although Quick Response Code storage information is very capable, but by after encoded for information acquisition Quick Response Code, user just cannot directly know any information of this Quick Response Code, it is necessary to uses special Quick Response Code scanning software to scan this Quick Response Code and just can know the information wherein recorded。In order to improve the ability of Quick Response Code expressing information, conventional art exists a kind of means merged with Quick Response Code by image, utilizes the serious forgiveness of Quick Response Code to add to after image down in Quick Response Code, be commonly added to the middle position of Quick Response Code。
Since the DensoWave company by Japan in 1994 invents, Quick Response Code is widely used in the industries such as inventory tracking, traffic, manufacture, retail as a kind of recognition methods。Due to popularizing of smart mobile phone, and Quick Response Code has and can quickly decode and access online resource and have the characteristics such as high power capacity, Quick Response Code is used to various application program, such as access website, download personal credit card information, the social networks released news, starts phone, replicating video or open text document。This multifunctionality makes them be all a valuable instrument in any industry。But the shape of Quick Response Code and color tolerance are limited, incorporate billboard design or printing material is subject to drastic delimitations。
Existing there is also some color 2 D codes, such as wechat personal information Quick Response Code, Alipay personal information Quick Response Code etc., these color 2 D codes do not significantly change the structure of original " trellis " code block of Quick Response Code, simply stiff Quick Response Code after dyeing is imbedded in picture, or stiff for picture little scope is imbedded in Quick Response Code, both are not organically combined, and pattern is single。
Summary of the invention
It is an object of the invention to provide and a kind of on Quick Response Code, realize the method that colour picture shows, Quick Response Code is made organically to be combined with colour picture to be fused in a transparent manner, neither affect the function of Quick Response Code, also colour picture intactly can be presented, increase the visual effect of Quick Response Code better, use function and the scope of Quick Response Code can be expanded further。
The present invention is a kind of realizes the method that colour picture shows on Quick Response Code, specifically includes following steps:
Step 1, information user inputted generate the corresponding Quick Response Code matrix MM being made up of 0 or 1 code according to the generated code rule of Quick Response Code;
Step 2, acquisition background picture are adjusted to square and obtain hem width pixel value, and this background picture is colour picture;
Step 3, the hem width pixel value of background picture is counted M divided by Quick Response Code square matrix code, calculate the max pixel value N of each code-point, it is thus achieved that code-point viewing area NN;
Step 4, in each code-point viewing area, stamp the code-point of arbitrary size and shape, it is thus achieved that the transparent PNG picture with 2 D code information of and background picture formed objects:
Step 41, according to Quick Response Code matrix, if code-point color is black in code-point viewing area, then in code-point viewing area, first stamps the shape size background color block slightly larger than code-point shape, adopt the contrast color of black;
Step 42, the background color block in code-point viewing area is done Vitrification management;
Step 43, in this undercolor region formed a black code-point that shape is smaller and transparence value is 0, this code-point with stereoeffect can be arbitrary shape;
Step 44, repetition step 41 are to step 43 until stamping code-point in each code-point viewing area;
Step 5, transparent PNG picture and background picture being overlapped makes two pictures be completely superposed, and synthesizes a two-dimension code image with color background figure。
The present invention is a kind of realizes the method that colour picture shows on Quick Response Code, by reading the size of background picture, then the size of code-point viewing area is calculated according to the quantity of code-point, it is ensured that the PNG picture with 2 D code information ultimately formed is in the same size with background picture;When forming transparent PNG picture, code-point size, shape are not intended to, as long as falling completely within code-point viewing area, there is no the concept of fixed size, and allow code-point present third dimension, be unlikely to confuse with base map color contamination, distinguishing code to be easier, reduce barcode scanning point error rate, decoding efficiency is higher。
Accompanying drawing explanation
Fig. 1 is Quick Response Code composition schematic diagram;
Fig. 2 is code-point viewing area of the present invention schematic diagram;
White or the schematic diagram of black background color block are stamped in the code-point viewing area of Fig. 3 A and Fig. 3 B respectively present invention;
The background color block of Fig. 4 A and Fig. 4 B respectively Fig. 3 A and Fig. 3 B makees the effect schematic diagram of Vitrification management;
The background color block of Fig. 5 A and Fig. 5 B respectively Fig. 4 A and Fig. 4 B is stamped the effect schematic diagram of code-point;
Fig. 6 is the schematic diagram that code-point does not do that stereoeffect processes;
Fig. 7 is the two-dimension code image that the present invention merges chromatic colour Background。
Below in conjunction with drawings and Examples, the invention will be further described。
Detailed description of the invention
A kind of on Quick Response Code, realize the method that colour picture shows, specifically include following steps:
Step 1, information user inputted generate the corresponding Quick Response Code matrix M*M being made up of 0 or 1 code according to the generated code rule of Quick Response Code;
Step 2, acquisition background picture are adjusted to square and obtain hem width pixel value, and this background picture is colour picture;
Step 3, the hem width pixel value of background picture is counted M divided by Quick Response Code square matrix code, calculate the max pixel value N of each code-point, it is thus achieved that code-point viewing area N*N, as shown in Figure 2;
Step 4, in each code-point viewing area, stamp the code-point of arbitrary size and shape, it is thus achieved that the transparent PNG picture with 2 D code information of and background picture formed objects:
Step 41, according to Quick Response Code matrix, if code-point color is black in code-point viewing area, then first in code-point viewing area, stamp the shape size background color block slightly larger than code-point shape, it is possible to be the contrast color of black, for instance white or light, as shown in Figure 3A, assume that code-point is black triangle, then stamp the undercolor region of a white triangles shape more bigger than code-point shape in code-point viewing area, if code-point is white triangles shape, then undercolor region is black, as shown in Figure 3 B;
Step 42, the background color block in code-point viewing area is done Vitrification management, namely set the transparence value of background color block as threshold value, see Fig. 4 A and Fig. 4 B;
Step 43, in this undercolor region formed a black code-point that shape is smaller and transparence value is 0, this place's code-point is high-contrast, high transparency and the arbitrary shape having stereoeffect;
Step 44, repetition step 41 are to step 43 until stamping code-point in each code-point viewing area;
Step 5, transparent PNG picture and background picture being overlapped makes two pictures be completely superposed, and synthesizes a two-dimension code image with color background figure。
The present invention focuses on: by reading the size of background picture, then calculate the size of code-point viewing area according to the quantity of code-point, it is ensured that the PNG picture with 2 D code information ultimately formed is in the same size with background picture;When forming transparent PNG picture, code-point size, shape are not intended to, as long as falling completely within code-point viewing area, there is no the concept of fixed size, and allow code-point present third dimension, and it being unlikely to confuse with base map color contamination, the code-point in Fig. 6 does not do stereoeffect and processes, white code-point is own through having been merged bad differentiation by background, the code-point of the present invention has done stereoeffect process, is easier as it is shown in fig. 7, distinguish code, reducing barcode scanning point error rate, decoding efficiency is higher。
The above, it it is only present pre-ferred embodiments, not the technical scope of the present invention is imposed any restrictions, therefore every any trickle amendment, equivalent variations and modification above example made according to the technical spirit of the present invention, all still fall within the scope of technical solution of the present invention。

Claims (1)

1. one kind realizes the method that colour picture shows on Quick Response Code, it is characterised in that comprise the steps:
Step 1, information user inputted generate the corresponding Quick Response Code matrix M*M being made up of 0 or 1 code according to the generated code rule of Quick Response Code;
Step 2, acquisition background picture are adjusted to square and obtain hem width pixel value, and this background picture is colour picture;
Step 3, the hem width pixel value of background picture is counted M divided by Quick Response Code square matrix code, calculate the max pixel value N of each code-point, it is thus achieved that code-point viewing area N*N;
Step 4, in each code-point viewing area, stamp the code-point of arbitrary size and shape, it is thus achieved that the transparent PNG picture with 2 D code information of and background picture formed objects:
Step 41, according to Quick Response Code matrix, if code-point color is black in code-point viewing area, then in code-point viewing area, first stamps the shape size background color block slightly larger than code-point shape, adopt the contrast color of black;
Step 42, the background color block in code-point viewing area is done Vitrification management;
Step 43, in this undercolor region formed a black code-point that shape is smaller and transparence value is 0, this code-point with stereoeffect can be arbitrary shape;
Step 44, repetition step 41 are to step 43 until stamping code-point in each code-point viewing area;
Step 5, transparent PNG picture and background picture being overlapped makes two pictures be completely superposed, and synthesizes a two-dimension code image with color background figure。
CN201610022988.0A 2016-01-14 2016-01-14 A method of realizing that color image is shown on two dimensional code Expired - Fee Related CN105701529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610022988.0A CN105701529B (en) 2016-01-14 2016-01-14 A method of realizing that color image is shown on two dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610022988.0A CN105701529B (en) 2016-01-14 2016-01-14 A method of realizing that color image is shown on two dimensional code

Publications (2)

Publication Number Publication Date
CN105701529A true CN105701529A (en) 2016-06-22
CN105701529B CN105701529B (en) 2019-06-25

Family

ID=56227339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610022988.0A Expired - Fee Related CN105701529B (en) 2016-01-14 2016-01-14 A method of realizing that color image is shown on two dimensional code

Country Status (1)

Country Link
CN (1) CN105701529B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709543A (en) * 2016-08-31 2017-05-24 腾讯科技(深圳)有限公司 Graphic identification code generation method and apparatus thereof
CN106778998A (en) * 2016-11-28 2017-05-31 北京慧眼智行科技有限公司 The generation method and device of a kind of color 2 D code
CN108665434A (en) * 2017-03-29 2018-10-16 鸿富锦精密工业(深圳)有限公司 Image combining method and device
CN110033068A (en) * 2019-04-17 2019-07-19 尤尼泰克(嘉兴)信息技术有限公司 A kind of two-dimensional code generation method and equipment containing background image

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059833A (en) * 2006-04-19 2007-10-24 At信息株式会社 Two-dimensional code with a logo
CN105009146A (en) * 2012-06-26 2015-10-28 艾克尼特有限公司 Image mask providing a machine-readable data matrix code
CN105117760A (en) * 2015-09-15 2015-12-02 牛建伟 Method for generating color image two-dimensional code through fusion of two-dimensional code with color image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059833A (en) * 2006-04-19 2007-10-24 At信息株式会社 Two-dimensional code with a logo
CN105009146A (en) * 2012-06-26 2015-10-28 艾克尼特有限公司 Image mask providing a machine-readable data matrix code
CN105117760A (en) * 2015-09-15 2015-12-02 牛建伟 Method for generating color image two-dimensional code through fusion of two-dimensional code with color image

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709543A (en) * 2016-08-31 2017-05-24 腾讯科技(深圳)有限公司 Graphic identification code generation method and apparatus thereof
CN106709543B (en) * 2016-08-31 2019-06-28 腾讯科技(深圳)有限公司 Pattern identification code generating method and device
CN106778998A (en) * 2016-11-28 2017-05-31 北京慧眼智行科技有限公司 The generation method and device of a kind of color 2 D code
CN108665434A (en) * 2017-03-29 2018-10-16 鸿富锦精密工业(深圳)有限公司 Image combining method and device
CN108665434B (en) * 2017-03-29 2021-10-22 鸿富锦精密工业(深圳)有限公司 Image synthesis method and device
CN110033068A (en) * 2019-04-17 2019-07-19 尤尼泰克(嘉兴)信息技术有限公司 A kind of two-dimensional code generation method and equipment containing background image

Also Published As

Publication number Publication date
CN105701529B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN105718979B (en) A method of generating two-dimension code image
CN105718980A (en) Method for generating two-dimensional code picture
CN105117760B (en) A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image
EP3605398B1 (en) Method and device for generating and identifying identification code
EP3457327B1 (en) Method and apparatus for generating two-dimensional code picture having dynamic effect
US11797810B2 (en) Machine-readable label generator
Sutheebanjard et al. QR-code generator
US20120024956A1 (en) Qr code having hidden codes and methods of forming and identifying the hidden codes
EP2898451B1 (en) Information obtaining method and apparatus
CN105701529A (en) Method of realizing color picture display on two-dimension code
US8550367B2 (en) System and method for embedding machine-readable codes in combination with other images such as logos
KR20130069596A (en) Two-dimensional code with a logo, device for generating a two-dimensional code with a logo, method for generating a two-dimensional code with a logo, and program
KR20100015447A (en) Detection and segmentation of a two-dimensional code
CN101645140A (en) Two-dimensional code generation method, decoding method and device
CN106874818B (en) A kind of Digital Object Unique Identifier DOI recognition methods and device
US10395155B2 (en) Billboard containing encoded information
CN103530669A (en) Data information two-dimensional code encoding method
CN104751094A (en) Article with visual code, visual code reading apparatus and information conveying method
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
Liu et al. Embedded media markers: marks on paper that signify associated media
CN106067054A (en) A kind of Quick Response Code based on QR code
CN108256610A (en) A kind of word is around the generation system and generation method of Quick Response Code
CN112884101A (en) Graphic code, graphic code encoding method and graphic code decoding method
Bunma et al. Using augment reality to increase capacity in QR code
CN109685186A (en) Extensive content customization method based on two-dimentional idle bit

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190625

Termination date: 20200114