A method for processing massive visual big data images
Obtaining facial avatars through visual devices and generating binary strings, processing and transmitting data, solves the problem of insufficient data security in massive visual big data image processing, and achieves safe transmission and storage of data.
Patent Information
- Application Number
- CN202410426721.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-10
AI Technical Summary
Existing technology cannot effectively ensure the security of data in massive visual big data image processing, especially in wireless network transmission, where the risk of data being easily tampered with and lost is high.
Obtain the face avatar through the visual device, calculate the number of pixels and generate a binary face avatar string, perform data processing and transmission, and ensure the integrity and security of the data during the transmission process.
It realizes the safe transmission and storage of face and avatar data, ensures the accuracy and integrity of the data on the big data storage platform, and avoids the risk of data tampering and loss.
Smart Images

Figure CN118349692B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual image technology, and in particular to a method for processing massive visual big data images. Background Art
[0002] Data transmission in modern communications can be divided into wired transmission and wireless transmission based on the transmission media, and can be divided into unidirectional transmission and bidirectional transmission based on the transmission direction. Whether it is data transmission using wired cables and optical cables, or wireless data transmission using Wifi and mobile communication base stations, data security should be guaranteed. Patent application number 2016112301386, entitled "Data security transmission method based on machine vision", discloses the use of display, camera and machine vision algorithm to work together to achieve effective and secure data transmission. The present invention proposes another method to ensure data security. Summary of the invention
[0003] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a method for processing massive visual big data images.
[0004] In order to achieve the above-mentioned object of the present invention, the present invention provides a method for processing massive visual big data images, comprising the following steps:
[0005] S1, obtain the face image through the visual device;
[0006] S2, obtaining the number of pixels of the face avatar according to the face avatar obtained in step S1;
[0007] S3, generating a binary face portrait string according to the face portrait obtained in step S1;
[0008] S4, generating a new binary face avatar character string according to the number of pixels obtained in step S2;
[0009] S5, calculating the face avatar obtained in step S1 and the new binary face avatar string to obtain a new face avatar;
[0010] S6, transmitting the facial avatar string and the new facial avatar to the big data storage platform;
[0011] S7, after the big data storage platform receives the facial avatar character string and the new facial avatar transmitted by the visual device, it stores the facial avatar obtained by the visual device in the big data storage platform.
[0012] In a preferred embodiment of the present invention, the visual device in step S1 is a visual capture device such as a smartphone with a front camera and / or a rear camera, a tablet with a front camera and / or a rear camera, a wearable watch with a camera, or a access control system with a camera.
[0013] In a preferred embodiment of the present invention, the visual device in step S1 is a visual device with a wireless network connection.
[0014] In a preferred embodiment of the present invention, the wireless network connection is a network connection of WiFi, 5G, 4G, 3G, or any combination thereof.
[0015] In a preferred embodiment of the present invention, the method for obtaining the number of pixels of the face image according to the acquired face image in step S2 is:
[0016] ,
[0017] in, Indicates The number of pixels in a face portrait; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0018] Indicates The number of vertical pixels in a face portrait;
[0019] Indicates The number of horizontal pixels in a face portrait.
[0020] In a preferred embodiment of the present invention, the method for generating a new binary face avatar character string according to the number of acquired pixels in step S4 is:
[0021] Determine the relationship between the number of pixels obtained in step S2 and the number of characters in the binary face avatar string in step S3:
[0022] like > , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Fill in the back or front of 0 or 1, = - ; After adding, it is a new binary face avatar string;
[0023] like = , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face avatar string of the face avatar is the number of characters in the binary face avatar string of the face avatar, then the binary face avatar string is the new binary face avatar string;
[0024] like < , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Delete after or before characters, = - , after deletion, it becomes a new binary face avatar string.
[0025] In a preferred embodiment of the present invention, the method for generating a new binary face avatar character string according to the number of acquired pixels in step S4 is:
[0026] Determine the relationship between the number of pixels obtained in step S2 and the number of characters in the binary face avatar string in step S3:
[0027] like > , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Fill in the back of 0, = - ; After adding, it is a new binary face avatar string;
[0028] like = , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face avatar string of the face avatar is the number of characters in the binary face avatar string of the face avatar, then the binary face avatar string is the new binary face avatar string;
[0029] like < , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Delete after characters, = - , after deletion, it becomes a new binary face avatar string.
[0030] In a preferred embodiment of the present invention, in step S5, the face avatar obtained in step S1 is calculated with the new binary face avatar string to obtain the new face avatar in the following manner:
[0031] ,
[0032] in, Indicates the new The pixel coordinates of the face image The binary RGB value at ; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0033] =1, 2, 3, ..., , Indicates The number of vertical pixels in a face portrait;
[0034] =1, 2, 3, ..., , Indicates The number of horizontal pixels in a face portrait;
[0035] Indicates The pixel coordinates of the face image The binary RGB value at ;
[0036] Indicates an operator, XOR or XOR; XOR is preferred;
[0037] Indicates the new The first character in the binary face character string of the face character characters, and make the number of characters equal to the RGB bit number of the face image.
[0038] In a preferred embodiment of the present invention, the method of generating a binary face portrait string from the acquired face portrait in step S3 comprises the following steps:
[0039] S31, converting the face avatar into a face avatar string using a face avatar string algorithm;
[0040] S32, converting the face avatar character string into a binary face avatar character string.
[0041] In a preferred embodiment of the present invention, the method of converting the face avatar into a face avatar string using the face avatar string algorithm in step S21 is:
[0042] ,
[0043] in, Indicates Face avatar string; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0044] Indicates the face image string algorithm, which can be SHA-1, MD5 or SHA128, preferably SHA224. The result of SHA224 calculation is a 56-bit hexadecimal string.
[0045] Indicates the first A human face portrait.
[0046] In a preferred embodiment of the present invention, after the big data storage platform receives the face avatar string and the new face avatar transmitted by the visual device in step S7, the method for obtaining the platform face avatar includes the following steps:
[0047] S71, the big data storage platform obtains the number of pixels of the received new face avatar according to the received new face avatar;
[0048] S72, the big data storage platform converts the received face avatar character string into a binary face avatar character string;
[0049] S73, generating a new platform binary face avatar string by combining the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71;
[0050] S74, the big data storage platform calculates the received new face avatar with the new platform binary face avatar string to obtain the platform face avatar.
[0051] In a preferred embodiment of the present invention, in step S71, the method in which the big data storage platform obtains the number of pixels of the received new face avatar according to the received new face avatar is:
[0052] ,
[0053] in, Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0054] Indicates the first The number of vertical pixels in a new face portrait;
[0055] Indicates the first The number of horizontal pixels in a new face portrait.
[0056] In a preferred embodiment of the present invention, the method for generating a new platform binary face avatar string from the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71 is:
[0057] Determine the relationship between the number of pixels of the new face avatar obtained in step S71 and the number of characters in the face avatar string received by the big data storage platform:
[0058] like > , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Fill in the back or front of 0 or 1, = - ; After adding, it is a new platform binary face avatar string;
[0059] like = , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string, then the platform binary face avatar string is the new platform binary face avatar string;
[0060] like < , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Delete after or before characters, = - , after deletion, it becomes the new platform binary face avatar string.
[0061] In a preferred embodiment of the present invention, the method for generating a new platform binary face avatar string from the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71 is:
[0062] Determine the relationship between the number of pixels of the new face avatar obtained in step S71 and the number of characters in the face avatar string received by the big data storage platform:
[0063] like > , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Fill in the back of 0 or 1, = - ; After adding, it is a new platform binary face avatar string;
[0064] like = , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string, then the platform binary face avatar string is the new platform binary face avatar string;
[0065] like < , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Delete after characters, = - , after deletion, it becomes the new platform binary face avatar string.
[0066] In a preferred embodiment of the present invention, in step S74, the big data storage platform calculates the received new face avatar with the new platform binary face avatar string to obtain the platform face avatar in the following manner:
[0067] ,
[0068] in, Indicates platform The pixel coordinates of the face image The binary RGB value at ; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0069] =1, 2, 3, ..., , Indicates the first The number of vertical pixels in a new face portrait;
[0070] =1, 2, 3, ..., , Indicates the first The number of horizontal pixels in a new face portrait;
[0071] Indicates the first The pixel coordinates of the face image The binary RGB value at ;
[0072] Indicates an operator, XOR or XOR; XOR is preferred;
[0073] In step S72, The first character in the binary face avatar string characters, and make the number of characters equal to the RGB bit number of the new face image received by the big data storage platform.
[0074] In a preferred embodiment of the present invention, the step S75 is further included, converting the platform face avatar obtained in step S74 into a platform face avatar character string;
[0075] Determine whether the face avatar string on the platform is consistent with the face avatar string received by the big data storage platform:
[0076] If the face avatar string on the platform is consistent with the face avatar string received by the big data storage platform, the face avatar on the platform is the face avatar obtained by the visual device;
[0077] If the face avatar string on the platform is inconsistent with the face avatar string received by the big data storage platform, the face avatar on the platform is not the face avatar obtained by the visual device.
[0078] That is ,
[0079] in, Indicates platform Face avatar string; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0080] Indicates the face image string algorithm, which can be SHA-1, MD5 or SHA128, preferably SHA224. The result of SHA224 calculation is a 56-bit hexadecimal string.
[0081] Indicates platform A portrait of a human face;
[0082] Determine the platform Whether the facial avatar string is consistent with the facial avatar string corresponding to the facial avatar received by the big data storage platform:
[0083] If the platform The face avatar string and the first The facial avatar character string corresponding to the facial avatar is consistent; then the platform The face avatar is a face avatar acquired by a visual device;
[0084] If the platform The face avatar string and the first The facial avatar character string corresponding to the facial avatar is inconsistent; then the platform The face avatar is not a face avatar obtained by a visual device.
[0085] In summary, by adopting the above technical solution, the present invention can achieve the security of facial portrait data.
[0086] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0088] Figure 1 It is a schematic block diagram of the process of the present invention. DETAILED DESCRIPTION
[0089] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0090] The present invention discloses a method for processing massive visual big data images. Figure 1 As shown, the following steps are included:
[0091] S1, obtain the face image through the visual device;
[0092] S2, obtaining the number of pixels of the face avatar according to the face avatar obtained in step S1;
[0093] S3, generating a binary face portrait string according to the face portrait obtained in step S1;
[0094] S4, generating a new binary face avatar character string according to the number of pixels obtained in step S2;
[0095] S5, calculating the face avatar obtained in step S1 and the new binary face avatar string to obtain a new face avatar;
[0096] S6, transmitting the facial avatar string and the new facial avatar to the big data storage platform;
[0097] S7, after the big data storage platform receives the facial avatar character string and the new facial avatar transmitted by the visual device, it stores the facial avatar obtained by the visual device in the big data storage platform.
[0098] In a preferred embodiment of the present invention, the visual device in step S1 is a visual capture device such as a smartphone with a front camera and / or a rear camera, a tablet with a front camera and / or a rear camera, a wearable watch with a camera, or a access control system with a camera.
[0099] In a preferred embodiment of the present invention, the visual device in step S1 is a visual device with a wireless network connection.
[0100] In a preferred embodiment of the present invention, the wireless network connection is a network connection of WiFi, 5G, 4G, 3G, or any combination thereof.
[0101] In a preferred embodiment of the present invention, the method for obtaining the number of pixels of the face image according to the acquired face image in step S2 is:
[0102] ,
[0103] in, Indicates The number of pixels in a face portrait; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0104] Indicates The number of vertical pixels in a face portrait;
[0105] Indicates The number of horizontal pixels in a face portrait.
[0106] In a preferred embodiment of the present invention, the method for generating a new binary face avatar character string according to the number of acquired pixels in step S4 is:
[0107] Determine the relationship between the number of pixels obtained in step S2 and the number of characters in the binary face avatar string in step S3:
[0108] like > , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Fill in the back or front of 0 or 1, = - ; After adding, it is a new binary face avatar string;
[0109] like = , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face avatar string of the face avatar is the number of characters in the binary face avatar string of the face avatar, then the binary face avatar string is the new binary face avatar string;
[0110] like < , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Delete after or before characters, = - , after deletion, it becomes a new binary face avatar string.
[0111] In a preferred embodiment of the present invention, the method for generating a new binary face avatar character string according to the number of acquired pixels in step S4 is:
[0112] Determine the relationship between the number of pixels obtained in step S2 and the number of characters in the binary face avatar string in step S3:
[0113] like > , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Fill in the back of 0, = - ; After adding, it is a new binary face avatar string;
[0114] like = , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face avatar string of the face avatar is the number of characters in the binary face avatar string of the face avatar, then the binary face avatar string is the new binary face avatar string;
[0115] like < , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Delete after characters, = - , after deletion, the new binary face avatar string is obtained. In this embodiment, assuming that the number of pixels of a face avatar is 10, the binary face avatar string is 10110111001111, then the new binary face avatar string is 1011011100; assuming that the number of pixels of a face avatar is 14, the binary face avatar string is 10110111001111, then the new binary face avatar string is 10110111001111; assuming that the number of pixels of a face avatar is 15, the binary face avatar string is 10110111001111, then the new binary face avatar string is 101101110011110; assuming that the number of pixels of a face avatar is 20, the binary face avatar string is 101101110011110. The string is 10110111001111, then the new binary face avatar string is 10110111001111000000; assuming that the number of pixels of a face avatar is 10, the binary face avatar string is 10110111001111, then the new binary face avatar string is 1011011100; assuming that the number of pixels of a face avatar is 8, the binary face avatar string is 10110111001111, then the new binary face avatar string is 10110111; assuming that the number of pixels of a face avatar is 4, the binary face avatar string is 10110111001111, then the new binary face avatar string is 1011.
[0116] In a preferred embodiment of the present invention, in step S5, the face avatar obtained in step S1 is calculated with the new binary face avatar string to obtain the new face avatar in the following manner:
[0117] ,
[0118] in, Indicates the new The pixel coordinates of the face image The binary RGB value at ; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0119] =1, 2, 3, ..., , Indicates The number of vertical pixels in a face portrait;
[0120] =1, 2, 3, ..., , Indicates The number of horizontal pixels in a face portrait;
[0121] Indicates The pixel coordinates of the face image The binary RGB value here The number of digits is equal to the number of digits of the face image. If it is less than the number of digits of the face image, then the binary RGB value Fill in 0 in front to make it binary RGB value The number of digits is equal to the number of digits of the face image.
[0122] Indicates an operator, XOR or XOR; XOR is preferred;
[0123] Indicates the new The first character in the binary face character string of the face character characters, and make the number of characters equal to the RGB bit number of the face image.
[0124] In this embodiment, it is assumed that is the decimal RGB value of a face image. The new binary face image string is 101110. The corresponding binary is:
[0125] ,
[0126] Will Converted to a binary RGB value with the same number of bits as the face image (assuming the number of bits of the face image is 8 bits), that is:
[0127] ,
[0128] The binary RGB value corresponding to the pixel coordinate (1,1) The resulting new binary RGB value is:
[0129] ,
[0130] The binary RGB value corresponding to the pixel coordinate (1,2) The resulting new binary RGB value is:
[0131] ,
[0132] The binary RGB value corresponding to the pixel coordinate (1,3) The resulting new binary RGB value is:
[0133] ,
[0134] The binary RGB value corresponding to the pixel coordinate (2,1) The resulting new binary RGB value is:
[0135] ,
[0136] The binary RGB value corresponding to the pixel coordinate (2,2) The resulting new binary RGB value is:
[0137] ,
[0138] The binary RGB value corresponding to the pixel coordinate (2,3) The resulting new binary RGB value is:
[0139] ,
[0140] The binary RGB value corresponding to the new face image is:
[0141] , convert the binary RGB value corresponding to the new face avatar into a new face avatar.
[0142] The decimal RGB value corresponding to the new face avatar is:
[0143] .
[0144] In a preferred embodiment of the present invention, the method of generating a binary face portrait string from the acquired face portrait in step S3 comprises the following steps:
[0145] S31, converting the face avatar into a face avatar string using a face avatar string algorithm;
[0146] S32, converting the face avatar character string into a binary face avatar character string.
[0147] In a preferred embodiment of the present invention, the method of converting the face avatar into a face avatar string using the face avatar string algorithm in step S21 is:
[0148] ,
[0149] in, Indicates Face avatar string; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device;
[0150] Indicates the face image string algorithm, which can be SHA-1, MD5 or SHA128, preferably SHA224. The result of SHA224 calculation is a 56-bit hexadecimal string.
[0151] Indicates the first A human face portrait.
[0152] In a preferred embodiment of the present invention, after the big data storage platform receives the face avatar string and the new face avatar transmitted by the visual device in step S7, the method for obtaining the platform face avatar includes the following steps:
[0153] S71, the big data storage platform obtains the number of pixels of the received new face avatar according to the received new face avatar;
[0154] S72, the big data storage platform converts the received face avatar character string into a binary face avatar character string;
[0155] S73, generating a new platform binary face avatar string by combining the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71;
[0156] S74, the big data storage platform calculates the received new face avatar with the new platform binary face avatar string to obtain the platform face avatar.
[0157] In a preferred embodiment of the present invention, in step S71, the method in which the big data storage platform obtains the number of pixels of the received new face avatar according to the received new face avatar is:
[0158] ,
[0159] in, Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0160] Indicates the first The number of vertical pixels in a new face portrait;
[0161] Indicates the first The number of horizontal pixels in a new face portrait.
[0162] In a preferred embodiment of the present invention, the method for generating a new platform binary face avatar string from the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71 is:
[0163] Determine the relationship between the number of pixels of the new face avatar obtained in step S71 and the number of characters in the face avatar string received by the big data storage platform:
[0164] like > , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Fill in the back or front of 0 or 1, = - ; After adding, it is a new platform binary face avatar string;
[0165] like = , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string, then the platform binary face avatar string is the new platform binary face avatar string;
[0166] like < , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Delete after or before characters, = - , after deletion, it becomes the new platform binary face avatar string.
[0167] In a preferred embodiment of the present invention, the method for generating a new platform binary face avatar string from the binary face avatar string in step S72 and the number of pixels of the new face avatar obtained in step S71 is:
[0168] Determine the relationship between the number of pixels of the new face avatar obtained in step S71 and the number of characters in the face avatar string received by the big data storage platform:
[0169] like > , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Fill in the back of 0 or 1, = - ; After adding, it is a new platform binary face avatar string;
[0170] like = , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string, then the platform binary face avatar string is the new platform binary face avatar string;
[0171] like < , Indicates the first The number of pixels in a new face portrait; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform; Indicates The number of characters in the platform binary face avatar string is Platform binary face avatar string Delete after characters, = - , after deletion, it becomes the new platform binary face avatar string.
[0172] In a preferred embodiment of the present invention, in step S74, the big data storage platform calculates the received new face avatar with the new platform binary face avatar string to obtain the platform face avatar in the following manner:
[0173] ,
[0174] in, Indicates platform The pixel coordinates of the face image The binary RGB value at ; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0175] =1, 2, 3, ..., , Indicates the first The number of vertical pixels in a new face portrait;
[0176] =1, 2, 3, ..., , Indicates the first The number of horizontal pixels in a new face portrait;
[0177] Indicates the first The pixel coordinates of the face image The binary RGB value here The number of digits is equal to the number of digits of the face image. If it is less than the number of digits of the face image, then the binary RGB value Fill in 0 in front to make it binary RGB value The number of digits is equal to the number of digits of the face image.
[0178] Indicates an operator, XOR or XOR; XOR is preferred;
[0179] In step S72, The first character in the binary face avatar string characters, and make the number of characters equal to the RGB bit number of the new face image received by the big data storage platform.
[0180] In a preferred embodiment of the present invention, the step S75 is further included, converting the platform face avatar obtained in step S74 into a platform face avatar character string;
[0181] Determine whether the face avatar string on the platform is consistent with the face avatar string received by the big data storage platform:
[0182] If the face avatar string on the platform is consistent with the face avatar string received by the big data storage platform, the face avatar on the platform is the face avatar obtained by the visual device;
[0183] If the face avatar string on the platform is inconsistent with the face avatar string received by the big data storage platform, the face avatar on the platform is not the face avatar obtained by the visual device.
[0184] That is ,
[0185] in, Indicates platform Face avatar string; =1, 2, 3, ..., , Indicates the number of new face images received by the big data storage platform;
[0186] Indicates the face image string algorithm, which can be SHA-1, MD5 or SHA128, preferably SHA224. The result of SHA224 calculation is a 56-bit hexadecimal string.
[0187] Indicates platform A portrait of a human face;
[0188] Determine the platform Whether the facial avatar string is consistent with the facial avatar string corresponding to the facial avatar received by the big data storage platform:
[0189] If the platform The face avatar string and the first The facial avatar character string corresponding to the facial avatar is consistent; then the platform The face avatar is a face avatar acquired by a visual device;
[0190] If the platform The face avatar string and the first The facial avatar character string corresponding to the facial avatar is inconsistent; then the platform The face avatar is not a face avatar obtained by a visual device.
[0191] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for processing massive visual big data images, It is characterized in that The following steps are involved: S1, obtain the face image through the visual device; S2, obtaining the number of pixels of the face avatar according to the face avatar obtained in step S1; S3, generating a binary face avatar string according to the face avatar obtained in step S1; the method of generating a binary face avatar string from the obtained face avatar comprises the following steps: S31, converting the face avatar into a face avatar string using a face avatar string algorithm; S32, converting the face avatar character string into a binary face avatar character string; S4, generating a new binary face avatar string according to the number of pixels obtained in step S2; the method for generating a new binary face avatar string according to the number of pixels obtained is: Determine the relationship between the number of pixels obtained in step S2 and the number of characters in the binary face avatar string in step S3: like > , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Fill in the back or front of 0 or 1, = - ; After adding, it is a new binary face avatar string; like = , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face avatar string of the face avatar is the number of characters in the binary face avatar string of the face avatar, then the binary face avatar string is the new binary face avatar string; like < , Indicates The number of pixels in a face portrait. =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of characters in the binary face portrait string of the face portrait, then in the A binary face image string of a face image Delete after or before characters, = - , after deletion, it becomes a new binary face avatar string; S5, calculating the face avatar obtained in step S1 and the new binary face avatar string to obtain a new face avatar; S6, transmitting the facial avatar string and the new facial avatar to the big data storage platform; S7, after the big data storage platform receives the facial avatar character string and the new facial avatar transmitted by the visual device, it stores the facial avatar obtained by the visual device in the big data storage platform.
2. The method for processing massive visual big data images according to claim 1, It is characterized in that The visual device in step S1 is a visual shooting device such as a smart phone with a front camera and / or a rear camera, a tablet with a front camera and / or a rear camera, a wearable watch with a camera, or a door access control with a camera.
3. The method for processing massive visual big data images according to claim 1, It is characterized in that The visual device in step S1 is a visual device having a wireless network connection.
4. The method for processing massive visual big data images according to claim 1, It is characterized in that The wireless network connection is one of WiFi, 5G, 4G, 3G, or any combination of network connections.
5. The method for processing massive visual big data images according to claim 1, It is characterized in that The method for obtaining the number of pixels of the face avatar according to the acquired face avatar in step S2 is: , in, Indicates The number of pixels in a face portrait; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; Indicates The number of vertical pixels in a face portrait; Indicates The number of horizontal pixels in a face portrait.
6. The method for processing massive visual big data images according to claim 1, It is characterized in that In step S5, the face avatar obtained in step S1 is calculated with the new binary face avatar string to obtain a new face avatar as follows: , in, Indicates the new The pixel coordinates of the face image The binary RGB value at ; =1, 2, 3, ..., , Indicates the number of face images acquired by the visual device; =1, 2, 3, ..., , Indicates The number of vertical pixels in a face portrait; =1, 2, 3, ..., , Indicates The number of horizontal pixels in a face portrait; Indicates The pixel coordinates of the face image The binary RGB value at ; Represents an operator; Indicates the new The first character in the binary face character string of the face character characters, and make the number of characters equal to the RGB bit number of the face image.
Citation Information
Patent Citations
Method for safely transmitting massive picture big data shot by mobile phone
CN113099071A
