CN107273961A - A kind of method that color 2 D code is automatically generated according to template - Google Patents
A kind of method that color 2 D code is automatically generated according to template Download PDFInfo
- Publication number
- CN107273961A CN107273961A CN201710404063.7A CN201710404063A CN107273961A CN 107273961 A CN107273961 A CN 107273961A CN 201710404063 A CN201710404063 A CN 201710404063A CN 107273961 A CN107273961 A CN 107273961A
- Authority
- CN
- China
- Prior art keywords
- code
- color
- template
- generation
- quick response
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Abstract
The present invention relates to a kind of method that color 2 D code is automatically generated according to template, belong to computer and planar bar code technology field.The inventive method comprises the following steps:1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in server to server, and picture;2)Decoding identification is carried out to two-dimension code image;3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;4)Information to acquisition is encoded, and generates standard black and white Quick Response Code;5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace, generation color 2 D code.The inventive method efficiency high, the color 2 D code discrimination designed is high, is suitable for not designing the ordinary people of grounding in basic skills, and the two-dimentional code mask of the system is applied to every profession and trade businessman and individual.
Description
Technical field
The invention belongs to computer and planar bar code technology field, it is related to and a kind of color 2 D code is automatically generated according to template
Method.
Background technology
With the development of science and technology, also more and more extensively, Quick Response Code can be used for information transmission, individual for the application of Quick Response Code
People's business card, network address, advertisement, voucher, mobile payment and other application scenarios for needing to transmit low volume data.The two dimension applied at present
Code is the point composition with black and white mostly, and black and white phase is distributed in the plane according to certain rules with certain specific geometric figure
Between graphic recording data symbol information, can be in horizontal and vertical two orientation expressing information simultaneously, therefore can be in very little
The substantial amounts of information of expression in area.
Current black and white Quick Response Code can change colour after post-processing, embed picture etc., but traditional color 2 D code
Need designer to carry out hand-designed using software, need designer to redesign for different templates, it is impossible to
Automatically generate Quick Response Code, the color 2 D code that so design is produced, not only efficiency is low and the problem of there is None- identified, it is necessary to
Repeatedly adjusted.
The content of the invention
To solve above technical problem, the present invention provides a kind of method that color 2 D code is automatically generated according to template, this
Method generates the 2 D code information of acquisition using image processing techniques the Quick Response Code of standard, and the standard two-dimensional code of generation is entered
Row element is replaced.
The technical solution adopted by the present invention is as follows:
A kind of method that color 2 D code is automatically generated according to template, comprises the following steps:
1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in service to server, and picture
Device;
2)Decoding identification is carried out to two-dimension code image:Using one dimensional code scanner of programming, what is uploaded onto the server
The content recognition of Quick Response Code comes out;
3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;
4)Information to acquisition is encoded, and generates standard black and white Quick Response Code;
5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace, generation color 2 D code.
It is preferred that, the method that color 2 D code is automatically generated according to template, the information of described pair of acquisition is compiled
Code, generating standard black and white Quick Response Code is specially:Two-dimentional digital content in reading database, is believed the Quick Response Code of acquisition using program
Breath is recompiled, and generates new standard black and white two-dimension code image, and the standard black and white Quick Response Code of generation is saved.
It is preferred that, the method that color 2 D code is automatically generated according to template, the basis is chosen the rule of template
Row element replacement then is entered to the standard black and white Quick Response Code of generation, generation color 2 D code is specially:Designed according to system background
Pattern rule, row element is entered to the standard black and white two-dimension code image of generation and is replaced, to the element in former Quick Response Code according to by greatly to
Small order is replaced successively, ultimately generates color 2 D code.
It is preferred that, the method that color 2 D code is automatically generated according to template is further comprising the steps of:
6)The color 2 D code picture of generation is synthesized on background picture.
It is preferred that, the method that color 2 D code is automatically generated according to template can also comprise the following steps:
6)Input self-defined word:Self-defined word is inputted, and word is generated into corresponding picture according to the style rule of template;
7)The color 2 D code picture and word picture of generation are synthesized on background picture.
The inventive method is handled Quick Response Code according to set rule, without manually being interfered.Color 2 D code
Generating process be all automatically performed under control of a computer program.The present invention color 2 D code existing with the market is set
Meter method is different, traditional color 2 D code design, is to have manually to carry out the element in Quick Response Code by photo handling software
Replace by hand, the color 2 D yard that so design is produced, not only efficiency is low and also the problem of there is None- identified, it is necessary to carry out many
Secondary adjustment., will and the method for the design color 2 D code of the present invention only needs to designer and cut designed template
The two-dimentional data code of separation is uploaded onto the server, user need design color 2 D code when, only need to by the Quick Response Code of needs with
The mode of picture or word is submitted to server, and backstage goes out the stencil design selected automatically according to user comprising user's needs
The color 2 D code of information.The designer without specialty participates in design, and the colour two designed in this process
Tie up code discrimination high.This method is suitable for not designing grounding in basic skills and needs the ordinary people of color 2 D code.And the system
Two-dimentional code mask is applied to every profession and trade businessman and individual.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for the method that color 2 D code is automatically generated according to template of the present invention;
Fig. 2 is a kind of schematic flow sheet for the method that color 2 D code is automatically generated according to template of the embodiment of the present invention 1;
Fig. 3 is a kind of schematic flow sheet for the method that color 2 D code is automatically generated according to template of the embodiment of the present invention 2;
Fig. 4 is a kind of schematic flow sheet for the method that color 2 D code is automatically generated according to template of the embodiment of the present invention 3.
Embodiment
Make further details of elaboration to present invention with specific embodiment below in conjunction with the accompanying drawings.
Embodiment 1
With reference to Fig. 2, a kind of method that color 2 D code is automatically generated according to template of the present invention comprises the following steps:
1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in service to server, and picture
Device;
2)Decoding identification is carried out to two-dimension code image:Using one dimensional code scanner of programming, what is uploaded onto the server
The content recognition of Quick Response Code comes out;
3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;
4)Information to acquisition is encoded, and generates standard black and white Quick Response Code:Two-dimentional digital content in reading database, utilizes journey
The 2 D code information that ordered pair is obtained is recompiled, and generates new standard black and white two-dimension code image, and the standard of generation is black
White Quick Response Code is saved;
5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace:Designed according to system background
Pattern rule, row element is entered to the standard black and white two-dimension code image of generation and is replaced, to the element in former Quick Response Code according to by big
Replaced successively to small order, ultimately generate color 2 D code;
6)The color 2 D code picture of generation is synthesized on background picture.
Embodiment 2
With reference to Fig. 3, a kind of method that color 2 D code is automatically generated according to template of the present invention comprises the following steps:
1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in service to server, and picture
Device;
2)Decoding identification is carried out to two-dimension code image:Using one dimensional code scanner of programming, what is uploaded onto the server
The content recognition of Quick Response Code comes out;
3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;
4)Information to acquisition is encoded, and generates standard black and white Quick Response Code:Two-dimentional digital content in reading database, utilizes journey
The 2 D code information that ordered pair is obtained is recompiled, and generates new standard black and white two-dimension code image, and the standard of generation is black
White Quick Response Code is saved;
5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace:Designed according to system background
Pattern rule, row element is entered to the standard black and white two-dimension code image of generation and is replaced, to the element in former Quick Response Code according to by big
Replaced successively to small order, ultimately generate color 2 D code;
6)Input self-defined word:Self-defined word is inputted, and word is generated into corresponding picture according to the style rule of template;
7)The color 2 D code picture and word picture of generation are synthesized on background picture.
Embodiment 3
With reference to Fig. 4, a kind of method that color 2 D code is automatically generated according to template of the present invention comprises the following steps:
1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in service to server, and picture
Device;
2)Decoding identification is carried out to two-dimension code image:Using one dimensional code scanner of programming, what is uploaded onto the server
The content recognition of Quick Response Code comes out;
3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;
4)Information to acquisition is encoded, and generates standard black and white Quick Response Code:Two-dimentional digital content in reading database, utilizes journey
The 2 D code information that ordered pair is obtained is recompiled, and generates new standard black and white two-dimension code image, and the standard of generation is black
White Quick Response Code is saved;
5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace:Designed according to system background
Pattern rule, row element is entered to the standard black and white two-dimension code image of generation and is replaced, to the element in former Quick Response Code according to by big
Replaced successively to small order, ultimately generate color 2 D code;
6)Input self-defined word:Self-defined word is inputted, and word is generated into corresponding picture according to the style rule of template;
7)The color 2 D code picture and word picture of generation are synthesized on background picture.
In the present embodiment, enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace
When, to the element on the standard black and white Quick Response Code of generation, it is replaced using the color-element of same pixel, it is colored according to platform
The element coordinate of Quick Response Code is such as:([["0","0"],["0","1"],["0","2"]])The shape of calculating elements.In standard black and white
Corresponding element is searched on Quick Response Code, the two-dimentional data code of black and white is replaced from big to small successively, it is impossible to the element profit of matching
With([0,0])Coordinate element is filled.
In the present embodiment, the implementation process of this method is:First 2 D code information encode obtaining a standard
Black and white Quick Response Code, then goes out corresponding color 2 D data code according to selected Rules Filtering, is found simultaneously according to the importance of element
Replace four codes eye of Quick Response Code.Black and white Quick Response Code is retrieved successively according to the order of color 2 D data code block from big to small afterwards
In corresponding element, find corresponding element and replace corresponding color lump.The color lump that can not be matched in black and white Quick Response Code is all used
Monochromatic block is replaced, and so far whole elements in black and white Quick Response Code are replaced with color 2 D code.Self-defined word is recently entered,
And word is generated into corresponding picture according to the style rule of template, then the color 2 D code picture and word picture of generation are folded
It is added on background picture.Certainly, in other embodiments, the color 2 D code of generation can also be synthesized to rule correspondence
Background in, and stamp corresponding word as needed.
Preferred embodiment above is merely illustrative of the technical solution of the present invention and not limited, although passing through above preferred embodiment
The present invention is described in detail, it is to be understood by those skilled in the art that can be right in the form and details
It makes various changes, without departing from claims of the present invention limited range.
Claims (5)
1. a kind of method that color 2 D code is automatically generated according to template, it is characterised in that comprise the following steps:
1)Upload two-dimension code image:User, which uploads, needs the two-dimension code image beautified to be saved in service to server, and picture
Device;
2)Decoding identification is carried out to two-dimension code image:Using one dimensional code scanner of programming, what is uploaded onto the server
The content recognition of Quick Response Code comes out;
3)Obtain two-dimentional digital content:The two-dimentional digital content of acquisition is saved in database;
4)Information to acquisition is encoded, and generates standard black and white Quick Response Code;
5)Enter row element to the standard black and white Quick Response Code of generation according to the rule of selected template to replace, generation color 2 D code.
2. the method as claimed in claim 1 that color 2 D code is automatically generated according to template, it is characterised in that described pair of acquisition
Information encoded, generation standard black and white Quick Response Code be specially:Two-dimentional digital content in reading database, using program to obtaining
The 2 D code information obtained is recompiled, and generates new standard black and white two-dimension code image, and the standard black and white of generation is two-dimentional
Code is saved.
3. the method as claimed in claim 1 that color 2 D code is automatically generated according to template, it is characterised in that described according to quilt
The rule of selection template is entered row element to the standard black and white Quick Response Code of generation and replaced, and generation color 2 D code is specially:According to being
The pattern rule for backstage design of uniting, the standard black and white two-dimension code image to generation enters row element replacement, to the member in former Quick Response Code
Element is replaced successively according to descending order, ultimately generates color 2 D code.
4. the method that color 2 D code is automatically generated according to template as described in claim 1-3 is any, it is characterised in that also wrap
Include following steps:
6)The color 2 D code picture of generation is synthesized on background picture.
5. the method that color 2 D code is automatically generated according to template as described in claim 1-3 is any, it is characterised in that also wrap
Include following steps:
6)Input self-defined word:Self-defined word is inputted, and word is generated into corresponding picture according to the style rule of template;
7)The color 2 D code picture and word picture of generation are synthesized on background picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710404063.7A CN107273961A (en) | 2017-06-01 | 2017-06-01 | A kind of method that color 2 D code is automatically generated according to template |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710404063.7A CN107273961A (en) | 2017-06-01 | 2017-06-01 | A kind of method that color 2 D code is automatically generated according to template |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273961A true CN107273961A (en) | 2017-10-20 |
Family
ID=60065777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710404063.7A Pending CN107273961A (en) | 2017-06-01 | 2017-06-01 | A kind of method that color 2 D code is automatically generated according to template |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273961A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062781A (en) * | 2018-01-31 | 2018-05-22 | 深圳市裕同包装科技股份有限公司 | A kind of system and method for visual code Mass production |
CN111539503A (en) * | 2020-04-02 | 2020-08-14 | 北京环网瑞通软件有限责任公司 | Method and device for generating color anti-counterfeiting two-dimensional code and anti-counterfeiting system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184380A (en) * | 2011-05-10 | 2011-09-14 | 华南农业大学 | Color-superposition two-dimension code system and application method thereof |
CN103606141A (en) * | 2013-12-09 | 2014-02-26 | 陈绳旭 | Method and system for realizing image display based on two-dimension code |
CN109885711A (en) * | 2019-01-17 | 2019-06-14 | 深圳市盈频家佳修信息技术有限责任公司 | A kind of method and apparatus of customization of two-dimension code |
-
2017
- 2017-06-01 CN CN201710404063.7A patent/CN107273961A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184380A (en) * | 2011-05-10 | 2011-09-14 | 华南农业大学 | Color-superposition two-dimension code system and application method thereof |
CN103606141A (en) * | 2013-12-09 | 2014-02-26 | 陈绳旭 | Method and system for realizing image display based on two-dimension code |
CN109885711A (en) * | 2019-01-17 | 2019-06-14 | 深圳市盈频家佳修信息技术有限责任公司 | A kind of method and apparatus of customization of two-dimension code |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062781A (en) * | 2018-01-31 | 2018-05-22 | 深圳市裕同包装科技股份有限公司 | A kind of system and method for visual code Mass production |
CN108062781B (en) * | 2018-01-31 | 2021-05-11 | 深圳市裕同包装科技股份有限公司 | System and method for batch generation of visual codes |
CN111539503A (en) * | 2020-04-02 | 2020-08-14 | 北京环网瑞通软件有限责任公司 | Method and device for generating color anti-counterfeiting two-dimensional code and anti-counterfeiting system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10906247B2 (en) | Method and system for generating and printing three dimensional barcodes | |
CN112052839B (en) | Image data processing method, apparatus, device and medium | |
Li et al. | An aesthetic QR code solution based on error correction mechanism | |
Zhang et al. | Viscode: Embedding information in visualization images using encoder-decoder network | |
CN105718979B (en) | A method of generating two-dimension code image | |
CN112183150B (en) | Image two-dimensional code and preparation method, analysis device and analysis method thereof | |
EP3567526A1 (en) | Method and system for encoding fingerprint of things | |
US10459670B2 (en) | Methods, systems, apparatuses and devices for facilitating printing of a digital image based on image splitting | |
US11004088B1 (en) | Method and system for certifying product authenticity using physical feature information including digitized surface fingerprint and blockchain | |
CN106886917B (en) | Method and device for generating advertisement | |
CN105718980B (en) | A method of generating two-dimension code image | |
CN112686015A (en) | Chart generation method, device, equipment and storage medium | |
CN112330532A (en) | Image analysis processing method and equipment | |
CN111667556A (en) | Form correction method and device | |
WO2018210077A1 (en) | Method and apparatus for generating identification code | |
CN113779656A (en) | Stamping method, electronic file platform and computer readable storage medium | |
CN107273961A (en) | A kind of method that color 2 D code is automatically generated according to template | |
CN109934322B (en) | Dynamic three-dimensional code generation method, generation device, identification method and identification device | |
Chen et al. | Customized 2D barcode sensing for anti-counterfeiting application in smart IoT with fast encoding and information hiding | |
CN109726369A (en) | A kind of intelligent template questions record Implementation Technology based on normative document | |
CN107944525A (en) | A kind of method and system of the expansion Quick Response Code capacity based on data segmentation | |
CN108268258A (en) | A kind of method, apparatus and electronic equipment for being used to obtain web page code | |
CN109919433A (en) | Order information generation method, device and computer equipment | |
US20150324679A1 (en) | Optical-reading code preparation device | |
CN107247984B (en) | Coding method of visual two-dimensional code |
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 |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |