Image authentication method, device, storage medium and computing device

By segmenting and sub-image processing of the image to be authenticated, and extracting device hardware features for authentication, the problem of device information forgery in image authentication is solved, and the credibility of the data source and information security are improved.

CN115102735BActive Publication Date: 2024-10-18ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210675054.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-10-18
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

Existing technology cannot effectively prevent device information from being forged in image authentication, resulting in a reduction in the credibility of data sources, especially in application scenarios such as blockchain that require data authenticity and source credibility.

Method used

By segmenting the image to be authenticated, extracting some pixels as sub-images, and using the effective pixels in the sub-image to describe the device hardware characteristics for authentication, it avoids leaking the effective pixels used for source device authentication during business processing, thereby improving the trustworthiness verification of data sources. reliability.

Benefits of technology

It improves the reliability of image source device authentication, increases the difficulty of forging device information, protects the information security of data collection devices, and ensures the authenticity and credibility of data sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102735B_ABST
    Figure CN115102735B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method and device for image authentication. During the image authentication process, the image to be authenticated is segmented to obtain a sub-image that holds some pixels of the image to be authenticated as valid pixels. The valid pixels in the sub-image describe some hardware features of the source device of the image to be authenticated. The sub-image is used to authenticate the source device, and the leakage of valid pixels used for source device authentication in related business processing can be avoided as much as possible. Thus, the image information used for device authentication is increased through the image for business processing, and the reliability of the trusted verification of the data source is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of computer technology, and in particular, to a method and apparatus for image security authentication. Background Art

[0002] Image authentication is an image processing method that detects whether an image has been maliciously tampered with, authenticates the integrity of the image data, and can tolerate the impact of compression or noise on the quality of the original image. Image authentication can include two aspects: authentication of image content; authentication of image source. Among them, authentication of image content is used to ensure the credibility of the acquisition object, and can be applied to various fields, such as face payment and face access control based on facial recognition, fingerprint punching and fingerprint unlocking based on fingerprint recognition, etc. Authentication of the image source ensures the credibility of the image acquisition process. For example, authentication of the device that takes the image can be used to authenticate the true and legal source of the image in situations such as investigation and evidence collection, copyright confirmation, etc. However, if the information of the device used to take the image is forged, it may still cause data pollution risks, resulting in reduced credibility and value of the information. Summary of the invention

[0003] One or more embodiments of this specification describe a method and device for image authentication to solve one or more problems mentioned in the background technology.

[0004] According to a first aspect, a method for image authentication is provided, comprising: obtaining an image to be authenticated of a photographing device; obtaining a first sub-image based on segmentation of each pixel of the image to be authenticated; extracting device fingerprint information corresponding to the image to be authenticated through the first sub-image; comparing the device fingerprint information with fingerprint authentication information for the photographing device, thereby authenticating the device fingerprint information to determine whether the image to be authenticated comes from the photographing device.

[0005] In one embodiment, the first sub-image is an image with a resolution consistent with that of the image to be authenticated, and is obtained in the following manner: determining a plurality of original pixels from the image to be authenticated as valid pixels; obtaining pixel values ​​corresponding to the valid pixels; and interpolating pixels other than the valid pixels through the pixel values ​​to obtain an interpolated image as the first sub-image.

[0006] In one embodiment, extracting the device fingerprint information corresponding to the image to be authenticated through the first sub-image includes: denoising the first sub-image using a denoiser to obtain a first standard image; determining a noise image of the first sub-image based on a difference between the first sub-image and the first standard image; and determining the device fingerprint information corresponding to the image to be authenticated based on processing of the noise image of the first sub-image.

[0007] In one embodiment, the fingerprint authentication information is determined in the following manner: a plurality of sample images captured by the capturing device are acquired, and each first sample sub-image is segmented in a manner consistent with the first sub-image; each first sample sub-image is denoised using a denoiser to obtain each standard sample image; each sample noise image is determined based on a difference image between each first sample sub-image and a corresponding standard sample image; and the fingerprint authentication information is determined based on a maximum likelihood estimate of each sample noise image.

[0008] In one embodiment, the fingerprint authentication information is the ratio of the following two items: a first superposition result of superimposing each sample noise image with the corresponding standard sample image according to a predetermined fusion method, and a second superposition result of superimposing each standard sample image with its own fusion result according to a predetermined fusion method.

[0009] In one embodiment, comparing the device fingerprint information with the fingerprint authentication information for the shooting device includes: detecting the tensor similarity between the device fingerprint information and the fingerprint authentication information; when the tensor similarity is greater than a predetermined threshold, determining that the authentication result is authentication passed; otherwise, determining that the authentication result is authentication failed.

[0010] In one embodiment, the second sub-image is obtained based on the segmentation of each pixel of the image to be authenticated; the method further includes: based on the authentication result, using the second sub-image to perform corresponding business processing.

[0011] In one embodiment, before using the second sub-image to perform corresponding business processing based on the authentication result, the method also includes: extracting semantic features of the first sub-image and the second sub-image respectively; detecting the consistency of the semantic features of the first sub-image and the second sub-image, so as to determine whether the first sub-image and the second sub-image are segmented from the same image.

[0012] In one embodiment, the effective pixels of the second sub-image and the first sub-image have no intersection, and the effective pixels of a single sub-image are pixels evenly distributed in the image to be authenticated, and the effective pixels are original pixels obtained from the image to be authenticated.

[0013] In one embodiment, the uniform distribution includes at least one of: distribution at equal intervals in rows or columns and distribution at equal intervals in pixels.

[0014] In one embodiment, based on the authentication result, using the second sub-image for corresponding business processing includes: using the second sub-image for publishing, uploading to a server, uploading to the cloud, submitting to a blockchain network, and returning it to a source device.

[0015] According to another aspect, there is provided an apparatus for image authentication, comprising:

[0016] An acquisition unit, configured to acquire an image to be authenticated of a photographing device;

[0017] a segmentation unit configured to obtain a first sub-image based on segmentation of each pixel of the image to be authenticated;

[0018] an extraction unit, configured to extract device fingerprint information corresponding to the image to be authenticated through the first sub-image;

[0019] The authentication unit is configured to compare the device fingerprint information with the fingerprint authentication information for the shooting device, thereby authenticating the device fingerprint information to determine whether the image to be authenticated comes from the shooting device.

[0020] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed in a computer, the computer is caused to execute the method of the first aspect.

[0021] According to a fourth aspect, a computing device is provided, comprising a memory and a processor, wherein an executable code is stored in the memory, and when the processor executes the executable code, the method of the first aspect is implemented.

[0022] Through the method and device provided in the embodiments of this specification, during the image authentication process, the image to be authenticated is segmented to obtain a sub-image that holds some pixels of the image to be authenticated as valid pixels. The valid pixels in the sub-image describe some hardware features of the source device of the image to be authenticated. Among them, the sub-image is used to authenticate the source device, and the leakage of valid pixels used for source device authentication in related business processing can be avoided as much as possible. Thereby, the image information used for device authentication is increased through the image for business processing, and the reliability of the trusted verification of the data source is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0024] Figure 1 A schematic diagram showing a specific implementation scenario of the application background of this specification;

[0025] Figure 2 A schematic diagram of an implementation architecture of the technical concept of this specification is shown;

[0026] Figure 3 A flow chart of an image authentication method according to an embodiment is shown;

[0027] Figure 4a , Figure 4b , Figure 4c The following are schematic diagrams of segmentation methods for segmenting an image with authentication according to specific examples;

[0028] Figure 5 A schematic block diagram of an image authentication device according to an embodiment is shown. DETAILED DESCRIPTION

[0029] The technical solution provided in this specification is described below in conjunction with the accompanying drawings.

[0030] First, the background proposed in this specification is described using the blockchain data storage scenario.

[0031] As those skilled in the art know, a blockchain network is a distributed storage and recording system that contains multiple nodes that can communicate with each other and trade data. Blockchain technology (BT) is a new distributed infrastructure and computing paradigm that uses a block chain data structure to verify and store data, a distributed node consensus algorithm to generate and update data, cryptography to ensure the security of data transmission and access, and smart contracts composed of automated script codes to program and operate data. The distributed ledger connected by blockchain technology allows both parties to effectively record transactions and can permanently check transactions. Due to the characteristics of blockchain technology such as being tamper-proof and decentralized, its application in various fields is becoming more and more extensive.

[0032] Based on its own characteristics, blockchain is usually committed to solving trust-related application problems. The trust problem mentioned here not only includes the authenticity of the data on the chain, which cannot be changed, but also involves the authenticity and credibility of the source of the data on the chain. For example, the trust level problem involving the connection between off-chain and on-chain data, such as commodity traceability, physical supervision, investigation and evidence collection, is an important scenario for the credibility of the data source. For example, for the description of people, objects, and places off the chain, data is usually collected based on offline IoT devices, and the data collected by video and photo shooting, audio collection, and at least one sensor such as RFID, Bluetooth, UWB are uploaded to the chain for comprehensive portraiture, forming a proof of the real existence of the abstract model on the chain. In different application scenarios, the abstract model on the chain has certain financial attributes (such as pledged goods), legal attributes (such as factual evidence), market value attributes (such as commodities and raw materials), etc. These on-chain data combined with some specific business models can generate relevant business value.

[0033] It is understandable that in the daily business process, influenced by commercial interests, employee negativity and other factors, it is possible to forge the production and transportation process data of real goods, fabricate investigation evidence data, etc. Once these forged data are uploaded to the chain, they will pollute the data on the chain and affect the credibility and value of the information on the chain.

[0034] Generally, data forgers may decide whether to forge data objects and environments, data collection contexts, and data collection devices based on the relationship between the cost of forgery and the benefits of forged data. Data forgers may come from outside the system (such as illegal users of the blockchain) or from inside the system (such as legitimate users of the blockchain). The former can forge data by stealing devices and attacking devices and software without perception, while the latter can forge data by directly attacking devices and software, forging collection objects and collection contexts. In either case, when the cost of forging data is much higher than the benefits of forgery, it is more likely that the forger will choose to give up.

[0035] Data collection is usually a process of receiving analog signals through sensors, decoding them into digital signals, and encoding digital signals into a specific data format. In the process of data collection, how to ensure the authenticity and credibility of the collected objects and the collection process is an interesting and practical problem. The value of trusted data collection technology lies in preventing most data forgeries from happening by increasing the cost of forgery, and ensuring the correct correspondence between the on-chain information and the physical world off-chain. Solving the source credibility problem of on-chain physical world information through artificial intelligence (AI) and Internet of Things (IoT) technologies is an important solution.

[0036] Figure 1 A specific implementation scenario of reliably collecting data through a smart terminal is shown. Figure 1As shown in the figure, it is an investigation and evidence collection scenario. The user executes the evidence collection process through the terminal application user or applet on the smart terminal. During the execution of the evidence collection process, the user can collect relevant evidence data through the smart terminal (such as a smart phone) itself, or other smart devices associated with the smart terminal, such as sports cameras, voice recorders, edge computing hardware boxes, etc., and submit it to the blockchain network for evidence storage. The terminal application user or applet that executes the evidence collection process on the smart terminal can get feedback on the completion of evidence collection, such as an evidence code. When the corresponding evidence needs to be used, the relevant evidence data can be queried from the blockchain based on the evidence code.

[0037] In order to ensure the reliability of the data source, the personalized data of the data source device can be extracted from the collected data to construct a relevant portrait for verifying the data source device. This manual mainly discusses the image authentication process. The image acquisition device is usually a camera. Therefore, based on the individual differences in the camera sensor processing, the hardware fingerprint can be extracted to authenticate and distinguish different devices. The shooting principle of the camera is usually: the image is focused on the imaging element CCD / CMOS through the optical system, and the photoelectric signal on each pixel is converted into a digital signal through the A / D converter, and then processed into a digital image by DSP and stored in the storage medium. The light passes through the lens and CCD for color filtering and photosensitization (photoelectric conversion), and the photographed object is "decomposed" into pixels one by one according to a certain arrangement. These pixels are transferred to the "analog-to-digital converter" in the form of analog image signals, converted into digital signals, and transmitted to the image processor to be processed into a real image. The image noise collected by the camera is usually related to the brightness. The higher the brightness, the lower the noise. When a single camera is processed, the optical elements will have one or another difference, so a group of optical elements have personalized characteristics. These personalized characteristics can be reflected in the captured image.

[0038] According to some papers (such as Chen M, Fridrich J, Goljan M, et al. Determining image origin and integrity using sensor noise [J]. IEEE Transactions on information forensics and security, 2008, 3 (1): 74-90, etc.), for a single camera, it is assumed that any image taken by it is denoted as I i , and the image I i It can be expressed as: i =I i0 +I i0 *k+e. Among them, I i0is an ideal noise-free image, k is the camera hardware fingerprint (PRNU), which describes the noise generated by the hardware characteristics of the camera, which may accompany the camera for life, and e is other noise, such as dust. i0 and noise k, e can be described by the pixel value at each pixel, and I i0 *k represents the fusion of the noise-free image and the camera hardware fingerprint in an ideal state. The fusion method may include but is not limited to: at least one of: pixel multiplication, processing through a convolutional neural network, etc.

[0039] Assume that a relatively ideal denoised image can be obtained through a denoiser (such as KONoise, CleanerZoomer, Waifu2x-caffe, etc.), and this denoised image is recorded as I d0 , the difference before and after denoising can be obtained as the extracted noise, such as: i =I i -I d0 . r i Contains the camera hardware fingerprint noise and other noise, that is, I i *k+e'. e' includes all other noises. According to previous related papers, e' is generally Gaussian noise with a mean of 0. Therefore, the camera fingerprint k in raw format can be calculated based on the maximum likelihood estimation of n images collected by a single camera as follows:

[0040]

[0041] Here, (r i *I i )、(I i ) 2 They can represent image I i Fusion with noise, image I i Fusion with itself. n is the number of images used to determine the camera fingerprint, such as 20, 50, etc.

[0042] In this way, for an image to be authenticated, the difference method r i =I i -I d0 The corresponding source device noise is extracted and compared with the camera fingerprint k for consistency, so that if they are consistent, it is determined that the image to be authenticated comes from the shooting device corresponding to the camera fingerprint k.

[0043] However, under this method, if the counterfeiter uses several images posted by users on the cloud, social platforms, etc., he can extract device fingerprint information from them, and then add the extracted device fingerprint information to other images processed by the denoiser to forge the corresponding device to provide relevant images.

[0044] To this end, this specification provides a new technical concept for using some pixels in the image to be authenticated for authentication, and the remaining pixels are made public according to business processing requirements, so that counterfeiters cannot obtain valid authentication information through the public images, thereby increasing the difficulty of counterfeiting and protecting the information security of data acquisition equipment. It is worth noting that the technical concept of this specification is based on the application scenario of blockchain on-chain data trust, but it does not exclude that it can be extended to various information credibility authentication scenarios that require verification of image source device authentication, and is not limited to the authentication of on-chain data.

[0045] Figure 2 A specific implementation framework of the technical concept of this specification is shown. This method can be called a spatial domain segmentation method. That is, the image is segmented spatially. Figure 2 In the process shown, the device fingerprint registration can be performed first. That is, first obtain several images taken by the device to be registered as sample images for registration, and perform consistent spatial domain segmentation on each sample image. After segmenting a single sample image, at least one sub-image can be obtained, such as an image composed of pixels in odd columns or an image composed of pixels in even columns. Then, each of the sample images is segmented in the same way to obtain a sub-image (such as an image composed of pixels in odd columns), and the corresponding device fingerprint authentication information (such as k) is determined according to the aforementioned method. In the case where it is necessary to authenticate whether a certain image comes from the shooting device, a sub-image can be segmented from the image to be authenticated in the same way, and the device fingerprint information can be extracted from the segmented sub-image (such as an image composed of pixels in odd columns), so as to compare it with the fingerprint authentication information extracted in advance to see if it is consistent. And in the case of consistency, it is determined that the authentication is passed, and the image to be authenticated comes from the shooting device corresponding to the fingerprint authentication information.

[0046] On the other hand, when it is necessary to disclose the device image, the sub-image generated by other pixels other than the sub-image used for authentication can be disclosed. In this way, since the device fingerprint information used for source device authentication is not the device fingerprint information obtained through all pixels, if the pixels used for source device authentication are not fully or mostly disclosed, the public at least cannot fully know the pixels used for source device authentication and their noise. Therefore, the cost of forging fingerprint information can be increased, the information security of data acquisition equipment can be protected, and the reliability of data source authentication can be improved.

[0047] Figure 3The image authentication process according to an embodiment of the present specification is shown. The image authentication process is applicable to various scenarios such as investigation and evidence collection, copyright confirmation, etc., which require authentication of the source of the image. The execution subject of the process can be any computer, device, server, etc. with a certain computing power. The execution subject can authenticate the shooting device of the image to be authenticated to determine whether the image to be authenticated comes from a certain shooting device, that is, to perform source authentication on the image to be authenticated. Among them, the shooting device can be a smart watch, a smart phone, a smart bracelet, a camera, a laptop computer, a camera, a driving recorder, a reversing image, and other smart terminals, auxiliary shooting devices, monitoring equipment, or other various devices with image shooting functions.

[0048] like Figure 3 The image authentication process may include the following steps: step 301, obtaining an image to be authenticated about a shooting device; step 302, obtaining a first sub-image based on segmentation of each pixel of the image to be authenticated; step 303, extracting device fingerprint information corresponding to the image to be authenticated through the first sub-image; step 304, comparing the device fingerprint information with the fingerprint authentication information pre-stored for the shooting device, thereby authenticating the device fingerprint information to determine whether the image to be authenticated comes from the shooting device.

[0049] First, in step 301, an image to be authenticated of a photographing device is obtained.

[0050] It can be understood that the image to be authenticated here is any image that needs to authenticate the source device (i.e., the shooting device). The authentication of the image is essentially the authentication of the device. Therefore, in the case of image authentication, it is necessary to determine the authentication source device, i.e., a certain shooting device. The shooting device here can be a shooting device specified by an identity code, such as a user's smartphone, or a device described by other images, for example, to authenticate whether the current image to be authenticated comes from the acquisition device of several other images, etc.

[0051] Next, through step 302, based on pixel-by-pixel segmentation of the image to be authenticated, a first sub-image is obtained.

[0052] Here, the first sub-image can be used to describe the image to be authenticated by using some pixels in the image to be authenticated. The some pixels can be pixels selected from the image to be authenticated in a predetermined manner, for example, pixels in odd rows, pixels in even columns, pixels in the first predetermined row, pixels determined according to a predetermined column range, etc. The pixels selected from the image to be authenticated carry the hardware characteristics of the device from which the image to be authenticated originated, and therefore can be called valid pixels. The first sub-image can be determined based on valid pixels.

[0053] In one embodiment, the first sub-image may be an image directly obtained from pixels segmented from the image to be authenticated, such as an image composed of pixels in a predetermined row and pixels determined according to a predetermined column range (such as columns 100 to 1000). The first sub-image obtained in this way is a part of the image to be authenticated.

[0054] In another embodiment, the first sub-image may also be an image obtained by combining the segmented pixels, for example, an image obtained by sequentially bringing together pixels in odd rows. Figure 4a , Figure 4b The image is obtained by sequentially bringing together blocks of the same color in the image. That is, fill the light gray gaps to obtain an image with half the resolution of the image to be authenticated as the corresponding sub-image. However, this arrangement may cause distortion of the sub-image relative to the image to be authenticated, such as an inconsistency in the length and width ratio. Figure 4c The sub-images formed according to the segmentation method may also cause pixel misalignment, etc.

[0055] According to another embodiment, the effective pixels obtained by segmentation can be kept in their original relative positions, while other pixels are filled with pixel values, so as to obtain an image with the same resolution as the image to be authenticated as the corresponding sub-image. The pixel filling method is, for example, interpolation filling. The interpolation method is, for example, median interpolation, mean interpolation, equal division interpolation, etc. For example, Figure 4a , Figure 4b In the example, the pixels corresponding to the dark gray block can be interpolated at the light gray block position (such as row 401) when generating the corresponding sub-image. For example, the average of the pixel values ​​corresponding to the blocks on both sides (rows 402 and 403) is used as the pixel value at the light gray block position (row 401). The pixel values ​​involved here can be the image values ​​corresponding to the pixels in each image channel (such as R, G, B channels, etc.). Figure 4c In the case shown, for a single pixel such as 404, the adjacent 4 pixels are all valid pixels, and interpolation can be performed through adjacent valid pixels in the same row or column, such as the average of the pixel values ​​of pixels 406 and 408, or the average of the pixel values ​​of pixels 405 and 407. Interpolation can also be performed through all its adjacent valid pixels, for example, using the average of the pixel values ​​of pixels 405, 407, 406, and 408. When there are multiple pixels that need to be interpolated between two valid pixels, the pixel values ​​between the two valid pixels can be divided into equal parts for interpolation. For example, if there are 3 pixels to be interpolated between two valid pixels, and the pixel values ​​of the two valid pixels are 121 and 221 respectively, then the difference 100 is divided into four equal parts of 25, and the pixel values ​​121+25, 121+50, and 121+75 are inserted into the three pixels to be interpolated respectively. The sub-image obtained in this way maintains the proportion and effective pixel position of the image to be authenticated, and can better restore the visual effect of the image to be authenticated.

[0056] In practice, there may be various other pixel segmentation methods, for example, taking two rows of pixels every two rows and segmenting them into the same sub-image. The image to be authenticated may be segmented into a first sub-image, or may be segmented into multiple sub-images including the first sub-image. For another example, a total of three sub-images may be segmented, and in the row / column direction, adjacent pixels segmented into the same sub-image are separated by 2 pixels, and so on. In each sub-image, the pixels from the image to be authenticated may be referred to as valid pixels.

[0057] Then, in step 303, the device fingerprint information corresponding to the image to be authenticated is extracted through the first sub-image.

[0058] The device fingerprint information can be extracted in the same manner as the difference extraction method described above. Specifically, the first sub-image (such as I1) can be denoised using a denoiser to obtain a first standard image (such as I2). 10 ), according to the difference between the first sub-image and the first standard image (such as I1-I 10 ), determine a noise image of the first sub-image, and then determine device fingerprint information for describing a shooting device corresponding to the image to be authenticated based on a predetermined processing of the noise image of the first sub-image.

[0059] The noise reducer can be any hardware or software (such as terminal application, applet, application plug-in, etc.) device used for image noise reduction in conventional technology. The difference between the first sub-image and the first standard image (such as I1-I 10 ) may be a difference value obtained by performing a subtraction operation on the image values ​​of the corresponding image channels one by one. Optionally, the difference value here may be an absolute value. The predetermined processing of the noise image of the first sub-image is, for example: obtaining the noise image of the first sub-image, performing a convolution operation on the noise image of the first sub-image to obtain a convolved image, etc.

[0060] It can be understood that the device fingerprint information extracted by the above method can be performed at the pixel level. In other words, the difference between the first sub-image and the first standard image is an image form corresponding to each pixel of the first sub-image, and the noise image of the first sub-image can be an image corresponding to the difference, or an image formed by weighted merging, normalization, etc. of the difference on each image channel.

[0061] Here, the first sub-image is used to replace the image to be authenticated to extract the device fingerprint information of the shooting device, rather than using all the pixels of the image to be authenticated, so that the extracted effective device fingerprint information is also for some component features of the shooting device.

[0062] Further, based on step 304, the device fingerprint information is compared with the fingerprint authentication information for the shooting device, so as to authenticate the device fingerprint information.

[0063] Among them, the fingerprint authentication information for a certain shooting device can be pre-stored, obtained from other devices, or called in the current step to extract the relevant process, which is not limited here. The fingerprint authentication information for the shooting device can be extracted from one or more images from the shooting device. The image used to extract the fingerprint authentication information can be called sample image information, and the fingerprint information extraction principle is the principle described above. In summary, after obtaining a number of sample images taken by the shooting device, each first sample sub-image can be segmented in accordance with the segmentation method consistent with the segmentation of the first sub-image for the image to be authenticated, and then the noise reducer is used to denoise each first sample sub-image to obtain each standard sample image, and then each sample noise image is determined based on the difference image between each first sample sub-image and the corresponding standard sample image, and then based on the maximum likelihood estimation of each sample noise image, the fingerprint authentication information of the shooting device is determined.

[0064] In an optional embodiment, the fingerprint authentication information is the ratio of the following two items: a first superposition result of superimposing each sample noise image with the corresponding standard sample image according to a predetermined fusion method, and a second superposition result of superimposing each standard sample image with itself according to a predetermined fusion method. The predetermined fusion method is, for example, concatenation, addition, convolution, etc. As described above etc. Among them, r i *I i Represents the sample noise image r i and the corresponding standard sample image I i According to the fusion result of the predetermined fusion method, n is the number of sample images, which is also the number of sample noise images and standard sample images. Represents the first superposition result above. Accordingly, (I i ) 2 Represents the standard sample image I i The fusion result with itself according to the predetermined fusion method, Represents the second superposition result above.

[0065] It can be understood that the device fingerprint information and fingerprint authentication information can be a two-dimensional tensor or a three-dimensional tensor. The two-dimensional tensor can be a feature map composed of feature values ​​on multiple feature points similar to pixels, and the three-dimensional tensor can be a feature map on multiple channels. Therefore, the comparison between the device fingerprint information and the fingerprint authentication information can be described by the similarity or correlation between the tensors. Similarity or correlation is used to indicate the consistency between the device fingerprint information and the fingerprint authentication information. Taking similarity as an example, comparing the device fingerprint information with the fingerprint authentication information of the shooting device to be authenticated can include, for example: detecting the tensor similarity between the device fingerprint information and the fingerprint authentication information, and when the tensor similarity is greater than a predetermined threshold, determining that the authentication result is authentication passed, otherwise, determining that the authentication result is authentication failed. The similarity here can be replaced by correlation. Similarity or correlation can be described by various tensor similarity description methods such as Jaccard coefficient, cosine similarity, variance, KL divergence, etc., which are not listed one by one here.

[0066] Generally, if the authentication is successful, it can be determined that the image to be authenticated comes from the corresponding shooting device, and if the authentication is unsuccessful, it can be determined that the image to be authenticated does not come from the above shooting device.

[0067] In some specific scenarios, the purpose of authenticating the source device of an image is to use the authenticated image for related business processing. For example, in the investigation and evidence collection scenario, the authenticated image can be used as electronic evidence, in the copyright confirmation scenario, the authenticated image can be used for publication, in the blockchain storage scenario, the authenticated image can be used for uploading to the chain for subsequent reference, etc. In this way, the image used for subsequent business processing is in a situation where it may be obtained by the public (such as downloading, etc.). In this way, the attacker may determine the fingerprint authentication information and authentication rules of the image from the same shooting device from the image used for business processing after a limited number of experiments.

[0068] To this end, according to some possible designs, in step 302, the segmentation result based on the segmentation of each pixel of the image to be authenticated may also include a second sub-image. Among them, each valid pixel of the second sub-image may be evenly distributed in the sub-image to be authenticated. In order to ensure the confidentiality of using the first sub-image for fingerprint authentication, other sub-images other than the first sub-image may be used for business processing. Thus, Figure 3 The process shown may also include: step 305, based on the authentication result, using the second sub-image to perform corresponding business processing. Here, the corresponding business processing may include but is not limited to at least one of the following: using the second sub-image for publishing, uploading to a server, uploading to the cloud, submitting to a blockchain network, returning to a source device, etc.

[0069] Among them, the segmentation of the image to be authenticated can obtain two or more sub-images. Among them, the second sub-image can be any sub-image different from the first sub-image. The valid pixels in the second sub-image may not have any intersection with the valid pixels in the first sub-image, or may have an intersection that does not exceed a predetermined ratio, for example, an intersection that does not exceed 5% of the first sub-image. In the corresponding business processing process, the second sub-image can be used. In this way, when the second sub-image is published, the valid information of the first sub-image cannot be obtained. In particular, when the second sub-image has no intersection with the valid pixels in the first sub-image, therefore, when the second sub-image is published, any information about the identity of the device in the first sub-image will not be leaked.

[0070] According to one embodiment, the second sub-image may be generated together with the first sub-image in the process of segmenting the image to be authenticated, for example, the pixels in the image to be authenticated are divided into two parts, one part of the pixels is used as the effective pixels of the first sub-image, and the other part of the pixels is used as the effective pixels of the second sub-image. In practice, according to the number of pixels of the image to be authenticated, each pixel of the image to be authenticated can be segmented into at least 2 sub-images. For example, in a conventional photo display, assuming that a 3-megapixel image can clearly display the relevant target, a 16-megapixel image to be authenticated can be split into about 5 3-megapixel sub-images, or it can be split into 2 8-megapixel sub-images, or it can be segmented with other resolutions that meet business needs, which is not limited here. For the convenience of description, this specification refers to the sub-images of the image to be authenticated that are segmented and used for source device authentication as the first sub-image, and one of the other sub-images can be called the second sub-image.

[0071] Figure 4a , Figure 4b , Figure 4c The figure shows a situation where the image to be authenticated is divided into two parts, and the pixels of the two parts can be evenly distributed in the image to be authenticated. The pixels divided into different parts are represented by color blocks of different depths. The so-called even distribution here can be understood as being arranged at even intervals in the image to be authenticated.

[0072] like Figure 4a As shown in FIG. 1 , it is a method of dividing by row and column intervals. For every predetermined row, a number of rows of pixels are extracted as valid pixels in a single sub-image. For example, in the case of the predetermined row 1, the odd-numbered rows of pixels constitute the valid pixels of the first sub-image, and the even-numbered rows of pixels constitute the valid pixels of the second sub-image. The reverse is also true, that is, the odd-numbered rows of pixels constitute the valid pixels of the second sub-image, and the even-numbered rows of pixels constitute the valid pixels of the first sub-image. Similarly, Figure 4b The segmentation method shown is to extract several columns of pixels as valid pixels in a single sub-image every predetermined column.

[0073] Figure 4c It is a segmentation method that combines evenly spaced rows and columns. In each row, pixels on a number of columns are extracted every other predetermined column as valid pixels in a single sub-image. In each column, the valid pixels corresponding to a single sub-image are pixels on a number of rows every other predetermined row. When the number of the predetermined row, the predetermined column, the number of rows, and the number of columns are all 1 and only two sub-images are segmented, Figure 4c In the segmentation method shown, in each row of pixels, every other pixel is segmented into the same sub-image. Similarly, in each column of pixels, every other pixel is segmented into the same sub-image. The segmentation effect is shown in FIG. Figure 4c As shown, the dark gray blocks represent pixels segmented into the same sub-image, and the light gray blocks represent pixels segmented into another sub-image.

[0074] In more embodiments, the first sub-image and the second sub-image may be generated by other suitable methods, which will not be described in detail here.

[0075] In this way, when the valid pixels in a single sub-image are evenly distributed in the image to be authenticated, the valid pixels can involve various areas of the image to be authenticated, and sub-images with little visual difference can be restored as much as possible. Since the pixels contained in the sub-image used for related business processing and the sub-image for device authentication do not overlap, or only overlap to a small extent allowed, it is impossible to obtain device authentication information from the sub-image for business processing, which can improve the reliability of device source authentication.

[0076] In some actual business scenarios under this mechanism, in order to prevent users from using images from corresponding shooting devices for authentication and using other images for corresponding business processing (such as uploading to the blockchain system), the first sub-image and the second sub-image can also be semantically compared to determine whether they are derived from the segmentation results of the same image, while ensuring that the valid pixels in the first sub-image and the second sub-image are evenly distributed in the image to be authenticated. Specifically, the semantic features of the first sub-image and the second sub-image can be extracted respectively, and the consistency of the semantic features of the first sub-image and the second sub-image can be detected, so as to determine whether the first sub-image and the second sub-image are obtained by segmenting the same image.

[0077] Among them, the operation of extracting semantic features can extract local area features in the image, which can be implemented via a pre-trained convolutional neural network, a conventional semantic extraction network (such as FCN, Fully Convolutional Networks), etc. The semantic features can be described by tensors, so the consistency of the semantic features of the first sub-image and the second sub-image can be characterized by the similarity of the tensors. Tensor similarity can be described by various tensor similarity description methods such as Jaccard coefficient, cosine similarity, variance, KL divergence, etc., which will not be repeated here. When the semantic features of the first sub-image and the second sub-image are consistent (such as the similarity is greater than a predetermined threshold), it can be determined that the first sub-image and the second sub-image are obtained by segmenting the same image, otherwise, it is determined that the first sub-image and the second sub-image are different images.

[0078] Furthermore, when the first sub-image and the second sub-image are obtained by segmenting the same image, the second sub-image can be used for corresponding business processing, and when the first sub-image and the second sub-image are different images, the business processing request for the second sub-image can be rejected.

[0079] Reviewing the above process, the image authentication process provided in this manual divides the image to be authenticated and only uses part of the pixels to extract part of the hardware features of the shooting device for source device authentication. This can minimize the disclosure of pixels in the image used for business processing that contain the fingerprint authentication information of the device, effectively improving the reliability of device source authentication.

[0080] According to another embodiment, a device for image authentication is also provided, which can be provided in any device, apparatus or server with certain computing capability. Figure 5 FIG. 5 shows an image authentication apparatus 500 according to an embodiment. Figure 5 As shown, the device 500 includes:

[0081] An acquisition unit 501 is configured to acquire an image to be authenticated of a photographing device;

[0082] The segmentation unit 502 is configured to obtain a first sub-image based on segmentation of each pixel of the image to be authenticated;

[0083] An extraction unit 503 is configured to extract device fingerprint information corresponding to the image to be authenticated through the first sub-image;

[0084] The authentication unit 504 is configured to compare the device fingerprint information with the fingerprint authentication information for the shooting device, thereby authenticating the device fingerprint information to determine whether the image to be authenticated comes from the shooting device.

[0085] In some optional implementations, the first sub-image is an image of the same size as the image to be authenticated, and is obtained by the segmentation unit 502 in the following manner: determining multiple original pixels from the image to be authenticated as valid pixels; obtaining pixel values ​​corresponding to each valid pixel; interpolating each other pixel outside the valid pixel through each pixel value, and obtaining an interpolated image as the first sub-image.

[0086] According to a possible design, the extraction unit 503 is further configured as follows:

[0087] De-noising the first sub-image using a denoiser to obtain a first standard image;

[0088] determining a noise image of the first sub-image according to a difference between the first sub-image and the first standard image;

[0089] Based on the predetermined processing of the noise image of the first sub-image, device fingerprint information for describing a shooting device of the image to be authenticated is determined.

[0090] In one embodiment, the apparatus 500 further includes an authentication information determination unit (not shown) configured to determine the fingerprint authentication information by:

[0091] Acquire a plurality of sample images captured by a capturing device, and segment each first sample sub-image in a manner consistent with the first sub-image;

[0092] Performing denoising processing on each first sample sub-image using a denoiser to obtain each standard sample image;

[0093] Determine each sample noise image according to a difference image between each first sample sub-image and a corresponding standard sample image;

[0094] Based on the maximum likelihood estimation of each sample noise image, the fingerprint authentication information is determined.

[0095] In a further embodiment, the fingerprint authentication information is the ratio of the following two items: a first superposition result of superimposing each sample noise image with the corresponding standard sample image according to a predetermined fusion method, and a second superposition result of superimposing each standard sample image with itself according to a predetermined fusion method.

[0096] According to an optional implementation, the authentication unit 504 is further configured to:

[0097] Detect the tensor similarity between the device fingerprint information and the fingerprint authentication information;

[0098] When the tensor similarity is greater than a predetermined threshold, determining the authentication result as authentication passed;

[0099] Otherwise, the authentication result is determined to be authentication failure.

[0100] In a possible design, each pixel of the image to be authenticated is segmented to obtain a second sub-image; the apparatus 500 further includes a processing unit (not shown) configured to:

[0101] Based on the authentication result, the second sub-image is used to perform corresponding business processing.

[0102] In one embodiment, the apparatus 500 further includes a semantic matching module configured to:

[0103] Extracting semantic features of the first sub-image and the second sub-image respectively;

[0104] The consistency of the semantic features of the first sub-image and the second sub-image is detected, so as to determine whether the first sub-image and the second sub-image are obtained by segmenting the same image.

[0105] In another embodiment, the effective pixels of the second sub-image and the first sub-image have no intersection, and the effective pixels of a single sub-image are pixels uniformly distributed in the image to be authenticated. The effective pixels may be original pixels obtained from the image to be authenticated.

[0106] The above uniform distribution may include at least one of: distribution by equal spacing in rows / columns and distribution by equal spacing in pixels.

[0107] Processing units can be configured as:

[0108] The second sub-image is used for an operation of publishing, uploading to a server, uploading to a cloud, submitting to a blockchain network, and returning to a source device.

[0109] It is worth mentioning that Figure 5 The device 500 shown is Figure 3 The method described corresponds to Figure 3 The corresponding description in the method embodiment is also applicable to the device 500 and will not be repeated here.

[0110] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute a combination of Figure 3 The method described by et al.

[0111] According to another embodiment of the present invention, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the Figure 3 The method described by et al.

[0112] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of this specification can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0113] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the technical concept of this specification. It should be understood that the above description is only the specific implementation method of the technical concept of this specification, and is not used to limit the protection scope of the technical concept of this specification. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of this specification should be included in the protection scope of the technical concept of this specification.

Claims

1. A method for image authentication, comprising: Obtaining an image to be authenticated about the shooting device; Based on the segmentation of each pixel of the image to be authenticated in the spatial domain, a first sub-image and a second sub-image are obtained, each of which contains part of the pixels of the image to be authenticated as valid pixels, wherein the second sub-image is used for related business processing, and the valid pixels in the second sub-image have no intersection with the valid pixels in the first sub-image, or have an intersection that does not exceed a predetermined ratio; Extracting device fingerprint information corresponding to the image to be authenticated through the first sub-image; The device fingerprint information is compared with the fingerprint authentication information for the shooting device, so as to authenticate the device fingerprint information to determine whether the image to be authenticated comes from the shooting device.

2. The method according to claim 1, wherein: The first sub-image is an image with the same resolution as the image to be authenticated, and is obtained by: Determining a plurality of original pixels as valid pixels from the image to be authenticated; Obtain each pixel value corresponding to each valid pixel; The pixels other than the effective pixels are interpolated by using the pixel values, and the obtained interpolated image is used as the first sub-image.

3. The method according to claim 1, wherein: The extracting the device fingerprint information corresponding to the image to be authenticated by using the first sub-image includes: Performing denoising processing on the first sub-image by using a denoiser to obtain a first standard image; determining a noise image of the first sub-image according to a difference between the first sub-image and the first standard image; Based on predetermined processing of the noise image of the first sub-image, device fingerprint information for describing the image to be authenticated is determined.

4. The method according to claim 1, wherein: The fingerprint authentication information is determined in the following manner: Acquire a plurality of sample images captured by the capturing device, and segment each first sample sub-image in a manner consistent with segmenting the first sub-image; Performing denoising processing on each first sample sub-image using a denoiser to obtain each standard sample image; Determine each sample noise image according to a difference image between each first sample sub-image and a corresponding standard sample image; The fingerprint authentication information is determined based on the maximum likelihood estimation of each sample noise image.

5. The method according to claim 4, wherein: The fingerprint authentication information is the ratio of the following two items: a first superposition result of superimposing each sample noise image with the corresponding standard sample image in a predetermined fusion manner, and a second superposition result of superimposing each standard sample image with itself in a predetermined fusion manner.

6. The method according to claim 1, wherein: The comparing the device fingerprint information with the fingerprint authentication information for the photographing device comprises: Detecting tensor similarity between the device fingerprint information and the fingerprint authentication information; When the tensor similarity is greater than a predetermined threshold, determining that the authentication result is authentication passed; Otherwise, the authentication result is determined to be authentication failure.

7. The method according to claim 1, wherein: The method further comprises: Based on the authentication result, the second sub-image is used to perform corresponding business processing.

8. The method according to claim 7, wherein: Before performing corresponding service processing using the second sub-image based on the authentication result, the method further includes: extracting semantic features of the first sub-image and the second sub-image respectively; The consistency of the semantic features of the first sub-image and the second sub-image is detected, so as to determine whether the first sub-image and the second sub-image are obtained by segmenting the same image.

9. The method according to claim 7, wherein: When the valid pixels in the second sub-image have no intersection with the valid pixels in the first sub-image, and the valid pixels of a single sub-image are pixels uniformly distributed in the image to be authenticated, the valid pixels are original pixels obtained from the image to be authenticated.

10. The method according to claim 9, wherein: The uniform distribution includes at least one of: distribution by equal spacing in rows / columns and distribution by equal spacing in pixels.

11. The method according to claim 7, wherein based on the authentication result, performing corresponding business processing using the second sub-image comprises: The second sub-image is used for one of publishing, uploading to a server, uploading to a cloud, submitting to a blockchain network, and returning to a source device.

12. An image authentication device, comprising: An acquisition unit, configured to acquire an image to be authenticated of a photographing device; a segmentation unit configured to obtain, based on segmentation of each pixel of the image to be authenticated in the spatial domain, a first sub-image and a second sub-image each containing a portion of pixels of the image to be authenticated as valid pixels, wherein the second sub-image is used for related business processing, and the valid pixels in the second sub-image have no intersection with the valid pixels in the first sub-image, or have an intersection that does not exceed a predetermined ratio; an extraction unit, configured to extract device fingerprint information corresponding to the image to be authenticated through the first sub-image; The authentication unit is configured to compare the device fingerprint information with the fingerprint authentication information for the shooting device, thereby authenticating the device fingerprint information to determine whether the image to be authenticated comes from the shooting device.

13. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 11.

14. A computing device comprising a memory and a processor, characterized in that: The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Camera source identification method based on image content self-adaption

    CN111178166A

  • Method for estimating an improved camera fingerprint by identifying low-mass pixel positions and correcting corresponding fingerprint values

    US10868984B1

  • Method and apparatus for authenticating biometric scanners

    US20140133714A1

  • Building a digital camera fingerprint from cropped or corrupted images

    US9525866B1