Image copyright authentication method, device and storage medium

By generating and embedding the fingerprint information of pictures, the problem of difficulty in proving copyright of pictures is solved, the reliability and difficulty of tampering of copyright are achieved, and the copyright certification process for users is simplified.

CN111881425BActive Publication Date: 2024-09-24PING AN TECH (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202010737237.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2024-09-24
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to prove the copyright of images, especially because the original files may be lost or tampered with due to storage duration issues, making it difficult to prove the originality of the files.

Method used

By receiving the user's picture authentication request, we obtain the user identification code and the identification information of the original picture, use a secure hash algorithm to generate a hash value, combine the user identification code and the hash value to form a key information string for the picture, and use erasure code EC Algorithm encoding processing generates fingerprint information and embeds it into the image to form an authentication image, which is stored in a database or blockchain.

Benefits of technology

It realizes fingerprint information that is difficult to forge and tamper with, simplifies the user's copyright certification process, and performs data restoration when the fingerprint information is partially lost, making it more difficult to forge and tamper with.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111881425B
    Figure CN111881425B
Patent Text Reader

Abstract

The present invention relates to the field of image processing and artificial intelligence technology, and in particular to a method, device and storage medium for authenticating image copyright. The method, device and storage medium for authenticating image copyright of the present invention create a unique user identification code for each authenticated user, encode the identification information of the original image, obtain the hash value of the identification information, and then encode the image key information string formed by combining the user identification code and the hash value to obtain the fingerprint information of the original image, embed the fingerprint information into the original image to form an authentication image and store it. In the above manner, since the fingerprint information points to both the image identification and the user identity, it is difficult to forge and tamper with, and it is convenient for users to certify copyright. Moreover, if part of the fingerprint information embedded in the authentication image is lost, data restoration can be performed, which further increases the difficulty of forging and tampering with the fingerprint information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of image processing technology and also to the field of artificial intelligence, and in particular to a method, device and storage medium for authenticating image copyright. [Background technology]

[0002] As pictures spread more and more widely and faster on the Internet, pictures have become the main way for people to communicate with each other. Beautiful photos can be used for commercial purposes. A classic example of a picture is the default background desktop of Windows XP. Since pictures have commercial value, the copyright ownership of pictures needs to be resolved. In the prior art, if customers need to maintain their own picture copyrights, they need to prove the source of the pictures themselves. However, due to the storage time problem, the original files that are too old may be lost or tampered with. In this case, how to prove the originality of the file becomes a difficult problem to solve.

[0003] Therefore, it is necessary to provide a method for image copyright authentication. [Summary of the invention]

[0004] The purpose of the present invention is to provide a method, device and storage medium for authenticating copyright of an image, so as to solve the technical problems in the prior art that fingerprint information is easily tampered with and copyright certification is difficult.

[0005] The technical solution of the present invention is as follows: a method for authenticating image copyright is provided, comprising:

[0006] Obtaining a user identification code based on the received image authentication request;

[0007] Receiving an original picture uploaded by a user, and obtaining identification information of the original picture;

[0008] Obtaining a hash value of the identification information using a secure hash algorithm;

[0009] The user identification code and the hash value are combined to form a picture key information string, and the picture key information string is encoded using an erasure code (EC) algorithm to obtain fingerprint information of the original picture, where the fingerprint information includes fingerprint data and verification data for verifying the fingerprint data;

[0010] The fingerprint information is embedded into the original image to form an authentication image including the fingerprint information and the authentication image is stored.

[0011] Preferably, the receiving the original picture uploaded by the user and obtaining the identification information of the original picture includes:

[0012] Receive the original picture uploaded by the user;

[0013] Extracting picture information of the original picture, the picture information including one or more of picture size, resolution, shooting time, shooting location, shutter speed, aperture size, exposure and white balance;

[0014] Processing the original image to obtain an image summary of the original image;

[0015] The picture summary and the picture information are stored in the identification information of the original picture.

[0016] Preferably, the processing the original picture to obtain a picture summary of the original picture includes:

[0017] Reducing the size of the original image, and converting the reduced original image into a corresponding grayscale image;

[0018] Performing discrete cosine transform on the grayscale image to obtain a first DCT matrix;

[0019] Performing a reduction process on the first DCT matrix to obtain a second DCT matrix;

[0020] A mean value of the second DCT matrix is ​​calculated, and a picture summary of the original picture is determined according to the mean value.

[0021] Preferably, the encoding process of the image key information string by using an erasure code (EC) algorithm to obtain the fingerprint information of the original image includes:

[0022] Splitting the image key information character string into a first preset number of data blocks;

[0023] Encoding the first preset number of data blocks by using an erasure code (EC) algorithm to generate a second preset number of check blocks;

[0024] The first preset number of data blocks form the fingerprint data, and the second preset number of check blocks form the check data.

[0025] Preferably, embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image includes:

[0026] Extracting a preset third number of pixel points from all pixel points of the original image, where the preset third number is the same as the number of characters included in the fingerprint information;

[0027] Replacing the extracted pixels with the characters of the fingerprint information respectively, so as to embed the fingerprint information into the original image to obtain an authentication image;

[0028] The authentication image is stored, and the storage time of the authentication image is recorded.

[0029] Preferably, the obtaining of the user identification code based on the received picture authentication request comprises:

[0030] Receiving a picture authentication request sent by a current user, and judging whether the current user has a user identification code based on user information carried in the picture authentication request, to obtain a first judgment result;

[0031] When the first judgment result is yes, obtaining the user identification code;

[0032] When the first judgment result is no, a user identification code is created for the current user.

[0033] Preferably, before embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image, the method further includes:

[0034] Determining whether the original image is stored in the authentication image database according to the fingerprint information of the original image, and obtaining a second determination result;

[0035] When the second judgment result is no, embedding the fingerprint information into the original image;

[0036] When the second judgment result is yes, the picture authentication request of the current user is rejected.

[0037] Preferably, after embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image, the method further includes:

[0038] Use image crawler tools to crawl and download network images from the Internet;

[0039] When the embedded fingerprint information is obtained from the network image, a corresponding character string of the image key information is generated according to the fingerprint information;

[0040] Acquire the user identification code pointing to the original creator according to the key information character string of the picture;

[0041] Or, after embedding the fingerprint information into the original picture to form an authentication picture including the fingerprint information and storing the authentication picture, the method further includes:

[0042] Use image crawler tools to crawl and download network images from the Internet;

[0043] When the embedded fingerprint information cannot be obtained from the network image, obtaining identification information of the network image;

[0044] Obtaining a hash value of the identification information using a secure hash algorithm;

[0045] Determine whether the network image is stored in the authentication image database according to the hash value of the network image, and obtain a third determination result;

[0046] When the third judgment result is yes, obtaining the user identification code pointing to the original creator according to the fingerprint information embedded in the corresponding authentication picture stored in the authentication picture database;

[0047] Alternatively, the image copyright authentication method may further include:

[0048] The fingerprint information is uploaded to the blockchain so that the blockchain encrypts and stores the fingerprint information.

[0049] Another technical solution of the present invention is as follows: a picture copyright authentication device is provided, the device includes a processor, and a memory coupled to the processor, the memory stores program instructions for implementing the above-mentioned picture copyright authentication method; the processor is used to execute the program instructions stored in the memory to perform picture copyright authentication.

[0050] Another technical solution of the present invention is as follows: a storage medium is provided, wherein the storage medium stores program instructions capable of implementing the above-mentioned image copyright authentication method.

[0051] The beneficial effects of the present invention are as follows: the image copyright authentication method, device and storage medium of the present invention create a unique user identification code for each authenticated user, encode the identification information of the original image, obtain the hash value of the identification information, and then encode the image key information string formed by combining the user identification code and the hash value to obtain the fingerprint information of the original image, embed the fingerprint information into the original image to form an authentication image and store it. In the above manner, since the fingerprint information points to both the image identification and the user identity, it is difficult to forge and tamper with while facilitating the user to prove the copyright. Moreover, if part of the fingerprint information embedded in the authentication image is lost, data restoration can be performed, which further increases the difficulty of forging and tampering with the fingerprint information.

Brief Description of the Drawings

[0052] Figure 1 It is a flowchart of a method for authenticating copyright of an image according to a first embodiment of the present invention;

[0053] Figure 2 It is a flowchart of a method for authenticating copyright of an image according to a second embodiment of the present invention;

[0054] Figure 3 It is a structural diagram of a picture copyright authentication device according to a third embodiment of the present invention;

[0055] Figure 4 It is a structural diagram of a picture copyright authentication device according to a fourth embodiment of the present invention;

[0056] Figure 5 FIG. 5 is a schematic diagram of the structure of a storage medium according to a fifth embodiment of the present invention. [Specific implementation method]

[0057] 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] The terms "first", "second" and "third" in the present invention are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0059] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0060] Figure 1 FIG. 1 is a flow chart of a method for authenticating copyright of an image according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of authenticating copyright of an image according to a first embodiment of the present invention if the results are substantially the same. Figure 1 The process sequence shown is limited. Figure 1As shown, the image copyright authentication method includes the steps of:

[0061] S101, obtaining a user identification code based on a received picture authentication request.

[0062] In an embodiment of the present invention, a unique user identification code UID is created for each user for identity identification. The creator of the picture can be determined through the user identification code UID. Specifically, the length of the user identification code UID can be set to 64 characters. In step S101, when a user needs to upload a picture for authentication, a picture authentication request is sent, and the picture authentication request carries user information. After receiving the picture authentication request sent by the current user, the user identification code UID is obtained based on the user information carried in the authentication request; when the user identification code UID cannot be obtained, it means that the current user is a new user, and a user identification code UID is created for the current user. In an optional implementation, the user identification code UID is a string that can be identified and calculated, and can be created in the following manner: S1011, obtain the registration information filled in when the user registers an account, and the registration information includes name, date of birth, certificate number (such as ID number, passport number, driver's license number, etc.) and account name; S1012, a predetermined encryption algorithm is used to select multiple types of information set from the registration information according to the set rules to combine and calculate the unique user identification code UID. Furthermore, in step S1012, the registration information may be arranged in the order of name-account name-ID number to form an input value, and the input value may be processed using a hash algorithm to obtain a user identification code UID.

[0063] S102, receiving an original picture uploaded by a user, and obtaining identification information of the original picture.

[0064] In step S102, the identification information of the original image includes two parts, the first part is the image itself of the original image, and the second part is various parameters of the original image. Specifically, first, the original image uploaded by the user is received; then, the image information of the original image is extracted, and the image information includes one or more of the image size, resolution, shooting time, shooting location, shutter speed, aperture size, exposure and white balance; then, the original image is processed to obtain the image summary of the original image; finally, the image summary and the image information are stored in the identification information of the original image. More specifically, in the image information, the shooting location, shutter speed, aperture size, exposure and white balance can be adjusted manually, and cannot uniquely identify the source of the image; because the size of a digital image is difficult to forge, it is generally difficult for the sizes of two images to be exactly the same. The image size is a relatively unique parameter, which can identify the source of the image to a certain extent.

[0065] In an optional implementation, the picture summary representing the picture itself can be extracted by the following method: S1021, reducing the size of the original picture, and converting the reduced original picture into a corresponding grayscale picture; S1022, performing discrete cosine transform on the grayscale picture to obtain a first DCT matrix; S1023, performing a reduction process on the first DCT matrix to obtain a second DCT matrix; S1024, calculating the mean of the second DCT matrix, and determining the picture summary of the original picture according to the mean. The original picture can be simplified by reducing the size and converting it into a grayscale picture in step S1021, and the simplification of the original picture is conducive to improving the calculation efficiency of the DCT (discrete cosine transform) discrete cosine transform in the subsequent process. Furthermore, before the size reduction and grayscale conversion, the original picture can also be subjected to white balance processing and denoising processing to remove the noise in the original picture and reduce the impact on the extraction process of the image summary. In step S1022, the size of the first DCT matrix can be 32*32; in step S1023, the first DCT matrix is ​​reduced to a second DCT matrix of 8*8; in step S1024, after calculating the mean of the second DCT matrix, the elements in the second DCT matrix that are greater than or equal to the mean are set to 1, and the elements that are less than the mean are set to 0, and then the picture summary consisting of a 64-bit hash value can be obtained based on the modified elements in the second DCT matrix.

[0066] Those skilled in the art should understand that, in other implementations, the picture summary may not be used to represent the picture itself, and the feature value of the original picture may be extracted and used together with the picture information as identification information of the original picture.

[0067] S103: Obtain a hash value of the identification information using a secure hash algorithm.

[0068] In this embodiment, the secure hash algorithm (Secure Hash Algorithm) can be specifically SHA-224, SHA-256, SHA-384, SHA-512, SHA-512 / 224 and SHA-512 / 256. The hash function compresses the identification information of the original image into a summary, making the data volume smaller and fixing the format of the data. The function shuffles and mixes the data to recreate a fingerprint called a hash value (or hash value). The hash value is usually represented by a short string of random letters and numbers.

[0069] Specifically, the present embodiment adopts the SHA-256 algorithm. The SHA-256 algorithm will generate a 64-character hash value TID regardless of the size of the original image. The maximum length of the input identification information of the SHA-256 algorithm does not exceed 2^64bit. The input is processed in 512-bit groups, and the generated output is a 256-bit hash value. The algorithm processing includes the following steps: the first step is to add padding bits to pad the identification information so that its length is congruent to 448 modulo 512 (length = 448mod 512), the number of padding bits ranges from 1 to 512, the highest bit of the padding bit string is 1, and the remaining bits are 0. The second step is to add a length value, and the bit length of the initial identification information (before padding) represented by 64-bit is added to the result of the first step (low byte first). The third step is to initialize the cache, and use a 256-bit cache to store the intermediate and final results of the hash function. For example, the cache can be represented as A = 0x6A09E667, B = 0xBB67AE85, C = 0x3C6EF372, D = 0xA54FF53A, E = 0x510E527F, F = 0x9B05688C, G = 0x1F83D9AB, H = 0x5BE0CD19. Step 4: Process the 512-bit (16-word) information packet sequence. The algorithm uses six basic logic functions and consists of 64 iterative operations. Each step takes the 256-bit cache value ABCDEFGH as input and then updates the cache content. Each step uses a 32-bit constant value Kt and a 32-bit Wt.

[0070] S104, combining the user identification code and the hash value to form a picture key information string, and using the erasure code EC algorithm to encode the picture key information string to obtain the fingerprint information of the original picture, wherein the fingerprint information includes fingerprint data and verification data for verifying the fingerprint data.

[0071] In this embodiment, the user identification code UID and the hash value TID of the identification information both include 64 characters, and the two are combined to form a string containing 128 characters, which is the picture key information string of the original picture. In this embodiment, the EC algorithm: that is, the (Erasure Code) algorithm, EC coding is a data redundancy technology, which can split a picture key information string of length L into N data blocks, and then calculate M check blocks based on these N data blocks, and the final stored data is these N+M data blocks. The EC coding algorithm can ensure that in these N+M blocks, as long as the number of lost blocks does not exceed M, the entire data is still complete. Specifically, the picture key information string is split into a first preset number of data blocks; the first preset number of N data blocks are encoded using the erasure code EC algorithm to generate a second preset number of M check blocks; the first preset number of N data blocks form the fingerprint data, and the second preset number of M check blocks form the check data. For example: N=4, M=3, it can be guaranteed that when at most 3 data blocks are lost, the stored data can still be complete. Therefore, in this embodiment, each data block includes 32 characters, each check block includes 32 characters, and the fingerprint information includes 224 characters.

[0072] In this embodiment, the fingerprint information of the original image not only includes the encoded information pointing to the image itself, but also includes the encoded information pointing to the user identity. The user identity can be directly determined based on the image fingerprint information. Moreover, since the fingerprint information also points to the user identity, it is difficult to tamper with. If part of the fingerprint information is lost, the data can be restored through the verification block, which further increases the difficulty of forging and tampering with the image fingerprint information.

[0073] S105: embed the fingerprint information into the original image to form an authentication image including the fingerprint information and store the authentication image.

[0074] In step S105, the fingerprint information is directly embedded in the original image to form a corresponding authentication image, and then the authentication image is stored. When the fingerprint information is needed, it is directly read from the authentication image without the need to save the fingerprint information separately. In addition, during use, the user can use the authentication image embedded with fingerprint information without the need to use the original image. When the authentication image is used by others, the fingerprint information embedded therein can be directly extracted from the image uploaded by others, thereby reducing the workload of investigation.

[0075] In an optional implementation, first, a preset third number of pixels is extracted from all pixels of the original image, and the preset third number is the same as the number of characters contained in the fingerprint information; then, the characters of the fingerprint information are used to replace the extracted pixels respectively, so as to embed the fingerprint information into the original image to obtain the authentication image; finally, the authentication image is stored, and the storage time of the authentication image is recorded. Specifically, each image has its own horizontal axis and vertical axis, and each pixel has its own relative position (pixel position) according to the coordinates of the origin (0,0) in the upper left corner. According to the size of the original image, the original image is divided into pixels according to the horizontal axis and the vertical axis. For example, an original image with a resolution of 1024*768 can be divided into 1024*768=786432 pixels, and each pixel will be converted into hexadecimal when the image is stored. The 224 characters contained in the fingerprint information are themselves a combination of English and numbers. The pixels are numbered in sequence (1, 2, 3, ..., 786432), and the 224 characters in the fingerprint information are used to replace the pixels numbered multiples of 10, such as 10, 20, 30 ... 1280. Among hundreds of thousands of pixels, 224 pixels are replaced, and the ratio is only 224 / 786432 = 0.028%, which is impossible to detect the difference in the picture.

[0076] Figure 2 FIG. 1 is a flow chart of a method for authenticating copyright of an image according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of authenticating copyright of an image according to a second embodiment of the present invention if the results are substantially the same. Figure 2 The process sequence shown is limited. Figure 2 As shown, the image copyright authentication method includes the steps of:

[0077] S201, receiving a picture authentication request sent by a current user, and determining whether the current user has a user identification code based on user information carried in the picture authentication request to obtain a first determination result.

[0078] S202: When the first judgment result is yes, obtain the user identification code.

[0079] S203: When the first judgment result is no, create a user identification code for the current user.

[0080] S204, extracting fingerprint information of the original image using a fingerprint algorithm.

[0081] In step S204, the original image uploaded by the user is received, the identification information of the original image is obtained, the hash value of the identification information is obtained using a secure hash algorithm, the user identification code and the hash value are combined to form a picture key information string, and the picture key information string is encoded using an erasure code EC algorithm to obtain the fingerprint information of the original image, the fingerprint information includes fingerprint data and verification data for verifying the fingerprint data. For details of step S204, please refer to the description of the first embodiment, which will not be repeated here.

[0082] S205: Determine whether the original image is stored in the authentication image database according to the fingerprint information of the original image, and obtain a second determination result.

[0083] S206: When the second judgment result is yes, reject the picture authentication request of the current user.

[0084] S207: When the second judgment result is no, embed the fingerprint information into the original image to form an authentication image including the fingerprint information and store the authentication image.

[0085] After step S207, the following steps are also included:

[0086] S208, using an image crawler tool to crawl and download network images from the network.

[0087] S209, when the embedded fingerprint information is obtained from the network image, a corresponding image key information string is generated according to the fingerprint information, and the user identification code pointing to the original creator is obtained according to the image key information string.

[0088] S210, when the embedded fingerprint information cannot be obtained from the network image, obtain the identification information of the network image; use a secure hash algorithm to obtain a hash value of the identification information; determine whether the network image is stored in the authentication image database based on the hash value of the network image, and obtain a third judgment result; when the third judgment result is yes, obtain the user identification code pointing to the original creator based on the fingerprint information embedded in the corresponding authentication image stored in the authentication image database.

[0089] S211, uploading the fingerprint information to the blockchain so that the blockchain encrypts and stores the fingerprint information.

[0090] In step S209, if the infringer uses a certified image, the user identification code of the original creator is directly obtained based on the fingerprint information embedded in the certified image; in step S210, if the infringer does not use a certified image, the hash value of the image needs to be re-extracted, the hash value is compared with the fingerprint information embedded in the certified image in the certified image database, the fingerprint information matching the hash value is obtained, and the user identification code is obtained from the fingerprint information. After obtaining the user identification code of the original creator, the information of the infringing network image and the infringement event can be sent to the original creator.

[0091] In step S211, the corresponding summary information is obtained based on the fingerprint information. Specifically, the summary information is obtained by hashing the fingerprint information, such as by using the sha256s algorithm. Uploading the summary information to the blockchain can ensure its security and fairness and transparency to users. The user device can download the summary information from the blockchain to verify whether the fingerprint information has been tampered with. The blockchain referred to in this example is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database. It is a string of data blocks generated by cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, and an application service layer.

[0092] Figure 3 FIG. 4 is a schematic diagram of the structure of the image copyright authentication device according to the third embodiment of the present invention. Figure 3 As shown, the device 30 includes: a user identification module 31, a picture information extraction module 32, a first encoding module 33, a second encoding module 34 and an authentication storage module 35, wherein the user identification module 31 is used to obtain a user identification code based on a received picture authentication request; the picture information extraction module 32 is used to receive an original picture uploaded by a user and obtain identification information of the original picture; the first encoding module 33 is used to obtain a hash value of the identification information using a secure hash algorithm; the second encoding module 34 is used to combine the user identification code and the hash value to form a picture key information string, and encode the picture key information string using an erasure code EC algorithm to obtain fingerprint information of the original picture, wherein the fingerprint information includes fingerprint data and verification data for verifying the fingerprint data; the authentication storage module 35 is used to embed the fingerprint information into the original picture to form an authentication picture including the fingerprint information and store the authentication picture.

[0093] Figure 4 Schematic diagram of the structure of the electronic device according to the fourth embodiment of the present invention. Figure 4As shown, the electronic device 40 includes a processor 41 and a memory 42 coupled to the processor 41 .

[0094] The memory 42 stores program instructions for implementing the image copyright authentication method of any of the above embodiments.

[0095] The processor 41 is used to execute program instructions stored in the memory 42 to perform image copyright authentication.

[0096] The processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0097] See also Figure 5 , Figure 5 It is a schematic diagram of the structure of the storage medium of the fifth embodiment of the present invention. The storage medium of the embodiment of the present invention stores program instructions 51 that can implement all the above-mentioned image copyright authentication methods, wherein the program instructions 51 can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage device includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.

[0098] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0099] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present invention.

[0100] The above description is only an implementation mode of the present invention. It should be pointed out that, for ordinary technicians in this field, improvements can be made without departing from the creative concept of the present invention, but these all belong to the protection scope of the present invention.

Claims

1. A method for authenticating image copyright, characterized in that: include: Obtaining a user identification code based on the received image authentication request; Receiving an original picture uploaded by a user, and obtaining identification information of the original picture; The receiving the original picture uploaded by the user and obtaining the identification information of the original picture includes: receiving the original picture uploaded by the user; extracting the picture information of the original picture, wherein the picture information includes one or more of picture size, resolution, shooting time, shooting location, shutter speed, aperture size, exposure and white balance; processing the original picture to obtain the picture summary of the original picture; storing the picture summary and the picture information in the identification information of the original picture; Obtaining a hash value of the identification information using a secure hash algorithm; The user identification code and the hash value are combined to form a picture key information string, and the picture key information string is encoded using an erasure code (EC) algorithm to obtain fingerprint information of the original picture, where the fingerprint information includes fingerprint data and verification data for verifying the fingerprint data; Embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image; The embedding of the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image includes: extracting a preset third number of pixel points from all pixel points of the original image, wherein the preset third number is the same as the number of characters included in the fingerprint information; replacing the extracted pixel points with the characters of the fingerprint information respectively to embed the fingerprint information into the original image to obtain the authentication image; storing the authentication image, and recording the storage time of the authentication image.

2. The method for authenticating image copyright according to claim 1, characterized in that: The processing of the original picture to obtain a picture summary of the original picture includes: Reducing the size of the original image, and converting the reduced original image into a corresponding grayscale image; Performing discrete cosine transform on the grayscale image to obtain a first DCT matrix; Performing a reduction process on the first DCT matrix to obtain a second DCT matrix; A mean value of the second DCT matrix is ​​calculated, and a picture summary of the original picture is determined according to the mean value.

3. The image copyright authentication method according to claim 1, characterized in that: The encoding process of the key information string of the image by using the erasure code (EC) algorithm to obtain the fingerprint information of the original image includes: Splitting the image key information character string into a first preset number of data blocks; Encoding the first preset number of data blocks by using an erasure code (EC) algorithm to generate a second preset number of check blocks; The first preset number of data blocks form the fingerprint data, and the second preset number of check blocks form the check data.

4. The method for authenticating image copyright according to claim 1, characterized in that: The obtaining of the user identification code based on the received picture authentication request includes: Receiving a picture authentication request sent by a current user, and judging whether the current user has a user identification code based on user information carried in the picture authentication request, to obtain a first judgment result; When the first judgment result is yes, obtaining the user identification code; When the first judgment result is no, a user identification code is created for the current user.

5. The method for authenticating image copyright according to claim 4, characterized in that: Before embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image, the method further includes: Determining whether the original image is stored in the authentication image database according to the fingerprint information of the original image, and obtaining a second determination result; When the second judgment result is no, embedding the fingerprint information into the original image; When the second judgment result is yes, the picture authentication request of the current user is rejected.

6. The method for authenticating image copyright according to claim 1, characterized in that: After embedding the fingerprint information into the original image to form an authentication image including the fingerprint information and storing the authentication image, the method further includes: Use image crawler tools to crawl and download network images from the Internet; When the embedded fingerprint information is obtained from the network image, a corresponding character string of the image key information is generated according to the fingerprint information; Acquire the user identification code pointing to the original creator according to the key information character string of the picture; Or, after embedding the fingerprint information into the original picture to form an authentication picture including the fingerprint information and storing the authentication picture, the method further includes: Use image crawler tools to crawl and download network images from the Internet; When the embedded fingerprint information cannot be obtained from the network image, obtaining identification information of the network image; Obtaining a hash value of the identification information using a secure hash algorithm; Determine whether the network image is stored in the authentication image database according to the hash value of the network image, and obtain a third determination result; When the third judgment result is yes, obtaining the user identification code pointing to the original creator according to the fingerprint information embedded in the corresponding authentication picture stored in the authentication picture database; Alternatively, the image copyright authentication method may further include: The fingerprint information is uploaded to the blockchain so that the blockchain encrypts and stores the fingerprint information.

7. A device for authenticating image copyright, characterized in that: The device comprises a processor and a memory coupled to the processor, wherein the memory stores program instructions for implementing the image copyright authentication method according to any one of claims 1 to 6; The processor is used to execute the program instructions stored in the memory to perform image copyright authentication.

8. A storage medium, characterized in that: The storage medium stores program instructions capable of implementing the image copyright authentication method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • A method and apparatus for identifying the ownership of an image.

    CN102279909A

  • System and method for deleting repeating data

    CN103177111A

  • Method and apparatus for verifying authenticity of image

    CN106709963A

  • A copyright transaction method and device for pictures

    CN109727134A

  • A digital fingerprint storage method and device based on a block chain

    CN109740317A