Blockchain-based digital collection issuance method, device, electronic device and medium
By obtaining component probability data and user configuration data, combining randomness factors to process digital collections, and using blockchain technology, the problem of the lack of personalization and uniqueness of digital collections in the existing technology is solved, and unique images are generated based on user preferences. Ensure that its ownership is clear.
Patent Information
- Application Number
- CN202311511639.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Existing digital collection issuance methods cannot flexibly adjust the weight and position of image components according to user preferences, resulting in generated images that lack uniqueness and surprise and cannot meet the personalized needs of users.
By obtaining the component's probability data and user configuration data, the digital collection is processed with randomness factors to ensure that the images generated are different each time, and blockchain technology is used for tamper-proof preservation and distribution.
It realizes the generation of unique digital collections based on user preferences, introduces random factors to ensure that the images generated are different each time, and uses blockchain technology to ensure that their ownership is clear and cannot be tampered with.
Smart Images

Figure HDA0004547566870000011 
Figure HDA0004547566870000021 
Figure HDA0004547566870000022
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of virtual digital technology, and specifically to a method, device, electronic device and medium for issuing digital collections based on blockchain. Background Art
[0002] Digital collections refer to unique digital certificates generated using blockchain technology for specific works and artworks. They are digital works, artworks and commodities with rights and interests. On the basis of protecting their digital copyrights, they can be distributed, purchased, collected and used in a authentic and reliable digital way. The technical characteristics of digital collections include uniqueness, indivisibility, immutability, verifiability, scarcity, etc. These characteristics make digital collections unique, with clear ownership and permanent preservation value.
[0003] At present, digital collections are mostly issued in fixed styles such as pictures and models of digital collections. When users participate in digital collection projects, they already know the style of the works, so they lack the surprise of obtaining digital collections. So, when users configure image components according to their preferences, how to ensure that the generated images are different each time, and how to flexibly adjust the weights and positions of components to meet the personalized needs of users has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a blockchain-based digital collection issuance method, device, electronic device and medium to solve the problem in the prior art of how to ensure that the image generated each time is different when the user configures the image components according to his or her preferences, and can flexibly adjust the weights and positions of the components to meet the user's personalized needs.
[0005] According to a first aspect of the disclosed embodiments, a method for issuing digital collections based on blockchain is provided, comprising: obtaining component probability data of each component, and determining a target component based on the component probability data; obtaining user configuration data of each component, and performing superposition processing on the target component based on the user configuration data to obtain a primary digital collection; obtaining a randomness factor, and performing randomness factor processing on the primary digital collection based on the randomness factor to obtain a target digital collection; obtaining the blockchain technology of a target blockchain platform, and performing blockchain processing on the target digital collection based on the blockchain technology, and uploading the processed target digital collection to the target blockchain platform.
[0006] In some optional implementations of some embodiments, the above-mentioned obtaining of component probability data of each component includes: obtaining user weight data of each component; obtaining system default weight data of each component; and obtaining component probability data of each component based on the above-mentioned user weight and the above-mentioned system default weight.
[0007] In some optional implementations of some embodiments, the above-mentioned determining the target component based on the above-mentioned component probability data includes: determining the target category and target quantity of the target component based on the above-mentioned component probability data; traversing the component library based on the above-mentioned target category to determine the target component class; and selecting the above-mentioned target quantity of target components in the target component class.
[0008] In some optional implementations of some embodiments, the user configuration data includes position data and size data of each component, and the method of obtaining the user configuration data of each component and superimposing the target component based on the user configuration data to obtain a primary digital collection includes: obtaining the user configuration data, fine-tuning the target component based on the position data and the size data to obtain a fine-tuned target component; and superimposing the fine-tuned target component using thumbnail generation technology to obtain a primary digital collection.
[0009] In some optional implementations of some embodiments, the above-mentioned obtaining of random factors, performing random factor processing on the above-mentioned primary digital collection based on the above-mentioned random factors to obtain the target digital collection, includes: obtaining random factors, the above-mentioned random factors include: position factor, angle factor and transparency factor; moving the position of the target component in the above-mentioned primary digital collection based on the above-mentioned position factor; rotating the angle of the target component in the above-mentioned primary digital collection based on the above-mentioned angle factor; adjusting the transparency of the target component in the above-mentioned primary digital collection based on the above-mentioned transparency factor.
[0010] In some optional implementations of some embodiments, the above method also includes: after obtaining the component probability data of each component, obtaining historical component probability data, and determining whether there is historical component probability data that is identical to the above component probability data; if there is historical component probability data that is identical to the above component probability data, obtaining historical target components corresponding to the above historical component probability data; when selecting the above target number of target components in the target component class, the above target components are not completely consistent with the above historical target components.
[0011] In some optional implementations of some embodiments, before uploading the processed target digital collection to the target blockchain platform, the above method also includes: performing a pre-output test on the processed target digital collection to determine whether the integrity of the target digital collection reaches a preset threshold; if the integrity of the target digital collection reaches the preset threshold, the processed target digital collection is uploaded to the target blockchain platform.
[0012] According to a second aspect of the disclosed embodiments, a device for issuing digital collections based on blockchain is provided, the device comprising: a target component determination unit, configured to obtain component probability data of each component, and determine the target component based on the component probability data; a primary digital collection generation unit, configured to obtain user configuration data of each component, and perform superposition processing on the target component based on the user configuration data to obtain a primary digital collection; a random factor processing unit, configured to obtain a random factor, and perform random factor processing on the primary digital collection based on the random factor to obtain a target digital collection; a target digital collection uploading unit, configured to obtain the blockchain technology of a target blockchain platform, perform blockchain processing on the target digital collection based on the blockchain technology, and upload the processed target digital collection to the target blockchain platform.
[0013] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0014] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0015] One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: first, the component probability data of each component is obtained, and the target component is determined based on the above-mentioned component probability data; then, the user configuration data of each component is obtained, and the above-mentioned target component is superimposed based on the above-mentioned user configuration data to obtain a primary digital collection; thereafter, a random factor is obtained, and the above-mentioned primary digital collection is subjected to random factor processing based on the above-mentioned random factor to obtain a target digital collection; finally, the blockchain technology of the target blockchain platform is obtained, and the above-mentioned target digital collection is subjected to blockchain processing based on the above-mentioned blockchain technology, and the processed target digital collection is uploaded to the target blockchain platform. The present disclosure provides a method for issuing digital collections based on blockchain by obtaining the component probability data of each component and determining the target component based on the above-mentioned component probability data. Users can configure image components according to their preferences to generate unique images, and introduce random factors to ensure that the images generated each time are different. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0017] Figure 1 It is a schematic diagram of an application scenario of a blockchain-based digital collection issuance method according to some embodiments of the present disclosure;
[0018] Figure 2 It is a flowchart of some embodiments of the blockchain-based digital collection issuance method according to the present disclosure;
[0019] Figure 3 It is a schematic diagram of the structure of some embodiments of the blockchain-based digital collection issuance device according to the present disclosure;
[0020] Figure 4 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0022] A blockchain-based digital collection issuance method, device, electronic device, and medium according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0023] Figure 1 It is a schematic diagram of an application scenario of a blockchain-based digital collection issuance method according to some embodiments of the present disclosure.
[0024] exist Figure 1 In the application scenario, first, the computing device 101 can obtain the component probability data 102 of each component, and determine the target component 103 based on the above component probability data 102; obtain the user configuration data 104 of each component, and perform superposition processing on the above target component 103 based on the above user configuration data 104 to obtain the primary digital collection 105; obtain the randomness factor 106, and perform random factor processing on the above primary digital collection 105 based on the above randomness factor 106 to obtain the target digital collection 107; obtain the blockchain technology 108 of the target blockchain platform, and perform blockchain processing on the above target digital collection based on the above blockchain technology 108, and upload the processed target digital collection 108 to the target blockchain platform 109.
[0025] It should be noted that the computing device 101 can be hardware or software. When the computing device 101 is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device 101 is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.
[0026] It should be understood that Figure 1 The number of computing devices 101 in FIG. 1 is only illustrative. Any number of computing devices 101 may be provided according to implementation requirements.
[0027] Figure 2 It is a flowchart of some embodiments of the blockchain-based digital collection issuance method according to the present disclosure. Figure 2 The blockchain-based digital collection issuance method can be Figure 1 The computing device 101 executes. Figure 2 As shown, the blockchain-based digital collection issuance method includes the following steps:
[0028] Step S201, obtaining component probability data of each component, and determining a target component based on the component probability data.
[0029] In some embodiments, the execution entity of the blockchain-based digital collection issuance method (such as Figure 1 The computing device 101 shown can obtain the component type selected by the user, such as headwear, background, body, etc., by interacting with the user, and assign weights to each component, which weights represent the user's preference for each component.
[0030] In some embodiments, the execution subject may obtain user weight data of each component; obtain system default weight data of each component; and obtain component probability data of each component based on the user weight and the system default weight. Here, component probability data = user weight * system default weight, the user weight is obtained by interacting with the user, and user weight + system default weight = 1.
[0031] In some embodiments, the execution subject may determine the target category and target quantity of the target component based on the component probability data; traverse the component library based on the target category to determine the target component class; and select the target quantity of target components in the target component class. Here, the component library is classified according to component category, subcomponents are defined according to component category, and combination rules are set.
[0032] Step S202, obtaining user configuration data of each component, and performing superposition processing on the target component based on the user configuration data to obtain a primary digital collection.
[0033] In some embodiments, the user configuration data includes the position data and size data of each component. The execution entity can obtain the user configuration data, and fine-tune the target component based on the position data and the size data to obtain the fine-tuned target component; and use the thumbnail generation technology to overlay the fine-tuned target component to obtain a primary digital collection. Fine-tune each component according to the position and size information specified by the user to ensure that they can be correctly superimposed together. The above-mentioned fine-tuning includes providing the user with an interface. The first step is to configure the weight, and the second step is to configure the component coordinates. When merging layers, check that the coordinates are consistent and automatically superimposed. Use the improved Thumbnailator (thumbnail generation) technology to overlay each component on a blank canvas to obtain a primary digital collection. Here, Thumbnailator is improved and optimized, and the source code is adjusted mainly based on the following aspects:
[0034] Memory management: By default, Thumbnailator loads the entire image into memory, which can cause memory issues for large images. We have optimized its memory management and used chunked loading for image processing to reduce memory usage.
[0035] Parallel processing: Use multithreading and asynchronous processing to speed up the image processing process. By modifying the Thumbnailator source code, parallel processing can be achieved, especially for the case of processing a large number of images.
[0036] Image compression: Image compression is one of the key factors to improve performance. By adjusting its source code, a more efficient image compression algorithm can be implemented to reduce the size of the generated image file.
[0037] Caching strategies: Thumbnailator can implement caching strategies to avoid repeatedly loading and processing the same image. This is done by hashing and identifying images and processing steps.
[0038] Exception Handling: Improve exception handling to provide more detailed error information and troubleshooting support, making it easier to identify and resolve issues.
[0039] Step S203, obtaining a random factor, and performing random factor processing on the primary digital collection based on the random factor to obtain a target digital collection.
[0040] In some embodiments, the execution subject may obtain a random factor, which includes a position factor, an angle factor, and a transparency factor; based on the position factor, the position of the target component in the primary digital collection is moved; based on the angle factor, the angle of the target component in the primary digital collection is rotated; based on the transparency factor, the transparency of the target component in the primary digital collection is adjusted. Here, the position factor, the angle factor, and the transparency factor are set by the user and can be adjusted based on the user's needs.
[0041] Step S204, obtaining the blockchain technology of the target blockchain platform, performing blockchain processing on the target digital collection based on the blockchain technology, and uploading the processed target digital collection to the target blockchain platform.
[0042] In some embodiments, the above-mentioned execution entity can obtain the type of blockchain technology used by the target blockchain platform, and the target blockchain platform will provide corresponding interfaces for interaction between applications and blockchains. Obtain corresponding API interfaces and documents, and integrate blockchain technology into the application generated by the digital collections of the blockchain based on the obtained API interfaces and documents. After obtaining the blockchain technology of the target blockchain platform, the target digital collections are processed by blockchain, including: creating a unique identifier for the digital collections on the blockchain, ensuring that the ownership of the digital collections is clear, and using the tamper-proof nature of the blockchain to protect the digital collections. The target digital collections processed by blockchain can be uploaded to the target blockchain platform for storage and distribution. The target blockchain platform will provide corresponding upload interfaces and tools to facilitate users to upload digital collections to the platform.
[0043] In some optional embodiments, the method further includes: after obtaining the component probability data of each component, obtaining the historical component probability data, determining whether there is the same historical component probability data as the component probability data; if there is the same historical component probability data as the component probability data, obtaining the historical target component corresponding to the historical component probability data; when selecting the target component of the target quantity in the target component class, the target component is not completely consistent with the historical target component. This prevents users with the same preferences from obtaining exactly the same target digital collections.
[0044] In some optional embodiments, the method further includes: performing a pre-output test on the processed target digital collection to determine whether the integrity of the target digital collection reaches a preset threshold; if the integrity of the target digital collection reaches the preset threshold, the processed target digital collection is uploaded to the target blockchain platform. Specifically, in order to ensure the accuracy and reliability of the test, a test environment that meets the requirements needs to be prepared. This includes the hardware equipment, software tools, network resources, etc. required for the test. The processed target digital collection is imported into the test environment for subsequent test operations. For the processed target digital collection, the corresponding test cases are designed and run to check its integrity and correctness. These test cases may include functional tests, performance tests, security tests, etc. According to the test results, the integrity and correctness of the processed target digital collection are analyzed. If problems or defects are found, they need to be adjusted and repaired in a timely manner. After the problem is repaired, it is necessary to retest to ensure that the problem has been resolved and the integrity of the digital collection reaches the preset threshold. If the integrity of the processed target digital collection reaches the preset threshold after repeated testing, it can be uploaded to the target blockchain platform for storage and distribution.
[0045] One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: first, the component probability data of each component is obtained, and the target component is determined based on the above-mentioned component probability data; then, the user configuration data of each component is obtained, and the above-mentioned target component is superimposed based on the above-mentioned user configuration data to obtain a primary digital collection; thereafter, a random factor is obtained, and the above-mentioned primary digital collection is subjected to random factor processing based on the above-mentioned random factor to obtain a target digital collection; finally, the blockchain technology of the target blockchain platform is obtained, and the above-mentioned target digital collection is subjected to blockchain processing based on the above-mentioned blockchain technology, and the processed target digital collection is uploaded to the target blockchain platform. The present disclosure provides a method for issuing digital collections based on blockchain by obtaining the component probability data of each component and determining the target component based on the above-mentioned component probability data. Users can configure image components according to their preferences to generate unique images, and introduce random factors to ensure that the images generated each time are different.
[0046] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0047] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0048] Figure 3 Schematic diagram of the structure of some embodiments of the blockchain-based digital collection issuance device according to the present disclosure. Figure 3As shown, the blockchain-based digital collection issuance device includes: a target component determination unit 301, a primary digital collection generation unit 302, a random factor processing unit 303 and a target digital collection upload unit 304. Among them, the target component determination unit 301 is configured to obtain component probability data of each component and determine the target component based on the above component probability data. The primary digital collection generation unit 302 is configured to obtain user configuration data of each component, and perform superposition processing on the above target component based on the above user configuration data to obtain a primary digital collection. The random factor processing unit 303 is configured to obtain a random factor, and perform random factor processing on the above primary digital collection based on the above random factor to obtain a target digital collection. The target digital collection upload unit 304 is configured to obtain the blockchain technology of the target blockchain platform, perform blockchain processing on the above target digital collection based on the above blockchain technology, and upload the processed target digital collection to the target blockchain platform.
[0049] In some optional implementations of some embodiments, the target component determination unit 301 of the blockchain-based digital collection issuance device is further configured to: obtain user weight data of each component; obtain system default weight data of each component; and obtain component probability data of each component based on the above user weight and the above system default weight.
[0050] In some optional implementations of some embodiments, the target component determination unit 301 of the blockchain-based digital collection issuance device is further configured to: determine the target category and target quantity of the target component based on the above-mentioned component probability data; traverse the component library based on the above-mentioned target category to determine the target component class; and select the above-mentioned target quantity of target components in the target component class.
[0051] In some optional implementations of some embodiments, the primary digital collection generation unit 302 of the blockchain-based digital collection issuance device is further configured to: obtain user configuration data, fine-tune the above-mentioned target component based on the above-mentioned position data and the above-mentioned size data, and obtain the fine-tuned target component; use thumbnail generation technology to overlay the fine-tuned target component to obtain the primary digital collection.
[0052] In some optional implementations of some embodiments, the random factor processing unit 303 of the blockchain-based digital collection issuance device is further configured to: obtain a random factor, the random factor including: a position factor, an angle factor and a transparency factor; move the position of the target component in the primary digital collection based on the position factor; rotate the angle of the target component in the primary digital collection based on the angle factor; and adjust the transparency of the target component in the primary digital collection based on the transparency factor.
[0053] In some optional implementation methods of some embodiments, the blockchain-based digital collection issuance device is further configured to: after obtaining the component probability data of each component, obtain the historical component probability data to determine whether there is historical component probability data that is identical to the above component probability data; if there is the above historical component probability data that is identical to the above component probability data, obtain the historical target component corresponding to the above historical component probability data; when selecting the above target number of target components in the target component class, the above target component is not completely consistent with the above historical target component.
[0054] In some optional implementations of some embodiments, the blockchain-based digital collection issuance device is further configured to: before uploading the processed target digital collection to the target blockchain platform, the above method also includes: performing a pre-output test on the processed target digital collection to determine whether the integrity of the target digital collection reaches a preset threshold; if the integrity of the target digital collection reaches the preset threshold, the processed target digital collection is uploaded to the target blockchain platform.
[0055] It is understood that the units described in the device are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device and the units contained therein, and will not be repeated here.
[0056] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
[0057] Figure 4 Schematic diagram of a computer device 4 provided in an embodiment of the present disclosure. Figure 4 As shown, the computer device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0058] Exemplarily, the computer program 403 may be divided into one or more modules / units, which are stored in the memory 402 and executed by the processor 401 to complete the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 403 in the computer device 4.
[0059] The computer device 4 may be a desktop computer, a notebook computer, a PDA, a cloud server, or other computer devices. The computer device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 It is only an example of computer device 4 and does not constitute a limitation of computer device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0060] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0061] The memory 402 may be an internal storage unit of the computer device 4, for example, a hard disk or memory of the computer device 4. The memory 402 may also be an external storage device of the computer device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 4. Further, the memory 402 may also include both an internal storage unit and an external storage device of the computer device 4. The memory 402 is used to store computer programs and other programs and data required by the computer device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
[0062] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0063] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0064] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0065] In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which may be electrical, mechanical or other forms.
[0066] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0067] In addition, each functional unit in each embodiment of the present disclosure 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-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0068] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0069] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.
Claims
1. A method for issuing digital collections based on blockchain, characterized in that: The method comprises: Acquire component probability data of each component, and determine a target component based on the component probability data; Obtaining user configuration data of each component, and performing superposition processing on the target component based on the user configuration data to obtain a primary digital collection; Obtaining a random factor, and performing random factor processing on the primary digital collection based on the random factor to obtain a target digital collection; Obtaining the blockchain technology of the target blockchain platform, performing blockchain processing on the target digital collection based on the blockchain technology, and uploading the processed target digital collection to the target blockchain platform; The obtaining of component probability data of each component includes: Get user weight data of each component; Get the system default weight data of each component; Based on the user weight and the system default weight, component probability data of each component is obtained; The determining the target component based on the component probability data comprises: determining a target category and a target quantity of a target component based on the component probability data; Traverse the component library based on the target category to determine the target component class; Selecting the target number of target components in the target component class; The user configuration data includes position data and size data of each component, and the step of obtaining the user configuration data of each component and performing superposition processing on the target component based on the user configuration data to obtain the primary digital collection includes: Acquire user configuration data, and fine-tune the target component based on the position data and the size data to obtain a fine-tuned target component; The fine-tuned target components are superimposed using thumbnail generation technology to obtain a primary digital collection; The step of obtaining the random factor and performing random factor processing on the primary digital collection based on the random factor to obtain the target digital collection includes: Obtaining a random factor, wherein the random factor includes: a position factor, an angle factor, and a transparency factor; Moving the position of the target component in the primary digital collection based on the position factor; Rotating the angle of the target component in the primary digital collection based on the angle factor; The transparency of the target component in the primary digital collection is adjusted based on the transparency factor.
2. The method for issuing digital collections based on blockchain according to claim 1, characterized in that: The method further comprises: After obtaining component probability data of each component, obtaining historical component probability data, and determining whether there is historical component probability data identical to the component probability data; If the historical component probability data that is the same as the component probability data exists, obtaining the historical target component corresponding to the historical component probability data; When selecting the target number of target components in the target component class, the target components are not completely consistent with the historical target components.
3. The method for issuing digital collections based on blockchain according to claim 1, characterized in that: Before uploading the processed target digital collection to the target blockchain platform, the method further includes: Performing a pre-output test on the processed target digital collection to determine whether the integrity of the target digital collection reaches a preset threshold; If the integrity of the target digital collection reaches the preset threshold, the processed target digital collection is uploaded to the target blockchain platform.
4. A digital collection issuance device based on blockchain, comprising: a target component determination unit, configured to obtain component probability data of each component and determine the target component based on the component probability data; A primary digital collection generating unit is configured to obtain user configuration data of each component, and perform superposition processing on the target component based on the user configuration data to obtain a primary digital collection; A random factor processing unit is configured to obtain a random factor, and perform random factor processing on the primary digital collection based on the random factor to obtain a target digital collection; A target digital collection uploading unit is configured to obtain the blockchain technology of the target blockchain platform, perform blockchain processing on the target digital collection based on the blockchain technology, and upload the processed target digital collection to the target blockchain platform; The target component determination unit includes: Get user weight data of each component; Get the system default weight data of each component; Based on the user weight and the system default weight, component probability data of each component is obtained; The determining the target component based on the component probability data comprises: determining a target category and a target quantity of a target component based on the component probability data; Traverse the component library based on the target category to determine the target component class; Selecting the target number of target components in the target component class; The user configuration data includes position data and size data of each component, and the step of obtaining the user configuration data of each component and performing superposition processing on the target component based on the user configuration data to obtain the primary digital collection includes: Acquire user configuration data, and fine-tune the target component based on the position data and the size data to obtain a fine-tuned target component; The fine-tuned target components are superimposed using thumbnail generation technology to obtain a primary digital collection; The step of obtaining the random factor and performing random factor processing on the primary digital collection based on the random factor to obtain the target digital collection includes: Obtaining a random factor, wherein the random factor includes: a position factor, an angle factor, and a transparency factor; Moving the position of the target component in the primary digital collection based on the position factor; Rotating the angle of the target component in the primary digital collection based on the angle factor; The transparency of the target component in the primary digital collection is adjusted based on the transparency factor.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Digital copyright multi-permission attribute encryption management system based on blockchain
CN113507359A
Block chain-based head portrait processing method, device and equipment
CN114595471A
Digital collection issuing supervision method and device based on block chain, and storage medium
CN115310056A
Digital collection display method, device and equipment
CN115860740A
Digital collection picture generation method and device, terminal equipment and storage medium
CN115908638A
