Fake method, device, equipment and medium are tested in the identification of ink label

文档序号:1773178 发布日期:2019-12-03 浏览:16次 中文

阅读说明:本技术 油墨标签的识别验伪方法、装置、设备及介质 (Fake method, device, equipment and medium are tested in the identification of ink label ) 是由 袁涌耀 汪宁 黄志明 吴光乐 刘一宸 于 2019-07-22 设计创作,主要内容包括:本发明公开了一种油墨标签的识别验伪方法,涉及防伪技术领域,用于实现基于油墨标签的商品验伪,该方法包括以下步骤:获取油墨标签图像,对所述油墨标签图像进行识别以提取油墨特征信息;获取验证模板,将所述油墨特征信息与验证模板进行特征比对,得到特征比对结果;根据所述特征比对结果,返回验伪结果。本发明还公开了一种油墨标签的识别验伪装置、电子设备和计算机存储介质。本发明通过对油墨标签的油墨特征和镭射特征分别进行提取和比对,实现商品的验伪。(The invention discloses a kind of identifications of ink label to test fake method, it is related to field of anti-counterfeit technology, puppet is tested for realizing the commodity based on ink label, method includes the following steps: obtaining ink label image, the ink label image is identified to extract ink characteristic information;Validation template is obtained, the ink feature information and validation template are subjected to aspect ratio pair, obtain feature comparison result;Pseudo- result is tested as a result, returning according to the aspect ratio pair.The invention also discloses a kind of identifications of ink label to test pseudo-device, electronic equipment and computer storage medium.The present invention is extracted and is compared respectively by ink feature to ink label and radium-shine feature, and that realizes commodity tests puppet.)

1. fake method is tested in a kind of identification of ink label, which comprises the following steps:

Ink label image is obtained, the ink label image is identified to extract ink characteristic information;

Validation template is obtained, the ink feature information and validation template are subjected to aspect ratio pair, obtain feature comparison result;

Pseudo- result is tested as a result, returning according to the aspect ratio pair.

2. fake method is tested in the identification of ink label as described in claim 1, which is characterized in that pass through unique mark of ink label Know and obtain validation template, the unique identification of the ink label are as follows: the bar code information bound with the validation template of ink label or The tag number of ink label.

3. fake method is tested in the identification of ink label as described in claim 1, which is characterized in that the ink label image into To extract ink characteristic information, specific extraction step includes: for row identification

The ink label image is pre-processed, according to figure location feature, from the pretreated ink label figure The position of positioning pattern is determined as in,

According to the position of target signature and the positioning pattern, anti-fake region is determined;

The anti-fake region is corrected by affine transformation;

Anti-fake region after correction is subjected to binary conversion treatment, obtains binary map;

The binary map is divided into several piecemeals, calculates the accounting of ink in each piecemeal, if the accounting is greater than or equal to The value of piecemeal is then set to 0 by threshold value, otherwise is set to 1;The value of several piecemeals is combined into binary number in order, it is described Binary number is ink feature information.

4. fake method is tested in the identification of ink label as claimed in claim 3, which is characterized in that when ink label includes radium-shine figure When layer, the color change of the ink label image is also analyzed, to judge whether the color change rule for meeting the ink label Rule comprising following steps:

Ink label image described in multiframe is obtained, the ink label image is converted into HSV color space;

The HSV color space of ink label image described in multiframe is recorded, each pixel in ink label image described in multiframe is analyzed Color change, when the pixel quantity of the color change and distribution meet setting condition when, then meet the ink label Color change rule, conversely, not meeting then;

Wherein, pass through color change described in VIBE algorithm, mixed Gauss model or deep learning model analysis.

5. fake method is tested in the identification of ink label as claimed in claim 3, which is characterized in that by being positioned described in permutation and combination The position of figure forms candidate anti-fake region, and the anti-fake region is determined from the candidate region further according to target signature.

6. fake method is tested in the identification of ink label as claimed in claim 3, which is characterized in that utilize the ink feature extracted Information carries out testing pseudo- comparison, and testing pseudo- comparison process includes: by the ink feature information and the pre-stored ink mark It signs corresponding validation template to be compared, when comparing successfully, then tests puppet and pass through;Do not pass through conversely, testing puppet.

7. fake method is tested in the identification of ink label as claimed in claim 4, which is characterized in that utilize the ink feature extracted Information carries out testing pseudo- comparison, and testing pseudo- comparison process includes: by the ink feature information and the pre-stored ink mark It signs corresponding validation template to be compared, when comparing successfully and meeting the color change rule, then tests puppet and pass through;Conversely, Puppet is tested not pass through.

8. pseudo-device is tested in a kind of identification of ink label, characterized in that it comprises:

Image collection module identifies the ink label image for obtaining ink label image to extract ink spy Reference breath;

Pseudo- module is tested, for obtaining validation template, the ink feature information and validation template is subjected to aspect ratio pair, obtain spy Levy comparison result;

As a result output module, for testing pseudo- result as a result, returning according to the aspect ratio pair.

9. a kind of electronic equipment comprising processor, storage medium and computer program, the computer program are stored in In storage media, which is characterized in that realize that claim 1 to 7 is described in any item when the computer program is executed by processor Fake method is tested in the identification of ink label.

10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Realize that fake method is tested in the identification of the described in any item ink labels of claim 1 to 7 when being executed by processor.

Technical field

The present invention relates to field of anti-counterfeit technology more particularly to a kind of identification of ink label test fake method, device, equipment and Medium.

Background technique

The packages printing industry in China is grown rapidly, antifalsification label using more more and more universal, especially in drug, cigarette It is commonly used in the packaging of equal high-end products, to reach antifalse effect.

But with antifalsification label it is universal after, fake producer in the market carries out antifalsification label with high simulation means pseudo- It makes, to realize the fraud to high-end product;What is more, and the outer packing for directly recycling high-end commodity goes to re-work, and is made with this Vacation deception consumer, disrupts the market.But ordinary consumer lacks the recognition capability of profession to these antifalsification labels, and The phenomenon that being applied to commodity counterfeit prevention to antifalsification label has also been accustomed to, and general no one goes carefully to distinguish in daily life Whether these commodity for being printed on antifalsification label are certified products.

Commonly used antifalsification label in the market, including laser label and ink label, existing radium-shine figure line are usual Laser label is formed using will be printed on the laser film of figure line and be transferred on wrapping paper by being bonded the processes such as compound, but due to radium-shine The extensive utilization of transfer membrane, existing radium-shine figure line are very easy to copy, and greatly reduce its anti-fake effect.

Therefore, it goes to realize commodity counterfeit prevention using ink label, has better effect, the printing of ink label general random Ink layer is formed, and the depth, the shape of the ink logo formed are uncertain, has randomness and uniqueness, therefore to such The identification of ink label and verification process are relatively complicated, if the ink layer of ink label is superimposed radium-shine figure layer, will form Static and dynamic security pattern has stronger antifalse effect.So needing to propose a kind of needle after ink label puts goods on the market To the identification verification method of ink label, completes the identification to security pattern in ink label and verify.

Summary of the invention

For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide a kind of identifications of ink label to test puppet Method obtains the ink feature information of ink label, utilizes what is extracted by carrying out feature extraction to ink label image Ink feature information carries out testing puppet, to complete the puppet of testing to product, and then can preferably safeguard consumer's interests.

An object of the present invention is implemented with the following technical solutions:

Fake method is tested in a kind of identification of ink label, comprising the following steps:

Ink label image is obtained, the ink label image is identified to extract ink characteristic information;

Validation template is obtained, the ink feature information and validation template are subjected to aspect ratio pair, obtain aspect ratio to knot Fruit;

Pseudo- result is tested as a result, returning according to the aspect ratio pair.

Further, validation template, the unique identification of the ink label are obtained by the unique identification of ink label are as follows: The tag number of the bar code information or ink label bound with the validation template of ink label.

Further, the ink label image is identified to extract ink characteristic information, it is specific to extract step Suddenly include:

The ink label image is pre-processed, according to figure location feature, from the pretreated ink mark The position that positioning pattern is determined in image is signed,

According to the position of target signature and the positioning pattern, anti-fake region is determined;

The anti-fake region is corrected by affine transformation;

Anti-fake region after correction is subjected to binary conversion treatment, obtains binary map;

The binary map is drawn and is divided into several piecemeals, the accounting of ink in each piecemeal is calculated, if the accounting is greater than Or be equal to threshold value, then the value of piecemeal is set to 0, otherwise is set to 1;The value of several piecemeals is combined into binary system in order Number, the binary number are ink feature information.

Further, when ink label includes radium-shine figure layer, the color change of the ink label image is also analyzed, with Judge whether the color change rule for meeting the ink label comprising following steps:

Ink label image described in multiframe is obtained, the ink label image is converted into HSV color space;

The HSV color space of ink label image described in multiframe is recorded, is analyzed each in ink label image described in multiframe The color change of pixel then meets the ink when the pixel quantity of the color change and the condition of distribution satisfaction setting The color change rule of label, conversely, not meeting then;

Wherein, pass through color change described in VIBE algorithm, mixed Gauss model or deep learning model analysis.

Further, candidate anti-fake region is formed by the position of positioning pattern described in permutation and combination, further according to target spy Sign determines the anti-fake region from the candidate region.

Further, it carries out testing pseudo- comparison using the ink feature information extracted, testing pseudo- comparison process includes: by institute It states ink feature information validation template corresponding with the pre-stored ink label to be compared, when comparing successfully, then Puppet is tested to pass through;Do not pass through conversely, testing puppet.

Further, it carries out testing pseudo- comparison using the ink feature information extracted, testing pseudo- comparison process includes: by institute It states ink feature information validation template corresponding with the pre-stored ink label to be compared, when comparing successfully and meet When the color change rule, then tests puppet and pass through;Do not pass through conversely, testing puppet.

The second object of the present invention is that pseudo-device is tested in the identification for providing a kind of ink label, passes through the oil of ink label Black pattern and laser pattern carry out identifying processing and verifying respectively, to carry out testing puppet to commodity.

The second object of the present invention is implemented with the following technical solutions:

Pseudo-device is tested in a kind of identification of ink label comprising:

Image collection module identifies with extract oil the ink label image for obtaining ink label image Black characteristic information;

Pseudo- module is tested, for obtaining validation template, the ink feature information and validation template is subjected to aspect ratio pair, obtained To feature comparison result;

As a result output module, for testing pseudo- result as a result, returning according to the aspect ratio pair.

The third object of the present invention is to provide the electronic equipment for executing one of goal of the invention comprising processor, storage Medium and computer program, the computer program are stored in storage medium, and the computer program is executed by processor Fake method is tested in the identification of Shi Shixian above-mentioned ink label.

The fourth object of the present invention is to provide the computer readable storage medium of one of storage goal of the invention, store thereon There is computer program, the computer program realizes that fake method is tested in the identification of above-mentioned ink label when being executed by processor.

Compared with prior art, the beneficial effects of the present invention are:

The present invention is by identifying the ink feature in ink label and feature extraction, the ink that will finally extract Characteristic information is compared with validation template predetermined, so as to complete the verifying to ink label, to realize that product is tested Puppet, and then achieve the purpose that safeguard consumer's interests, when the ink label to the radium-shine figure layer of superposition carries out identification and feature extraction When, it will also extract radium-shine characteristic information and be compared with validation template, be able to achieve and different types of ink label is identified Test puppet.

Detailed description of the invention

Fig. 1 is that the flow chart of fake method is tested in the identification of ink label of the present invention;

Fig. 2 is that the flow chart of fake method is tested in the identification of the ink label of embodiment 2;

Fig. 3 is that the structural block diagram of pseudo-device is tested in the identification of the ink label of embodiment 3;

Fig. 4 is the structural block diagram of the electronic equipment of embodiment 4.

Specific embodiment

Below with reference to attached drawing, the present invention is described in more detail, it should be noted that lower reference attached drawing is to this The description that invention carries out is only illustrative, and not restrictive.It can be combined with each other between each difference embodiment, with Constitute the other embodiments not shown in the following description.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:估计单个图像的深度图的方法和设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!