Remote control visitor system of smart community
By screening the target pairing method and embedding secret messages in combination with the difference expansion reversible information hiding algorithm, the problem of easily detectable secret messages embedded in face images is solved, and the security of the community and the credibility of identity authentication are improved.
Patent Information
- Application Number
- CN202411237074.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-09-05
AI Technical Summary
When the existing difference expansion reversible information hiding algorithm embeds secret messages into face images, it may cause large changes in the gray value of pixels, making the embedded secret messages easily detectable by attackers, posing potential security risks to the community.
By presetting multiple pairing methods and selecting the target pairing method, the pixels in the face image are formed into pixel pairs, and the embedding loss is determined based on the maximum expansion difference and embedding difference of the pixel pairs, combined with neighborhood texture complexity screening Find the least detectable pairing method and use the difference extended reversible information hiding algorithm to embed secret messages.
It increases the difficulty of face image tampering, improves the credibility of visitor identity authentication and the security of community security, and reduces the difficulty for attackers to decipher secret messages.
Smart Images

Figure CN118762432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and more specifically, to a remote control visitor system for a smart community. Background Art
[0002] A smart community refers to a modern community that uses information technology and the Internet of Things to improve community management efficiency, service quality, and convenience for residents through intelligent devices and data interconnection. The smart access control system is an important part of a smart community. It uses technologies such as face recognition to authenticate and control visitors entering and leaving the community, thereby improving the security of the community.
[0003] During the visitor face recognition process, the visitor's face image may be tampered with. The attacker may replace the actual illegal person's face image with the face image of the person registered in the background verification end to pass the community access control verification. In order to prevent the face image from being tampered with, it is necessary to embed a secret message into the face image.
[0004] The patent with announcement number "CN110533569B" and name "Watermark Processing Method Based on Quadratic Difference Extension" discloses a watermark processing method based on quadratic difference extension, which converts the initial watermark to be embedded into a binary sequence, and divides the binary sequence into a first sequence and a second sequence; determines the pixel points with pixel values of 0 and 255 in the initial image as specific pixel points, records the description information of the specific pixel points, and removes the specific pixel points to obtain a first embedded image; embeds the first sequence in the first embedded image to obtain a second embedded image; embeds the second sequence in the second embedded image to obtain a first watermark image; embeds the specific pixel points in the first watermark image according to the description information of the specific pixel points to obtain a target watermark image.
[0005] Although the above method can embed secret messages into face images, the difference expansion reversible information hiding algorithm used may cause the grayscale value of the pixel points where the secret message is embedded to change greatly when embedding the secret message into the face image, making the embedded secret message easy to be detected by attackers. Attackers can use the cracked secret message to forge a face image with the secret message embedded, thereby passing the verification of the community access control and bringing hidden dangers to the community security. Summary of the invention
[0006] In order to solve the problem that secret messages embedded in facial images are easily detected by attackers, which brings hidden dangers to community security, the present invention proposes a remote control visitor system for smart communities. The system includes the following modules: The face image acquisition module collects the face images of visitors; the pairing method screening module presets multiple pairing methods, takes any pairing method as a candidate pairing method, and obtains pixel pairs in the face image according to the candidate pairing method; predicts the maximum expansion difference between two pixels in each pixel pair and the embedding difference between the two pixels and their respective neighboring pixels according to the embedding rule of the difference extension reversible information hiding algorithm; determines the embedding loss degree of the pixel pair according to the maximum expansion difference and the embedding difference, and the embedding loss degree is positively correlated with the maximum expansion difference and the embedding difference; determines the neighborhood texture complexity of the pixel; and predicts the maximum expansion difference and the embedding difference of all pixels according to the embedding rule of the difference extension reversible information hiding algorithm. The preference of the candidate pairing method is determined by the neighborhood texture complexity of the two pixels in the point pair and the embedding loss of all pixel pairs. The preference is negatively correlated with the embedding loss, and positively correlated with the neighborhood texture complexity and the number of pixel pairs. The pairing method with the highest preference is determined as the target pairing method. The secret message embedding module embeds the secret message into the face image according to the pixel pairs corresponding to the target pairing method by using the difference extension reversible information hiding algorithm. The visitor verification module extracts the secret message from the face image for tampering detection. When the face image has not been tampered with, the visitor identity is authenticated based on the face image, and the community access control is controlled based on the verification result.
[0007] The effect is that: the present invention sets a plurality of pairing modes, selects a target pairing mode from a plurality of pairing modes to form pixel pairs in the face image, thereby embedding secret messages, and the pixel pairs corresponding to the target pairing mode are not easily detected by attackers after embedding secret messages, which increases the difficulty of face images being tampered with, improves the credibility of visitor identity authentication, and thus improves the security of community security. At the same time, attackers cannot know the target pairing mode, which increases the difficulty of the secret message in the face image being cracked by attackers, and further increases the difficulty of face images being tampered with. The present invention obtains the embedding loss degree of the pixel pair according to the predicted value of the maximum expansion difference between the two pixels in each pixel pair and the predicted value of the embedding difference between the two pixels and their respective neighboring pixels, and uses the embedding loss degree to reflect the grayscale change of the pixel after the pixel pair is embedded with the secret message, and combines the neighborhood texture complexity of the pixel to obtain the preferred degree of the pairing mode, thereby screening the pairing mode in which the secret message is least likely to be detected by attackers, further enhancing the difficulty of face images being tampered with, and improving the security of community security.
[0008] Preferably, the preset multiple pairing methods include: , , , , , , , As a direction, Each integer in is used as a step size, where , are the length and width of the face image respectively, is a hyperparameter; any direction and any step length are paired together to obtain multiple pairing methods.
[0009] Preferably, the method of obtaining pixel pairs in the face image according to the candidate pairing method includes: taking the direction in the candidate pairing method as the target direction, the step length as the target step length, and forming a pixel pair with the pixel point and the pixel point whose distance from the pixel point in its target direction is the target step length, and stipulating that each pixel point can belong to at most one pixel pair.
[0010] Preferably, the maximum expansion difference satisfies the expression: ;in, Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel The gray value of Represents pixel Gray value of Represents the pixel pair after embedding the secret message Two pixels in between and The maximum grayscale difference between: ; Represents the absolute value symbol.
[0011] The effect is that the maximum expansion difference reflects the change in the grayscale difference between the two pixels in the pixel pair before and after the secret message is embedded. The greater the change, the easier it is to detect the secret message embedded in the pixel pair. The acquisition of the maximum expansion difference provides a basis for the subsequent screening of the pairing method in which the secret message is least likely to be detected by the attacker.
[0012] Preferably, the embedding difference satisfies the expression: ;in, Represents pixel Its neighboring areas The embedding difference between pixels; Indicates the pixel corresponding to the maximum grayscale difference The embedded gray value of Represents pixel In the neighborhood of The embedded gray value corresponding to a pixel under the maximum gray difference between the two pixels of the pixel pair to which it belongs; Represents pixel Gray value of Represents pixel In the neighborhood of The gray value of each pixel; Represents the absolute value symbol.
[0013] The effect is that the present invention reflects the change in the local grayscale relative relationship of the pixel after the secret message is embedded by measuring the change between the grayscale difference between the pixel and the neighboring pixel before the secret message is embedded and the grayscale difference after the secret message is embedded, so as to subsequently measure whether the embedded secret message under the candidate pairing method is easy to be detected according to the change, so that the screened target pairing method is more accurate.
[0014] Preferably, the embedding loss satisfies the expression: ;in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of .
[0015] Preferably, the embedding loss satisfies the expression: ;in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of ; Pixel With pixels The distance between Pixel Its neighboring areas The distance between pixels; Pixel Its neighboring areas The distance between pixels; is the normalization coefficient: ; Represents an exponential function with a natural constant as its base.
[0016] The effect is that when the distance between pixels is smaller, the change in the grayscale difference between pixels after the secret message is embedded is easier to detect, and when the distance between pixels is larger, the change in the grayscale difference between pixels after the secret message is embedded is less likely to be detected. Therefore, the present invention sets the weight of the maximum expansion difference and the embedding difference according to the distance between pixels, so that the obtained embedding loss degree is more accurate.
[0017] Preferably, the determining of the neighborhood texture complexity of a pixel point includes: for each pixel point in the face image, constructing a A window of size is constructed, the gray level co-occurrence matrix of the window is constructed, the contrast of the gray level co-occurrence matrix is obtained, and the result after contrast normalization is used as the neighborhood texture complexity of the pixel point.
[0018] Preferably, the preference satisfies the expression: ;in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; is a hyperparameter.
[0019] The effect is that: the present invention takes into account that the grayscale changes in the complex texture area are hidden in the complex texture and are not easy to be detected, while the grayscale changes in the grayscale flat area are more obvious. Therefore, when calculating the preference of the candidate pairing method, the present invention pays more attention to the embedding loss of the pixel point pairs in the grayscale flat area, and pays less attention to the embedding loss of the pixel point pairs in the complex texture area, so that the obtained preference can better reflect the security of embedding the secret message under the candidate pairing method.
[0020] Preferably, the preference satisfies the expression: ;in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; represents the hyperbolic tangent function; is a hyperparameter.
[0021] The present invention has the following technical effects: The present invention selects a target pairing method in which a secret message is least likely to be detected by an attacker from a plurality of pairing methods, thereby embedding a secret message and increasing the difficulty of tampering with a face image. The attacker cannot learn the target pairing method, which increases the difficulty of the attacker cracking the secret message in the face image, further increases the difficulty of tampering with the face image, improves the credibility of visitor identity authentication, and enhances the security of community security. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein: Figure 1 It is a system block diagram of a remote control visitor system for a smart community according to an embodiment of the present invention; Figure 2 It is a system block diagram of a pairing mode screening module of a remote control visitor system of a smart community according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0024] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0025] The present invention provides a remote control visitor system for a smart community. Figure 1 As shown, a remote control visitor system for a smart community includes modules 101 to 104, which are described in detail below.
[0026] The face image acquisition module 101 is used to acquire the face image of the visitor.
[0027] Specifically, a camera is installed at the community entrance to collect facial images of community visitors. In order to facilitate subsequent processing, the collected facial images are grayscale images.
[0028] The pairing mode screening module 102 is used to screen a target pairing mode and obtain pixel pairs corresponding to the target pairing mode.
[0029] It should be noted that in the process of transmitting the visitor's facial image from the community access control terminal to the background verification terminal, the facial image may be tampered with, and the attacker may replace the actual facial image of the illegal person with the facial image of the person registered at the background verification terminal. In order to prevent the facial image from being tampered with, it is necessary to embed a secret message into the facial image. The difference expansion reversible information hiding algorithm forms pixel pairs in the facial image, and embeds the secret message by enlarging the grayscale difference between the two pixels in the pixel pair. However, if the grayscale difference between the two pixels in the pixel pair is originally large, the grayscale difference after enlargement will be larger, resulting in a large change in the grayscale value of the two pixels in the pixel pair, which makes the embedded secret message easy to be detected by the attacker. Therefore, the present invention presets a plurality of pairing methods, selects a target pairing method from a plurality of pairing methods to form pixel pairs with the pixels in the facial image, so that the secret message can be embedded in the facial image according to the pixel pair corresponding to the target pairing method, so that the secret message is not easy to be detected.
[0030] Specifically, Figure 2 As shown, the pairing mode screening module 102 includes units 1021 to 1024, which are described in detail below.
[0031] The pairing mode preset unit 1021 presets a plurality of pairing modes, takes any pairing mode as a candidate pairing mode, and obtains pixel pairs in the face image according to the candidate pairing mode.
[0032] Specifically, multiple pairing methods are preset, including: , , , , , , , As a direction, Each integer in is used as a step size. , are the length and width of the face image respectively, It is a preset hyperparameter, which can be set by the implementer according to the actual implementation situation, for example . By combining any direction with any step length to form a pairing method, multiple pairing methods can be obtained.
[0033] Any pair of pairing methods is used as a candidate pairing method, and a pixel point pair in the face image is obtained according to the candidate pairing method, wherein the pixel point pair includes two pixel points, specifically: The direction in the candidate pairing method is used as the target direction, the step length is used as the target step length, and a pixel point and a pixel point in the target direction whose distance to the pixel point is the target step length form a pixel point pair, and it is stipulated that each pixel point can belong to at most one pixel point pair.
[0034] The embedding loss acquisition unit 1022 predicts the maximum expansion difference between two pixels in each pixel pair and the embedding difference between the two pixels and their respective neighboring pixels according to the embedding rule of the difference expansion reversible information hiding algorithm, and determines the embedding loss of the pixel pair according to the maximum expansion difference and the embedding difference.
[0035] Specifically, any pixel is used It means that according to the embedding rule of the difference expansion reversible information hiding algorithm, the two pixels in the pixel pair after embedding the secret message are predicted. and The maximum grayscale difference between: ; in, Represents the pixel pair after embedding the secret message Two pixels in between and The maximum grayscale difference between Represents pixel The gray value of Represents pixel Gray value; According to the embedding rule of the difference extension reversible information hiding algorithm, the pixel and The gray value difference after embedding the secret message is ,in For secret information, The value is or , so the pixel and The maximum gray value difference after embedding the secret message is .
[0036] The maximum extended difference between two pixels is obtained based on the maximum grayscale difference between the two pixels in the pixel pair after embedding the secret message: ; in, Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents the pixel pair after embedding the secret message Two pixels in between and The maximum grayscale difference between Represents pixel The gray value of Represents pixel The gray value of the two pixels and The greater the maximum expansion difference between the two pixels, and The greater the change in the maximum grayscale value difference after the secret message is embedded compared to the grayscale value difference before the secret message is embedded, the easier it is to detect the embedded secret message. and The smaller the maximum expansion difference between the two pixels, and The smaller the maximum grayscale value difference after the secret message is embedded is compared with the grayscale value difference before the secret message is embedded, the less likely the embedded secret message is to be detected.
[0037] According to the embedding rules of the difference expansion reversible information hiding algorithm, the pixel pairs are predicted Two pixels in between and The pixel corresponding to the maximum grayscale difference between and Embedded grayscale value of: ; ; in, Indicates the pixel corresponding to the maximum grayscale difference The embedded gray value of Indicates the pixel corresponding to the maximum grayscale difference The embedded gray value of Represents the pixel pair after embedding the secret message Two pixels in between and The maximum grayscale difference between Represents pixel The gray value of Represents pixel Gray value of Indicates the rounding down symbol. It should be noted that the pixel point and The embedded gray value of is determined according to the well-known embedding rule of the difference expansion reversible information hiding algorithm, and the specific principle will not be described in detail here.
[0038] Similarly, the embedded grayscale values of the two pixels corresponding to the maximum grayscale difference between the two pixels in all pixel pairs in the face image are obtained.
[0039] According to the embedded gray value of each pixel corresponding to the maximum gray difference, the embedding difference between the pixel and its neighboring pixels is predicted: ; in, Represents pixel Its neighboring areas The embedding difference between pixels; Indicates the pixel corresponding to the maximum grayscale difference The embedded gray value of Represents pixel In the neighborhood of The embedded gray value corresponding to a pixel under the maximum gray difference between the two pixels of the pixel pair to which it belongs; Represents pixel Gray value of Represents pixel In the neighborhood of The gray value of each pixel; Indicates the absolute value symbol; Represents the pixel after embedding the secret message Its neighboring areas The possible grayscale difference between pixels, Represents the pixel before embedding the secret message Its neighboring areas The grayscale difference between pixels is Reflects the pixels before and after the embedded secret message Its neighboring areas The change of grayscale difference between pixels is called embedding difference in this invention. The larger the embedding difference is, the smaller the pixel before and after the secret message is embedded. Its neighboring areas The greater the grayscale difference between pixels, the easier it is to detect the embedded secret message. When the embedding difference is smaller, it means that the pixels before and after the secret message are embedded are different. Its neighboring areas The smaller the grayscale difference between pixels, the less likely the embedded secret message will be detected.
[0040] Similarly, get pixel points The embedding difference between each pixel in its neighborhood.
[0041] In one embodiment, the embedding loss of the pixel pair is determined according to the maximum expansion difference between two pixels in the pixel pair and the embedding difference between the two pixels and each pixel in their neighborhood: ; in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of , in the present invention, the neighborhood size is 24 neighborhoods. Since some pixels are at the boundary of the face image, the number of pixels in their 24 neighborhoods may be less than 24. Therefore, when calculating the embedding loss of the pixel pair, the present invention calculates it according to the number of pixels actually contained in the 24 neighborhoods of each pixel. In other embodiments, the implementer can set the neighborhood size according to the actual implementation situation.
[0042] Represents pixel The average embedding difference of all pixels in its neighborhood reflects the pixel after embedding the secret message. The change of the relative relationship of local grayscale, Represents pixel The average embedding difference of all pixels in its neighborhood reflects the pixel after embedding the secret message. The change of the relative relationship of local grayscale. and The maximum expansion difference between The average embedding difference of all pixels in its neighborhood , Pixels The average embedding difference of all pixels in its neighborhood When the value is larger, the relative grayscale relationship between pixels changes greatly, the embedded secret message is easier to detect, and the embedding loss is greater. Conversely, the embedding loss is smaller.
[0043] In another embodiment, the embedding loss of the pixel pair is determined according to the maximum expansion difference between two pixels in the pixel pair and the embedding difference between the two pixels and each pixel in their neighborhood: ; ; in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of the present invention is 24 neighborhoods. Since some pixels are at the boundary of the face image, the number of pixels in its 24 neighborhoods may be less than 24. Therefore, when calculating the embedding loss of the pixel pair, the present invention calculates it according to the number of pixels actually contained in the 24 neighborhoods of each pixel. In other embodiments, the implementer can set the neighborhood size according to the actual implementation situation; Represents pixel With pixels The distance between Represents pixel Its neighboring areas The distance between pixels; Represents pixel Its neighboring areas The distance between pixels; Represents the normalization coefficient, which is used to , , Normalize them separately; Represents an exponential function with a natural constant as its base.
[0044] Indicates the maximum expansion difference Represents the pixel pair after embedding the secret message Two pixels in between and The weight of the maximum grayscale difference between With pixels The smaller the distance between pixels, the smaller the pixel and pixels The easier it is to detect the change in grayscale difference, the more weight The larger the difference in maximum expansion The more attention you pay, the less likely it is that a pixel With pixels The larger the distance between pixels, the more pixels will be embedded with the secret message. and pixels The less noticeable the change in grayscale difference is, the more weight The smaller the difference, the greater the maximum expansion The less attention you pay; Represents pixel Its neighboring areas The weight of the embedding difference between pixels, when the pixel Its neighboring areas The smaller the distance between pixels, the smaller the distance between pixels after embedding the secret message. Its neighboring areas The easier it is to detect the change in grayscale difference between pixels, the more weight The larger the embedding difference The more attention you pay, the more Represents pixel Its neighboring areas The weight of the embedding difference between pixels, when the pixel Its neighboring areas The smaller the distance between pixels, the smaller the distance between pixels after embedding the secret message. Its neighboring areas The easier it is to detect the change in grayscale difference between pixels, the more weight The larger the embedding difference The more attention.
[0045] At this point, the embedding loss of the pixel pair is obtained.
[0046] The neighborhood texture complexity obtaining unit 1023 determines the neighborhood texture complexity of the pixel point.
[0047] In one embodiment, for each pixel in the face image, the variance of the grayscale values of all pixels in the neighborhood of the pixel is obtained, and the variance is normalized as the neighborhood texture complexity of the pixel. It should be noted that in this embodiment, the variance is normalized using a linear normalization method.
[0048] In another embodiment, for each pixel in the face image, a pixel is taken as the center to construct A window of size is constructed, a gray level co-occurrence matrix of the window is constructed, the contrast of the gray level co-occurrence matrix is obtained, and the result after contrast normalization is used as the neighborhood texture complexity of the pixel point. It should be noted that the calculation of the contrast of the gray level co-occurrence matrix is a well-known technology and will not be described in detail here. In this embodiment, a linear normalization method is used to normalize the contrast.
[0049] The target pairing method acquisition unit 1024 determines the preference of the candidate pairing methods according to the neighborhood texture complexity of the two pixels in all pixel pairs and the embedding loss of all pixel pairs, and determines the pairing method with the highest preference as the target pairing method.
[0050] It should be noted that the human eye is more sensitive to grayscale changes in smooth areas, so grayscale changes in smooth areas are easily detected, while grayscale changes in areas with complex textures are hidden in complex textures, and the human eye is not sensitive to grayscale changes in areas with complex textures, so grayscale changes in areas with complex textures are not easily detected. Therefore, the present invention determines the preference of candidate pairing methods based on the embedding loss of pixel pairs and the neighborhood texture complexity of the pixels in the pixel pairs, so as to select a pairing method in which the changes in the face image are least likely to be detected after the secret message is embedded.
[0051] In one embodiment, the preference of the candidate pairing methods is determined according to the neighborhood texture complexity of the two pixels in all pixel pairs and the embedding loss of all pixel pairs: ; in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; Represents a hyperparameter used to prevent the weighted sum of the embedding losses of all pixel pairs Too large, resulting in Always close to 0, The experience value is 10, which can be set by the implementer according to the actual implementation situation; , are the length and width of the face image respectively.
[0052] When the number of pixel pairs corresponding to the candidate pairing method increases, The larger the value is, the more locations in the face image can be embedded with secret messages, and more locations in the face image can be prevented from being tampered with. The protection of the face image is more comprehensive, and the candidate pairing method is more preferred.
[0053] Will As the The embedding loss of pixel pairs The weight of The greater the neighborhood texture complexity of the first pixel and the neighborhood texture complexity of the second pixel in a pixel pair, The larger the value, the more The change of the first pixel and the change of the second pixel in the pixel pair are hidden in the complex texture. The less likely the secret message is to be detected by the attacker, the smaller the weight is, and the less attention is paid to the first pixel when calculating the preference of the candidate pairing method. The embedding loss of pixel pairs ; When the The smaller the neighborhood texture complexity of the first pixel and the neighborhood texture complexity of the second pixel in a pixel pair, The smaller, the The first pixel and the second pixel of the pixel pair are located in the smooth texture area. The changes of the first pixel and the second pixel in the pixel pair are more obvious in the flat area. The easier it is for the attacker to detect the secret message, the greater the weight is. When calculating the preference of the candidate pairing method, more attention is paid to the first pixel. The embedding loss of pixel pairs Therefore, when the embedding loss of pixel pairs in the smooth texture area is greater, the preference of the candidate pairing method is smaller.
[0054] In another embodiment, the preference of the candidate pairing methods is determined according to the neighborhood texture complexity of two pixel points in all pixel pairs and the embedding loss of all pixel pairs: ; in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; represents the hyperbolic tangent function, which is used to normalize the embedding loss; Represents a hyperparameter used to prevent embedding loss Too large, resulting in Always close to 1, The experience value is 10, which can be set by the implementer according to the actual implementation situation; Represents the maximum value function, which is used to prevent , resulting in the denominator of the exponent being 0; , are the length and width of the face image respectively.
[0055] When the number of pixel pairs corresponding to the candidate pairing method increases, The larger the value is, the more locations in the face image can be embedded with secret messages, and more locations in the face image can be prevented from being tampered with. The protection of the face image is more comprehensive, and the candidate pairing method is more preferred.
[0056] When The greater the neighborhood texture complexity of the first pixel and the neighborhood texture complexity of the second pixel in the pixel pair, the greater the neighborhood texture complexity of the first pixel after embedding the secret message. The change of the first pixel in the pixel pair and the change of the second pixel are hidden in the complex texture, and the secret message is less likely to be detected by the attacker. As The exponent of To reduce, because Between [0,1], so that the index is a number greater than or equal to 1, when The larger the value, the larger the index. The greater the reduction, the less attention is paid to the first The embedding loss of pixel pairs On the contrary, when The smaller, the The first pixel and the second pixel of the pixel pair are located in the smooth texture area. The change of the first pixel and the change of the second pixel in the pixel pair are more obvious in the flat area, and the secret message is easier to be detected by the attacker. The smaller it is and the closer it is to 1, the The smaller the reduction, the more attention is paid to the first The embedding loss of pixel pairs Therefore, when the embedding loss of pixel pairs in the smooth texture area is greater, the preference of the candidate pairing method is smaller.
[0057] The pairing method with the highest preference is determined as the target pairing method, and the pixel point pairs corresponding to the target pairing method are obtained.
[0058] The secret message embedding module 103 is used to embed the secret message into the face image according to the pixel points corresponding to the target pairing mode by using the difference extension reversible information hiding algorithm.
[0059] Specifically, the secret message is agreed upon in advance by the community access control terminal and the background verification terminal, and the secret message is in binary form, for example: 010011101011010111000010. The secret message is stored in both the community access control terminal and the background verification terminal, and is updated regularly.
[0060] The secret message is embedded into each pixel pair of the face image using the difference extension reversible information hiding algorithm, and the content embedded in each pixel pair is a bit in the secret message.
[0061] It should be noted that using a difference expansion reversible information hiding algorithm to embed a secret message into each pixel pair of a face image is a well-known technique and will not be described in detail here.
[0062] The visitor verification module 104 is used to extract secret information from the face image for anti-tampering verification. After the anti-tampering verification is passed, the visitor identity verification is performed based on the face image, and the community access control is controlled based on the identity verification result.
[0063] Specifically, the community access control terminal encrypts the target pairing method, and transmits the face image with the secret message embedded and the encryption result of the target pairing method to the background verification terminal. The background verification terminal decrypts the encryption result of the target pairing method to obtain the target pairing method, obtains the pixel point pairs in the face image according to the target pairing method, and extracts the secret message embedded in the face image using the difference extension reversible information hiding algorithm based on the pixel point pairs. It should be noted that the encryption algorithm used in the present invention is the elliptic curve cryptography (ECC). In other embodiments, the implementer can set the encryption algorithm according to the actual implementation situation.
[0064] When the secret message embedded in the face image is different from the secret message saved by the background verification terminal, the face image has been tampered with. At this time, the face image is no longer credible. At this time, face verification is not performed, and the community access control is closed to prevent illegal entry.
[0065] When the secret message embedded in the face image is the same as the secret message saved in the background verification terminal, the face image has not been tampered with. At this time, the face image is credible, and the visitor identity is authenticated based on the face image: the face image with the embedded secret message is restored using the difference extension reversible information hiding algorithm to obtain the face image without the secret message, and the visitor identity is identified based on the face image without the secret message. When the visitor is a registered person in the background verification terminal, the community access control is controlled to open; when the visitor is not a registered person in the background verification terminal, the community security personnel will inquire about the visitor's identity and assist the visitor in registration.
[0066] It should be noted that using the difference extension reversible information hiding algorithm to extract the secret message embedded in the face image and restore the face image with the secret message embedded are both well-known technologies and will not be described in detail here.
[0067] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0068] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A remote control visitor system for a smart community, characterized in that: Includes the following modules: Face image acquisition module, which collects visitors' face images; A pairing method screening module is provided, wherein a plurality of pairing methods are preset, and any pairing method is used as a candidate pairing method, and pixel pairs in a face image are obtained according to the candidate pairing methods; the maximum expansion difference between two pixels in each pixel pair and the embedding difference between the two pixels and their respective neighboring pixels are predicted according to the embedding rule of the difference extension reversible information hiding algorithm; the embedding loss degree of the pixel pair is determined according to the maximum expansion difference and the embedding difference, and the embedding loss degree is positively correlated with the maximum expansion difference and the embedding difference; the neighborhood texture complexity of the pixel point is determined; the preference degree of the candidate pairing method is determined according to the neighborhood texture complexity of the two pixels in all pixel pairs and the embedding loss degree of all pixel pairs, and the preference degree is negatively correlated with the embedding loss degree and positively correlated with the neighborhood texture complexity and the number of pixel pairs; the pairing method with the greatest preference degree is determined as the target pairing method; The secret message embedding module uses the difference extension reversible information hiding algorithm to embed the secret message into the face image according to the pixel points corresponding to the target pairing method; The visitor verification module extracts secret messages from facial images for tampering detection. When the facial image has not been tampered with, the visitor's identity is verified based on the facial image, and the community access control is controlled based on the verification result.
2. According to claim 1, a remote control visitor system for a smart community is characterized in that: The preset multiple pairing methods include: Will , , , , , , , As a direction, Each integer in is used as a step size, where , are the length and width of the face image respectively, is a hyperparameter; any direction and any step length are paired together to obtain multiple pairing methods.
3. A remote control visitor system for a smart community according to claim 2, characterized in that: The step of obtaining pixel pairs in the face image according to the candidate pairing method includes: The direction in the candidate pairing method is used as the target direction, the step length is used as the target step length, and a pixel point and a pixel point in the target direction whose distance to the pixel point is the target step length form a pixel point pair, and it is stipulated that each pixel point can belong to at most one pixel point pair.
4. According to claim 1, a remote control visitor system for a smart community is characterized in that: The maximum expansion difference satisfies the expression: ; in, Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel The gray value of Represents pixel Gray value of Represents the pixel pair after embedding the secret message Two pixels in between and The maximum grayscale difference between: ; Represents the absolute value symbol.
5. A remote control visitor system for a smart community according to claim 4, characterized in that: The embedding difference satisfies the expression: ; in, Represents pixel Its neighboring areas The embedding difference between pixels; Indicates the pixel corresponding to the maximum grayscale difference The embedded gray value of Represents pixel In the neighborhood of The embedded gray value corresponding to a pixel under the maximum gray difference between the two pixels of the pixel pair to which it belongs; Represents pixel Gray value of Represents pixel In the neighborhood of The gray value of each pixel; Represents the absolute value symbol.
6. The remote control visitor system for a smart community according to claim 1, characterized in that: The embedding loss satisfies the expression: ; in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of .
7. The remote control visitor system for a smart community according to claim 1, characterized in that: The embedding loss satisfies the expression: ; in, Represents pixel pairs The embedding loss of Represents pixel pairs Two pixels in between and The maximum expansion difference between Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel Its neighboring areas The embedding difference between pixels; Represents pixel The number of pixels contained in the neighborhood of Represents pixel The number of pixels contained in the neighborhood of ; Pixel With pixels The distance between Pixel Its neighboring areas The distance between pixels; Pixel Its neighboring areas The distance between pixels; is the normalization coefficient: ; Represents an exponential function with a natural constant as its base.
8. The remote control visitor system for a smart community according to claim 1, characterized in that: Determining the neighborhood texture complexity of a pixel point includes: For each pixel in the face image, take the pixel as the center and construct A window of size is constructed, the gray level co-occurrence matrix of the window is constructed, the contrast of the gray level co-occurrence matrix is obtained, and the result after contrast normalization is used as the neighborhood texture complexity of the pixel point.
9. A remote control visitor system for a smart community according to any one of claims 1-8, characterized in that: The preference satisfies the expression: ; in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; is a hyperparameter.
10. A remote control visitor system for a smart community according to any one of claims 1-8, characterized in that: The preference satisfies the expression: ; in, Indicates the preference of candidate pairing methods; Indicates The neighborhood texture complexity of the first pixel in a pair of pixels; Indicates The neighborhood texture complexity of the second pixel in a pair of pixels; Represents the number of pixel pairs in the face image; Indicates The embedding loss of pixel pairs; represents an exponential function with a natural constant as base; represents the hyperbolic tangent function; is a hyperparameter.
Citation Information
Patent Citations
A reversible information hiding method based on self-adaptive expansion of a two-dimensional prediction error histogram
CN109949199A
Watermark processing method based on secondary difference expansion
CN110533569A
Reversible image watermarking method based on secondary prediction error and bidirectional embedding
CN118115345A
Pattern generation apparatus, information embedding device, information detector, method, medium, and program
JP2017073696A
Reversible data hiding
US20100098287A1
