CN115171108B - Method, device and medium for authenticating production date of article - Google Patents

Method, device and medium for authenticating production date of article Download PDF

Info

Publication number
CN115171108B
CN115171108B CN202210637442.1A CN202210637442A CN115171108B CN 115171108 B CN115171108 B CN 115171108B CN 202210637442 A CN202210637442 A CN 202210637442A CN 115171108 B CN115171108 B CN 115171108B
Authority
CN
China
Prior art keywords
texture
article
textured
texture picture
module
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
Application number
CN202210637442.1A
Other languages
Chinese (zh)
Other versions
CN115171108A (en
Inventor
郭小璇
杨宝生
高兴兴
赵光普
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Tosun Intelligent Technology Inc
Original Assignee
Qingdao Tosun Intelligent Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Tosun Intelligent Technology Inc filed Critical Qingdao Tosun Intelligent Technology Inc
Priority to CN202210637442.1A priority Critical patent/CN115171108B/en
Publication of CN115171108A publication Critical patent/CN115171108A/en
Application granted granted Critical
Publication of CN115171108B publication Critical patent/CN115171108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20164Salient point detection; Corner detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a method, a device and a medium for authenticating the production date of an article, which are applied to the field of image processing. The method is applied to a registration terminal and comprises the steps of obtaining relevant information of a textured article; scanning the textured article to obtain texture features; matching the texture features and the related information of the textured article; and the texture features are encrypted. And then storing the corresponding relation between the texture features and the related information after encryption processing so as to facilitate the inquiry terminal to scan the textured article to obtain the texture features, and inquiring the corresponding related information according to the corresponding relation after the encryption processing is carried out on the texture features. The beneficial effects of this application are that, through carrying out encryption processing to characteristic information, lawbreaker can't obtain the relevant information that has the texture article through simulating the texture characteristic under the condition that does not possess corresponding texture article to the false textured article of making fake, thereby avoided causing serious food security accident.

Description

Method, device and medium for authenticating production date of article
Technical Field
The present application relates to the field of image processing, and in particular, to a method, an apparatus, and a medium for authenticating a production date of an article.
Background
In daily life, in order to ensure food safety and the like, production dates need to be engraved on various article bodies during article production so as to ensure that the storage time of the articles can be clearly defined when the articles are used and the overdue articles are not used. However, for example, fresh articles such as cut noodles, pu' er tea cakes, salmon and the like have natural or processed disordered textures on the surfaces of the articles, and the production date is difficult to engrave on the surfaces of the articles, so that the texture features of the textured articles can be extracted and stored in the cloud.
However, in the case that a lawbreaker does not have a corresponding textured article, the lawbreaker may obtain the related information of the textured article by simulating the texture features to counterfeit the textured article, which may cause a serious food safety accident.
Therefore, the problem to be solved by the technical staff in the field is to avoid the problem that lawless persons counterfeit textured articles by simulating texture features so as to avoid serious food safety accidents.
Disclosure of Invention
The application aims to provide a method, a device and a medium for authenticating the production date of an article so as to improve the authenticity of the production date of the article.
In order to solve the above technical problem, the present application provides a method for authenticating an article production date, which is applied to a registration terminal, and the method includes:
acquiring related information of the textured article; wherein the related information comprises a production date and a number of the textured article;
scanning the textured article to obtain a texture picture;
extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection;
matching the textural features of the textured item with the relevant information;
encrypting the texture features;
storing the corresponding relation between the texture features and the related information after the encryption processing so as to facilitate an inquiry terminal to scan the textured article to obtain the texture picture, extracting the corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection, and inquiring the corresponding related information according to the corresponding relation after the encryption processing is performed on the texture features;
wherein the encryption processing includes:
obtaining a texture picture pixel matrix according to the texture features;
normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix;
marking a corner point to the texture picture pixel matrix;
adding high-frequency noise interference textures to the texture picture pixel matrix;
adjacent rows and adjacent columns of the texture picture pixel matrix are exchanged;
transposing the texture picture pixel matrix;
and setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture features.
Preferably, the related information further includes:
information of a principal of the textured item.
In order to solve the above technical problem, the present application further provides an authentication apparatus for an article production date, applied to a registration terminal, the apparatus including:
the acquisition module is used for acquiring related information of the textured article; wherein the related information comprises a production date and a number of the textured article;
the first scanning module is used for scanning the textured article to obtain a texture picture;
the first extraction module is used for extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection;
a matching module for matching the textural features of the textured article with the relevant information;
the first encryption module is used for encrypting the texture features;
a storage module, configured to store a correspondence between the texture features and the related information after the encryption processing, so as to facilitate an inquiry terminal to scan the textured article to obtain the texture picture, extract the corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection, and inquire the corresponding related information according to the correspondence after the encryption processing is performed on the texture features;
wherein the first encryption module comprises:
the processing module is used for obtaining a texture picture pixel matrix according to the texture characteristics;
the superposition module is used for superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix;
a marking module for marking a corner point to the texture picture pixel matrix;
the adding module is used for adding high-frequency noise interference textures to the texture picture pixel matrix;
the swapping module is used for swapping adjacent rows and adjacent columns of the texture picture pixel matrix;
a transposition module for transposing the texture picture pixel matrix;
and the setting module is used for setting a corresponding password for the texture picture pixel matrix to obtain the encrypted texture features.
In order to solve the above technical problem, the present application further provides an authentication device for an article production date, including: a memory for storing a computer program;
and the processor is used for realizing the steps of the authentication method of the production date of the article when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for authenticating a production date of an article.
The method for authenticating the production date of the article is applied to a registration terminal, and related information in the method comprises the production date and the number of the textured article; the method comprises the steps of obtaining relevant information of an article with texture; scanning the object with the texture to obtain a texture picture; extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection; matching the texture characteristics and the related information of the textured article; carrying out encryption processing on the texture characteristics; and then storing the corresponding relation between the texture features and the related information after encryption processing so as to facilitate the inquiry terminal to scan the textured article to obtain a texture picture, extracting the corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection, acquiring the texture features, encrypting the texture features, and inquiring the corresponding related information according to the corresponding relation. Wherein the encryption processing includes: obtaining a texture picture pixel matrix according to the texture characteristics; normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to a texture picture pixel matrix; marking the corner points to a texture picture pixel matrix; adding high-frequency noise interference textures to the texture picture pixel matrix; adjacent rows and adjacent columns of the texture picture pixel matrix are exchanged; transposing a texture picture pixel matrix; and setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture characteristics. The beneficial effects of this application are that, through carrying out encryption processing to characteristic information, lawless persons can't obtain the relevant information that has the texture article through simulating the texture characteristic under the condition that does not have the texture article that corresponds to the pseudo-textured article of having avoided causing serious food security accident.
The present application also provides an article production date authentication device and a computer-readable storage medium, which correspond to the above article production date authentication method, and thus have the same advantageous effects as the above article production date authentication method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings required for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an authentication method applied to a registration terminal for an article production date according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a registration terminal according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an inquiry terminal according to an embodiment of the present application;
fig. 4 is a schematic flowchart of an authentication method for a production date of an article according to an embodiment of the present application;
fig. 5 is a flowchart of an authentication method applied to a query terminal for an item production date according to an embodiment of the present application;
fig. 6 is a structural diagram of an authentication device applied to a registration terminal for product production date according to an embodiment of the present application;
fig. 7 is a structural diagram of an authentication device applied to a query terminal for an article production date according to an embodiment of the present application;
fig. 8 is a block diagram of an authentication device for an article production date according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide an authentication method, device and medium for the production date of an article so as to improve the authenticity of the production date of the article.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
When various types of articles are produced, information such as production date and shelf life of the articles is generally required to be marked, especially for some food types. However, since a part of the surface of the article has a natural or processed disordered texture, such an article is called a textured article, and related information such as a production date cannot be engraved on the textured article body due to the texture of the surface, and if the related information is marked on an outer package, the production date is easily forged by a lawbreaker replacing the package. Therefore, the texture features of the textured objects can be extracted and stored in the cloud. However, in the case that a lawbreaker does not own a corresponding textured article, the lawbreaker may obtain the related information of the textured article by simulating the texture features, so as to counterfeit the textured article, which may cause a serious food safety accident.
In order to solve the technical problem, the present application provides an article production date authentication method, which is applied to a registration terminal, and the present application embodiment records the textured article by scanning the texture of the textured article, because the texture of different textured articles is basically different, and the difference can be used to distinguish a plurality of textured articles in the same class. After the texture features are extracted, the texture features are encrypted, so that the texture objects counterfeited by lawbreakers can be avoided. In the complete solution of the present application, the registration terminal, the query terminal, and the cloud terminal are usually included, but not limited to the solution including three terminals, the registration terminal may be a rechargeable or plug-in device, and at least includes a device such as a camera for scanning textured objects, and a device such as a computer for facilitating registration operation of a registrant, in addition, the registration terminal is generally fixed at a position, and continuously places the textured objects under the camera for scanning, so a light source may be added at a corresponding position, so that the camera can clearly scan textures, the types, installation positions, and numbers of the devices such as the camera, the computer, and the light source in the registration terminal are not limited, and in practical application, the data need to be stored after the texture is scanned by the registration terminal, and the data can be stored in the database of the registration terminal itself, but the database capacity of the registration terminal itself is limited, so that a large amount of data can be stored in the cloud terminal, and the query terminal directly queries in the cloud terminal. The inquiry terminal also needs a device such as a camera to scan the textured objects to be inquired, but the inquiry terminal is more flexible than the registration terminal, the requirement on the precision of the device is generally lower than that of the registration terminal, and mobile devices such as smart phones used in daily life can be used as the inquiry terminal. Fig. 1 is a flowchart of an authentication method applied to a registration terminal for an article production date according to an embodiment of the present application; as shown in fig. 1, the method comprises the steps of:
s10: and acquiring related information of the textured article.
The textured articles in the embodiment of the application include but are not limited to fresh articles such as cut noodles, pu' er tea cakes and salmon, the registration terminal needs to acquire the relevant information of the textured articles, but the acquisition mode is not limited, and generally, a registrant can acquire the relevant information of the textured articles in advance when registering the textured articles in batches. The quantity and type of the related information are not limited, and may include the production date of the textured article, the corresponding unique number during production, the expiration date, the registration date, and the product type to which the textured article belongs, and may also include related information of a responsible person, and when various problems occur in the related textured article, the related responsible person may be directly found, where the responsible person may be a registered person responsible for registering the textured article, or a responsible person in the whole production process, and is not limited here.
S11: the registration terminal scans the textured article to extract the corresponding texture features.
The method comprises the following specific steps: scanning the object with the texture to obtain a texture picture; and (3) extracting corresponding texture Features in the texture picture by using a Gray-level Co-segmentation Matrix (GLCM) in combination with FAST corner detection (Features From estimated segmented Test). The texture features extracted by the gray level co-occurrence matrix can effectively identify different textures, but lack the utilization of global information, so that the corner template is generated by determining the position relationship between corners (Euclidean distance and orientation between corners) by combining FAST corner detection. The corner point template provided by the embodiment of the application can well describe the global information of the texture.
Fig. 2 is a schematic structural diagram of a registration terminal according to an embodiment of the present disclosure; as shown in fig. 2, the device comprises a camera 6 and a light source 5 in a registration terminal, and a texture object 4; it should be noted that the registration terminal only provides a partial structure, and in fact, a computer or other device used by the registrant during the registration also belongs to the registration terminal, and when the registrant performs batch registration, because the workload is large and the continuous scanning of the camera 6 does not meet the actual requirement, a trigger button is generally set, and the registrant can execute a registration program only by pressing the trigger button. In addition, the number and the positions of the cameras 6 and the light sources 5 in the figures are only one example provided in the embodiments of the present application, and do not limit other solutions provided in the present application. The distance between the camera 6 and the textured object 4 is generally proper within the range of 10-50cm, so that the textured object 4 can be conveniently put in and taken out, and the texture features can be clearly scanned.
S12: matching the texture features and the related information of the textured article.
Under normal conditions, each registration is performed on the same kind of textured articles, and a large number of textured articles need to be registered, and after acquiring texture features and related information, the registration terminal needs to match the texture features and the related information of the same textured article to obtain a corresponding relationship between the texture features and the related information.
S13: the registration terminal encrypts the texture features.
The encryption processing specifically comprises the following steps:
1. and obtaining a texture picture pixel matrix according to the texture characteristics.
2. And normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix.
3. The corner points are marked to the texture picture pixel matrix.
4. Adding high frequency noise interference textures to the texture picture pixel matrix.
5. Adjacent rows and adjacent columns of the texture picture pixel matrix are swapped.
6. Transpose the texture picture pixel matrix.
7. And setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture characteristics.
Normalizing the gray level co-occurrence matrix to the size of the texture picture, superposing the gray level co-occurrence matrix to a pixel matrix of the texture picture, marking the corner points to the pixel matrix of the picture, and finally normalizing the three encrypted contents to one pixel matrix. And finally, adding high-frequency noise interference textures of a fixed template, exchanging rows and columns of adjacent matrixes, and transposing to obtain a final matrix. And compressing the matrix, setting a compressed password, and uploading the compressed password to the cloud so as to finish the encryption work. During actual application, the encryption processing can be completed at the registration terminal and the inquiry terminal, and the encryption processing can also be completed through the cloud after being uploaded to the cloud. By encrypting the characteristic information, a lawbreaker cannot acquire the related information of the textured article by simulating the texture characteristic under the condition that the corresponding textured article is not owned, so as to counterfeit textured articles, thereby avoiding serious food safety accidents. Only when the corresponding textured object is really owned, the texture feature can be obtained by scanning the texture, and the texture feature is encrypted. And then, acquiring related information from the cloud through the texture features after encryption processing.
S14: and storing the corresponding relation between the texture features after the encryption processing and the related information.
During specific implementation, the registration process can be fully automated, the registration program is set in advance, then the textured articles are regularly put in through the transmission belt, after the textured articles reach the designated position, the transmission belt can be paused for a few seconds, the camera is waited for scanning, after the texture features are extracted, the registration terminal automatically matches the related information input in advance, the corresponding relation between the texture features and the related information is stored, and the corresponding relation is stored, namely the texture features and the related information of the textured articles are stored. The location where the correspondence relationship is stored is not limited, and the location may be stored in a database of the registration terminal itself, but generally, the database capacity of the registration terminal itself is limited, so that a large amount of data may be stored in the cloud, and the query terminal obtains the texture features and then queries the corresponding relevant information in the cloud according to the correspondence relationship. Fig. 3 is a schematic structural diagram of an inquiry terminal according to an embodiment of the present application; the structure shown in fig. 3 is only one scheme in the present Application, and as shown in fig. 3, includes an inquiry terminal 2 and a textured article 4, where the inquiry terminal 2 is a smart phone, and collects texture features of the surface of the textured article 4 in an Application (APP) or applet manner, and invokes an article inquiry interface to inquire out related information of the production date, registration time, registered person, and the like of the textured article 4. As shown, the distance between the interrogation terminal 2 and the textured item 4 may also be in the range of 10-50 cm.
Fig. 4 is a schematic flowchart of an authentication method for a production date of an article according to an embodiment of the present application; fig. 4 is a flow chart based on one of the above examples, and the present application is not limited to this scheme. As shown in the figure, the method comprises a registration terminal 1, an inquiry terminal 2 and a cloud terminal 3, wherein a registrant inputs an account number and a password to log in the registration terminal, then places a textured article to be registered in a visual field range of a camera, performs photographing registration on the registration terminal 1, records the current time while the registration terminal 1 acquires an image, sends texture features acquired from the image to the cloud terminal 3, and stores information after the cloud terminal 3 encrypts the texture features. The query terminal 2 performs photographing query on the textured object to be queried, then sends the scanned and obtained texture features to the cloud end 3, the cloud end 3 also performs encryption processing on the texture features, then performs information extraction to match corresponding related information, and finally the cloud end 3 returns the extracted related information to the query terminal 2 so that the query terminal 2 can display the related information. The cloud 3 adopts a high-performance storage query system to support massive query to be carried out concurrently; in order to guarantee the usage experience, the response time of the registration interface and the inquiry interface should not exceed 20 milliseconds at the maximum. The encryption algorithm used by the registration interface and the query interface on the cloud 3 needs to ensure that the encryption results of different texture features are not repeated. According to the method provided by the embodiment of the application, when the surface of the textured article slightly changes due to various factors, namely the texture features are defective, the relevant information corresponding to the textured article can still be quickly and accurately inquired. In addition, the encryption process may be performed at the registration terminal 1 and the inquiry terminal 2.
The authentication method for the production date of the article provided by the embodiment of the application is applied to a registration terminal, and related information in the application comprises the production date and the number of the textured article; the method comprises the steps of obtaining relevant information of an article with texture; scanning the object with the texture to obtain a texture picture; extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection; matching the texture features and the related information of the textured article; carrying out encryption processing on the texture characteristics; and then storing the corresponding relation between the texture features and the related information after encryption processing so as to facilitate the inquiry terminal to scan the textured article to obtain a texture picture, extracting the corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection, obtaining the texture features, encrypting the texture features, and inquiring the corresponding related information according to the corresponding relation. Wherein the encryption processing includes: obtaining a texture picture pixel matrix according to the texture characteristics; normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to a texture picture pixel matrix; marking the corner points to a texture picture pixel matrix; adding high-frequency noise interference textures to the texture picture pixel matrix; adjacent rows and adjacent columns of the texture picture pixel matrix are exchanged; transposing a texture picture pixel matrix; and setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture characteristics. The embodiment of the application has the beneficial effects that by encrypting the characteristic information, lawbreakers cannot acquire the related information of the textured article by simulating the texture characteristics under the condition that the corresponding textured article is not owned, so that the fake textured article is made, and serious food safety accidents are avoided.
The above embodiment describes in detail an authentication method applied to the production date of an article of a registration terminal, and the embodiment of the present application provides an authentication method applied to the production date of an article of a query terminal, and fig. 5 is a flowchart of an authentication method applied to the production date of an article of a query terminal provided by the embodiment of the present application; as shown in fig. 5, the method includes the steps of:
s20: the inquiry terminal scans the textured article to extract the corresponding texture features.
The method comprises the following specific steps: scanning the object with the texture to obtain a texture picture; and (4) combining a gray level co-occurrence matrix with FAST corner detection to extract corresponding texture features in the texture picture.
S21: and the inquiry terminal encrypts the texture characteristics.
Wherein the encryption processing is as shown in step S13.
S22: and inquiring the related information corresponding to the texture features according to the corresponding relation between the texture features after encryption processing and the related information of the textured article.
The registration terminal acquires related information from the textured article and scans the textured article to obtain a texture picture; extracting corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection; matching the texture features and the related information of the texture object, and storing the corresponding relation between the texture features and the related information after encryption after the encryption is performed on the texture features; the associated information includes the date and number of manufacture of the textured article.
Since the embodiment of the authentication method applied to the article production date of the inquiring terminal corresponds to the embodiment of the authentication method applied to the article production date of the registering terminal, please refer to the description of the embodiment of the authentication method applied to the article production date of the registering terminal, which is not repeated herein.
The authentication method applied to the production date of the article of the inquiry terminal in the embodiment corresponds to the authentication method applied to the production date of the article of the registration terminal, and therefore has the same beneficial effects as the authentication method applied to the production date of the article of the registration terminal.
In the above embodiments, the method for authenticating the production date of the article is described in detail, and the present application also provides embodiments corresponding to the apparatus for authenticating the production date of the article. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one is from the perspective of the function module, and the other is from the perspective of the hardware.
Based on the angle of the function module, the present embodiment provides an authentication device applied to register the production date of an article at a terminal, and fig. 6 is a structural diagram of the authentication device applied to register the production date of an article at a terminal provided in the embodiment of the present application; as shown in fig. 6, the apparatus includes:
an obtaining module 10, configured to obtain relevant information of an article with a texture; wherein the related information comprises the production date and the number of the textured article.
The first scanning module 11 is configured to scan an object with a texture to obtain a texture picture.
The first extraction module 12 is configured to extract corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection.
And the matching module 13 is used for matching the texture features and the related information of the textured object.
And the first encryption module 14 is used for carrying out encryption processing on the texture features.
The storage module 15 is configured to store a corresponding relationship between the encrypted texture features and the related information, so that the query terminal scans the textured article to obtain a texture picture, extracts corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection, and queries the corresponding related information according to the corresponding relationship after the encryption processing is performed on the texture features.
Wherein, the first encryption module 14 includes:
the processing module is used for obtaining a texture picture pixel matrix according to the texture characteristics;
the superposition module is used for superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix;
the marking module is used for marking the corner points to the texture picture pixel matrix;
the adding module is used for adding high-frequency noise interference textures to the texture picture pixel matrix;
the adjusting module is used for adjusting adjacent rows and adjacent columns of the texture picture pixel matrix;
the transposition module is used for transposing the texture picture pixel matrix;
and the setting module is used for setting a corresponding password for the texture picture pixel matrix to obtain the encrypted texture characteristics.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
As a preferred embodiment, the authentication device for the production date of an article further includes: and the encryption module is used for encrypting the texture features before the corresponding relation between the texture features and the related information is stored.
The authentication device for the production date of the article provided by the embodiment corresponds to the method, and therefore, the same beneficial effects as the method are achieved.
Based on the angle of the functional module, the present embodiment provides an authentication device applied to query the production date of an article at a terminal, and fig. 7 is a structural diagram of the authentication device applied to query the production date of an article at a terminal according to the present embodiment; as shown in fig. 7, the apparatus includes:
and the second scanning module 16 is used for scanning the textured article to obtain a texture picture.
And a second extraction module 17, configured to extract corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection.
The second encryption module 18 is used for encrypting the texture features; the encryption processing includes:
obtaining a texture picture pixel matrix according to the texture characteristics;
normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to a texture picture pixel matrix; marking the corner points to a texture picture pixel matrix;
adding high-frequency noise interference textures to the texture picture pixel matrix;
adjacent rows and adjacent columns of the texture picture pixel matrix are exchanged;
transposing a texture picture pixel matrix;
and setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture characteristics.
The query module 19 is configured to query relevant information corresponding to the texture features according to a correspondence between the encrypted texture features and the relevant information of the textured article; the registration terminal acquires related information from the textured article and scans the textured article to obtain a texture picture; extracting corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection; matching the texture features and the related information of the texture object, and storing the corresponding relation between the texture features and the related information after encryption after the encryption is performed on the texture features; the associated information includes the date and number of manufacture of the textured article.
Since the embodiment of the apparatus portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the apparatus portion, and details are not repeated here.
The authentication device for the production date of the article provided by the embodiment corresponds to the method, and therefore, the same beneficial effects as the method are achieved.
In terms of hardware, the present embodiment provides another authentication device for the production date of an article, fig. 8 is a structural diagram of an authentication device for the production date of an article according to another embodiment of the present application, and as shown in fig. 8, the authentication device for the production date of an article includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for authenticating the production date of an article as mentioned in the above embodiments when executing the computer program.
The authentication device for the production date of the article provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computing operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, wherein after being loaded and executed by the processor 21, the computer program is capable of implementing the relevant steps of the method for authenticating the production date of an article disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, windows, unix, linux, and the like. Data 203 may include, but is not limited to, data related to the authentication method of the date of manufacture of the item, and the like.
In some embodiments, the device for authenticating the date of manufacture of the article may further include a display 22, an input/output interface 23, a communication interface 24, a power source 25, and a communication bus 26.
It will be appreciated by those skilled in the art that the configurations shown in the figures do not constitute a limitation of the authentication means for the date of manufacture of the article and may include more or less components than those shown.
The authentication device for the production date of the article provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized: method for authenticating the production date of an article.
The authentication device for the production date of the article provided by the embodiment corresponds to the method, and therefore, the same beneficial effects as the method are achieved.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is understood that, if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the embodiment corresponds to the method, and therefore has the same beneficial effects as the method.
The method, apparatus, and medium for authenticating the date of manufacture of an article provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, without departing from the principle of the present application, the present application can also make several improvements and modifications, and those improvements and modifications also fall into the protection scope of the claims of the present application.
It should also be noted that, in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the same element.

Claims (5)

1. A method for authenticating the date of manufacture of an article, applied to a registration terminal, the method comprising:
acquiring related information of the textured article; wherein the related information comprises a production date and a number of the textured article;
scanning the textured article to obtain a texture picture;
extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection;
matching the textural features of the textured item with the relevant information;
carrying out encryption processing on the texture features;
setting a corresponding password to the texture picture pixel matrix to obtain the encrypted texture features; storing the corresponding relation between the texture features and the related information after the encryption processing so as to facilitate an inquiry terminal to scan the textured article to obtain the texture picture, extracting the corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST angular point detection, and inquiring the corresponding related information according to the corresponding relation after the encryption processing is performed on the texture features;
wherein the encryption processing includes:
obtaining a texture picture pixel matrix according to the texture features;
normalizing the gray level co-occurrence matrix and then superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix;
marking a corner point to the texture picture pixel matrix;
adding high-frequency noise interference textures to the texture picture pixel matrix;
exchanging adjacent rows and adjacent columns of the texture picture pixel matrix;
transposing the texture picture pixel matrix.
2. The method of claim 1, wherein the related information further comprises:
information of a person in charge of the textured article.
3. An authentication apparatus for an article production date, applied to a registration terminal, the apparatus comprising:
the acquisition module is used for acquiring related information of the textured article; wherein the related information comprises a production date and a number of the textured article;
the first scanning module is used for scanning the textured article to obtain a texture picture;
the first extraction module is used for extracting corresponding texture features in the texture picture by using a gray level co-occurrence matrix in combination with FAST corner detection;
a matching module for matching the textural features of the textured article with the relevant information;
the first encryption module is used for encrypting the texture features;
a storage module, configured to store a corresponding relationship between the texture features and the related information after the encryption processing, so that an inquiry terminal scans the textured article to obtain the texture picture, extracts the corresponding texture features in the texture picture by using the gray level co-occurrence matrix in combination with FAST corner detection, and inquires the corresponding related information according to the corresponding relationship after the encryption processing is performed on the texture features;
wherein the first encryption module comprises:
the processing module is used for obtaining a texture picture pixel matrix according to the texture features;
the superposition module is used for superposing the normalized gray level co-occurrence matrix to the texture picture pixel matrix;
a marking module for marking a corner point to the texture picture pixel matrix;
the adding module is used for adding high-frequency noise interference textures to the texture picture pixel matrix;
the swapping module is used for swapping adjacent rows and adjacent columns of the texture picture pixel matrix;
a transposition module for transposing the texture picture pixel matrix;
and the setting module is used for setting a corresponding password for the texture picture pixel matrix to obtain the encrypted texture features.
4. An apparatus for authenticating the date of manufacture of an article, comprising a memory for storing a computer program;
processor for implementing the steps of the method of authentication of the production date of an article according to claim 1 or 2 when executing said computer program.
5. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of authentication of a production date of an item according to claim 1 or 2.
CN202210637442.1A 2022-06-08 2022-06-08 Method, device and medium for authenticating production date of article Active CN115171108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210637442.1A CN115171108B (en) 2022-06-08 2022-06-08 Method, device and medium for authenticating production date of article

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210637442.1A CN115171108B (en) 2022-06-08 2022-06-08 Method, device and medium for authenticating production date of article

Publications (2)

Publication Number Publication Date
CN115171108A CN115171108A (en) 2022-10-11
CN115171108B true CN115171108B (en) 2022-11-18

Family

ID=83484834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210637442.1A Active CN115171108B (en) 2022-06-08 2022-06-08 Method, device and medium for authenticating production date of article

Country Status (1)

Country Link
CN (1) CN115171108B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350260A (en) * 2000-10-21 2002-05-22 孙显林 Random grains anti-fake method
CN101739576A (en) * 2009-11-18 2010-06-16 深圳信息职业技术学院 Anti-counterfeiting method of commodities
CN104794519A (en) * 2015-05-07 2015-07-22 闫霄龙 Cloud identification system and cloud identification method
CN113379720A (en) * 2021-06-29 2021-09-10 云南昆船设计研究院有限公司 Tea cake anti-counterfeiting method based on tea cake image feature code
CN113538016A (en) * 2021-08-05 2021-10-22 深圳市电通材料技术有限公司 Article registration, verification and identity identification method, device and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019134431A1 (en) * 2018-01-02 2019-07-11 海南亚元防伪技术研究所(普通合伙) Anti-counterfeit method employing hand-tearing of textured portion and product and material thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350260A (en) * 2000-10-21 2002-05-22 孙显林 Random grains anti-fake method
CN101739576A (en) * 2009-11-18 2010-06-16 深圳信息职业技术学院 Anti-counterfeiting method of commodities
CN104794519A (en) * 2015-05-07 2015-07-22 闫霄龙 Cloud identification system and cloud identification method
CN113379720A (en) * 2021-06-29 2021-09-10 云南昆船设计研究院有限公司 Tea cake anti-counterfeiting method based on tea cake image feature code
CN113538016A (en) * 2021-08-05 2021-10-22 深圳市电通材料技术有限公司 Article registration, verification and identity identification method, device and readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A morphology screen coding anti-counterfeiting method based on visual characteristics;ZHAO Li-long等;《OPTOELECRTONICS LETTERS》;20080930;第4卷(第5期);第0371-0374页 *
基于纹理识别的图像鉴伪技术研究;刘承香等;《激光与红外》;20090620(第06期);全文 *
食品包装新技术 巩固食品安全防线;力嘉包装有限公司 等;《印刷技术 包装装潢》;20150830;第16-18页 *

Also Published As

Publication number Publication date
CN115171108A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US10572713B2 (en) Fingerprint identification method and terminal
JP5805918B1 (en) Information acquisition method and information acquisition apparatus
CN113379720B (en) Tea cake anti-counterfeiting method based on tea cake image feature code
CN109948397A (en) A kind of face image correcting method, system and terminal device
CN105046254A (en) Character recognition method and apparatus
CN106203326B (en) A kind of image processing method, device and mobile terminal
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN111046889A (en) Method and device for processing pressed tea information and electronic equipment
WO2018040948A1 (en) Digital object unique identifier (doi) recognition method and device
CN102708391A (en) Anti-counterfeiting label on basis of fractal image and anti-counterfeiting verification method
WO2020125062A1 (en) Image fusion method and related device
CN113887408B (en) Method, device, equipment and storage medium for detecting activated face video
Yu et al. Pill recognition using imprint information by two-step sampling distance sets
CN107454251B (en) Unlocking control method and related product
CN115171108B (en) Method, device and medium for authenticating production date of article
CN115375582A (en) Moire digestion method and device based on low-order Taylor decomposition
CN111340515A (en) Characteristic information generation and article tracing method and device
CN109858306A (en) Internet method for anti-counterfeit and system based on natural grain
CN115293985B (en) Super-resolution noise reduction method and device for image optimization
CN112102272A (en) Nut aperture detection method and device, storage medium and terminal equipment
CN112633366B (en) Jade article identification method based on feature matching
EP4089644A1 (en) Image matching system
CN112765641B (en) Efficient desensitization method and device
CN105550622B (en) Coded lock to code method and coded lock to code system
CN203659035U (en) An identification

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
GR01 Patent grant
GR01 Patent grant