Bilateral anti-counterfeiting analysis and verification processing method for photo two-dimensional code
By conducting independent feature analysis and combined verification of photos and QR codes, the problem of difficulty in effective anti-counterfeiting analysis and verification in the existing technology is solved, and more accurate and efficient anti-counterfeiting analysis and verification results are achieved.
Patent Information
- Application Number
- CN202510041496.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-09
AI Technical Summary
The prior art is difficult to effectively anti-counterfeiting analysis to verify photo QR codes, especially after image data is edited or spliced, the results of traditional verification methods are easily affected.
By establishing different features, independent analysis and verification of photos and QR codes are carried out, and the final anti-counterfeiting analysis and verification results are output based on the two results. The specific steps include collecting real-time photo image data and QR code data characteristics, conducting correlation analysis and security analysis, and finally obtaining the two-sided anti-counterfeiting analysis verification results.
This method can effectively avoid the possibility of fraud caused by photo editing and splicing, provide more accurate and efficient anti-counterfeiting analysis and verification results, and show good generalization processing capabilities after deployment and implementation.
Smart Images

Figure CN119963217A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of anti-counterfeiting analysis and verification processing of photo two-dimensional codes, and in particular to a double-sided anti-counterfeiting analysis and verification processing method for photo two-dimensional codes. Background Art
[0002] After a photo is taken, adding a QR code to add additional information becomes one of the camera applications or shooting functions. At the same time, in some application areas, using QR code technology to verify the real-time or authenticity of photos has also become an important function. However, the editing and splicing of image data by technologies such as PS and artificial intelligence will affect the verification results of traditional photo QR codes. Therefore, there is an urgent need for a practical anti-counterfeiting verification solution for both photos and QR codes. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention provides a two-sided anti-counterfeiting analysis and verification processing method for photo QR codes. By establishing different features, the photo and the QR code are independently verified, and the two results are combined to accurately and efficiently output the final anti-counterfeiting analysis and verification result.
[0004] To achieve the above object, the present invention provides a double-sided anti-counterfeiting analysis and verification processing method for a photo QR code, comprising:
[0005] S1. Collect real-time photo image data and establish image data features and corresponding QR code data features respectively;
[0006] S2. Performing feature correlation analysis using the image data features to obtain a correlation analysis result of the image data features;
[0007] S3, using the two-dimensional code data feature to perform feature security analysis processing to obtain a feature security analysis processing result of the two-dimensional code data feature;
[0008] S4. Obtain a double-sided anti-counterfeiting analysis and verification result by using the correlation analysis result of the image data feature and the feature security analysis result of the two-dimensional code data feature.
[0009] Preferably, the collecting of real-time photo image data to establish image data features and corresponding QR code data features respectively includes:
[0010] S1-1, collecting real-time photo image data;
[0011] S1-2, respectively obtaining image resolution, image contrast and image texture features of the real-time photo image data as image data features;
[0012] S1-3, acquiring a time tag of the real-time photo image data at a corresponding moment according to the real-time photo image data;
[0013] S1-4, using the real-time photo image data to establish a pixel matrix of real-time photo image data;
[0014] S1-5, obtaining pixels corresponding to the photo QR code according to the pixel matrix of the real-time photo image data to establish a QR code pixel matrix;
[0015] S1-6, using the pixel matrix of the real-time photo image data to obtain the corresponding corner point positioning of the photo QR code and establish a QR code positioning contour;
[0016] S1-7, using the time tag of the real-time photo image data, the QR code pixel matrix and the QR code positioning outline as QR code data features.
[0017] Furthermore, the image data features are used to perform feature correlation analysis to obtain a correlation analysis result of the image data features, including:
[0018] S2-1, using the image data features to perform verification processing to establish an image texture feature profile;
[0019] S2-2. Perform feature correlation analysis using the image texture feature profile to obtain a correlation analysis result of the image data feature.
[0020] Further, using the image data features to perform verification processing to establish an image texture feature profile includes:
[0021] S2-1-1, using the image texture feature of the image data feature to establish and obtain the corresponding image texture feature contour;
[0022] S2-1-2, determining whether the number of executions of S1-2 corresponding to the current real-time photo image data at the current moment is greater than 3, if so, abandoning the process, otherwise, executing S2-1-3;
[0023] S2-1-3, determine whether the image texture feature contour corresponds to the image contrast of the image data feature, if so, execute S2-1-4, otherwise, return to S1-2;
[0024] S2-1-4, determine whether the image texture feature contour corresponds to the image resolution of the image data feature, if so, execute S2-1-5, otherwise, return to S1-2;
[0025] S2-1-5. Determine whether the image texture feature contours overlap. If so, return to S2-1-1. Otherwise, output the current image texture feature contour.
[0026] Furthermore, the image data feature correlation analysis result obtained by performing feature correlation analysis using the image texture feature profile includes:
[0027] S2-2-1, using the image center of the real-time photo image data as the origin to establish an image pixel coordinate system of the real-time photo image according to the image resolution of the image texture feature contour;
[0028] S2-2-2, using the image texture feature contour to obtain an image texture feature contour vector according to an image pixel coordinate system;
[0029] S2-2-3, determining whether there is a 0 pixel in the area corresponding to the image texture feature contour vector, if so, deleting the image texture feature contour vector corresponding to the 0 pixel, otherwise, retaining the current image texture feature contour vector;
[0030] S2-2-4. Using the image texture feature contour vector, a contour-contrast mapping is established according to the image contrast of the corresponding image data feature as a correlation analysis processing result of the image data feature.
[0031] Furthermore, the feature security analysis result of the two-dimensional code data feature obtained by performing feature security analysis processing using the two-dimensional code data feature includes:
[0032] S3-1, using the two-dimensional code data features to perform cross-validation processing to obtain a cross-validation processing result of the two-dimensional code data features;
[0033] S3-2. Perform feature security analysis processing using the cross-validation processing result to obtain a feature security analysis processing result of the two-dimensional code data feature.
[0034] Furthermore, the cross-validation processing using the two-dimensional code data features to obtain the cross-validation processing results of the two-dimensional code data features includes:
[0035] S3-1-1, using the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system;
[0036] S3-1-2, determine whether the two-dimensional code pixel coordinate system corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, directly execute S3-1-3, otherwise, use the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system according to the image pixel coordinate system, and execute S3-1-3;
[0037] S3-1-3, using the two-dimensional code positioning contour of the two-dimensional code data feature to establish a two-dimensional code positioning contour point coordinate set according to the two-dimensional code pixel coordinate system;
[0038] S3-1-4, determine whether the two-dimensional code positioning contour point coordinate set corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, use the two-dimensional code positioning contour point coordinate set as the cross-validation processing result of the two-dimensional code data feature, otherwise, return to S3-1-2;
[0039] The X-axis and Y-axis of the two-dimensional code pixel coordinate system and the image pixel coordinate system are parallel to each other.
[0040] Furthermore, the feature security analysis processing is performed using the cross-validation processing result to obtain the feature security analysis processing result of the two-dimensional code data feature, including:
[0041] S3-2-1, obtaining the corresponding historical normal cross-validation processing result according to the cross-validation processing result;
[0042] S3-2-2, according to the historical normal cross-validation processing result, obtain the corresponding QR code URL as the historical QR code benchmark;
[0043] S3-2-3, according to the historical QR code benchmark, respectively obtain the corresponding domain name and random string to establish a historical domain name set and a historical random string set;
[0044] S3-2-4, determine whether the domain name of the QR code URL corresponding to the cross-validation processing result is the same as the subset of the historical domain name set, if so, output the domain name of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature, otherwise, execute S3-2-5;
[0045] S3-2-5. Determine whether the random string of the QR code URL corresponding to the cross-validation processing result is identical to a subset of the historical random string set. If so, output the random string of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature. Otherwise, output the feature security analysis processing result of the QR code data feature as empty.
[0046] Furthermore, the bilateral anti-counterfeiting analysis and verification processing results obtained by using the correlation analysis processing results of the image data features and the feature security analysis processing results of the two-dimensional code data features include:
[0047] S4-1, determine whether the feature security analysis processing result of the two-dimensional code data feature exists, if so, execute S4-2, otherwise, perform time comparison processing according to the two-dimensional code data feature to obtain the double-sided anti-counterfeiting analysis verification processing result;
[0048] S4-2, determining whether the feature security analysis processing result of the QR code data feature corresponds to the domain name of the QR code URL, if so, obtaining the historical photo image data according to the domain name of the QR code URL, otherwise, obtaining the historical photo image data according to the random character string of the QR code URL;
[0049] S4-3, determining whether the image resolution of the image data feature corresponding to the historical photo image data is consistent with the image resolution of the image data feature corresponding to the real-time photo image data, if so, executing S4-4, otherwise, outputting the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result;
[0050] S4-4. Determine whether the correlation analysis processing results of the image data features corresponding to the historical photo image data are consistent with the correlation analysis processing results of the image data features corresponding to the real-time photo image data. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result; otherwise, output the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result.
[0051] Furthermore, the two-sided anti-counterfeiting analysis and verification processing results obtained by performing time comparison processing according to the two-dimensional code data characteristics include:
[0052] S4-1-1, determine whether the time tag of the real-time photo image data of the QR code data feature is later than the corresponding generation time of the photo QR code, if so, output the double-sided anti-counterfeiting analysis and verification processing result as empty, otherwise, execute S4-1-2;
[0053] S4-1-2. Determine whether there is overlap between the coordinate set of the QR code positioning contour points corresponding to the QR code data features and the image texture feature contour vector corresponding to the image data features. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result. Otherwise, output the double-sided anti-counterfeiting analysis and verification processing result as empty.
[0054] Compared with the closest prior art, the present invention has the following beneficial effects:
[0055] Verification processing ideas for different targets are established, and based on them, different features of photos and QR codes in the same image data are extracted respectively. Internal cross-validation is first performed using their respective features to obtain preliminary verification results, and then the two verification results are combined to obtain the final anti-counterfeiting analysis and verification results, avoiding the possibility of fraud due to photo editing and splicing. At the same time, the solution is iteratively looped internally, and its generalization processing capabilities are good after deployment and implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1It is a flow chart of a double-sided anti-counterfeiting analysis and verification processing method for a photo QR code provided by the present invention. DETAILED DESCRIPTION
[0057] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Embodiment 1:
[0060] The present invention provides a double-sided anti-counterfeiting analysis and verification processing method for photo two-dimensional codes, such as Figure 1 As shown, including:
[0061] S1. Collect real-time photo image data and establish image data features and corresponding QR code data features respectively;
[0062] S2. Performing feature correlation analysis using the image data features to obtain a correlation analysis result of the image data features;
[0063] S3, using the two-dimensional code data feature to perform feature security analysis processing to obtain a feature security analysis processing result of the two-dimensional code data feature;
[0064] S4. Obtain a double-sided anti-counterfeiting analysis and verification result by using the correlation analysis result of the image data feature and the feature security analysis result of the two-dimensional code data feature.
[0065] S1 specifically includes:
[0066] S1-1, collecting real-time photo image data;
[0067] S1-2, respectively obtaining image resolution, image contrast and image texture features of the real-time photo image data as image data features;
[0068] S1-3, acquiring a time tag of the real-time photo image data at a corresponding moment according to the real-time photo image data;
[0069] S1-4, using the real-time photo image data to establish a pixel matrix of real-time photo image data;
[0070] S1-5, obtaining pixels corresponding to the photo QR code according to the pixel matrix of the real-time photo image data to establish a QR code pixel matrix;
[0071] S1-6, using the pixel matrix of the real-time photo image data to obtain the corresponding corner point positioning of the photo QR code and establish a QR code positioning contour;
[0072] S1-7, using the time tag of the real-time photo image data, the QR code pixel matrix and the QR code positioning outline as QR code data features.
[0073] In this embodiment, a bilateral anti-counterfeiting analysis and verification processing method for photo QR codes focuses on the extraction of texture features of real-time photo image data. Due to the diversity of photo content and the need to ensure the generalization of the implementation of the solution, the texture features of the photo are selected as the basis for subsequent target contour segmentation. Through MB-IADLDP feature extraction, local details are highlighted, and it has a better application effect for situations where the photo content is complex or there are too many targets in the photo.
[0074] S2 specifically includes:
[0075] S2-1, using the image data features to perform verification processing to establish an image texture feature profile;
[0076] S2-2, performing feature correlation analysis processing using the image texture feature profile to obtain a correlation analysis processing result of the image data features.
[0077] S2-1 specifically includes:
[0078] S2-1-1, using the image texture feature of the image data feature to establish and obtain the corresponding image texture feature contour;
[0079] S2-1-2, determining whether the number of executions of S1-2 corresponding to the current real-time photo image data at the current moment is greater than 3, if so, abandoning the process, otherwise, executing S2-1-3;
[0080] S2-1-3, determine whether the image texture feature contour corresponds to the image contrast of the image data feature, if so, execute S2-1-4, otherwise, return to S1-2;
[0081] S2-1-4, determine whether the image texture feature contour corresponds to the image resolution of the image data feature, if so, execute S2-1-5, otherwise, return to S1-2;
[0082] S2-1-5. Determine whether the image texture feature contours overlap. If so, return to S2-1-1. Otherwise, output the current image texture feature contour.
[0083] S2-2 specifically includes:
[0084] S2-2-1, using the image center of the real-time photo image data as the origin to establish an image pixel coordinate system of the real-time photo image according to the image resolution of the image texture feature contour;
[0085] S2-2-2, using the image texture feature contour to obtain an image texture feature contour vector according to an image pixel coordinate system;
[0086] S2-2-3, determining whether there is a 0 pixel in the area corresponding to the image texture feature contour vector, if so, deleting the image texture feature contour vector corresponding to the 0 pixel, otherwise, retaining the current image texture feature contour vector;
[0087] S2-2-4. Using the image texture feature contour vector, a contour-contrast mapping is established according to the image contrast of the corresponding image data feature as a correlation analysis processing result of the image data feature.
[0088] In the present embodiment, a bilateral anti-counterfeiting analysis and verification processing method for photo QR codes mentions 0 pixels as the basis for judgment in S2-2-3, that is, the feature contour does not contain pixels, and the visual imaging is a black dot, etc. Therefore, the non-QR code area is not considered and can be deleted.
[0089] S3 specifically includes:
[0090] S3-1, using the two-dimensional code data features to perform cross-validation processing to obtain a cross-validation processing result of the two-dimensional code data features;
[0091] S3-2. Perform feature security analysis using the cross-validation processing result to obtain a feature security analysis processing result of the two-dimensional code data feature.
[0092] S3-1 specifically includes:
[0093] S3-1-1, using the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system;
[0094] S3-1-2, determine whether the two-dimensional code pixel coordinate system corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, directly execute S3-1-3, otherwise, use the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system according to the image pixel coordinate system, and execute S3-1-3;
[0095] S3-1-3, using the two-dimensional code positioning contour of the two-dimensional code data feature to establish a two-dimensional code positioning contour point coordinate set according to the two-dimensional code pixel coordinate system;
[0096] S3-1-4, determine whether the two-dimensional code positioning contour point coordinate set corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, use the two-dimensional code positioning contour point coordinate set as the cross-validation processing result of the two-dimensional code data feature, otherwise, return to S3-1-2;
[0097] The X-axis and Y-axis of the two-dimensional code pixel coordinate system and the image pixel coordinate system are parallel to each other.
[0098] S3-2 specifically includes:
[0099] S3-2-1, obtaining the corresponding historical normal cross-validation processing result according to the cross-validation processing result;
[0100] S3-2-2, according to the historical normal cross-validation processing result, obtain the corresponding QR code URL as the historical QR code benchmark;
[0101] S3-2-3, according to the historical QR code benchmark, respectively obtain the corresponding domain name and random string to establish a historical domain name set and a historical random string set;
[0102] S3-2-4, determine whether the domain name of the QR code URL corresponding to the cross-validation processing result is the same as the subset of the historical domain name set, if so, output the domain name of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature, otherwise, execute S3-2-5;
[0103] S3-2-5. Determine whether the random string of the QR code URL corresponding to the cross-validation processing result is identical to a subset of the historical random string set. If so, output the random string of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature. Otherwise, output the feature security analysis processing result of the QR code data feature as empty.
[0104] In the present embodiment, a two-sided anti-counterfeiting analysis and verification processing method is used for a photo QR code. The QR code encodes data by encoding binary bits through black and white marks in a square two-bit matrix. Although the QR code is displayed as an overall pattern, it can also be decomposed into a regionalized pixel matrix form in the imaging, and pixel distribution extraction is performed to establish corresponding features.
[0105] S4 specifically includes:
[0106] S4-1, determine whether the feature security analysis processing result of the two-dimensional code data feature exists, if so, execute S4-2, otherwise, perform time comparison processing according to the two-dimensional code data feature to obtain the double-sided anti-counterfeiting analysis verification processing result;
[0107] S4-2, determining whether the feature security analysis processing result of the QR code data feature corresponds to the domain name of the QR code URL, if so, obtaining the historical photo image data according to the domain name of the QR code URL, otherwise, obtaining the historical photo image data according to the random character string of the QR code URL;
[0108] S4-3, determining whether the image resolution of the image data feature corresponding to the historical photo image data is consistent with the image resolution of the image data feature corresponding to the real-time photo image data, if so, executing S4-4, otherwise, outputting the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result;
[0109] S4-4. Determine whether the correlation analysis processing results of the image data features corresponding to the historical photo image data are consistent with the correlation analysis processing results of the image data features corresponding to the real-time photo image data. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result; otherwise, output the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result.
[0110] S4-1 specifically includes:
[0111] S4-1-1, determine whether the time tag of the real-time photo image data of the QR code data feature is later than the corresponding generation time of the photo QR code, if so, output the double-sided anti-counterfeiting analysis and verification processing result as empty, otherwise, execute S4-1-2;
[0112] S4-1-2. Determine whether there is overlap between the coordinate set of the QR code positioning contour points corresponding to the QR code data features and the image texture feature contour vector corresponding to the image data features. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result. Otherwise, output the double-sided anti-counterfeiting analysis and verification processing result as empty.
[0113] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A double-sided anti-counterfeiting analysis and verification processing method for photo QR codes, characterized in that: include: S1. Collect real-time photo image data and establish image data features and corresponding QR code data features respectively; S2. Performing feature correlation analysis using the image data features to obtain a correlation analysis result of the image data features; S3, using the two-dimensional code data feature to perform feature security analysis processing to obtain a feature security analysis processing result of the two-dimensional code data feature; S4. Obtain a double-sided anti-counterfeiting analysis and verification result by using the correlation analysis result of the image data feature and the feature security analysis result of the two-dimensional code data feature.
2. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 1, characterized in that: The collecting of real-time photo image data to establish image data features and corresponding QR code data features respectively includes: S1-1, collecting real-time photo image data; S1-2, respectively obtaining image resolution, image contrast and image texture features of the real-time photo image data as image data features; S1-3, acquiring a time tag of the real-time photo image data at a corresponding moment according to the real-time photo image data; S1-4, using the real-time photo image data to establish a pixel matrix of real-time photo image data; S1-5, obtaining pixels corresponding to the photo QR code according to the pixel matrix of the real-time photo image data to establish a QR code pixel matrix; S1-6, using the pixel matrix of the real-time photo image data to obtain the corresponding corner point positioning of the photo QR code and establish a QR code positioning contour; S1-7, using the time tag of the real-time photo image data, the QR code pixel matrix and the QR code positioning outline as QR code data features.
3. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 2, characterized in that: The image data features are used to perform feature correlation analysis to obtain the image data feature correlation analysis results, including: S2-1, using the image data features to perform verification processing to establish an image texture feature profile; S2-2. Perform feature correlation analysis using the image texture feature profile to obtain a correlation analysis result of the image data feature.
4. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 3, characterized in that: Using the image data features to perform verification processing to establish an image texture feature profile includes: S2-1-1, using the image texture feature of the image data feature to establish and obtain the corresponding image texture feature contour; S2-1-2, determining whether the number of executions of S1-2 corresponding to the current real-time photo image data at the current moment is greater than 3, if so, abandoning the process, otherwise, executing S2-1-3; S2-1-3, determine whether the image texture feature contour corresponds to the image contrast of the image data feature, if so, execute S2-1-4, otherwise, return to S1-2; S2-1-4, determine whether the image texture feature contour corresponds to the image resolution of the image data feature, if so, execute S2-1-5, otherwise, return to S1-2; S2-1-5. Determine whether the image texture feature contours overlap. If so, return to S2-1-1. Otherwise, output the current image texture feature contour.
5. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 4, characterized in that: The image data feature correlation analysis result obtained by performing feature correlation analysis using the image texture feature profile includes: S2-2-1, using the image center of the real-time photo image data as the origin to establish an image pixel coordinate system of the real-time photo image according to the image resolution of the image texture feature contour; S2-2-2, using the image texture feature contour to obtain an image texture feature contour vector according to an image pixel coordinate system; S2-2-3, determining whether there is a 0 pixel in the area corresponding to the image texture feature contour vector, if so, deleting the image texture feature contour vector corresponding to the 0 pixel, otherwise, retaining the current image texture feature contour vector; S2-2-4. Using the image texture feature contour vector, a contour-contrast mapping is established according to the image contrast of the corresponding image data feature as a correlation analysis processing result of the image data feature.
6. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 5, characterized in that: The feature security analysis result of the two-dimensional code data feature obtained by performing feature security analysis processing using the two-dimensional code data feature includes: S3-1, using the two-dimensional code data features to perform cross-validation processing to obtain a cross-validation processing result of the two-dimensional code data features; S3-2. Perform feature security analysis processing using the cross-validation processing result to obtain a feature security analysis processing result of the two-dimensional code data feature.
7. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 6, characterized in that: The cross-validation processing using the two-dimensional code data features to obtain the cross-validation processing results of the two-dimensional code data features include: S3-1-1, using the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system; S3-1-2, determine whether the two-dimensional code pixel coordinate system corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, directly execute S3-1-3, otherwise, use the corresponding center of the two-dimensional code pixel matrix of the two-dimensional code data feature as the origin to establish a two-dimensional code pixel coordinate system according to the image pixel coordinate system, and execute S3-1-3; S3-1-3, using the two-dimensional code positioning contour of the two-dimensional code data feature to establish a two-dimensional code positioning contour point coordinate set according to the two-dimensional code pixel coordinate system; S3-1-4, determine whether the two-dimensional code positioning contour point coordinate set corresponds to the two-dimensional code pixel matrix of the two-dimensional code data feature, if so, use the two-dimensional code positioning contour point coordinate set as the cross-validation processing result of the two-dimensional code data feature, otherwise, return to S3-1-2; The X-axis and Y-axis of the two-dimensional code pixel coordinate system and the image pixel coordinate system are parallel to each other.
8. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 7, characterized in that: The feature security analysis result obtained by performing feature security analysis on the cross-validation processing result includes: S3-2-1, obtaining the corresponding historical normal cross-validation processing result according to the cross-validation processing result; S3-2-2, according to the historical normal cross-validation processing result, obtain the corresponding QR code URL as the historical QR code benchmark; S3-2-3, according to the historical QR code benchmark, respectively obtain the corresponding domain name and random string to establish a historical domain name set and a historical random string set; S3-2-4, determine whether the domain name of the QR code URL corresponding to the cross-validation processing result is the same as the subset of the historical domain name set, if so, output the domain name of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature, otherwise, execute S3-2-5; S3-2-5. Determine whether the random string of the QR code URL corresponding to the cross-validation processing result is identical to a subset of the historical random string set. If so, output the random string of the QR code URL corresponding to the cross-validation processing result as the feature security analysis processing result of the QR code data feature. Otherwise, output the feature security analysis processing result of the QR code data feature as empty.
9. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 4, characterized in that: The bilateral anti-counterfeiting analysis and verification processing results obtained by using the correlation analysis processing results of the image data features and the feature security analysis processing results of the two-dimensional code data features include: S4-1, determine whether the feature security analysis processing result of the two-dimensional code data feature exists, if so, execute S4-2, otherwise, perform time comparison processing according to the two-dimensional code data feature to obtain the double-sided anti-counterfeiting analysis verification processing result; S4-2, determining whether the feature security analysis processing result of the QR code data feature corresponds to the domain name of the QR code URL, if so, obtaining the historical photo image data according to the domain name of the QR code URL, otherwise, obtaining the historical photo image data according to the random character string of the QR code URL; S4-3, determining whether the image resolution of the image data feature corresponding to the historical photo image data is consistent with the image resolution of the image data feature corresponding to the real-time photo image data, if so, executing S4-4, otherwise, outputting the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result; S4-4. Determine whether the correlation analysis processing results of the image data features corresponding to the historical photo image data are consistent with the correlation analysis processing results of the image data features corresponding to the real-time photo image data. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result; otherwise, output the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result.
10. A method for double-sided anti-counterfeiting analysis and verification of a photo QR code as claimed in claim 9, characterized in that: The results of the two-sided anti-counterfeiting analysis and verification obtained by performing time comparison processing according to the characteristics of the two-dimensional code data include: S4-1-1, determine whether the time tag of the real-time photo image data of the QR code data feature is later than the corresponding generation time of the photo QR code, if so, output the double-sided anti-counterfeiting analysis and verification processing result as empty, otherwise, execute S4-1-2; S4-1-2. Determine whether there is overlap between the coordinate set of the QR code positioning contour points corresponding to the QR code data features and the image texture feature contour vector corresponding to the image data features. If so, output the photo QR code corresponding to the real-time photo image data as the double-sided anti-counterfeiting analysis and verification processing result. Otherwise, output the double-sided anti-counterfeiting analysis and verification processing result as empty.
Citation Information
Cited By
Metal sheet laminating process monitoring method based on data analysis
CN120182283A
A metal sheet bonding process monitoring method based on data analysis
CN120182283B