Disclosure of Invention
In view of the above, the invention aims to provide an industrial internet-based product anti-counterfeiting tracing method, an industrial internet-based product anti-counterfeiting tracing system and a cloud platform, so as to solve the problem that the product anti-counterfeiting tracing based on the prior art is poor in anti-counterfeiting effect.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme:
The product anti-counterfeiting tracing method based on the industrial Internet is applied to an industrial Internet cloud platform and comprises the following steps of:
under the condition that product anti-counterfeiting request information sent by target user terminal equipment is received, analyzing the product anti-counterfeiting request information to output target product identity information corresponding to the product anti-counterfeiting request information, wherein the target product identity information is used for identifying the identity of a target product;
according to the identity information of the target product, matching a target product production monitoring video corresponding to the target product from product production monitoring videos included in a target database;
and feeding back the target product production monitoring video to the target user terminal equipment.
In some preferred embodiments, in the product anti-counterfeiting tracing method based on the industrial internet, the step of analyzing the product anti-counterfeiting request information to output the target product identity information corresponding to the product anti-counterfeiting request information under the condition that the product anti-counterfeiting request information sent by the target user terminal device is received includes:
for any user terminal equipment in communication connection, under the condition that product anti-counterfeiting request information sent by the user terminal equipment is received, marking the user terminal equipment as target user terminal equipment, and scanning an identification code image on a target product by the product anti-counterfeiting request information through the target user terminal equipment to form the product anti-counterfeiting request information;
And under the condition that the user terminal equipment is marked as the target user terminal equipment, analyzing the product anti-counterfeiting request information to output corresponding target product identity information.
In some preferred embodiments, in the product anti-counterfeiting tracing method based on the industrial internet, the step of analyzing the product anti-counterfeiting request information to output corresponding target product identity information under the condition that the user terminal device is marked as the target user terminal device includes:
under the condition that the user terminal equipment is marked as the target user terminal equipment, mapping processing in a first direction is carried out on the product anti-counterfeiting request information according to a pre-configured information mapping relation so as to output target product identity information corresponding to the product anti-counterfeiting request information;
in the process of generating the identification code image, mapping the identity information of the target product in a second direction according to the information mapping relation to form target product identity mapping information, generating the identification code image according to the target product identity mapping information, wherein the product anti-counterfeiting request information carries the target product identity mapping information formed by scanning the identification code image, and the first direction and the second direction are opposite mapping directions.
In some preferred embodiments, in the above product anti-counterfeiting tracing method based on the industrial internet, the step of matching a target product production monitoring video corresponding to the target product from product production monitoring videos included in a target database according to the target product identity information includes:
according to the identity information of the target product, matching an original product production monitoring video corresponding to the target product from a plurality of product production monitoring videos included in a target database;
and screening the product production monitoring video frames included in the original product production monitoring video to form a target product production monitoring video corresponding to the target product.
In some preferred embodiments, in the above method for product anti-counterfeiting tracing based on industrial internet, the step of screening the product production monitoring video frames included in the original product production monitoring video to form a target product production monitoring video corresponding to the target product includes:
the method comprises the steps of carrying out statistics processing on feedback times on an original product production monitoring video to output a first feedback time statistics quantity corresponding to the original product production monitoring video, and carrying out determination processing on a correlation coefficient according to the first feedback time statistics quantity to output a first screening coefficient of negative correlation;
Carrying out statistical processing on feedback times of the original product production monitoring video aiming at the target user terminal equipment in history so as to output second feedback times statistical quantity corresponding to the original product production monitoring video, and then carrying out determination processing on correlation coefficients according to the second feedback times statistical quantity so as to output second screening coefficients of negative correlation;
and calculating a target screening proportion according to the first screening coefficient and the second screening coefficient, and screening from the product production monitoring video frames included in the original product production monitoring video according to the target screening proportion to form a target product production monitoring video corresponding to the target product.
In some preferred embodiments, in the above product anti-counterfeiting tracing method based on the industrial internet, the step of calculating a target screening ratio according to the first screening coefficient and the second screening coefficient, and then screening from a product production monitoring video frame included in the original product production monitoring video according to the target screening ratio to form a target product production monitoring video corresponding to the target product includes:
Calculating a target screening proportion according to the first screening coefficient and the second screening coefficient, wherein the target screening proportion is positively correlated with the first screening coefficient and the second screening coefficient respectively;
for every two frames of product production monitoring video frames included in the original product production monitoring video, performing video frame similarity calculation processing on the two frames of product production monitoring video frames to output video frame similarity between the two frames of product production monitoring video frames;
for every two frames of product production monitoring video frames included in the original product production monitoring video, performing video frame time sequence correlation calculation on the two frames of product production monitoring video frames according to two video frame time sequence information corresponding to the two frames of product production monitoring video frames so as to output video frame time sequence correlation coefficients between the two frames of product production monitoring video frames, and performing fusion calculation processing on the video frame time sequence correlation coefficients and video frame similarity between the two frames of product production monitoring video frames so as to form video frame correlation degree values between the two frames of product production monitoring video frames;
according to the target screening proportion, screening out product production monitoring video frames with corresponding quantity proportion from product production monitoring video frames included in the original product production monitoring video according to a random screening rule so as to form a product production monitoring video frame set;
For each frame of product production monitoring video frame included in the product production monitoring video frame set, screening out a video frame correlation degree value with the maximum value from video frame correlation degree values between the product production monitoring video frame and each frame of other product production monitoring video frames included in the product production monitoring video frame set so as to define a first target video frame correlation degree value corresponding to the product production monitoring video frame, screening out a video frame correlation degree value with the maximum value from video frame correlation degree values between the product production monitoring video frame and each frame of other product production monitoring video frames except for the product production monitoring video frame set so as to define a second target video frame correlation degree value corresponding to the product production monitoring video frame, comparing the first target video frame correlation degree value with a preset first set value, and comparing the second target video frame correlation degree value with a preset second set value;
and for each frame of product production monitoring video frame included in the product production monitoring video frame set, when a first target video frame correlation degree value corresponding to the product production monitoring video frame is greater than the first set value and/or a second target video frame correlation degree value corresponding to the product production monitoring video frame is smaller than the second set value, skipping to execute the product production monitoring video frames with a corresponding number of proportions from the product production monitoring video frames included in the original product production monitoring video according to a random screening rule to form a product production monitoring video frame set, and when the first target video frame correlation degree value corresponding to the product production monitoring video frame is not greater than the first set value and the second target video frame correlation degree value corresponding to the product production monitoring video frame is not less than the second set value, constructing a target product production monitoring video frame set according to the product production monitoring video frame, and outputting the target product production monitoring video frame set according to the product production monitoring frame construction.
In some preferred embodiments, in the above product anti-counterfeiting tracing method based on the industrial internet, the step of performing similarity calculation processing on video frames of each two frames of product production monitoring video frames included in the original product production monitoring video to output video frame similarity between the two frames of product production monitoring video frames includes:
for each of two frames of product production monitoring video frames, carrying out identification and extraction processing on pixel characteristic points of the product production monitoring video frames to form a first pixel characteristic point set and a second pixel characteristic point set, wherein the first pixel characteristic point set comprises a plurality of first pixel characteristic points, and the second pixel characteristic point set comprises a plurality of second pixel characteristic points;
for each first pixel feature point, respectively performing positive correlation feature point determination processing and negative correlation feature point determination processing on the first pixel feature point from the first pixel feature point set to output a corresponding first positive correlation feature point and a first negative correlation feature point, wherein in correlation degree of the first pixel feature point and each other first pixel feature point, correlation degree formed between the first positive correlation feature point and the first pixel feature point based on pixel positions and pixel values has a maximum value, and correlation degree formed between the first negative correlation feature point and the first pixel feature point based on pixel positions and pixel values has a minimum value;
For each second pixel feature point, respectively performing a positive correlation feature point determination process and a negative correlation feature point determination process on the second pixel feature point from the second pixel feature point set to output a corresponding second positive correlation feature point and a second negative correlation feature point, wherein the correlation formed between the second positive correlation feature point and the second pixel feature point based on the pixel position and the pixel value has a maximum value, and the correlation formed between the second positive correlation feature point and the second pixel feature point based on the pixel position and the pixel value has a minimum value;
for each first pixel feature point, a first pixel feature area corresponding to the first pixel feature point is segmented from a first product production monitoring video frame corresponding to the first pixel feature point set, a central pixel point of the first pixel feature area is a corresponding first pixel feature point, and for each second pixel feature point, a second pixel feature area corresponding to the second pixel feature point is segmented from a second product production monitoring video frame corresponding to the second pixel feature point set, and the central pixel point of the second pixel feature area is a corresponding second pixel feature point;
For each first pixel feature point, according to the pixel value of the first pixel feature point, in a first pixel feature area corresponding to a first positive correlation feature point corresponding to the first pixel feature point, performing statistical processing on the occurrence times of the pixel value to form corresponding first positive correlation times, and then in a first pixel feature area corresponding to a first negative correlation feature point corresponding to the first pixel feature point, performing statistical processing on the occurrence times of the pixel value to form corresponding first negative correlation times;
for each second pixel feature point, according to the pixel value of the second pixel feature point, in a second pixel feature area corresponding to a second positive correlation feature point corresponding to the second pixel feature point, performing statistics processing on the occurrence times of the pixel value to form a corresponding second positive correlation times, and then in a second pixel feature area corresponding to a second negative correlation feature point corresponding to the second pixel feature point, performing statistics processing on the occurrence times of the pixel value to form a corresponding second negative correlation times;
for each first pixel feature point, performing fusion calculation processing on a first positive correlation frequency corresponding to the first pixel feature point and a first negative correlation frequency corresponding to the first pixel feature point to output a corresponding feature saliency, and for each second pixel feature point, performing fusion calculation processing on a second positive correlation frequency corresponding to the second pixel feature point and a second negative correlation frequency corresponding to the second pixel feature point to output a corresponding feature saliency;
For each first pixel feature point and each second pixel feature point, according to the similarity of pixel values between every two minimum pixel units, performing area similarity calculation processing on a first pixel feature area corresponding to the first pixel feature point and a second pixel feature area corresponding to the second pixel feature point to output the area similarity between the first pixel feature point and the second pixel feature point, and then performing fusion calculation processing on the feature saliency corresponding to the first pixel feature point and the feature saliency corresponding to the second pixel feature point to output fusion coefficients corresponding to the first pixel feature point and the second pixel feature point, wherein the first pixel feature area comprises a plurality of minimum pixel units, and the second pixel feature area comprises a plurality of minimum pixel units;
and carrying out fusion processing on the regional similarity between each first pixel characteristic point and each second pixel characteristic point according to the fusion coefficient corresponding to each first pixel characteristic point and each second pixel characteristic point so as to output the corresponding video frame similarity.
In some preferred embodiments, in the above product anti-counterfeiting tracing method based on the industrial internet, the step of performing timing correlation calculation of video frames on each two frames of product production monitoring video frames included in the original product production monitoring video according to two video frame timing information corresponding to the two frames of product production monitoring video frames to output a video frame timing correlation coefficient between the two frames of product production monitoring video frames, and performing fusion calculation processing on the video frame timing correlation coefficient and a video frame similarity between the two frames of product production monitoring video frames to form a video frame correlation degree value between the two frames of product production monitoring video frames includes:
For every two frames of product production monitoring video frames included in the original product production monitoring video, performing difference calculation according to two video frame time sequence information corresponding to the two frames of product production monitoring video frames to output a time sequence difference value between the two frames of product production monitoring video frames, and performing time sequence correlation calculation of video frames on the two frames of product production monitoring video frames according to the time sequence difference value between the two frames of product production monitoring video frames to output video frame time sequence correlation coefficients between the two frames of product production monitoring video frames, wherein the video frame time sequence correlation coefficients are in negative correlation with the time sequence difference value;
and for every two frames of product production monitoring video frames included in the original product production monitoring video, carrying out weighted summation calculation processing on a video frame time sequence correlation coefficient between the two frames of product production monitoring video frames and a video frame similarity between the two frames of product production monitoring video frames so as to form a video frame correlation degree value between the two frames of product production monitoring video frames.
The embodiment of the invention also provides a product anti-counterfeiting traceability system based on the industrial Internet, which is applied to the industrial Internet cloud platform and comprises the following components:
The anti-counterfeiting request analysis module is used for analyzing the product anti-counterfeiting request information under the condition that the product anti-counterfeiting request information sent by the target user terminal equipment is received, so as to output target product identity information corresponding to the product anti-counterfeiting request information, wherein the target product identity information is used for identifying the identity of a target product;
the monitoring video matching module is used for matching the target product production monitoring video corresponding to the target product from the product production monitoring videos included in the target database according to the target product identity information;
and the monitoring video feedback module is used for feeding back the monitoring video of the production of the target product to the target user terminal equipment.
The embodiment of the invention also provides an industrial Internet cloud platform which is used for executing the product anti-counterfeiting traceability method based on the industrial Internet.
According to the product anti-counterfeiting traceability method, system and cloud platform based on the industrial Internet, under the condition that product anti-counterfeiting request information sent by target user terminal equipment is received, analysis processing is conducted on the product anti-counterfeiting request information, so that target product identity information corresponding to the product anti-counterfeiting request information is output, and the target product identity information is used for identifying the identity of a target product. And matching the target product production monitoring video corresponding to the target product from the product production monitoring video included in the target database according to the target product identity information. And feeding the production monitoring video of the target product back to the target user terminal equipment. Based on the above, the user can obtain the product production monitoring video of the product when carrying out product anti-counterfeiting tracing, so that the safety in the production process can be reliably supervised, that is, the anti-counterfeiting effect of the product can be better and more effective by adopting the configuration, thereby solving the problem of poor anti-counterfeiting effect of the product anti-counterfeiting tracing carried out based on the prior art.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides an industrial Internet cloud platform.
For example, in one example that may be implemented, the industrial internet cloud platform may include a memory and a processor. In detail, the memory and the processor are electrically connected directly or indirectly to realize transmission or interaction of data. For example, electrical connection may be made to each other via one or more communication buses or signal lines. The memory may store at least one software functional module (computer program) that may exist in the form of software or firmware. The processor can be used for executing the executable computer program stored in the memory, so that the product anti-counterfeiting traceability method based on the industrial Internet provided by the embodiment of the invention is realized.
For example, in one example that may be implemented, the Memory may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), and the like. The processor may be a general purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a System on Chip (SoC), etc.; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
For example, in one example that may be implemented, the industrial internet cloud platform may further include a communication unit for information interaction with other devices (e.g., user terminal devices).
For example, in one example that may be implemented, the industrial internet cloud platform may be a server with data processing capabilities.
Referring to fig. 1, the embodiment of the invention also provides a product anti-counterfeiting tracing method based on the industrial internet, which can be applied to the industrial internet cloud platform. The method steps defined by the flow related to the product anti-counterfeiting traceability method based on the industrial Internet can be realized by the industrial Internet cloud platform. The specific flow shown in fig. 2 will be described in detail.
S110, under the condition that product anti-counterfeiting request information sent by target user terminal equipment is received, analyzing the product anti-counterfeiting request information to output target product identity information corresponding to the product anti-counterfeiting request information.
In the embodiment of the invention, the industrial internet platform can analyze and process the product anti-counterfeiting request information under the condition of receiving the product anti-counterfeiting request information sent by the target user terminal equipment so as to output the target product identity information corresponding to the product anti-counterfeiting request information. The identity information of the target product is used for identifying the identity of the target product.
And S120, matching the target product production monitoring video corresponding to the target product from the product production monitoring videos included in the target database according to the target product identity information.
In the embodiment of the invention, the industrial internet platform can match the target product production monitoring video corresponding to the target product from the product production monitoring videos included in the target database according to the identity information of the target product.
S130, feeding back the target product production monitoring video to the target user terminal equipment.
In the embodiment of the invention, the industrial internet platform can feed back the target product production monitoring video to the target user terminal equipment.
Based on the method, the product anti-counterfeiting traceability system and the cloud platform based on the industrial Internet, under the condition that product anti-counterfeiting request information sent by target user terminal equipment is received, the product anti-counterfeiting request information is analyzed and processed to output target product identity information corresponding to the product anti-counterfeiting request information, and the target product identity information is used for identifying the identity of a target product. And matching the target product production monitoring video corresponding to the target product from the product production monitoring video included in the target database according to the target product identity information. And feeding the production monitoring video of the target product back to the target user terminal equipment. Based on the above, the user can obtain the product production monitoring video of the product when carrying out product anti-counterfeiting tracing, so that the safety in the production process can be reliably supervised, that is, the anti-counterfeiting effect of the product can be better and more effective by adopting the configuration, thereby solving the problem of poor anti-counterfeiting effect of the product anti-counterfeiting tracing carried out based on the prior art.
For example, in one possible implementation example, S110 described in the foregoing may further include the following specific embodiments:
for any user terminal equipment in communication connection, under the condition that product anti-counterfeiting request information sent by the user terminal equipment is received, marking the user terminal equipment as target user terminal equipment, and scanning an identification code image on a target product by the product anti-counterfeiting request information through the target user terminal equipment to form (the existing two-dimensional code identification can be referred to);
and under the condition that the user terminal equipment is marked as the target user terminal equipment, analyzing the product anti-counterfeiting request information to output corresponding target product identity information.
For example, in an implementation example, the step of parsing the product anti-counterfeiting request information to output corresponding target product identity information in the case that the user terminal device is marked as the target user terminal device as described in the foregoing may further include the following specific embodiments:
Under the condition that the user terminal equipment is marked as the target user terminal equipment, mapping processing in a first direction is carried out on the product anti-counterfeiting request information according to a pre-configured information mapping relation so as to output target product identity information corresponding to the product anti-counterfeiting request information;
in the process of generating the identification code image, mapping the identity information of the target product in a second direction according to the information mapping relation to form target product identity mapping information, generating the identification code image according to the target product identity mapping information, wherein the product anti-counterfeiting request information carries the target product identity mapping information formed by scanning the identification code image, and the first direction and the second direction are opposite mapping directions.
For example, in one possible implementation example, S120 described in the foregoing may further include the following specific embodiments:
according to the identity information of the target product, matching an original product production monitoring video corresponding to the target product from a plurality of product production monitoring videos included in a target database;
And screening the product production monitoring video frames included in the original product production monitoring video to form a target product production monitoring video corresponding to the target product.
For example, in an implementation example, the step of filtering the product production monitoring video frames included in the original product production monitoring video to form the target product production monitoring video corresponding to the target product described in the foregoing may further include the following specific embodiments:
the method comprises the steps of carrying out statistics processing on feedback times on an original product production monitoring video to output a first feedback time statistics quantity corresponding to the original product production monitoring video, and carrying out determination processing on a correlation coefficient according to the first feedback time statistics quantity to output a first screening coefficient of negative correlation;
carrying out statistical processing on feedback times of the original product production monitoring video aiming at the target user terminal equipment in history so as to output second feedback times statistical quantity corresponding to the original product production monitoring video, and then carrying out determination processing on correlation coefficients according to the second feedback times statistical quantity so as to output second screening coefficients of negative correlation;
And calculating a target screening proportion according to the first screening coefficient and the second screening coefficient, and screening from the product production monitoring video frames included in the original product production monitoring video according to the target screening proportion to form a target product production monitoring video corresponding to the target product.
For example, in an implementation example, the step of calculating the target screening ratio according to the first screening coefficient and the second screening coefficient described in the foregoing description, and then screening the product production monitoring video frames included in the original product production monitoring video according to the target screening ratio to form the target product production monitoring video corresponding to the target product may further include the following specific embodiments:
calculating a target screening proportion according to the first screening coefficient and the second screening coefficient, wherein the target screening proportion is positively correlated with the first screening coefficient and the second screening coefficient respectively;
for every two frames of product production monitoring video frames included in the original product production monitoring video, performing video frame similarity calculation processing on the two frames of product production monitoring video frames to output video frame similarity between the two frames of product production monitoring video frames;
For every two frames of product production monitoring video frames included in the original product production monitoring video, performing video frame time sequence correlation calculation on the two frames of product production monitoring video frames according to two video frame time sequence information corresponding to the two frames of product production monitoring video frames so as to output video frame time sequence correlation coefficients between the two frames of product production monitoring video frames, and performing fusion calculation processing on the video frame time sequence correlation coefficients and video frame similarity between the two frames of product production monitoring video frames so as to form video frame correlation degree values between the two frames of product production monitoring video frames;
according to the target screening proportion, screening out product production monitoring video frames with corresponding quantity proportion from product production monitoring video frames included in the original product production monitoring video according to a random screening rule so as to form a product production monitoring video frame set;
for each frame of product production monitoring video frame included in the product production monitoring video frame set, screening out a video frame correlation degree value with the maximum value from video frame correlation degree values between the product production monitoring video frame and each frame of other product production monitoring video frames included in the product production monitoring video frame set so as to define a first target video frame correlation degree value corresponding to the product production monitoring video frame, screening out a video frame correlation degree value with the maximum value from video frame correlation degree values between the product production monitoring video frame and each frame of other product production monitoring video frames except for the product production monitoring video frame set so as to define a second target video frame correlation degree value corresponding to the product production monitoring video frame, comparing the first target video frame correlation degree value with a preset first set value, and comparing the second target video frame correlation degree value with a preset second set value;
And for each frame of product production monitoring video frame included in the product production monitoring video frame set, when a first target video frame correlation degree value corresponding to the product production monitoring video frame is greater than the first set value and/or a second target video frame correlation degree value corresponding to the product production monitoring video frame is smaller than the second set value, skipping to execute the product production monitoring video frames with a corresponding number of proportions from the product production monitoring video frames included in the original product production monitoring video according to a random screening rule to form a product production monitoring video frame set, and when the first target video frame correlation degree value corresponding to the product production monitoring video frame is not greater than the first set value and the second target video frame correlation degree value corresponding to the product production monitoring video frame is not less than the second set value, constructing a target product production monitoring video frame set according to the product production monitoring video frame, and outputting the target product production monitoring video frame set according to the product production monitoring frame construction.
For example, in one possible implementation example, the step of performing the similarity calculation processing of video frames on each two frames of product production monitoring video frames included in the original product production monitoring video to output the video frame similarity between the two frames of product production monitoring video frames described in the foregoing further includes the following specific embodiments:
for each of the two frames of product production monitoring video frames, performing identification and extraction processing (which can refer to the existing identification mode of the pixel characteristic points, such as the extraction of the ORB characteristic points) on the product production monitoring video frame to form a first pixel characteristic point set and a second pixel characteristic point set, wherein the first pixel characteristic point set comprises a plurality of first pixel characteristic points, and the second pixel characteristic point set comprises a plurality of second pixel characteristic points;
for each first pixel feature point, respectively performing positive correlation feature point determination processing and negative correlation feature point determination processing on the first pixel feature point from the first pixel feature point set to output a corresponding first positive correlation feature point and a first negative correlation feature point, wherein in correlation degree of the first pixel feature point and each other first pixel feature point, correlation degree formed between the first positive correlation feature point and the first pixel feature point based on pixel positions and pixel values has a maximum value, and correlation degree formed between the first negative correlation feature point and the first pixel feature point based on pixel positions and pixel values has a minimum value;
For each second pixel feature point, respectively performing a positive correlation feature point determination process and a negative correlation feature point determination process on the second pixel feature point from the second pixel feature point set to output a corresponding second positive correlation feature point and a second negative correlation feature point, wherein the correlation formed between the second positive correlation feature point and the second pixel feature point based on the pixel position and the pixel value has a maximum value, and the correlation formed between the second positive correlation feature point and the second pixel feature point based on the pixel position and the pixel value has a minimum value;
for each first pixel feature point, a first pixel feature area corresponding to the first pixel feature point is segmented from a first product production monitoring video frame corresponding to the first pixel feature point set, a central pixel point of the first pixel feature area is a corresponding first pixel feature point, and for each second pixel feature point, a second pixel feature area corresponding to the second pixel feature point is segmented from a second product production monitoring video frame corresponding to the second pixel feature point set, and the central pixel point of the second pixel feature area is a corresponding second pixel feature point;
For each first pixel feature point, according to the pixel value of the first pixel feature point, in a first pixel feature area corresponding to a first positive correlation feature point corresponding to the first pixel feature point, performing statistical processing on the occurrence times of the pixel value to form corresponding first positive correlation times, and then in a first pixel feature area corresponding to a first negative correlation feature point corresponding to the first pixel feature point, performing statistical processing on the occurrence times of the pixel value to form corresponding first negative correlation times;
for each second pixel feature point, according to the pixel value of the second pixel feature point, in a second pixel feature area corresponding to a second positive correlation feature point corresponding to the second pixel feature point, performing statistics processing on the occurrence times of the pixel value to form a corresponding second positive correlation times, and then in a second pixel feature area corresponding to a second negative correlation feature point corresponding to the second pixel feature point, performing statistics processing on the occurrence times of the pixel value to form a corresponding second negative correlation times;
for each first pixel feature point, performing a fusion calculation process on a first positive correlation number corresponding to the first pixel feature point and a first negative correlation number corresponding to the first pixel feature point (for example, a weighted summation calculation may be performed to output a feature saliency, a weighting coefficient corresponding to the first positive correlation coefficient may be smaller than a feature saliency corresponding to the first negative correlation number) to output a corresponding feature saliency, and for each second pixel feature point, performing a fusion calculation process on a second positive correlation number corresponding to the second pixel feature point and a second negative correlation number corresponding to the second pixel feature point to output a corresponding feature saliency;
For each first pixel feature point and each second pixel feature point, according to the similarity of pixel values between every two minimum pixel units (for example, two adjacent pixel points may be a unit), performing a calculation process on the regional similarity of a first pixel feature region corresponding to the first pixel feature point and a second pixel feature region corresponding to the second pixel feature point (for example, performing a mean value calculation on the similarity between every two minimum pixel units) so as to output the regional similarity between the first pixel feature point and the second pixel feature point, and performing a fusion calculation process (for example, performing a mean value calculation) on the feature saliency corresponding to the first pixel feature point and the feature saliency corresponding to the second pixel feature point so as to output a fusion coefficient corresponding to the first pixel feature point and the second pixel feature point, where the first pixel feature region includes a plurality of minimum pixel units and the second pixel feature region includes a plurality of minimum pixel units;
and according to the fusion coefficient corresponding to each first pixel characteristic point and each second pixel characteristic point, carrying out fusion processing on the regional similarity between each first pixel characteristic point and each second pixel characteristic point (for example, carrying out weighted summation calculation by taking the corresponding fusion coefficient as a weighting coefficient) so as to output the corresponding video frame similarity.
For example, in one possible implementation example, the step of performing the similarity calculation processing of video frames on each two frames of product production monitoring video frames included in the original product production monitoring video to output the video frame similarity between the two frames of product production monitoring video frames described in the foregoing further includes the following specific embodiments:
for each of two frames of product production monitoring video frames, carrying out identification and extraction processing on pixel characteristic points of the product production monitoring video frames to form a first pixel characteristic point set and a second pixel characteristic point set, wherein the first pixel characteristic point set comprises a plurality of first pixel characteristic points, and the second pixel characteristic point set comprises a plurality of second pixel characteristic points;
for every two first pixel points included in the first product production monitoring video frame corresponding to the first pixel feature point set, performing calculation processing on the correlation of the pixel points on the two first pixel points according to the corresponding pixel position distance, the pixel value difference value and the region distance between the image connected domains to which the pixel value difference value belongs (that is, respectively calculating the correlation of three dimensions and then performing weighted average calculation on the correlation of the three dimensions) so as to output a pixel correlation coefficient between the two first pixel points;
For each two second pixel points included in the second product production monitoring video frame corresponding to the second pixel feature point set, according to the corresponding pixel position distance, the pixel value difference value and the region distance between the image connected regions, performing calculation processing on the correlation of the pixel points on the two second pixel points so as to output the pixel correlation coefficient between the two second pixel points;
according to the pixel correlation coefficient between every two first pixel points, carrying out construction processing on a relation network diagram of the first pixel points included in the first product production monitoring video frame to form a first pixel relation network diagram corresponding to the first product production monitoring video frame, wherein in the first pixel relation network diagram, the pixel correlation coefficient between two first pixel points connected by each network connecting line is larger than a predetermined correlation coefficient reference value;
according to the pixel correlation coefficient between every two second pixel points, carrying out construction processing on a relation network diagram of the second pixel points included in the second product production monitoring video frame to form a second pixel relation network diagram corresponding to the second product production monitoring video frame, wherein in the second pixel relation network diagram, the pixel correlation coefficient between two second pixel points connected by each network connecting line is larger than a predetermined correlation coefficient reference value;
For each two first pixel feature points included in the first pixel feature point set, determining the pixel relation compactness between the two first pixel feature points according to the first pixel relation network graph so as to output the pixel relation compactness between the two first pixel feature points, constructing a first pixel point sequence forming the two first pixel feature points according to each first pixel point through which a shortest connecting line corresponding to the two first pixel feature points passes, wherein the pixel relation compactness is inversely related to the length of the shortest connecting line of the corresponding two first pixel feature points in the first pixel relation network graph, the shortest connecting line is one connecting line with the minimum length in each connecting line of the corresponding two first pixel feature points, and each connecting line at least comprises one network connecting line;
for each two second pixel feature points included in the second pixel feature point set, determining the pixel relationship compactness between the two second pixel feature points according to the second pixel relationship network graph so as to output the pixel relationship compactness between the two second pixel feature points, and constructing a second pixel point sequence forming the two second pixel feature points according to each second pixel point through which a shortest connecting line corresponding to the two second pixel feature points passes, wherein the pixel relationship compactness is inversely related to the length of the shortest connecting line of the two corresponding second pixel feature points in the second pixel relationship network graph, and the shortest connecting line is one connecting line with the minimum length in each connecting line of the two corresponding second pixel feature points, and each connecting line at least comprises one network connecting line;
Screening the first pixel feature points included in the first pixel feature point set according to the pixel relation compactness between every two first pixel feature points to output at least one target first pixel feature point (for example, one or more first pixel feature points with the largest average value of the pixel relation compactness between the first pixel feature points and other first pixel feature points can be defined as target first pixel feature points), and screening the second pixel feature points included in the second pixel feature point set according to the pixel relation compactness between every two second pixel feature points to output at least one target second pixel feature point;
for each target first pixel feature point and each target second pixel feature point, constructing a first pixel matrix corresponding to the target first pixel feature point according to a first pixel point sequence between the target first pixel feature point and each other first pixel feature point (in the first pixel matrix, each row or each column of pixel points belong to the same first pixel point sequence), constructing a second pixel matrix corresponding to the target second pixel feature point according to a second pixel point sequence between the target second pixel feature point and each other second pixel feature point, and performing matrix similarity calculation processing on the first pixel matrix and the second pixel matrix (the first pixel matrix and the second pixel matrix can be divided according to a specified size to form at least one first pixel sub-matrix and at least one second pixel sub-matrix, and then calculating the corresponding similarity between the first pixel sub-matrix and each second pixel sub-matrix according to the second pixel point sequence between each first pixel sub-matrix and each second pixel sub-matrix, wherein the output similarity can be calculated according to the output similarity of the corresponding matrix in a mode;
And calculating (such as mean value calculation and the like) and outputting the corresponding video frame similarity according to the matrix similarity corresponding to each target first pixel characteristic point and each target second pixel characteristic point.
For example, in one possible implementation example, the step of performing, for each two frames of the production monitoring video frames included in the original production monitoring video, according to two video frame timing information corresponding to the two frames of the production monitoring video frames, performing timing correlation calculation on the two frames of the production monitoring video frames to output a video frame timing correlation coefficient between the two frames of the production monitoring video frames, and performing fusion calculation processing on the video frame timing correlation coefficient and a video frame similarity between the two frames of the production monitoring video frames to form a video frame correlation value between the two frames of the production monitoring video frames may further include the following specific embodiments:
for every two frames of product production monitoring video frames included in the original product production monitoring video, performing difference calculation according to two video frame time sequence information corresponding to the two frames of product production monitoring video frames to output a time sequence difference value between the two frames of product production monitoring video frames, and performing time sequence correlation calculation of video frames on the two frames of product production monitoring video frames according to the time sequence difference value between the two frames of product production monitoring video frames to output video frame time sequence correlation coefficients between the two frames of product production monitoring video frames, wherein the video frame time sequence correlation coefficients are in negative correlation with the time sequence difference value;
And for every two frames of product production monitoring video frames included in the original product production monitoring video, carrying out weighted summation calculation processing on a video frame time sequence correlation coefficient between the two frames of product production monitoring video frames and a video frame similarity between the two frames of product production monitoring video frames so as to form a video frame correlation degree value between the two frames of product production monitoring video frames.
Referring to fig. 2, the embodiment of the invention also provides a product anti-counterfeiting traceability system based on the industrial internet, which can be applied to the industrial internet cloud platform. The product anti-counterfeiting traceability system based on the industrial Internet can comprise an anti-counterfeiting request analysis module, a monitoring video matching module, a monitoring video feedback module, other software functional modules and the like.
For example, the anti-counterfeiting request analysis module is configured to, when receiving product anti-counterfeiting request information sent by a target user terminal device, analyze the product anti-counterfeiting request information to output target product identity information corresponding to the product anti-counterfeiting request information, where the target product identity information is used to identify an identity of a target product. And the monitoring video matching module is used for matching the target product production monitoring video corresponding to the target product from the product production monitoring videos included in the target database according to the identity information of the target product. And the monitoring video feedback module is used for feeding back the monitoring video of the production of the target product to the target user terminal equipment.
In summary, according to the product anti-counterfeiting traceability method, system and cloud platform based on the industrial internet provided by the invention, under the condition that the product anti-counterfeiting request information sent by the target user terminal equipment is received, the product anti-counterfeiting request information is analyzed and processed to output the target product identity information corresponding to the product anti-counterfeiting request information, and the target product identity information is used for identifying the identity of the target product. And matching the target product production monitoring video corresponding to the target product from the product production monitoring video included in the target database according to the target product identity information. And feeding the production monitoring video of the target product back to the target user terminal equipment. Based on the above, the user can obtain the product production monitoring video of the product when carrying out product anti-counterfeiting tracing, so that the safety in the production process can be reliably supervised, that is, the anti-counterfeiting effect of the product can be better and more effective by adopting the configuration, thereby solving the problem of poor anti-counterfeiting effect of the product anti-counterfeiting tracing carried out based on the prior art.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.