CN103295044B - Computer two-dimensional code image generation method and device - Google Patents
Computer two-dimensional code image generation method and device Download PDFInfo
- Publication number
- CN103295044B CN103295044B CN201310220308.2A CN201310220308A CN103295044B CN 103295044 B CN103295044 B CN 103295044B CN 201310220308 A CN201310220308 A CN 201310220308A CN 103295044 B CN103295044 B CN 103295044B
- Authority
- CN
- China
- Prior art keywords
- pattern
- quick response
- fundamental
- response code
- computer
- 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
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/06046—Constructional details
- G06K19/06103—Constructional details the marking being embedded in a human recognizable image, e.g. a company logo with an embedded two-dimensional code
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 present invention discloses a kind of computer two-dimensional code image generation method, and the method comprises the following steps: data acquisition step, obtains the Quick Response Code fundamental figure that at least one includes data lines information; Step is formulated in region, obtains the pattern preset, a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern; Embed step, described Quick Response Code fundamental figure is embedded in this data identification region, form the two-dimension code pattern that embedded in Quick Response Code fundamental figure; Export step, export described two-dimension code pattern.The invention also discloses corresponding computer two-dimensional code graphic hotsopt device.The present invention can generate diversified two-dimension code pattern, greatly improves Consumer's Experience comfort level, attracts user interest fast.
Description
Technical field
The present invention relates to computer two-dimensional code technology, particularly relate to a kind of computer two-dimensional code image generation method and device.
Background technology
Quick Response Code (2-dimensionalbarcode), also known as two-dimensional bar code, is according to certain rules in the chequered with black and white graphic recording data symbol information of the upper distribution of plane (two-dimensional directional) with specific geometric figure; Coding utilizes the concept of " 0 ", " 1 " bit stream forming computer-internal logical foundations dexterously, the geometrical body using several corresponding with scale-of-two, to represent word numerical information, is processed to realize information automatically by image input device or photoelectric scanning device automatically identifying and reading.Also have simultaneously and the features such as change are rotated to the information automatic identification function of different rows and processing graphics.It is a key of all information datas.In modern commerce activity, the attainable application of Quick Response Code is very extensive, as: product false proof/trace to the source, advertisement pushing, web site url, data download, commodity transaction, location/navigation, electronic certificate, vehicle management etc.
But, inventor finds in the practice of the invention, as shown in Figure 1, the two-dimension code pattern of prior art is all the square of black and white, or as shown in Figure 2, although some Quick Response Code has synthesized some pattern identifications in center, on the whole still based on the square of black and white, such two-dimension code pattern is dull, stereotyped, unsightly, the interest attracting user is difficult to.
Summary of the invention
Technical matters to be solved by this invention is: provide a kind of computer two-dimensional code image generation method, the method can generate diversified two-dimension code pattern, greatly improves Consumer's Experience comfort level, attracts user interest fast.
The further technical matters to be solved of the present invention is: provide a kind of computer two-dimensional code graphic hotsopt device, this device can generate diversified two-dimension code pattern, greatly improves Consumer's Experience comfort level, attracts user interest fast.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of computer two-dimensional code image generation method, the method comprises the following steps:
Data acquisition step, obtains the Quick Response Code fundamental figure that at least one includes data lines information;
Step is formulated in region, obtains the pattern preset, a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
Embed step, described Quick Response Code fundamental figure is embedded in this data identification region, form the two-dimension code pattern that embedded in Quick Response Code fundamental figure;
Export step, export described two-dimension code pattern.
Preferably, before or after described embedding step, further comprising the steps of:
Lines read step, the random data lines information read in described Quick Response Code fundamental figure;
Lines filling step, the described data lines information got by random write is filled into all or part region in described pattern except described data identification region.
Preferably, before described output step, further comprising the steps of:
Color matching step, is modified as one or more colors that are identical with the color of described pattern or that match by the black data lines in described pattern.
Preferably, described pattern is rule or irregular geometric figure.
Preferably, described pattern is cartoon pattern, geometric figure, animals and plants pattern or personal portrait.
Correspondingly, the invention also discloses a kind of computer two-dimensional code graphic hotsopt device, this device includes:
Data acquiring unit, for obtaining the Quick Response Code fundamental figure that at least one includes data lines information;
Unit is formulated in region, for obtaining default pattern, and a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
Embedded unit, for embedding in this data identification region by described Quick Response Code fundamental figure, forms the two-dimension code pattern that embedded in Quick Response Code fundamental figure;
Output unit, for exporting described two-dimension code pattern.
Preferably, also include:
Lines reading unit, is connected with described embedded unit, for reading the data lines information in described Quick Response Code fundamental figure at random;
Lines filler cells, is connected with described lines reading unit, and the described data lines information for being got by random write is filled into all or part region in described pattern except described data identification region.
Preferably, also include:
Color-match unit, is connected with described embedded unit, for the black data lines in described pattern being modified as one or more colors that are identical with the color of described pattern or that match.
Preferably, described pattern is rule or irregular geometric figure.
Preferably, described pattern is cartoon pattern, geometric figure, animals and plants pattern or personal portrait.
The invention has the beneficial effects as follows:
Embodiments of the invention are by a data identified region selected in any pattern preset, the Quick Response Code primary image being loaded with data message is embedded in this data identification region, thus generate the two-dimension code pattern that a global shape is described default pattern, this two-dimension code pattern can be variously diversifiedly be rich in pattern attractive in appearance, customization can also be needed according to user, computer program only needs the Quick Response Code fundamental figure in data identified region, can read the data message that it loads.Substantially increase Consumer's Experience comfort level, attract user interest fast.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is the first two-dimension code pattern schematic diagram of prior art.
Fig. 2 is the second two-dimension code pattern schematic diagram of prior art.
Fig. 3 is the method flow diagram of computer two-dimensional code image generation method first embodiment of the present invention.
Fig. 4 is the method flow diagram of computer two-dimensional code image generation method second embodiment of the present invention.
Fig. 5 is the composition structural drawing of computer two-dimensional code graphic hotsopt device first embodiment of the present invention.
Fig. 6 is the composition structural drawing of computer two-dimensional code graphic hotsopt device second embodiment of the present invention.
Fig. 7 is the first sample of the computer two-dimensional code figure that computer two-dimensional code image generation method first embodiment of the present invention generates.
Fig. 8 is the first sample of the computer two-dimensional code figure that computer two-dimensional code image generation method of the present invention or device second embodiment generate.
Fig. 9 is the 3rd sample of the computer two-dimensional code figure that computer two-dimensional code image generation method of the present invention fire device second embodiment generates.
Embodiment
The first embodiment of computer two-dimensional code image generation method provided by the invention is described in detail below with reference to Fig. 3 and Fig. 7; As shown in Figure 3, the present embodiment realizes a computer two-dimensional code graphic hotsopt flow process and mainly includes following steps:
In data acquisition step S1, obtain the Quick Response Code fundamental figure that at least one includes data lines information;
Formulate in step S2 in region, obtain the pattern preset, a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
In embedding step S3, described Quick Response Code fundamental figure is embedded in this data identification region, form the two-dimension code pattern that embedded in Quick Response Code fundamental figure;
In output step S4, export described two-dimension code pattern.
During specific implementation, reach effect more attractive in appearance to make output pattern and consider, before described output step S4, also can comprise the following steps:
In color matching step S5, the black data lines in described pattern is modified as one or more colors that are identical with the color of described pattern or that match.
Pattern in the present embodiment can be any regular or irregular geometric figure, as: cartoon pattern, geometric figure, animals and plants pattern or personal portrait etc.Fig. 7 shows a sample of the two-dimension code pattern using the method for the present embodiment to generate.
The second embodiment of computer two-dimensional code image generation method provided by the invention is described in detail below with reference to Fig. 4, Fig. 8 and Fig. 9; As shown in Figure 1, it is substantially identical with previous embodiment that the present embodiment realizes a computer two-dimensional code graphic hotsopt flow process, and difference is only, in the present embodiment, after described embedding step S3, further comprising the steps of:
In lines read step S6, the random data lines information read in described Quick Response Code fundamental figure;
In lines filling step S7, the described data lines information got by random write is filled into all or part region in described pattern except described data identification region.
Or above-mentioned lines read step S6 and lines filling step S7 also can perform before embedding step S3, can reach same effect.
Fig. 8 and Fig. 9 respectively illustrates the first sample and second sample of the two-dimension code pattern using the method for the present embodiment to generate.
All the other something in common, repeat no more.
The first embodiment of computer two-dimensional code generating apparatus provided by the invention is described in detail below with reference to Fig. 5 and Fig. 7; As shown in Figure 5, the present embodiment mainly includes:
Data acquiring unit 1, for obtaining the Quick Response Code fundamental figure that at least one includes data lines information;
Unit 2 is formulated in region, for obtaining default pattern, and a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
Embedded unit 3, for embedding in this data identification region by described Quick Response Code fundamental figure, forms the two-dimension code pattern that embedded in Quick Response Code fundamental figure;
Output unit 4, for exporting described two-dimension code pattern.
During specific implementation, reach effect more attractive in appearance to make output pattern and consider, the present embodiment also can include:
Color-match unit 5, is connected with described embedded unit 3, for the black data lines in described pattern being modified as one or more colors that are identical with the color of described pattern or that match.
Or described color-match unit 5 also can be located between described lines filler cells 7 and output unit 4, can reach same effect.
Pattern in the present embodiment can be any regular or irregular geometric figure, as: cartoon pattern, geometric figure, animals and plants pattern or personal portrait etc.Fig. 7 shows a sample of the two-dimension code pattern using the device of the present embodiment to generate.
The second embodiment of computer two-dimensional code image generation method provided by the invention is described in detail below with reference to Fig. 5, Fig. 8 and Fig. 9; As shown in Figure 1, the present embodiment and previous embodiment are substantially identical, and difference is only, the present embodiment also includes:
Lines reading unit 6, is connected with described embedded unit 3, for reading the data lines information in described Quick Response Code fundamental figure at random;
Lines filler cells 7, is connected with described lines reading unit 6, and the described data lines information for being got by random write is filled into all or part region in described pattern except described data identification region.
Fig. 8 and Fig. 9 respectively illustrates the first sample and second sample of the two-dimension code pattern using the device of the present embodiment to generate.
All the other something in common, repeat no more.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.
Claims (8)
1. a computer two-dimensional code image generation method, is characterized in that, the method comprises the following steps:
Data acquisition step, obtains the Quick Response Code fundamental figure that at least one includes data lines information;
Step is formulated in region, obtains the pattern preset, a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
Embed step, described Quick Response Code fundamental figure is embedded in this data identification region, form the two-dimension code pattern that embedded in Quick Response Code fundamental figure; Export step, export described two-dimension code pattern, described two-dimension code pattern only needs can for the data message reading its loading by the Quick Response Code fundamental figure in its data identification region;
Wherein, before or after described embedding step, further comprising the steps of:
Lines read step, the random data lines information read in described Quick Response Code fundamental figure;
Lines filling step, the described data lines information got by random write is filled into all or part region in described pattern except described data identification region.
2. computer two-dimensional code generating method as claimed in claim 1, is characterized in that, before described output step, further comprising the steps of:
Color matching step, is modified as one or more colors that are identical with the color of described pattern or that match by the black data lines in described pattern.
3. computer two-dimensional code generating method as claimed in claim 2, is characterized in that: described pattern is rule or irregular geometric figure.
4. computer two-dimensional code generating method as claimed in claim 3, is characterized in that: described pattern is cartoon pattern, geometric figure, animals and plants pattern or personal portrait.
5. a computer two-dimensional code graphic hotsopt device, is characterized in that, this device includes:
Data acquiring unit, for obtaining the Quick Response Code fundamental figure that at least one includes data lines information;
Unit is formulated in region, for obtaining default pattern, and a selected data identification region identical, similar or proportional with described Quick Response Code fundamental figure in this pattern;
Embedded unit, for embedding in this data identification region by described Quick Response Code fundamental figure, forms the two-dimension code pattern that embedded in Quick Response Code fundamental figure;
Lines reading unit, is connected with described embedded unit, for reading the data lines information in described Quick Response Code fundamental figure at random;
Lines filler cells, is connected with described lines reading unit, and the described data lines information for being got by random write is filled into all or part region in described pattern except described data identification region;
Output unit, for exporting described two-dimension code pattern, described two-dimension code pattern only needs can for the data message reading its loading by the Quick Response Code fundamental figure in its data identification region.
6. computer two-dimensional code generating apparatus as claimed in claim 5, is characterized in that, also include:
Color-match unit, is connected with described embedded unit, for the black data lines in described pattern being modified as one or more colors that are identical with the color of described pattern or that match.
7. computer two-dimensional code generating apparatus as claimed in claim 6, is characterized in that: described pattern is rule or irregular geometric figure.
8. computer two-dimensional code generating apparatus as claimed in claim 7, is characterized in that: described pattern is cartoon pattern, geometric figure, animals and plants pattern or personal portrait.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310220308.2A CN103295044B (en) | 2013-06-05 | 2013-06-05 | Computer two-dimensional code image generation method and device |
PCT/CN2014/079047 WO2014194800A1 (en) | 2013-06-05 | 2014-06-03 | Method and apparatus for generating two-dimensional computer code pattern |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310220308.2A CN103295044B (en) | 2013-06-05 | 2013-06-05 | Computer two-dimensional code image generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103295044A CN103295044A (en) | 2013-09-11 |
CN103295044B true CN103295044B (en) | 2016-02-24 |
Family
ID=49095871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310220308.2A Active CN103295044B (en) | 2013-06-05 | 2013-06-05 | Computer two-dimensional code image generation method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103295044B (en) |
WO (1) | WO2014194800A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103295044B (en) * | 2013-06-05 | 2016-02-24 | 徐宁 | Computer two-dimensional code image generation method and device |
CN103699865B (en) * | 2014-01-15 | 2019-01-25 | 吴东辉 | A kind of border graphic code |
CN105335773B (en) * | 2014-07-30 | 2018-05-04 | 北大方正集团有限公司 | QR code encoding methods and device |
CN104392260A (en) * | 2014-12-17 | 2015-03-04 | 肖学静 | Two-dimensional code anti-counterfeiting method based on additional information |
CN104778732B (en) * | 2015-01-30 | 2017-09-26 | 北大方正集团有限公司 | The two-dimensional code generation method and device of image |
CN105989390A (en) * | 2015-02-11 | 2016-10-05 | 北京鼎九信息工程研究院有限公司 | Generation method of two-dimensional code and apparatus thereof |
CN106557798A (en) * | 2015-09-24 | 2017-04-05 | 沈维 | A kind of compound mark and the method for forming the compound mark |
CN106599961A (en) * | 2016-09-13 | 2017-04-26 | 江苏图码信息科技有限公司 | Two-dimensional product for hand-drawing pattern or word and the application component thereof |
CN109597951B (en) * | 2018-12-05 | 2021-07-02 | 广州酷狗计算机科技有限公司 | Information sharing method and device, terminal and storage medium |
CN112668031A (en) * | 2021-03-15 | 2021-04-16 | 尤尼泰克(嘉兴)信息技术有限公司 | Coding and decoding method and device for network file protection |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859388A (en) * | 2009-04-09 | 2010-10-13 | 佳能株式会社 | Image processing system and image forming method |
CN102799920A (en) * | 2012-06-28 | 2012-11-28 | 王学武 | Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image |
CN102968654A (en) * | 2012-10-26 | 2013-03-13 | 吴东杰 | Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3953501B1 (en) * | 2006-03-03 | 2007-08-08 | 株式会社バンダイナムコゲームス | Program, information storage medium, two-dimensional code generation system, image generation system, and two-dimensional code |
CN103295044B (en) * | 2013-06-05 | 2016-02-24 | 徐宁 | Computer two-dimensional code image generation method and device |
-
2013
- 2013-06-05 CN CN201310220308.2A patent/CN103295044B/en active Active
-
2014
- 2014-06-03 WO PCT/CN2014/079047 patent/WO2014194800A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859388A (en) * | 2009-04-09 | 2010-10-13 | 佳能株式会社 | Image processing system and image forming method |
CN102799920A (en) * | 2012-06-28 | 2012-11-28 | 王学武 | Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image |
CN102968654A (en) * | 2012-10-26 | 2013-03-13 | 吴东杰 | Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code |
Also Published As
Publication number | Publication date |
---|---|
WO2014194800A1 (en) | 2014-12-11 |
CN103295044A (en) | 2013-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103295044B (en) | Computer two-dimensional code image generation method and device | |
CN102609256B (en) | A kind of Dynamic Graph table generating method based on webpage | |
WO2018161709A1 (en) | Method and device for rendering overlay comment | |
CN107924555B (en) | System and method for customizing digital indicia of a product | |
CN105183862B (en) | A kind of mask method and device of POI | |
US8174539B1 (en) | Imprint for visualization and manufacturing | |
CN107967574A (en) | Digitlization check of drawings method and its system based on BIM | |
CN108121997A (en) | Use the object classification in the image data of machine learning model | |
CN105718979B (en) | A method of generating two-dimension code image | |
CN109948549A (en) | OCR data creation method, device, computer equipment and storage medium | |
CN109558705A (en) | Watermark Tiling methods, device, computer equipment and storage medium based on PDF | |
CN104899632B (en) | A kind of combined type two-dimension code label and its generation method and recognition methods | |
CN105184595A (en) | Mobile internet big data analysis technique based two-dimension code anti-counterfeiting cloud system and application method thereof | |
CN104240273A (en) | Raster image processing method and device | |
CN104750847B (en) | A kind of Visualization of Association system and method based on dynamic parallel coordinates | |
CN105844479A (en) | Dot matrix image used in precious metals, generation method and application method thereof | |
CN106126084A (en) | A kind of display packing for electricity paper ink screen | |
Eisemann et al. | Stylized vector art from 3d models with region support | |
CN116205786A (en) | Virtual fitting method based on text-driven image generation | |
CN104331912B (en) | A kind of garment material method for quickly filling based on matrix of edge | |
CN112100551B (en) | Watermark processing method, watermark processing device, storage medium and computer program product | |
CN103824006B (en) | A kind of mobile phone application software automatically generates the method and system of watermark | |
CN105912561B (en) | The network distribution method and system and equipment of panoramic picture | |
CN109613796A (en) | Stealthy true 3 D displaying method and system | |
WO2023183715A1 (en) | Systems and methods for supplementing image capture with artificial data points that are generated based on material properties and associated rules |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |