CN110263896A - A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment - Google Patents
A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment Download PDFInfo
- Publication number
- CN110263896A CN110263896A CN201910566781.3A CN201910566781A CN110263896A CN 110263896 A CN110263896 A CN 110263896A CN 201910566781 A CN201910566781 A CN 201910566781A CN 110263896 A CN110263896 A CN 110263896A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- color
- channel
- hidden
- color map
- 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
- 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/0614—Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/12—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using a selected wavelength, e.g. to sense red marks and ignore blue marks
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
A kind of two dimensional code hidden method, the present invention is using in CMYK color channel, the channel CMY is mixed in a certain ratio the principle that can substitute K channel, the pattern for packing specific region is pinpointed by two-dimension code pattern shape and is replaced, the different region of light and shade can be detected by infrared detection equipment, scanning function may be implemented using infrared detection equipment, thus the two dimensional code that detection of concealed is got up, and do not see difference visually under the conditions of natural lighting, to achieve the purpose that commodity two dimensional code is hidden.
Description
Technical field
The present invention relates to field of information security technology, and in particular to a kind of two dimensional code hidden method hides two-dimensional code scanning
Method, infrared scanner and storage equipment.
Background technique
With the development of Information technology and real economy, the value of merchandise news is higher and higher.Businessman wishes by quotient
Exclusive identification code is printed in product packaging, in order to realize commodity production sale overall process record, realizes that commodity are traced to the source ability.But
Traditional bar code information low memory, it is difficult to realize one yard of an object;Two-dimensional barcode information amount of storage is big, and recognition speed is fast, error correction
Ability is strong, and using universal, therefore many businessmans pass through two dimensional code and store commodity exclusive identification code.The most common two dimensional code is QR
Code, by its recognition speed, fast, information storage is widely applied greatly, and error correcting capability is divided into level Four, can reach 30%.
And mobile Internet is quickly popularized with intelligent terminal, so that the identification two dimensional code that consumer can be convenient, facilitates inquiry quotient
Product are traced to the source information, to identify the true and false.But simultaneously, common two dimensional code storage commodity unique identification is easy exposure commerical batches etc.
Business information generates safely hidden danger to the business information of businessman.
It is mostly that the color in CMYK color space is printed on commodity bundle using halftone technique in commodity packaging printing process
It loads onto.CMYK is common printing color pattern, is a kind of by reflective color mode, is mixed using subtractive primary colors former
Reason, in addition black ink, amounts to four kinds of color mixing superpositions.Since CMY three-colour printing ink is unable to reach in actual production process
Perfect condition, three primary colors are unable to get black in the mixing of 1:1:1 ratio, therefore introduce gray channel K, black using black ink
The effect of color ink is then the contrast and stereovision in order to enhance color.In the case where infrared light irradiation, due to ink
Variant to the absorption frequency of light, cyan (C), magenta (M), yellow (Y) primary display channels can be fully reflective to infrared light, red
It is shown as colourless in outer detection device;Black (K) can then fully absorb infrared light, be shown as black in infrared detection equipment.
Summary of the invention
In order to which two dimensional code to be hidden in packaging pattern, the present invention provides a kind of two dimensional code hidden method, through the invention
Two dimensional code can be hidden in packaging pattern, can not visually see in natural lighting condition, be identified by infrared scanner.
Two dimensional code hidden method provided by the invention, comprising the following steps:
(1) printing area of the region identical with two dimensional code size as two dimensional code is selected in packaging pattern;
(2) K channel replacement is carried out using color map of the K channel replacement algorithm to selection area, obtains replaced choosing
Determine the color map C in region1M1Y1K1, color map C1M1Y1K1The color that corresponding color is shown in natural lighting
It is identical as the color before progress K channel replacement, it is shown as colourless when infrared light shines;
(3) two dimensional code is printed in selection area, the black region of two dimensional code uses the original CMYK color of selection area
The white area of map printing, two dimensional code uses color map C1M1Y1K1Printing.
Preferably, the step (1) specifically, obtain packaging pattern CMYK color map, select CMYK color map
Identical continuum, wherein K channel value is between 30 to 80.
Preferably, the step (2) is adjusted specifically, the K channel value of the CMYK color map of selection area is adjusted to 0
The color map C obtained after whole1M1Y1K1The color of representative and the primitive color of selection area are identical.
Preferably, the surrounding of two dimensional code is reserved with white edge.
The present invention also provides a kind of hiding two-dimensional code scanning method, two dimensional code is hidden using the two dimensional code hidden method of the application
It ensconces in packaging pattern;The region that two dimensional code is hidden using infrared light scanning packaging pattern, obtains infrared picture, by infrared picture
In gray scale be considered as white area lower than the part of given threshold, the part that gray scale is higher than given threshold is considered as gray area;It will
Gray area is replaced with black, obtains replaced picture;Two are positioned from replaced picture according to the finger URL of two dimensional code
Tie up code.
During making two dimensional code, white edge can be retained in the surrounding of two dimensional code, the present invention can use white
Edge distinguishes the other parts of two dimensional code and packaging pattern, and two dimensional code can be positioned in smaller region, improves effect
Rate, after the present invention obtains replaced picture, first according to the white edge of two dimensional code surrounding by its of two dimensional code and packaging pattern
He partially distinguishes, and positions two dimensional code from replaced picture further according to the finger URL of two dimensional code.
The present invention also provides a kind of infrared scanner, the infrared scanner executes hiding two-dimensional code scanning side of the invention
Method.
The present invention also provides a kind of storage equipment, it is stored with program in the storage equipment, which realizes of the invention
Two dimensional code hidden method hides two-dimensional code scanning method.
The present invention utilizes the reflection case in different channels in the case of Infrared irradiation, proposes a kind of by commodity two-dimensional barcode information
The method being hidden in commodity packaging, visual effect and original image indifference in the irradiation of daily light, passes through infrared detection
Equipment can detecte hiding commodity two-dimensional barcode information, by the powerful error correcting capability of QR code, ensure the two dimensional code detected
Information can recognize.For the present invention using in CMYK color channel, the channel CMY is mixed in a certain ratio the principle that can substitute K channel,
The pattern for packing specific region is pinpointed by two-dimension code pattern shape and is replaced, light and shade difference can be detected by infrared detection equipment
Region, scanning function may be implemented using infrared detection equipment, thus the two dimensional code that detection of concealed is got up, and in natural lighting
Under the conditions of do not see difference visually, with achieve the purpose that commodity two dimensional code hide.
Detailed description of the invention
Fig. 1 is two dimensional code schematic diagram;
Fig. 2 is packaging pattern schematic diagram;
Fig. 3 is selection area schematic diagram;
Fig. 4 is to carry out K channel to selection area to replace schematic diagram;
Fig. 5 is that infrared scan hides two dimensional code schematic diagram.
Fig. 6 is that infrared scan figure carries out schematic diagram after binary conversion treatment.
Specific embodiment
By taking QR code as an example, the specific embodiment process that the present invention will be described in detail:
1, commodity sign QR code is generated, as shown in Figure 1.When making QR code, some whites can be retained in the surrounding of QR code
Edge.
2, as shown in Fig. 2, obtaining Commodity Packaging Design drawing, drawing color is passed through into CMYK face using photo-editing software
Chrominance channel shows that the present invention obtains the CMYK color map of selection area by calling Photoshop, as shown in Figure 3.
Due to needing to replace K channel by CMY Color Channel, and ideal CMY face can not be obtained in actual application
Color, therefore perfect K channel color is unable to get by the method that color is replaced.Therefore when selecting packaging area, need to select K
Channel value, so that improving color under the conditions of natural light irradiation replaces effect, improves in the case of infrared light shines and knows between 30 to 80
Other accuracy rate.The K channel value of selected areas is too low be easy to be mistakenly considered when infrared light shines it is colourless, it is excessively high, be difficult to use CMY
Color replacement.Selection area preferentially selects the identical continuum of CMYK color map.
3, algorithm is replaced using K channel, obtains one group of new color map C in selection area1M1Y1K1, color map
C1M1Y1K1Meet the color for being shown as selection area in natural lighting, and is shown as colourless when infrared light shines.
By calling Photoshop to realize K channel replacement, K channel replacement algorithm is provided the present invention by Photoshop software, is more straight
It sees ground and introduces the present invention, illustrate how to carry out K channel replacement below with reference to Fig. 4, after the completion of design drawing is loaded, choose replacement
Replacement region is copied in grassroot project, Color Channel is adjusted to RGB channel by region, grassroot project.Click " editor ->
Color setting ", clicks CMYK combobox, clicks the customized channel CMYK, and black ink limitation is changed to 0 (that is, by K channel value
It is adjusted to 0), to click confirmation.The color of grassroot project is changed to the channel CMYK again, the replaced selected area of K channel can be obtained
Domain color map C1M1Y1K1.Due to each producer's ink quality of brand name difference, in print procedure, need to K channel replace result into
Row adjustment, to meet the C that selection area uses K channel to replace1M1Y1K1CMYK map before map printing effect and replacement prints
Effect is consistent.
4, QR code is printed in selection area, the black region of QR code uses the original CMYK color channel figure of selection area
Spectrum printing, white area use the replaced C of K channel1M1Y1K1The printing of color map.
When infrared ray is radiated at the area of the pattern for being printed on hiding QR code, since QR code white portion is replaced using K channel
C afterwards1M1Y1K1The printing of color map, infrared ray are reflected completely, are shown as colourless on infrared detection instrument;And two dimensional code
Black region printed using original CMYK color map, there are K channel components, appear dimmed on infrared detection instrument
Region.
The infrared picture that the region that infrared scanner scans hiding two dimensional code in packaging pattern is obtained is in barcode scanning equipment
It saves, defines gray threshold, infrared picture is subjected to binary conversion treatment according to gray threshold, will test in result gray scale lower than should
Threshold value is considered as white area, is considered as gray area higher than the threshold value.The selection of gray threshold and Infrared irradiation condition with
And check that device sensitivity is related, skilled person will know how threshold values required for setting, such as utilize maximum entropy threshold
Value segmentation principle, is split image by a selected threshold value, calculates image entropy, and point when entropy maximum is found out using dichotomy
Threshold value is cut, is calculated two dimensional code black and white region segmentation threshold value (i.e. gray threshold), threshold value is once it is determined that then without calculating again.It utilizes
Infrared picture is carried out binary conversion treatment by gray threshold.The gray area that will test all is replaced with black, then is restored hidden
Figure is divided according to the replaced gray areas of threshold value around the QR code and packaging of hiding, as shown in Figure 6.According to the white of two dimensional code
Other regions of two dimensional code and packaging pattern are distinguished at edge, and the position for hiding QR code is positioned according to the back-shaped finger URL of QR code, from
And identify two dimensional code.
In the detection process, there are gray threshold selection is inappropriate, lead to the light grey situation that can be misidentified as white,
Therefore when selecting packaging area, K channel accounting need to be selected moderate, and K channel changes unconspicuous region, while restoring
Threshold value appropriate is selected, in the process to improve the accuracy rate of the QR code restored.Even if since the extraneous factors such as illumination cause
Partial region identifies that mistake can still accurately identify two-dimensional barcode information by the high error correcting capability of QR code.
In production process, using there is the region for hiding two dimensional code in infrared two dimensional code barcode scanning instrument detection packaging, scan
Two dimensional code obtains commodity sign information, records commodity production, sale, logistics information, deposit is traced to the source in database, to reach commodity
It traces to the source purpose.
Claims (9)
1. a kind of two dimensional code hidden method, which comprises the following steps:
(1) printing area of the region identical with two dimensional code size as two dimensional code is selected in packaging pattern;
(2) K channel replacement is carried out using color map of the K channel replacement algorithm to selection area, obtains replaced selected area
The color map C in domain1M1Y1K1, color map C1M1Y1K1Color that corresponding color is shown in natural lighting with into
Color before the replacement of row K channel is identical, is shown as colourless when infrared light shines;
(3) two dimensional code is printed in selection area, the black region of two dimensional code uses the original CMYK color map of selection area
The white area of printing, two dimensional code uses color map C1M1Y1K1Printing.
2. two dimensional code hidden method as described in claim 1, which is characterized in that the step (1) is specifically, obtain packaging figure
The CMYK color map of case selects the identical continuum of CMYK color map, and wherein K channel value is between 30 to 80.
3. two dimensional code hidden method as claimed in claim 1 or 2, which is characterized in that the step (2) will be specifically, will select
The K channel value of the CMYK color map in region is adjusted to 0, the color map C obtained after adjustment1M1Y1K1The color and choosing of representative
The primitive color for determining region is identical.
4. two dimensional code hidden method as claimed in claim 3, which is characterized in that the surrounding of two dimensional code is reserved with white edge.
5. a kind of hiding two-dimensional code scanning method, which is characterized in that two dimensional code is using described in claim 1-4 any claim
Two dimensional code hidden method be hidden in packaging pattern;The region of two dimensional code is hidden using infrared light scanning packaging pattern, is obtained
After infrared picture, the gray scale in infrared picture is considered as white area lower than the part of given threshold, gray scale is higher than given threshold
Part be considered as gray area;Gray area is replaced with black, obtains replaced picture;According to the finger URL of two dimensional code from
Two dimensional code is positioned in replaced picture.
6. hiding two-dimensional code scanning method as claimed in claim 5, which is characterized in that after obtaining replaced picture, first root
The other parts of two dimensional code and packaging pattern are distinguished according to the white edge of two dimensional code surrounding, further according to the positioning of two dimensional code
Symbol positions two dimensional code from replaced picture.
7. a kind of infrared scanner, which is characterized in that hiding two dimension described in the infrared scanner perform claim requirement 5 or 6
Code scan method.
8. a kind of storage equipment, which is characterized in that be stored with program in the storage equipment, which realizes claim 1-4
Two dimensional code hidden method described in any claim.
9. a kind of storage equipment, which is characterized in that be stored with program in the storage equipment, which realizes claim 5 or 6
The hiding two-dimensional code scanning method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910566781.3A CN110263896A (en) | 2019-06-27 | 2019-06-27 | A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910566781.3A CN110263896A (en) | 2019-06-27 | 2019-06-27 | A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110263896A true CN110263896A (en) | 2019-09-20 |
Family
ID=67922292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910566781.3A Pending CN110263896A (en) | 2019-06-27 | 2019-06-27 | A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110263896A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112001469A (en) * | 2020-08-12 | 2020-11-27 | 北京太和互邦科技有限公司 | Two-dimensional code encoding method, decoding method and two-dimensional code |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003005291A1 (en) * | 2001-07-02 | 2003-01-16 | Digimarc Corporation | Hiding information out-of-phase in color channels |
US20110149317A1 (en) * | 2008-06-27 | 2011-06-23 | Diaz Lopez Jose | Method and a device for controlling printing of graphical information |
CN103268714A (en) * | 2013-04-22 | 2013-08-28 | 安徽工程大学 | Reading video pen, method for utilizing reading video pen to read book, and book for reading video pen |
CN206863766U (en) * | 2017-07-12 | 2018-01-09 | 刘平 | A kind of concealed code code reader |
-
2019
- 2019-06-27 CN CN201910566781.3A patent/CN110263896A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003005291A1 (en) * | 2001-07-02 | 2003-01-16 | Digimarc Corporation | Hiding information out-of-phase in color channels |
US20110149317A1 (en) * | 2008-06-27 | 2011-06-23 | Diaz Lopez Jose | Method and a device for controlling printing of graphical information |
CN103268714A (en) * | 2013-04-22 | 2013-08-28 | 安徽工程大学 | Reading video pen, method for utilizing reading video pen to read book, and book for reading video pen |
CN206863766U (en) * | 2017-07-12 | 2018-01-09 | 刘平 | A kind of concealed code code reader |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112001469A (en) * | 2020-08-12 | 2020-11-27 | 北京太和互邦科技有限公司 | Two-dimensional code encoding method, decoding method and two-dimensional code |
CN112001469B (en) * | 2020-08-12 | 2024-01-30 | 北京太和互邦科技有限公司 | Two-dimensional code encoding method, decoding method and two-dimensional code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210012451A1 (en) | Digital watermarking applications | |
US9390357B2 (en) | Readable matrix code | |
US10652422B2 (en) | Spot color substitution for encoded signals | |
US9900472B2 (en) | Color conversion table creation device and method, program, and recording medium | |
JP6705596B2 (en) | Data hiding for spot colors in product packaging | |
USRE44982E1 (en) | Mixed code, and method and apparatus for generating the same | |
US10506128B1 (en) | Encoded signal systems and methods to ensure minimal robustness | |
EP1902851A2 (en) | System, method and program for extracting invisible information | |
TW200847064A (en) | Multi-color dropout for scanned document | |
US11315378B2 (en) | Method of verifying an authenticity of a printed item and data processing terminal | |
US10986245B2 (en) | Encoded signal systems and methods to ensure minimal robustness | |
CN106528742A (en) | Information query method and device | |
US20030072489A1 (en) | Method of recognizing a code | |
CN110263896A (en) | A kind of two dimensional code hidden method hides two-dimensional code scanning method, infrared scanner and storage equipment | |
US11263829B2 (en) | Using a predicted color for both visibility evaluation and signal robustness evaluation | |
JP2012185810A (en) | Image processing system and image processing program | |
US11847516B2 (en) | Method and device for reading a two-dimensional encoded pattern applied on a non-uniform background | |
JP3061812B2 (en) | Pattern recognition method and apparatus | |
US9836634B2 (en) | Ultraviolet fluorescent barcode reading method and device | |
RU2646341C1 (en) | Method of modification and identification the copy of the document for the installation the unauthorized distribution channel | |
KR20140063378A (en) | Image forminag apparatus, method for image forming and computer-readable recording medium | |
CN116485992A (en) | Composite three-dimensional scanning method and device and three-dimensional scanner | |
CN117808914A (en) | Security check image generation method, device and storage medium | |
CN115374806A (en) | Invisible coding graph positioning method | |
JPH10104075A (en) | Color discriminating device |
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: 20190920 |
|
RJ01 | Rejection of invention patent application after publication |