Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
It states a kind of method, apparatus of product false proof based on spectral information of problem, calculate equipment and computer storage medium.
In order to solve the above technical problems, a technical solution used in the embodiment of the present invention is: providing a kind of based on spectrum
The method of the product false proof of information, the product information including obtaining the product;According to the product information, the product is retrieved
It is corresponding to preset anti-fake spectrum;Receive practical anti-fake spectrum, wherein the anti-fake spectrum of reality is swept by object detection device
Retouch what the product false proof substance obtained, the anti-counterfeiting substances are located on the product false proof region;Judge that the reality is anti-fake
Spectrum whether with described to preset anti-fake spectrum consistent;If so, determining that the product is genuine piece;If not, it is determined that the product
For fake products.
Optionally, the quantity of the product false proof substance is at least one, and the quantity for presetting anti-fake spectrum is at least
One, and it is described at least one preset anti-fake spectrum have put in order.
Optionally, it is described judge the anti-fake spectrum of the reality whether with described it is consistent to preset anti-fake spectrum includes: according to institute
The scanning sequency that object detection device scans the product false proof substance is stated, the sequence of the anti-fake spectrum of the reality is obtained;Judgement
Whether positioned at the anti-fake spectrum of the reality of same position and to preset anti-fake spectrum all the same;If all the same, it is determined that the reality is anti-
Pseudo- spectrum with described to preset anti-fake spectrum consistent;It is not identical if it exists, it is determined that the anti-fake spectrum of reality pre- is set up defences with described
Pseudo- spectrum is inconsistent.
Optionally, if the anti-fake spectrum of the reality of the same position and to preset anti-fake spectrum presence not identical, judge institute
It states practical anti-fake spectrum and presets whether anti-fake spectrum has one-to-one relationship;If having, user is prompted to rescan.
Optionally, it includes: to preset putting in order for anti-fake spectrum according at least one that the prompt user, which rescans, raw
At scanning prompt sequence;Export the scanning prompt sequence.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is: providing a kind of based on light
The product false proof device of spectrum information, comprising:
Obtain module: for obtaining the product information;
Retrieval module: for retrieving according to the product information, the product is corresponding to preset anti-fake spectrum;
Receiving module: for receiving practical anti-fake spectrum, wherein the anti-fake spectrum of reality is to pass through object detection device
Scan what the product false proof substance obtained, the anti-counterfeiting substances are located on the product false proof region;
First judgment module: for judge the anti-fake spectrum of the reality whether with described to preset anti-fake spectrum consistent;If so,
Then determine that the product is genuine piece.
Optionally, the quantity of the product false proof substance is at least one, and the quantity for presetting anti-fake spectrum is at least
One, and it is described at least one preset anti-fake spectrum have put in order.
Optionally, the first judgment module includes:
Sequencing unit: it for scanning the scanning sequency of the product false proof substance according to the object detection device, obtains
The sequence of the anti-fake spectrum of reality;
Judging unit: for judge positioned at same position the anti-fake spectrum of reality and whether preset anti-fake spectrum all the same;
First determination unit: for when judging unit result be it is all the same when, determine the anti-fake spectrum of the reality with it is described
It is consistent to preset anti-fake spectrum;
Second determination unit: for when judging unit result be exist it is not identical when, determine the anti-fake spectrum of the reality with
It is described that preset anti-fake spectrum inconsistent.
Optionally, described device further includes the second judgment module and cue module, and second judgment module is for working as institute
When stating judging unit result to have not identical, judges the anti-fake spectrum of the reality and preset whether anti-fake spectrum has an a pair
It should be related to;The cue module is used to prompt user's weight when the second judgment module result is with one-to-one relationship
New scanning.
According to another aspect of the invention, provide a kind of calculating equipment, comprising: processor, memory, communication interface and
Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor
The corresponding operation of substance detecting method.
In accordance with a further aspect of the present invention, provide a kind of computer storage medium, be stored in the storage medium to
A few executable instruction, the executable instruction make processor execute such as the corresponding operation of above-mentioned substance detecting method.
In embodiments of the present invention, the default spectral information of the anti-counterfeiting substances invested on product and product are carried out in advance
Binding, by the product information of product, obtains bound default spectral information, then when carrying out authenticity verification to product
By default spectral information and the whether consistent mode of actual spectrum information that the anti-counterfeiting substances invested on product obtain is scanned,
The true and false for determining product, since anti-counterfeiting substances are secrets, and the spectral information of different different materials is different, therefore, other
The difficulty that user will imitate anti-counterfeiting substances is very difficult, to greatly increase the anti-counterfeiting performance of product.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, it is special below to lift specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 is a kind of flow chart of the embodiment of the method for the product false proof based on spectral information of the present invention.As shown in Figure 1,
Method includes the following steps:
Step S101: the product information of the product is obtained.
Product information refers to the identification information of product, such as: the model of product.In some embodiments, product information is logical
It crosses and is attached in the packaging bag of product with the shape of two dimensional code, therefore, product can be obtained by way of scanning the two dimensional code
Product information.
Step S102: according to the product information, retrieve that the product is corresponding to preset anti-fake spectrum.
In this step, the product is corresponding preset anti-fake spectrum can be in advance before this using object detection device detection setting
Obtained in the anti-counterfeiting substances on product, and anti-counterfeiting substances can one or more kinds of compounding substances, wherein described one kind or
The a variety of compounding substances of person are configured by administrative department or manufacturer, and compounding substances type and mixed proportion externally maintain secrecy, institute
Stating one or more kinds of compounding substances can be the ingredient of product, be also possible to other any substances.Such as, with the compounding substances
For when being three kinds, the first is the compounding substances that substance A and substance B are mixed according to 7:3, and second is substance C, D and E
The compounding substances mixed according to 2:7:1, the third is the mixture that substance A, F, G and H are mixed according to 1:2:3:4
Matter.It is understood that different material is mixed repeatedly according to different proportion, also available a variety of anti-counterfeiting substances types, such as
A, two kinds of substances of B can be there are many mixed proportion, such as 1:9,2:8,8:2, and different mixed proportions is available different anti-fake
Substance classes.The substance classes and its corresponding mixed proportion are to be manually set, and compounding substances are more, and antifalse effect is got over
It is good.After determining compounding substances, obtain stating the spectral information of compounding substances using object detection device, by the spectral information with
The product binding, is recorded in Antiforge inquiry system.When prosecutor scans the corresponding EAN item of the product using scanning product
Shape code or after being manually entered the product information, can retrieve that the product is corresponding pre- to set up defences in the Antiforge inquiry system
Pseudo- spectrum.
In other embodiments, when the compounding substances are a variety of, it is described preset anti-fake spectrum also and be it is multiple, can
It is a sequence to be arranged in, in a kind of corresponding mixture mixed according to a certain percentage in each position of the sequence
Matter;Such as, it is compounding substances that substance A and substance B are mixed according to 7:3 that first position is corresponding, and the second position is corresponding to be
The compounding substances that substance C, D and E are mixed according to 2:7:1, corresponding the third place is substance A, F, G and H according to 1:2:3:4
The compounding substances mixed.Wherein, described to preset the putting in order also as a detector bar of product false proof of anti-fake spectrum
Part.
Step S103: practical anti-fake spectrum is received, wherein the anti-fake spectrum of reality is scanned by object detection device
What the product false proof substance obtained, the anti-counterfeiting substances are located on the product false proof region.
In this step, prosecutor scans the corresponding anti-fake region of the product, wherein the anti-fake region is management department
Door or manufacturer attach the region of the compounding substances according to the first sequence, it is to be understood that first sequence is artificial
Setting, it can be from top to bottom, be also possible to from left to right;Prosecutor anti-fake region corresponding to the product is scanned
When, it is successively scanned according to first sequence.
Step S104: judge the anti-fake spectrum of the reality whether with it is described to preset anti-fake spectrum consistent, if so, executing step
S105。
In this step, when prosecutor scans the anti-fake region, practical anti-fake spectrum is obtained, judges that the reality is anti-
Pseudo- spectrum whether with described to preset the consistent method of anti-fake spectrum as shown in Figure 2.
Fig. 2 be judge in a kind of method of the product false proof based on spectral information of the present invention actually anti-fake spectrum whether in advance
It sets up defences the consistent flow chart of pseudo- spectrum.As shown in Fig. 2, method includes the following steps:
Step S1041: scanning the scanning sequency of the product false proof substance according to the object detection device, obtains described
The sequence of practical anti-fake spectrum.
In this step, the scanning sequency of the anti-counterfeiting substances is that actual scanning when prosecutor scans anti-counterfeiting substances is suitable
Sequence.
Step S1042: judgement is located at the anti-fake spectrum of reality of same position and whether preset anti-fake spectrum all the same, if
It is identical, execute step S1043;It is not identical if it exists, execute step S1044.
In this step, it by the anti-fake spectrum of reality obtained according to actual scanning sequence and presets anti-fake spectrum and does pair
Than, when comparing, when the actual spectrum of same position with preset anti-fake spectrum it is consistent when, then it is assumed that the reality is anti-fake
Spectrum is identical with anti-fake spectrum is preset;When there is the anti-fake spectrum of any one position different with anti-fake spectrum is preset, then it is assumed that
In the presence of not identical.
Step S1043: determine the anti-fake spectrum of the reality with described to preset anti-fake spectrum consistent.
In this step, the anti-fake spectrum of the reality with it is described preset anti-fake spectrum it is consistent include each position reality
Spectrum presets that anti-fake spectrum is consistent with described, and putting in order for the anti-fake spectrum of the reality presets anti-fake spectrum with described
First sequence consensus.
Step S1044: it determines the anti-fake spectrum of the reality and described to preset anti-fake spectrum inconsistent.
In this step, the anti-fake spectrum of the reality and it is described preset anti-fake spectrum it is inconsistent include at least one position
Actual spectrum preset inconsistent anti-fake spectrum or the anti-fake spectrum of reality and the arrangement for presetting anti-fake spectrum with described
It is sequentially inconsistent.
Step S105: determine that the product is genuine piece.
Genuine piece refers to by genuine man or the product generated through producer's authorization.
In embodiments of the present invention, the default spectral information of the anti-counterfeiting substances invested on product and product are carried out in advance
Binding, by the product information of product, obtains bound default spectral information, then when carrying out authenticity verification to product
By default spectral information and the whether consistent mode of actual spectrum information that the anti-counterfeiting substances invested on product obtain is scanned,
The true and false for determining product, since anti-counterfeiting substances are secrets, and the spectral information of different different materials is different, therefore, other
The difficulty that user will imitate anti-counterfeiting substances is very difficult, to greatly increase the anti-counterfeiting performance of product.
Fig. 3 is a kind of flow chart of another embodiment of method of the product false proof based on spectral information of the present invention, such as Fig. 3 institute
Show, the embodiment and a upper embodiment the difference is that, the method also includes following steps:
Step S1045: judging the anti-fake spectrum of the reality and preset whether anti-fake spectrum has one-to-one relationship, if tool
Have, executes step S1046.
In this step, when the anti-fake spectrum of the reality and it is described preset anti-fake spectrum it is inconsistent when, judge the reality
Anti-fake spectrum and preset whether anti-fake spectrum has one-to-one relationship, the one-to-one relationship is the anti-fake light of the reality
Whether the spectral species for including in spectrum is consistent with anti-fake spectrum is preset with spectrum number, e.g., presets there are four types of anti-fake spectrum, respectively
It corresponding to tetra- kinds of compounding substances of X, Y, P and Q, puts in order as Y, X, Q, P, when the corresponding four kinds of mixtures of practical anti-fake spectrum
Matter is tetra- kinds of compounding substances of X, Y, P and Q, but it puts in order as Y, X, P, Q, then the anti-fake spectrum of the reality and presets anti-fake light
Spectrum has one-to-one relationship, when there is practical anti-fake spectrum and preset anti-fake spectrum with one-to-one relationship, it is possible to
Be scanning input sequence occur it is incorrect fixed, allow user scan again.
Step S1046: prompt user rescans.
In this step, putting in order for anti-fake spectrum is preset according to described, generates scanning sequency, and the scanning is suitable
Sequence output, to prompt user to rescan according to the scanning sequency.
In embodiments of the present invention, according to practical anti-fake spectrum and preset whether anti-fake spectrum has one-to-one relationship work
For the signal that rescans of prompt user, and scanning prompt sequence is exported, product erroneous detection, mentions caused by avoiding because of mistake
The high accuracy of product testing.
Fig. 4 is a kind of functional block diagram of product false proof device based on spectral information of the embodiment of the present invention, such as Fig. 4 institute
Show, which includes: to obtain module 401, retrieval module 402, receiving module 403 and first judgment module 404, wherein described
Module 401 is obtained for obtaining the product information;Retrieval module 402 is used to retrieve the product according to the product information
It is corresponding to preset anti-fake spectrum;Receiving module 403 is for receiving practical anti-fake spectrum, wherein the anti-fake spectrum of reality is logical
It crosses object detection device and scans what the product false proof substance obtained, the anti-counterfeiting substances are located on the product false proof region;
First judgment module 404 for judge the anti-fake spectrum of the reality whether with described to preset anti-fake spectrum consistent;If so, determining
The product is genuine piece.
Wherein, the quantity of the product false proof substance is at least one, and the quantity for presetting anti-fake spectrum is at least one
It is a, and it is described at least one preset anti-fake spectrum have put in order.
Wherein, the first judgment module 404 includes: sequencing unit 4041,4,042 first determination unit of judging unit
4043 and second determination unit 4044, wherein the sequencing unit 4041 is used for according to object detection device scanning
The scanning sequency of product false proof substance obtains the sequence of the anti-fake spectrum of the reality;The judging unit 4042 is for judging position
Whether in the anti-fake spectrum of the reality of same position and to preset anti-fake spectrum all the same;First determination unit 4043, which is used to work as, to be sentenced
When disconnected unit result is all the same, determine the anti-fake spectrum of the reality with described to preset anti-fake spectrum consistent;Described second determines
Unit 4044 is used to determine that the anti-fake spectrum of the reality presets anti-fake light with described when judging unit result is to have not identical
It composes inconsistent.
In the present embodiment, described device further includes the second judgment module 405 and cue module 406, wherein described second
Judgment module 405 is used to judge the anti-fake spectrum of the reality when the judging unit result is to have not identical and set up defences in advance
Whether pseudo- spectrum has one-to-one relationship;The cue module 406 is used to when the second judgment module result be with one
When one corresponding relationship, user is prompted to rescan.
Wherein, the cue module 406 includes generation unit 4061 and output unit 4062, wherein the generation unit
4061, for presetting putting in order for anti-fake spectrum according at least one, generate scanning prompt sequence;The output unit 4062
For exporting the scanning prompt sequence.
In embodiments of the present invention, by first judgment module judge practical anti-fake spectrum whether with preset anti-fake spectrum one
It causes whether testing product is genuine piece, can effectively distinguish genuine piece and fake products, guarantee the authenticity of product;In addition, sentencing according to second
Disconnected module judges practical anti-fake spectrum and presets whether anti-fake spectrum there is one-to-one relationship to rescan as prompt user
Signal, and export scanning prompt sequence, product erroneous detection caused by avoiding because of mistake improves the accurate of product testing
Property.
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with
An at least executable instruction, which can be performed one of above-mentioned any means embodiment is believed based on spectrum
The method of the product false proof of breath.
Fig. 5 is the structural schematic diagram that the present invention calculates apparatus embodiments, and the specific embodiment of the invention is not to calculating equipment
Specific implementation limit.
As shown in figure 5, the calculating equipment may include: processor (processor) 502, communication interface
(Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 502 can specifically execute a kind of above-mentioned anti-fake side based on spectral information for executing program 510
Correlation step in method embodiment.
Specifically, program 510 may include program code, which includes computer operation instruction.
Processor 502 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that equipment includes are calculated, can be same type of processor, such as one or more CPU;It can also
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for storing program 510.Memory 506 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 executes following operation:
Obtain the product information of the product;
According to the product information, retrieve that the product is corresponding to preset anti-fake spectrum;
Receive practical anti-fake spectrum, wherein the anti-fake spectrum of reality is that the product is scanned by object detection device
What anti-counterfeiting substances obtained, the anti-counterfeiting substances are located on the product false proof region;
Judge the anti-fake spectrum of the reality whether with described to preset anti-fake spectrum consistent;
If so, determining that the product is genuine piece.
In a kind of optional way, the quantity of the product false proof substance is at least one, described to preset anti-fake spectrum
Quantity be at least one, and it is described at least one preset anti-fake spectrum have put in order.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour
Make:
The scanning sequency that the product false proof substance is scanned according to the object detection device obtains the anti-fake light of the reality
The sequence of spectrum;
Judgement is located at the anti-fake spectrum of reality of same position and whether preset anti-fake spectrum all the same;
If all the same, it is determined that the anti-fake spectrum of reality with described to preset anti-fake spectrum consistent;
It is not identical if it exists, it is determined that the anti-fake spectrum of reality with described to preset anti-fake spectrum inconsistent.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour
Make: it is not identical if it exists, then judge the anti-fake spectrum of the reality and presets whether anti-fake spectrum has one-to-one relationship;If tool
Have, user is prompted to rescan.
In a kind of optional mode, program 510 can specifically be further used for so that processor 502 executes following behaviour
Make:
Putting in order for anti-fake spectrum is preset according at least one, generates scanning prompt sequence;
Export the scanning prompt sequence.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright most preferred embodiment.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself is made
For separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) are according to an embodiment of the present invention a kind of based on the anti-fake of spectral information to realize
The some or all functions of some or all components in device.The present invention is also implemented as being retouched here for executing
The some or all device or device programs (for example, computer program and computer program product) for the method stated.
It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or with it is any its
He provides form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.