Disclosure of Invention
In view of the above, the present invention has been developed to provide a method, apparatus, computing device and computer storage medium for spectral information based product anti-counterfeiting that overcome or at least partially solve the above-mentioned problems.
In order to solve the above technical problem, one technical solution adopted by the embodiments of the present invention is: the method for product anti-counterfeiting based on the spectral information comprises the steps of obtaining product information of the product; retrieving a plurality of preset anti-counterfeiting spectrums corresponding to the product according to the product information, wherein the preset anti-counterfeiting spectrums are arranged according to a preset sequence; receiving a plurality of actual anti-counterfeiting spectra, wherein the actual anti-counterfeiting spectra are arranged according to a scanning sequence of a substance detection device scanning a plurality of anti-counterfeiting substances of the product, and the anti-counterfeiting substances are located on an anti-counterfeiting area of the product; if the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum which are located at the same position are the same, determining that the product is a genuine product; if the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum which are positioned at the same position are different, judging whether the actual anti-counterfeiting spectrums and the preset anti-counterfeiting spectrums have one-to-one correspondence; if so, prompting the user to rescan.
Optionally, the prompting the user to rescan includes: generating a scanning prompt sequence according to the arrangement sequence of at least one preset anti-counterfeiting spectrum; and outputting the scanning prompt sequence.
In order to solve the above technical problem, another technical solution adopted in the embodiments of the present invention is: provided is a product anti-counterfeiting device based on spectral information, comprising:
an acquisition module: for obtaining the product information;
the retrieval module: the system comprises a plurality of preset anti-counterfeiting spectrums, a plurality of anti-counterfeiting detection units and a plurality of anti-counterfeiting detection units, wherein the preset anti-counterfeiting spectrums correspond to the products and are arranged according to a preset sequence;
a receiving module: the system comprises a plurality of actual anti-counterfeiting spectrums, a substance detection device and a control device, wherein the actual anti-counterfeiting spectrums are arranged according to the scanning sequence of the substance detection device scanning anti-counterfeiting substances of the product, and the anti-counterfeiting substances are positioned on an anti-counterfeiting area of the product;
a first judgment module: the system is used for judging whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum which are positioned at the same position are the same or not, and if so, determining that the product is a genuine product;
a second judging module: the anti-counterfeiting detection device is used for judging whether the actual anti-counterfeiting spectrums and the preset anti-counterfeiting spectrums have one-to-one correspondence or not when the actual anti-counterfeiting spectrums and the preset anti-counterfeiting spectrums which are positioned at the same position are different;
a prompt module: and the second judging module prompts the user to scan again if the result shows that the second judging module has one-to-one correspondence.
Optionally, the prompt module includes a generating unit and an output unit, and the generating unit is configured to generate a scanning prompt sequence according to the arrangement sequence of the plurality of preset anti-counterfeit spectrums; the output unit is used for outputting the scanning prompt sequence.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the substance detection method.
According to yet another aspect of the present invention, a computer storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute corresponding operations of the substance detection method.
In the embodiment of the invention, the preset spectral information of the anti-counterfeiting substance attached to the product is bound with the product in advance, when the product is verified to be true or false, the bound preset spectral information is obtained through the product information of the product, and then the product is determined to be true or false through the mode that whether the preset spectral information is consistent with the actual spectral information obtained by scanning the anti-counterfeiting substance attached to the product, because the anti-counterfeiting substance is private and the spectral information of different substances is different, the difficulty of imitating the anti-counterfeiting substance by other users is very difficult, thereby greatly increasing the anti-counterfeiting performance of the product.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more comprehensible.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 is a flowchart of an embodiment of a method for product anti-counterfeiting based on spectral information according to the present invention. As shown in fig. 1, the method comprises the steps of:
step S101: and acquiring product information of the product.
The product information refers to identification information of a product, for example: the model of the product. In some embodiments, the product information is attached to the packing bag of the product by being in the shape of a two-dimensional code, and thus, the product information of the product can be acquired by scanning the two-dimensional code.
Step S102: and retrieving a preset anti-counterfeiting spectrum corresponding to the product according to the product information.
In this step, the preset anti-counterfeit spectrum corresponding to the product may be obtained by detecting an anti-counterfeit substance disposed on the product by using a substance detection device in advance, and the anti-counterfeit substance may be one or more mixed substances, wherein the one or more mixed substances are configured by a management department or a manufacturer, the types and the mixing ratio of the mixed substances are kept secret from the outside, and the one or more mixed substances may be ingredients of the product or any other substances. For example, when the mixed substance is three, the first is a mixed substance in which the substance a and the substance B are mixed in a ratio of 7:3, the second is a mixed substance in which the substances C, D and E are mixed in a ratio of 2:7:1, and the third is a mixed substance in which the substances A, F, G and H are mixed in a ratio of 1:2:3: 4. It will be appreciated that multiple types of security material can be obtained by mixing different materials in different proportions, for example A, B the two materials can be mixed in different proportions, for example 1:9, 2:8, 8:2, and different types of security material can be obtained in different proportions. The types of the substances and the corresponding mixing proportion are set manually, and the more the mixed substances are, the better the anti-counterfeiting effect is. And after the mixed substance is determined, adopting substance detection equipment to obtain the spectral information of the mixed substance, binding the spectral information with the product, and recording the spectral information in an anti-counterfeiting query system. When an inspector scans the EAN bar code corresponding to the product by scanning the product or manually inputs the product information, the preset anti-counterfeiting spectrum corresponding to the product can be retrieved in the anti-counterfeiting query system.
In other embodiments, when the mixed substance is multiple, the preset anti-counterfeiting spectrum is also multiple, and the preset anti-counterfeiting spectrum can be arranged into a sequence, and each position of the sequence corresponds to the mixed substance mixed according to a certain proportion; for example, the first position corresponds to a mixture of substance A and substance B at 7:3, the second position corresponds to a mixture of substance C, D and substance E at 2:7:1, and the third position corresponds to a mixture of substance A, F, G and substance H at 1:2:3: 4. And the arrangement sequence of the preset anti-counterfeiting spectrum is also used as a detection condition for product anti-counterfeiting.
Step S103: and receiving an actual anti-counterfeiting spectrum, wherein the actual anti-counterfeiting spectrum is obtained by scanning the product anti-counterfeiting substance through a substance detection device, and the anti-counterfeiting substance is positioned on the product anti-counterfeiting area.
In this step, an inspector scans an anti-counterfeiting area corresponding to the product, where the anti-counterfeiting area is an area to which a management department or a manufacturer attaches the mixed substances according to a first sequence, and it can be understood that the first sequence is set manually, and may be from top to bottom, or from left to right; and when an inspector scans the anti-counterfeiting areas corresponding to the products, sequentially scanning according to the first sequence.
Step S104: and judging whether the actual anti-counterfeiting spectrum is consistent with the preset anti-counterfeiting spectrum, if so, executing step S105.
In this step, when the inspector scans the anti-counterfeit region, an actual anti-counterfeit spectrum is obtained, and a method for determining whether the actual anti-counterfeit spectrum is consistent with the preset anti-counterfeit spectrum is shown in fig. 2.
Fig. 2 is a flowchart for determining whether the actual anti-counterfeit spectrum is consistent with the preset anti-counterfeit spectrum in the method for product anti-counterfeit based on spectrum information of the present invention. As shown in fig. 2, the method comprises the steps of:
step S1041: and obtaining the sequencing of the actual anti-counterfeiting spectrum according to the scanning sequence of the anti-counterfeiting substance of the product scanned by the substance detection equipment.
In this step, the scanning sequence of the anti-counterfeit substance is an actual scanning sequence when the inspector scans the anti-counterfeit substance.
Step S1042: judging whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum which are located at the same position are the same or not, and if so, executing a step S1043; if not, go to step S1044.
In the step, the actual anti-counterfeiting spectrum obtained according to the actual scanning sequence is compared with a preset anti-counterfeiting spectrum, and when the actual spectrum and the preset anti-counterfeiting spectrum at the same position are consistent during comparison, the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum are considered to be the same; and when the anti-counterfeiting spectrum at any position is different from the preset anti-counterfeiting spectrum, judging that the anti-counterfeiting spectrum is different.
Step S1043: and determining that the actual anti-counterfeiting spectrum is consistent with the preset anti-counterfeiting spectrum.
In this step, the actual anti-counterfeit spectrum is consistent with the preset anti-counterfeit spectrum, including that the actual spectrum of each position is consistent with the preset anti-counterfeit spectrum, and the arrangement sequence of the actual anti-counterfeit spectrum is consistent with the first sequence of the preset anti-counterfeit spectrum.
Step S1044: and determining that the actual anti-counterfeiting spectrum is inconsistent with the preset anti-counterfeiting spectrum.
In this step, the inconsistency between the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum includes inconsistency between the actual spectrum at least one position and the preset anti-counterfeit spectrum, or inconsistency between the arrangement sequence of the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum.
Step S105: and determining that the product is a genuine product.
The genuine product refers to a product produced by an original manufacturer or authorized by the manufacturer.
In the embodiment of the invention, the preset spectral information of the anti-counterfeiting substance attached to the product is bound with the product in advance, when the product is verified to be true or false, the bound preset spectral information is obtained through the product information of the product, and then the product is determined to be true or false through the mode that whether the preset spectral information is consistent with the actual spectral information obtained by scanning the anti-counterfeiting substance attached to the product, because the anti-counterfeiting substance is private and the spectral information of different substances is different, the difficulty of imitating the anti-counterfeiting substance by other users is very difficult, thereby greatly increasing the anti-counterfeiting performance of the product.
Fig. 3 is a flowchart of another embodiment of the method for product anti-counterfeiting based on spectral information according to the present invention, which is different from the previous embodiment in that the method further comprises the following steps:
and S1045, judging whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum have a one-to-one correspondence, and if so, executing the step S1046.
In this step, when the actual anti-counterfeit spectrum is not consistent with the preset anti-counterfeit spectrum, it is determined whether the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum have a one-to-one correspondence relationship, where the one-to-one correspondence relationship is that whether the spectrum type and the spectrum number included in the actual anti-counterfeit spectrum are consistent with the preset anti-counterfeit spectrum, for example, there are four kinds of preset anti-counterfeit spectra, which respectively correspond to X, Y, P and Q, and the arrangement sequence thereof is Y, X, Q, P, and when the four kinds of mixed substances corresponding to the actual anti-counterfeit spectrum are X, Y, P and Q, but the arrangement sequence thereof is Y, X, P, Q, the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum have a one-to-one correspondence relationship, and when there is a one-to-one correspondence relationship between the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum, there may be an incorrect determination of the scanning, allowing the user to scan again.
Step S1046: the user is prompted to rescan.
In this step, a scanning sequence is generated according to the arrangement sequence of the preset anti-counterfeiting spectrum, and the scanning sequence is output to prompt a user to scan again according to the scanning sequence.
In the embodiment of the invention, the signal for prompting the user to rescan is taken as the one-to-one correspondence between the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum, and the scanning prompt sequence is output, so that the product false detection caused by human errors is avoided, and the product detection accuracy is improved.
Fig. 4 is a functional block diagram of a product anti-counterfeiting device based on spectral information according to an embodiment of the present invention, as shown in fig. 4, the device includes: an obtaining module 401, a retrieving module 402, a receiving module 403, and a first determining module 404, where the obtaining module 401 is configured to obtain the product information; the retrieval module 402 is configured to retrieve a preset anti-counterfeit spectrum corresponding to the product according to the product information; the receiving module 403 is configured to receive an actual anti-counterfeiting spectrum, where the actual anti-counterfeiting spectrum is obtained by scanning the product anti-counterfeiting substance with a substance detection device, and the anti-counterfeiting substance is located on the product anti-counterfeiting area; the first judging module 404 is configured to judge whether the actual anti-counterfeit spectrum is consistent with the preset anti-counterfeit spectrum; and if so, determining that the product is a genuine product.
The number of the product anti-counterfeiting substances is at least one, the number of the preset anti-counterfeiting spectrums is at least one, and the at least one preset anti-counterfeiting spectrum has an arrangement sequence.
Wherein the first determining module 404 includes: a sorting unit 4041, a judging unit 4042, a first determining unit 4043, and a second determining unit 4044, where the sorting unit 4041 is configured to obtain a sorting of the actual anti-counterfeit spectrum according to a scanning order of the anti-counterfeit substance scanned by the substance detecting device; the judging unit 4042 is configured to judge whether the actual anti-counterfeit spectrum and the preset anti-counterfeit spectrum located at the same position are the same; the first determining unit 4043 is configured to determine that the actual anti-counterfeit spectrum is consistent with the preset anti-counterfeit spectrum when the results of the determining units are the same; the second determining unit 4044 is configured to determine that the actual anti-counterfeit spectrum is inconsistent with the preset anti-counterfeit spectrum when the determination unit determines that the actual anti-counterfeit spectrum is different from the preset anti-counterfeit spectrum.
In this embodiment, the apparatus further includes a second determining module 405 and a prompting module 406, where the second determining module 405 is configured to determine whether the actual anti-counterfeit spectrum and a preset anti-counterfeit spectrum have a one-to-one correspondence when the determining unit results are different; the prompting module 406 is configured to prompt the user to rescan when the second determining module result indicates that there is a one-to-one correspondence.
The prompting module 406 includes a generating unit 4061 and an output unit 4062, where the generating unit 4061 is configured to generate a scanning prompting sequence according to an arrangement sequence of at least one preset anti-counterfeit spectrum; the output unit 4062 is configured to output the scan prompt order.
In the embodiment of the invention, whether the actual anti-counterfeiting spectrum is consistent with the preset anti-counterfeiting spectrum or not is judged through the first judging module, and whether the product is a genuine product or not is detected, so that the genuine product and the counterfeit product can be effectively distinguished, and the authenticity of the product is ensured; in addition, whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum have a one-to-one correspondence is judged according to the second judging module to serve as a signal for prompting the user to scan again, and a scanning prompting sequence is output, so that product false detection caused by human errors is avoided, and the accuracy of product detection is improved.
The embodiment of the application provides a non-volatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute a product anti-counterfeiting method based on spectral information in any method embodiment.
Fig. 5 is a schematic structural diagram of an embodiment of a computing device according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 5, the computing device may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein:
the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute the relevant steps in one of the above-described embodiments of the method for anti-counterfeiting based on spectral information.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
acquiring product information of the product;
retrieving a preset anti-counterfeiting spectrum corresponding to the product according to the product information;
receiving an actual anti-counterfeiting spectrum, wherein the actual anti-counterfeiting spectrum is obtained by scanning the product anti-counterfeiting substance through a substance detection device, and the anti-counterfeiting substance is positioned on the product anti-counterfeiting area;
judging whether the actual anti-counterfeiting spectrum is consistent with the preset anti-counterfeiting spectrum or not;
and if so, determining that the product is a genuine product.
In an optional mode, the number of the anti-counterfeiting substances of the product is at least one, the number of the preset anti-counterfeiting spectrums is at least one, and the at least one preset anti-counterfeiting spectrum has an arrangement sequence.
In an alternative manner, the program 510 may specifically be further configured to cause the processor 502 to perform the following operations:
obtaining the sequence of the actual anti-counterfeiting spectrum according to the scanning sequence of the anti-counterfeiting substance of the product scanned by the substance detection equipment;
judging whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum which are positioned at the same position are the same or not;
if the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum are the same, determining that the actual anti-counterfeiting spectrum is consistent with the preset anti-counterfeiting spectrum;
and if the actual anti-counterfeiting spectrum is different from the preset anti-counterfeiting spectrum, determining that the actual anti-counterfeiting spectrum is inconsistent with the preset anti-counterfeiting spectrum.
In an alternative manner, the program 510 may specifically be further configured to cause the processor 502 to perform the following operations: if the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum are different, judging whether the actual anti-counterfeiting spectrum and the preset anti-counterfeiting spectrum have a one-to-one correspondence relationship; if so, prompting the user to rescan.
In an alternative manner, the program 510 may specifically be further configured to cause the processor 502 to perform the following operations:
generating a scanning prompt sequence according to the arrangement sequence of at least one preset anti-counterfeiting spectrum;
and outputting the scanning prompt sequence.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose preferred embodiments of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a spectral information based anti-counterfeiting device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.