Block chain-based calligraphy and painting work copyright protection method and device and storage medium
By using the work weightage, author copyright confirmation and digital watermark modules on the blockchain, combined with the clustering FBA consensus algorithm, the pain points of copyright protection in the existing technology are solved, and efficient copyright protection and safe storage of calligraphy and painting works are achieved. Improved the security and convenience of copyright transactions.
Patent Information
- Application Number
- CN202410819334.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-10
AI Technical Summary
Existing blockchain digital product copyright protection solutions have pain points in confirming, using, and safeguarding rights, as well as the problem of copyright data storage in all stages of copyright protection, and cannot effectively prevent calligraphy and painting works from being tampered with and misappropriated.
Provides a blockchain-based copyright protection method for calligraphy and painting works, including a work duplication module, an author copyright confirmation module and a digital watermark module. It extracts work features through convolutional layers and linear layers, generates digital watermarks, and uses clustering FBA consensus Algorithms create NFTs on the Ethereum blockchain, ensuring the uniqueness and copyright protection of the work.
In the early stage, it avoids duplicate or stolen works from being put on the chain, reduces the cost of subsequent discovery, provides a zero-watermark mode that does not affect the viewing experience, improves the security and convenience of copyright protection, and provides a good foundation for the transaction of calligraphy and painting works. .
Smart Images

Figure CN118627031A
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based copyright protection method, device and storage medium for calligraphy and painting works. Background Art
[0002] With the development of computer technology, calligraphy and painting works are circulated more and more widely on the Internet, and the issue of copyright protection has become increasingly prominent. The current blockchain digital product copyright protection scheme has the pain points of confirming, using and protecting rights, as well as the problem of copyright data storage in the entire copyright protection stage. For the images of calligraphy and painting works that are currently seriously infringing, the method of only storing the abstract of the work on the chain and the metadata off the chain can no longer prevent the works from being tampered with and misappropriated. Summary of the invention
[0003] Based on this, it is necessary to provide a blockchain-based copyright protection method, device and storage medium for calligraphy and painting works to address the above technical issues.
[0004] In a first aspect, a method for copyright protection of calligraphy and painting works based on blockchain is provided, the method comprising:
[0005] The user initiates a request to create an NFT and uploads the digital version of the calligraphy and painting work to the calligraphy and painting copyright protection platform;
[0006] The copyright protection platform for calligraphy and painting works calls the work duplication detection module to compare the received calligraphy and painting works with the works that have been uploaded to the blockchain. If there are duplications, a message of failure to upload to the blockchain is returned;
[0007] The copyright protection platform for calligraphy and painting works calls the digital watermark module to generate a digital watermark for the received calligraphy and painting works;
[0008] The digital watermark module adds the generated watermark to the calligraphy and painting work, and returns the image of the calligraphy and painting work with the watermark to the calligraphy and painting work copyright protection platform;
[0009] The calligraphy and painting copyright protection platform encrypts the calligraphy and painting works with the watermark added by an encryption algorithm, then calls a distributed file system, stores the calligraphy and painting works image in the distributed file system, and receives a hash value returned by the distributed file system;
[0010] The copyright protection platform for calligraphy and painting works calls the smart contract to create a corresponding NFT for the user. And to the user Returns a successful message on the chain; the smart contract is deployed in the Ethereum blockchain, and the creation Applicable NFTs include:
[0011] Call the NFT casting module and fill in the NFT name, description, and price;
[0012] Initiate a proposal and start the consensus module to reach consensus;
[0013] The user performs state synchronization to generate the corresponding NFT;
[0014] The blockchain adopts the clustering FBA consensus algorithm to achieve blockchain node consensus, which specifically includes:
[0015] In the pre-preparation stage, n identical consensus nodes are clustered into m categories, and the FBA consensus algorithm is performed within each category. At the same time, the FBA consensus algorithm is performed between the master nodes of each category.
[0016] In one embodiment, the work duplication detection module specifically includes:
[0017] Establish a duplicate work detection model, which includes convolutional layers and linear layers;
[0018] The convolution layer extracts features of the input work image through a feature extractor to construct its image feature vector;
[0019] The linear layer uses a classifier to perform binary classification on the image feature vector of the input work image and the image feature vector of the work image on the blockchain to determine whether it is a duplicate work.
[0020] In one embodiment, the feature extractor extracts features of the input work image to construct its feature vector, including:
[0021] Preprocess the input work image;
[0022] The shape features and texture features of the preprocessed work image are extracted to construct its image feature vector.
[0023] In one embodiment, the feature extractor extracts features of an input work image to construct its feature vector, and also includes: extracting features of the author's creation of the preprocessed work image to construct its author's creation feature vector; the calligraphy and painting works include calligraphy works and Chinese painting works; the author's creation features of the calligraphy work image include pen point features, handwriting point features, habit point features and grayscale effect features; the author's creation features of the Chinese painting work image include artistic effect features, composition features and blank space features.
[0024] In one embodiment, the preprocessing comprises:
[0025] Grayscale the input work image;
[0026] The grayscale image is sharpened by Laplace transform;
[0027] The image after sharpening is filtered, and the processing formula is:
[0028]
[0029] Wherein, h(m,n) is the pixel value of pixel (m,n) in the image after filtering, k(p,q) is the pixel grayscale value of pixel (p,q) in the neighborhood of pixel (m,n) before filtering, R is the neighborhood of (m,n), and f is the Gaussian kernel function;
[0030] The filtered image is segmented to extract its foreground pixels.
[0031] In one embodiment, the copyright protection platform for calligraphy and painting works calls the author copyright confirmation module to check the author information of the calligraphy and painting works that have not returned the failure message of chaining by the work duplication detection module with the works that have been chained, and if the authors are different, a new author tag is generated for the received calligraphy and painting works; the author tag includes the author's creation feature vector information;
[0032] If the authors are the same, the author tag information will be compared with the author tag information of the works that have been uploaded to the chain. If they match, an author tag that is the same as the work of the same author that has been uploaded to the chain will be generated for the received calligraphy and painting works; if they do not match, the user will be required to provide proof of the creation process of the work. If the proof can prove the originality of the author and the received calligraphy and painting works, the author tag information of the author will be updated, otherwise a chain failure message will be returned.
[0033] In one embodiment, generating and adding a digital watermark to the received calligraphy and painting works includes:
[0034] Separate the R, G, and B channels of the calligraphy and painting works uploaded by users, and grayscale the watermark images;
[0035] The B channel of the calligraphy and painting work image is processed by discrete cosine transform domain algorithm (DCT) to obtain the low-frequency sub-band of the calligraphy and painting work image;
[0036] Change the pixel position of the grayscale watermark image to achieve watermark scrambling encryption;
[0037] The low-frequency subband of the calligraphy and painting image and the scrambled encrypted watermark image are decomposed by QR to obtain the low-frequency part matrix Q m (x,y) and R m (x,y), the matrix Q of the watermark image n (x,y) and R n (x,y);
[0038] The R of the scrambled watermark image n The (x,y) matrix is embedded into the low-frequency subband R of the calligraphy and painting image with ɑ as the correction coefficient. m(x, y) matrix to obtain a new R(x, y). The embedding algorithm formula is R(x, y) = R m (x, y) + ɑR n (x, y).
[0039] In one embodiment, the clustering includes:
[0040] S601. All nodes use the RSA algorithm to generate a public key PK and a private key SK;
[0041] S602. Input the private key SK and a randomly generated message M into an evaluation function to generate a random string S and a proof P, and broadcast the random string S generated by each node;
[0042] S603. After each node receives n strings, set the cluster centers to m, where m < n, and use the K-Means clustering algorithm to cluster them into m categories;
[0043] S604. Each node broadcasts a verification message;
[0044] S605. After each node receives the verification message, use the verification algorithm to decrypt and verify the m category strings obtained in step S603, and find the corresponding category through the clustering address;
[0045] S606. After clustering is completed, wait to execute the FBA consensus algorithm.
[0046] In a second aspect, an electronic device is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is executed by the processor:
[0047] The user initiates a request to create an NFT and uploads the digital version of the calligraphy and painting work to the calligraphy and painting work copyright protection platform; the calligraphy and painting work copyright protection platform calls the work duplication detection module to compare the received calligraphy and painting work with the works that have been uploaded to the chain. If there is a duplication, a message of failure to upload to the chain is returned; the calligraphy and painting work copyright protection platform calls the author copyright confirmation module to check the author information of the calligraphy and painting works that have not returned a message of failure to upload to the chain by the work duplication detection module with the works that have been uploaded to the chain. If the authors are different, a new author tag is generated for the received calligraphy and painting work; the author tag contains the author's creation feature vector information; if the authors are the same, it is compared with the author tag information of the works that have been uploaded to the chain. If they match, an author tag identical to the works of the same author that have been uploaded to the chain is generated for the received calligraphy and painting work; if they do not match, the user is required to provide the work creation process. The copyright protection platform for calligraphy and painting works calls the digital watermark module to generate a digital watermark for the received calligraphy and painting works; the digital watermark module adds the generated watermark to the calligraphy and painting works, and returns the image of the calligraphy and painting works with the watermark to the copyright protection platform for calligraphy and painting works; the copyright protection platform for calligraphy and painting works encrypts the calligraphy and painting works with the watermark through an encryption algorithm, and then calls the distributed file system to store the image of the calligraphy and painting works in the distributed file system, and receives the hash value returned by the distributed file system; the copyright protection platform for calligraphy and painting works calls the smart contract to create a corresponding NFT for the user, and returns a successful chaining message to the user.
[0048] In a third aspect, a computer readable storage medium is provided, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
[0049] The user initiates a request to create an NFT and uploads the digital version of the calligraphy and painting work to the calligraphy and painting work copyright protection platform; the calligraphy and painting work copyright protection platform calls the work duplication detection module to compare the received calligraphy and painting work with the works that have been uploaded to the chain. If there is a duplication, a message of failure to upload to the chain is returned; the calligraphy and painting work copyright protection platform calls the author copyright confirmation module to check the author information of the calligraphy and painting works that have not returned a message of failure to upload to the chain by the work duplication detection module with the works that have been uploaded to the chain. If the authors are different, a new author tag is generated for the received calligraphy and painting work; the author tag contains the author's creation feature vector information; if the authors are the same, it is compared with the author tag information of the works that have been uploaded to the chain. If they match, an author tag identical to the works of the same author that have been uploaded to the chain is generated for the received calligraphy and painting work; if they do not match, the user is required to provide the work creation process. The copyright protection platform for calligraphy and painting works calls the digital watermark module to generate a digital watermark for the received calligraphy and painting works; the digital watermark module adds the generated watermark to the calligraphy and painting works, and returns the image of the calligraphy and painting works with the watermark to the copyright protection platform for calligraphy and painting works; the copyright protection platform for calligraphy and painting works encrypts the calligraphy and painting works with the watermark through an encryption algorithm, and then calls the distributed file system to store the image of the calligraphy and painting works in the distributed file system, and receives the hash value returned by the distributed file system; the copyright protection platform for calligraphy and painting works calls the smart contract to create a corresponding NFT for the user, and returns a successful chaining message to the user.
[0050] Based on the scheme of the embodiment of the present application, users need to first check the duplicate works and confirm the copyright of the author before putting the calligraphy and painting works on the chain, so as to avoid duplication or plagiarism of works on the chain in the early stage and reduce the cost of subsequent discovery; the watermark module provides copyright protection without damaging the image, and provides a zero-watermark mode image for calligraphy and painting that does not affect viewing; the clustering FBA consensus algorithm reduces the number of interactions between nodes in the consensus process to improve the algorithm performance. The scheme of the present application realizes the protection of the copyright of calligraphy and painting works from a system perspective, and greatly improves the security and convenience of copyright protection, providing a good foundation for the subsequent transaction of copyright of calligraphy and painting works. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a basic flow chart of the copyright protection method for calligraphy and painting works based on blockchain.
[0052] Figure 2 It is the flow chart of clustering FBA consensus algorithm.
[0053] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0055] As mentioned above, the current blockchain digital product copyright protection scheme has the pain points of confirming rights, using rights, and maintaining rights, as well as the problem of copyright data storage in the entire copyright protection stage. In view of this, this application provides a copyright protection scheme for calligraphy and painting works based on blockchain, which can effectively solve the above problems.
[0056] Figure 1 This is a basic flow chart of the copyright protection method for calligraphy and painting works based on blockchain in the embodiment of this application. Figure 1 The method shown can be performed by the corresponding device below, including:
[0057] Step S101: The user initiates a request to create an NFT and uploads the digital version of the calligraphy and painting work to the calligraphy and painting copyright protection platform.
[0058] Among them, NFT, the full name of which is Non-Fungible Token, refers to non-fungible token, which is essentially a trusted digital equity certificate with unique characteristics in the blockchain network. It is a data object that can record and process multi-dimensional and complex attributes on the blockchain.
[0059] In one embodiment, calligraphy and painting works can also be equivalently replaced by any digital works that can be presented in the form of images, such as photographs, illustrations, design drawings, etc.
[0060] Step S102, the copyright protection platform for calligraphy and painting works calls the work duplication detection module to compare the received calligraphy and painting works with the works that have been uploaded to the chain. If there are duplications, a message indicating that the upload to the chain has failed is returned.
[0061] In one embodiment, the work duplication detection module specifically includes:
[0062] Establish a duplicate work detection model, which includes convolutional layers and linear layers;
[0063] The convolution layer extracts features of the input work image through a feature extractor to construct its image feature vector;
[0064] The linear layer uses a classifier to perform binary classification on the image feature vector of the input work image and the image feature vector of the work image on the blockchain to determine whether it is a duplicate work.
[0065] In one embodiment, the feature extractor extracts features of the input work image to construct its feature vector, including:
[0066] Preprocess the input work image;
[0067] The shape features and texture features of the preprocessed work image are extracted to construct its image feature vector.
[0068] In one embodiment, the preprocessing comprises:
[0069] Grayscale the input work image; since most of the calligraphy and painting images are color images with three color channels of R, G, and B, it is time-consuming for the computer to process the image, and then image segmentation and feature extraction are required, so the image must be grayscaled. Image grayscale refers to converting the three channels of a color image into one channel, so that the color of the pixel becomes gray.
[0070] The grayscale image is sharpened through Laplace transform; due to the differences in the shooting techniques of calligraphy and painting images, there may be a problem that the difference between the work itself and the background is not obvious. Therefore, image sharpening is required to increase the pixel difference between the calligraphy and painting and its surrounding background, so that its features become more obvious. At the same time, the computer can process the image more quickly after the calligraphy and painting is processed through image sharpening.
[0071] The image after sharpening is filtered, and the processing formula is:
[0072]
[0073] Wherein, h(m,n) is the pixel value of pixel (m,n) in the image after filtering, k(p,q) is the pixel grayscale value of pixel (p,q) in the neighborhood of pixel (m,n) before filtering, R is the neighborhood of (m,n), and f is the Gaussian kernel function;
[0074] The filtered image is segmented to extract its foreground pixels.
[0075] The filtering method used in this embodiment is nonlinear filtering, which can better highlight the edge information of objects in the image, and the filtering method can enhance the difference between the pixel position information and the pixel gray value.
[0076] In one embodiment, based on the basic process Figure 1In step S102, the copyright protection platform for calligraphy and painting works calls the author copyright confirmation module to check the author information of the calligraphy and painting works that have not returned the failure message of chaining by the work duplication judgment module with the works that have been chained. If the authors are different, a new author tag is generated for the received calligraphy and painting works; the author tag includes the author's creation feature vector information;
[0077] If the authors are the same, the author tag information will be compared with the author tag information of the works that have been uploaded to the chain. If they match, an author tag that is the same as the work of the same author that has been uploaded to the chain will be generated for the received calligraphy and painting works; if they do not match, the user will be required to provide proof of the creation process of the work. If the proof can prove the originality of the author and the received calligraphy and painting works, the author tag information of the author will be updated, otherwise a chain failure message will be returned.
[0078] In one embodiment, the feature extractor extracts features of an input work image to construct its feature vector, and also includes: extracting features of the author's creation of the preprocessed work image to construct its author's creation feature vector; the calligraphy and painting works include calligraphy works and Chinese painting works; the author's creation features of the calligraphy work image include pen point features, handwriting point features, habit point features and grayscale effect features; the author's creation features of the Chinese painting work image include artistic effect features, composition features and blank space features.
[0079] Among them, the focus of calligraphy technology is on the three basic requirements of basic strokes, structure, and layout. The development process of calligraphy in terms of oracle bone script, large seal script, small seal script, official script, regular script (regular script), running script, and cursive script in basic strokes is evolved from basic strokes. Only by starting from the three aspects of calligraphy, such as points, lines, and styles, can we identify writing habits and individual characteristics. From the image of the work, we can find out the pen point characteristics, handwriting point characteristics, and habitual point characteristics of each author, and the artistic effects of thick, thin, burnt, and flying white in calligraphy creation can be characterized by grayscale effect characteristics.
[0080] The biggest difference between Chinese painting and Western painting is the characteristics of materials, composition, expression, artistic conception, etc. Chinese painting materials include rice paper, ink, pigment, seal and other materials. (1) Cooked rice paper is mainly used for "fine brushwork and heavy color" creation. Through the superposition of layers of rendering and heavy effect, the requirements of the virtual and real artistic conception of the work can be gradually achieved. Fine brushwork and heavy color basically pursue the key point (point) of the "real" object in the picture; raw rice paper is generally used for freehand painting. In particular, raw rice paper will have unexpected "mechanical effect" characteristics such as "ice pattern" in the work, which is also the artistic effect characteristics pursued by the creator. (2) The composition characteristics of the picture layout of Chinese painting, such as using scattered perspective to depict characters, deliberately exaggerating and enlarging the key characters according to the needs of the picture, highlighting the self-expression of the creator; (3) The ancient painting rule in Chinese painting is "thrifty ink as gold", that is, in the artistic conception of the picture, it is important to leave a "blank" processing method as the key "point" of collecting freehand brushwork, leaving room for the viewer's imagination, that is, the blank feature. This results in each author having a different way of processing artistic conception, and also helps to discover each author's style and characteristics.
[0081] Step S103: the calligraphy and painting copyright protection platform calls the digital watermark module to generate a digital watermark for the received calligraphy and painting.
[0082] Step S104: the digital watermark module adds the generated watermark to the calligraphy and painting work, and returns the image of the calligraphy and painting work with the watermark added to the calligraphy and painting work copyright protection platform.
[0083] Embedding a watermark in an image can verify whether the image has been tampered with. Therefore, it is very necessary to embed a watermark in an image of a painting or calligraphy work. In this application, a watermark is embedded in an invisible way. The image after embedding the watermark is invisible to the user, so it does not affect the user's perception.
[0084] In one embodiment, generating and adding a digital watermark to the received calligraphy and painting works includes:
[0085] Separate the R, G, and B channels of the calligraphy and painting works uploaded by users, and grayscale the watermark images;
[0086] The B channel of the calligraphy and painting work image is processed by discrete cosine transform domain algorithm (DCT) to obtain the low-frequency sub-band of the calligraphy and painting work image;
[0087] Change the pixel position of the grayscale watermark image to achieve watermark scrambling encryption;
[0088] The low-frequency subband of the calligraphy and painting image and the scrambled encrypted watermark image are decomposed by QR to obtain the low-frequency part matrix Q m (x,y) and R m (x,y), the matrix Q of the watermark imagen (x,y) and R n (x,y);
[0089] The R of the scrambled watermark image n The (x,y) matrix is embedded into the low-frequency subband R of the calligraphy and painting image with ɑ as the correction coefficient. m (x, y) matrix, and obtain the new R(x, y). The embedding algorithm formula is R(x, y) = R m (x,y)+ɑR n (x,y).
[0090] Step S105, the calligraphy and painting copyright protection platform encrypts the calligraphy and painting works with the watermark added by an encryption algorithm, then calls the distributed file system, stores the calligraphy and painting works image in the distributed file system, and receives the hash value returned by the distributed file system.
[0091] Step S106: The copyright protection platform for calligraphy and painting works calls the smart contract to create a corresponding NFT for the user and returns a successful message to the user; the smart contract is deployed in the Ethereum blockchain, and the creation of the corresponding NFT includes:
[0092] Call the NFT casting module and fill in the NFT name, description, and price;
[0093] Initiate a proposal and start the consensus module to reach consensus;
[0094] Users synchronize states to generate corresponding NFTs.
[0095] In one embodiment, the blockchain uses a clustered FBA consensus algorithm to achieve blockchain node consensus, specifically including:
[0096] In the pre-preparation stage, n identical consensus nodes are clustered into m categories, and the FBA consensus algorithm is performed within each category. At the same time, the FBA consensus algorithm is performed between the master nodes of each category.
[0097] See also Figure 2 In one embodiment, the clustering includes:
[0098] S601. All nodes use the RSA algorithm to generate public keys PK and private keys SK;
[0099] S602. Input the private key SK and the randomly generated message M into the evaluation function, generate a random string S and a proof P, and broadcast the random string S generated by each node;
[0100] After each node has received n strings, set m cluster centers, where m < n, and use the K-Means clustering algorithm to cluster them into m categories;
[0101] S604. Each node broadcasts a verification message;
[0102] S605. After each node receives the verification message, use the verification algorithm to decrypt and verify the m category strings obtained in step S603, and find the corresponding category through the clustering address;
[0103] S606. After clustering is completed, wait to execute the FBA consensus algorithm.
[0104] In the FBA consensus algorithm, the number of interactions required to reach a consensus will increase explosively as the number of nodes increases, where the number of interactions is F(n) = 2n(n - 1), and n is the number of nodes. In this application, by clustering the nodes, the size of n is actively reduced, greatly reducing the number of interactions in the consensus process and improving the performance of the algorithm.
[0105] Figure 3 It is a schematic structural diagram of an electronic device in an embodiment of the present application. At the hardware level, the electronic device includes a processor, and also includes an internal bus, a network interface, and a memory. Among them, the memory includes a memory, such as a random access memory (RAM), which can also be DRAM or SRAM, and also includes a non-volatile memory, such as a disk memory, a hard disk, etc. Of course, the electronic device may also include other hardware required for other services.
[0106] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include a memory and a non-volatile memory, and provide instructions and data to the processor.
[0107] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a calligraphy and painting works copyright protection device logically.
[0108] In addition, an embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by a portable electronic device including multiple application programs, the portable electronic device can be enabled to execute Figure 1 the method of the illustrated embodiment.
[0109] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0110] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0111] The above are only embodiments of this specification and are not intended to limit this specification. For those skilled in the art, this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification should be included in the scope of the claims of this specification.
Claims
1. A blockchain-based copyright protection method for calligraphy and painting works, characterized in that: The method comprises: The user initiates a request to create an NFT and uploads the digital version of the calligraphy and painting work to the calligraphy and painting copyright protection platform; the calligraphy and painting copyright protection platform calls the work duplication detection module to compare the received calligraphy and painting work with the works that have been uploaded to the chain. If there is a duplication, a message of chain upload failure is returned; The copyright protection platform for calligraphy and painting works calls the digital watermark module to generate a digital watermark for the received calligraphy and painting works; The digital watermark module adds the generated watermark to the calligraphy and painting work, and returns the image of the calligraphy and painting work with the watermark to the calligraphy and painting work copyright protection platform; The calligraphy and painting copyright protection platform encrypts the calligraphy and painting works with the watermark added by an encryption algorithm, then calls a distributed file system, stores the calligraphy and painting works image in the distributed file system, and receives a hash value returned by the distributed file system; The copyright protection platform for calligraphy and painting works calls the smart contract to create a corresponding NFT for the user and returns a successful message to the user; the smart contract is deployed in the Ethereum blockchain, and the creation of the corresponding NFT includes: Call the NFT casting module and fill in the NFT name, description, and price; Initiate a proposal and start the consensus module to reach consensus; The user performs state synchronization to generate the corresponding NFT; The blockchain adopts the clustering FBA consensus algorithm to achieve blockchain node consensus, which specifically includes: In the pre-preparation stage, n identical consensus nodes are clustered into m categories, and the FBA consensus algorithm is performed within each category. At the same time, the FBA consensus algorithm is performed between the master nodes of each category.
2. The method according to claim 1, characterized in that The work duplication detection module specifically includes: Establish a duplicate work detection model, which includes convolutional layers and linear layers; The convolution layer extracts features of the input work image through a feature extractor to construct its image feature vector; The linear layer uses a classifier to perform binary classification on the image feature vector of the input work image and the image feature vector of the work image on the blockchain to determine whether it is a duplicate work.
3. The method according to claim 2, characterized in that The feature extractor extracts features of the input work image to construct its feature vector, including: Preprocess the input work image; The shape features and texture features of the preprocessed work image are extracted to construct its image feature vector.
4. The method according to claim 3, characterized in that The feature extractor extracts features of the input work image to construct its feature vector, It also includes: extracting the author's creative features of the pre-processed work image to construct its author's creative feature vector; the calligraphy and painting works include calligraphy works and Chinese painting works; the author's creative features of the calligraphy work image include pen point features, handwriting point features, habit point features and grayscale effect features; the author's creative features of the Chinese painting work image include artistic effect features, composition features and blank space features.
5. The method according to claim 3, characterized in that: The pre-processing comprises: Grayscale the input work image; The grayscale image is sharpened by Laplace transform; The image after sharpening is filtered, and the processing formula is: Among them, h(m,n) is the pixel value of the pixel point (m,n) after filtering in the image, k(p,q) is the pixel gray value of the pixel point (p,q) in the neighborhood of the pixel point (m,n) before filtering, R is the neighborhood of (m,n), and f is the Gaussian kernel function; Segment the image after filtering to extract its foreground pixel points.
6. The method according to claim 4, characterized in that It also includes that the calligraphy and painting works copyright protection platform calls the author copyright confirmation module to check the author information of the calligraphy and painting works for which the work duplication checking module does not return an upload failure message and the works that have been uploaded to the chain. If the authors are different, a new author label is generated for the received calligraphy and painting works; the author label contains the author creation feature vector information; If the authors are the same, compare with the author label information of the works that have been uploaded to the chain. If they match, a same author label as that of the works that have been uploaded to the chain for the same author is generated for the received calligraphy and painting works; If they do not match, the user needs to provide proof materials for the work creation process. If the proof materials can prove the originality of the author and the received calligraphy and painting works, update the author label information of the author, otherwise return an upload failure message.
7. The method according to claim 1, characterized in that The generation and addition of digital watermark for the received calligraphy and painting works include: Separate the R, G, and B channels of the calligraphy and painting work image uploaded by the user, and grayscale the watermark image; Process the B channel of the calligraphy and painting work image through the discrete cosine transform domain algorithm (DCT) to obtain the low-frequency sub-band of the calligraphy and painting work image; Change the pixel point positions of the grayscaled watermark image to implement watermark scrambling and encryption; The low-frequency subband of the calligraphy and painting image and the scrambled encrypted watermark image are decomposed by QR to obtain the low-frequency part matrix Q m (x,y) and R m (x,y), the matrix Q of the watermark image n (x,y) and R n (x,y); The R of the scrambled watermark image n The (x,y) matrix is embedded into the low-frequency subband R of the calligraphy and painting image with ɑ as the correction coefficient. m (x, y) matrix, and obtain the new R(x, y). The embedding algorithm formula is R(x, y) = R m (x,y)+ɑR n (x,y).
8. The method according to claim 1, characterized in that The clustering includes: S601. All nodes generate a public key PK and a private key SK using the RSA algorithm; S602. Input the private key SK and the randomly generated message M into the evaluation function to generate a random string S and a proof P, and broadcast the random string S generated by each node; S603. After each node receives n strings, set the number of cluster centers to m, where m < n, and use the K-Means clustering algorithm to cluster them into m categories; S604. Each node broadcasts a verification message; S605. After each node receives the verification message, decrypt and verify the m category strings obtained in step S603 using the verification algorithm, and find the corresponding category through the clustering address; S606. After clustering is completed, wait to execute the FBA consensus algorithm.
9. An electronic device, characterized in that: It includes: One or more processors; A memory for storing processor-executable instructions; Among them, the processor realizes the method described in any one of claims 1-8 by running the executable instructions.
10. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed by the processor, the steps of the method described in any one of claims 1-8 are realized.
