Method, device and medium for generating digital image of aggregate gene
By creating multi-scale aggregate models and conductive material models, and combining the blueprint function to automatically extract aggregate gene characteristics in real-life scenarios, the problem of inefficiency in traditional label map production is solved, and efficient and accurate aggregate gene identification training set generation is achieved. .
Patent Information
- Application Number
- CN202410365170.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The production of label maps required for traditional aggregate gene identification training is inefficient and labor-consuming.
By creating a multi-scale basic aggregate model library and conductive material model, they are combined to form a conductive aggregate model, and water is added inside and on the surface of the model to build a realistic simulation scene. The blueprint function is used to automatically extract the genetic characteristics of the aggregate and generate Label images to form a recognition training set.
It greatly improves the efficiency and accuracy of label map production, reduces the need for manual annotation, and realizes automated recognition training data set generation.
Smart Images

Figure CN118262161B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent construction engineering, and more specifically, to a method, device and medium for generating a digital image of an aggregate gene. Background Art
[0002] Aggregate gene refers to the properties, structure, characteristics, and composition of aggregate, including particle size, strength, alkali activity, conductivity, moisture content, gradation, porosity, etc. Aggregate gene recognition technology is currently an online monitoring of aggregate quality through image visual detection. The soil and stone particle size and gradation detection system based on image recognition technology has been developed to improve the intelligence level of concrete mixing plants, which can avoid personnel negligence, improve the safety of the entire operation process, and greatly reduce the probability of incorrect feeding. At the same time, image recognition of aggregate moisture content and conductivity can ensure the strength and quality of aggregates and improve the safety of aggregate use. Therefore, the identification of aggregate genes is very important. However, to complete the identification, it is first necessary to conduct image recognition training on its neural network structure. The better the training level, the higher the accuracy. Training is inseparable from data sets and label map production. At present, label map production mostly relies on manual work based on the original Figure 1 Labeling one by one is a method that is inefficient, inaccurate, and labor-intensive. Summary of the invention
[0003] The present invention is provided to solve the above problems existing in the prior art. Therefore, a method, device and medium for generating digital images of aggregate genes are needed to solve the problems of low efficiency and labor consumption in making label images required for traditional aggregate gene recognition training.
[0004] According to a first aspect of the present invention, a method for generating a digital image of an aggregate gene is provided, the method comprising:
[0005] Step 1: Make a model, create a multi-scale basic aggregate model library and a conductive material model with conductivity;
[0006] Step 2: Combine the basic aggregate model and the conductive material into a conductive aggregate model, and obtain the conductivity of the conductive aggregate model, obtain the first aggregate model with conductive gene characteristics, and store it in the model library, and create a floating-point variable named conductivity for each first aggregate model and assign the corresponding conductivity size;
[0007] Step 3: Add water to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content, obtain the second aggregate model with the genetic characteristic of moisture content and store it in the model library, and obtain the genetic characteristic particle size of all second aggregate models, and create floating-point variables named moisture content and particle size for each second aggregate model and assign the corresponding genetic characteristic size;
[0008] Step 4: Create a realistic simulation scene and a scene observer, wherein the realistic simulation scene includes scenes of sunlight, volumetric fog, sky clouds and / or the ground and surrounding environment, and create a camera facing the ground as a scene observer, generate a random number of random types of aggregate models in the aggregate model library at random positions on the ground, realize intelligent extraction of the original image, and traverse all the generated aggregates through the blueprint to extract the genetic characteristics of the aggregates including conductivity, moisture content, and particle size, and calculate the particle size by formula to obtain the gradation;
[0009] Step 5: Render the ground into a first color body material, render the generated aggregate into a second color body material, render the conductive material therein into a third color body, and perform intelligent extraction of label images, wherein the first color body, the second color body, and the third color body are color bodies of different colors;
[0010] Step 6: Restore the ground of the first color body material to a realistic simulated material and delete the generated aggregate, repeat steps 4 and 5, obtain multiple groups of original images, label images and gene characteristics, and obtain aggregate conductivity, moisture content, and particle size grading recognition training sets.
[0011] Furthermore, in step 1, a model is obtained through Unreal Mall or modeling software to create a multi-scale basic aggregate model library and a conductive material model with conductivity.
[0012] Furthermore, in the step 2, the basic aggregate model and the conductive material model obtained in the step 1 are remodeled based on the visual model editing function of UE5. Through the merging, zooming in and out functions, the conductive material model is merged into the outer surface of the basic aggregate model to make it an aggregate model with conductive gene characteristics and stored in the model library. At the same time, a floating-point global variable named conductivity is created in UE5 for each first aggregate model, and the size of its genetic characteristic conductivity is obtained and assigned to this variable.
[0013] Furthermore, in step 3, secondary modeling is performed on the aggregate model in the model library in step 2. Based on the water body plug-in of UE5, water is added to the interior and surface of the first aggregate model, and its genetic characteristic moisture content is obtained at the same time. An aggregate model with a certain genetic characteristic of moisture content is obtained and stored in the model library. At the same time, the genetic characteristic particle size of all aggregate models is intelligently obtained through the measurement tool of UE5, and a floating-point global variable named moisture content and particle size is created for each second aggregate model, and the corresponding size is input. Finally, the conductivity, moisture content, and particle size are put together into a variable group named genetic characteristic.
[0014] Furthermore, in step 4:
[0015] Create a realistic scene in UE5, that is, create a scene with sunlight, volumetric fog, sky clouds, and a rectangular block as the ground and surrounding environment. At the same time, create a camera Actor facing the ground as a scene observer for intelligent extraction of original images and label images;
[0016] Based on the blueprint function of UE5, aggregate intelligent modeling is achieved by creating and connecting five nodes, namely, Generate Actor from Class, While Loop, Random Integer within Range, Random Float within Range, and Selection;
[0017] Randomly select multiple types from the aggregate model library, generate a random number of selected aggregate models at random different positions within the observation range of the observer at the same height on the ground, and let them fall freely on the ground to form a random state, and then realize the intelligent extraction of the original image. When all the aggregates reach a stable state, the observer shoots and extracts the original image;
[0018] By creating and connecting three blueprint nodes, namely, Get All Actors of the Class, For Each Loop, and Add Items to Array, the genetic characteristic variable group of all aggregates generated on the ground is traversed, their conductivity, moisture content, and particle size values are extracted, and the particle sizes are stored in a global array variable in turn, and the gradation is obtained through the formula.
[0019] Furthermore, in step 5, based on the UE5 material function, pure white self-luminous, pure blue self-luminous and pure black materials are created, and four blueprint nodes are created and connected. The four blueprint nodes are respectively to obtain all Actors of the class, convert the type to the aggregate class, For Each Loop, set the material, set the material of the ground to a pure black material, set the material of all generated aggregates to a pure white self-luminous material, set the material of the conductive material model in the aggregate to a pure blue self-luminous material, set the sky light intensity to 0, and perform intelligent extraction of label images through observer shooting to obtain label images in three colors: white, blue and black.
[0020] Furthermore, in step 6, six blueprint nodes are created and connected to restore the black ground material to a realistic simulated material and delete the generated aggregate. The six blueprint nodes include obtaining all Actors of a class, converting the type to an aggregate class, For Each Loop, setting a material, destroying an Actor, and clearing an array.
[0021] According to a second aspect of the present invention, there is provided a device for generating a digital image of an aggregate gene, the device comprising:
[0022] A model making module, configured to make a model, create a multi-scale basic aggregate model library and a conductive material model with conductivity;
[0023] The first aggregate model making module is configured to merge the basic aggregate model and the conductive material into a conductive aggregate model, and simultaneously obtain the conductivity of the gene characteristic of the conductive aggregate model, obtain the first aggregate model with the conductive gene characteristic and store it in the model library, and create a floating-point variable named conductivity for each first aggregate model and assign the corresponding conductivity value;
[0024] The second aggregate model making module is configured to add water to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content, obtain the second aggregate model with the moisture content genetic characteristic and store it in the model library, and obtain the characteristic particle size of all second aggregate models, and create floating-point variables named moisture content and particle size for each second aggregate model and assign the corresponding genetic characteristic size;
[0025] The real scene simulation module is configured to create a realistic simulated scene and a scene observer, wherein the realistic simulated scene includes scenes of sunlight, volumetric fog, sky clouds and / or the ground and surrounding environment, and a camera is created facing the ground as a scene observer, and a random number of random types of aggregate models in an aggregate model library are generated at random positions on the ground to realize intelligent extraction of the original image, and through a blueprint, all the generated aggregates are traversed to extract the genetic characteristics of the aggregates including electrical conductivity, moisture content, and particle size, and the particle size is calculated by formula to obtain the gradation;
[0026] A color labeling module is configured to render the ground as a first color body material, render the generated aggregate as a second color body material, render the conductive material therein as a third color body, and perform intelligent extraction of label images, wherein the first color body, the second color body, and the third color body are different color bodies;
[0027] The identification training set generation module is configured to restore the ground of the first color body material to a realistic simulated material and delete the generated aggregate, repeat steps 4 and 5, obtain multiple groups of original images, label images and gene characteristics, and obtain aggregate conductivity, moisture content, and particle size grading identification training sets.
[0028] Furthermore, the model making module is further configured to make and obtain models through Unreal Mall or modeling software, and create a multi-scale basic aggregate model library and a conductive material model with conductivity.
[0029] According to a third aspect of the present invention, there is provided a readable storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the method as described above.
[0030] The present invention has at least the following beneficial effects:
[0031] The present invention first adds a conductive aggregate model on the basis of a basic aggregate model, and then adds water inside and on the surface of the model after adding the conductive aggregate model to obtain a second aggregate model with moisture content gene characteristics, and uses floating-point variables corresponding to moisture content and particle size to name the second aggregate model, and then constructs a real simulation scene, simulates the real scene for the generated model, and then automatically labels it, so that a batch of recognition training data sets can be obtained, and label maps can be automatically generated without manual annotation, and the efficiency and accuracy are greatly improved, which solves the problems of low efficiency and labor consumption in producing label maps required for traditional aggregate gene recognition training. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flow chart of a method for generating a digital image of an aggregate gene according to an embodiment of the present invention is shown.
[0033] Figure 2 A structural diagram of a digital image generation device for aggregate genes according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments, but are not intended to limit the present invention. For the various steps described herein, if there is no necessity for a causal relationship between each other, the order in which they are described as examples herein should not be regarded as a limitation, and those skilled in the art should know that they can be adjusted in order, as long as the logic between them is not destroyed, resulting in the inability to implement the entire process.
[0035] Microbursts pose a fatal threat to aircraft flight safety, but the existing technology is not easy to detect dry microbursts. Therefore, an embodiment of the present invention provides a digital image generation method for aggregate genes. Figure 1 As shown, it is a flow chart of the method, and the method comprises the following steps:
[0036] S101. Obtain models through the Unreal Store or modeling software to create a large-scale multi-scale basic aggregate model library, which requires a variety of different shapes and a variety of different high-quality realistic material textures. At the same time, the conductive material model also requires a variety of different models and high-quality realistic material textures.
[0037] S102. Perform secondary modeling on the obtained basic aggregate model and conductive material model based on the visual model editing function of UE5. Through the merging, zooming in and out functions, merge the conductive material model into the outer surface of the basic aggregate model to make it an aggregate model with conductive gene characteristics and store it in the model library. At the same time, create a floating-point global variable named conductivity for each aggregate model in UE5, obtain the size of its genetic characteristic conductivity and assign it to this variable.
[0038] S103. Perform secondary modeling on the aggregate model in the model library. Based on the water plug-in of UE5, add water to the interior and surface of the basic aggregate model, and obtain its genetic characteristic moisture content. Obtain an aggregate model with a certain genetic characteristic of moisture content and store it in the model library. At the same time, use UE5's measurement tool to intelligently obtain the genetic characteristic particle size of all aggregate models, and create a floating-point global variable named moisture content and particle size for each aggregate model, and enter the corresponding size. Finally, put the conductivity, moisture content, and particle size together into a variable group named genetic characteristic.
[0039] S104. Create a high-quality realistic scene in UE5, that is, create a scene with sunlight, volumetric fog, sky clouds, and a rectangular block as the ground and surrounding environment. At the same time, create a camera Actor facing the ground as a scene observer for intelligent extraction of original images and label images. Based on the blueprint function of UE5, by creating and connecting five nodes, namely "Generate Actor from Class", "While Loop", "Random Integer within Range", "Random Floating Point within Range", and "Selection", intelligent modeling of aggregates is realized. Multiple types are randomly selected from the aggregate model library, and a random number of selected aggregate models are randomly generated at different positions within the observation range of the observer at the same height on the ground, so that they fall freely on the ground to form a random state. Then, intelligent extraction of the original image is realized. When all aggregates reach a stable state, the observer shoots and extracts the original image. Then, by creating and connecting three blueprint nodes, "Get all Actors of the class", "For Each Loop", and "Add items to array", we traverse the genetic characteristic variable group of all aggregates generated on the ground, extract their conductivity, moisture content, and particle size values, and store the particle sizes in a global array variable in turn, and then get the gradation through the formula.
[0040] S105. Based on the UE5 material function, create pure white self-luminous, pure blue self-luminous and pure black materials, then create and connect the four blueprint nodes of "Get All Actors of Class", "Type Conversion to Aggregate Class", "For Each Loop", and "Set Material", set the material of the ground to pure black material, set the material of all generated aggregates to pure white self-luminous material, set the material of the conductive material model in the aggregate to pure blue self-luminous material, and set the sky light intensity to 0 to eliminate the influence of sky light on the scene. Then, intelligently extract the label image through the observer shooting, and obtain the label image with three colors of white, blue and black.
[0041] S106. By creating and connecting 6 blueprint nodes, namely, "Get all Actors of a class", "Convert to aggregate class", "For Each Loop", "Set material", "Destroy Actor", and "Clear array", the black ground is restored to a realistic material and the generated aggregate is deleted. Then, the above steps 4 and 5 are repeated to obtain multiple sets of original images, label images, and gene characteristics, and obtain the aggregate conductivity, moisture content, and particle size distribution identification training set.
[0042] The embodiment of the present invention also provides a digital image generation device for aggregate genes, such as Figure 2 As shown, the device 200 includes:
[0043] The model making module 201 is configured to make a model, create a multi-scale basic aggregate model library and a conductive material model with conductivity;
[0044] The first aggregate model making module 202 is configured to merge the basic aggregate model and the conductive material into a conductive aggregate model, and simultaneously obtain the conductivity of the gene characteristic of the conductive aggregate model, obtain the first aggregate model with the conductive gene characteristic and store it in the model library, and create a floating-point variable named conductivity for each first aggregate model and assign the corresponding conductivity value;
[0045] The second aggregate model making module 203 is configured to add water to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content, obtain the second aggregate model with the moisture content genetic characteristic and store it in the model library, and obtain the characteristic particle size of all the second aggregate models, and create floating-point variables named moisture content and particle size for each second aggregate model and assign the corresponding genetic characteristic size;
[0046] The real scene simulation module 204 is configured to create a realistic simulated scene and a scene observer, wherein the realistic simulated scene includes scenes of sunlight, volumetric fog, sky clouds and / or the ground and surrounding environment, and creates a camera facing the ground as a scene observer, generates a random number of random types of aggregate models in an aggregate model library at random positions on the ground, realizes intelligent extraction of the original image, and traverses all the generated aggregates through a blueprint to extract the genetic characteristics of the aggregates including electrical conductivity, moisture content, and particle size, and calculates the particle size by formula to obtain the gradation;
[0047] The color labeling module 205 is configured to render the ground into a first color body material, render the generated aggregate into a second color body material, render the conductive material therein into a third color body, and perform intelligent label image extraction, wherein the first color body, the second color body and the third color body are different color bodies;
[0048] The identification training set generation module 206 is configured to restore the ground of the first color body material to a realistic simulated material and delete the generated aggregate, repeat steps 4 and 5, obtain multiple groups of original images, label images and gene characteristics, and obtain aggregate conductivity, moisture content, and particle size grading identification training sets.
[0049] Furthermore, the model making module is further configured to make and obtain models through Unreal Mall or modeling software, and create a multi-scale basic aggregate model library and a conductive material model with conductivity.
[0050] In some embodiments, the first aggregate model making module is further configured to perform secondary modeling on the acquired basic aggregate model and the conductive material model based on the visual model editing function of UE5, and merge the conductive material model into the outer surface of the basic aggregate model through the merging, zooming in and out functions, so that it becomes an aggregate model with conductive gene characteristics and is stored in the model library. At the same time, a floating-point global variable named conductivity is created in UE5 for each first aggregate model, and the size of its genetic characteristic conductivity is obtained and assigned to this variable.
[0051] In some embodiments, the second aggregate model making module is further configured to perform secondary modeling on the first aggregate model in the model library, and based on the water body plug-in of UE5, add water body to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content at the same time, so as to obtain an aggregate model with a certain moisture content genetic characteristic and store it in the model library, and at the same time, intelligently obtain the genetic characteristic particle size of all aggregate models through the measurement tool of UE5, and create a floating-point global variable named moisture content and particle size for each second aggregate model, and input the corresponding size, and finally put the conductivity, moisture content and particle size together into a variable group named genetic characteristic.
[0052] In some embodiments, the real scene simulation module is further configured to:
[0053] Create a realistic scene in UE5, that is, create a scene with sunlight, volumetric fog, sky clouds, and a rectangular block as the ground and surrounding environment. At the same time, create a camera Actor facing the ground as a scene observer for intelligent extraction of original images and label images;
[0054] Based on the blueprint function of UE5, aggregate intelligent modeling is achieved by creating and connecting five nodes, namely, Generate Actor from Class, While Loop, Random Integer within Range, Random Float within Range, and Selection;
[0055] Randomly select multiple types from the aggregate model library, generate a random number of selected aggregate models at random different positions within the observation range of the observer at the same height on the ground, and let them fall freely on the ground to form a random state, and then realize the intelligent extraction of the original image. When all the aggregates reach a stable state, the observer shoots and extracts the original image;
[0056] By creating and connecting three blueprint nodes, namely, Get All Actors of the Class, For Each Loop, and Add Items to Array, the genetic characteristic variable group of all aggregates generated on the ground is traversed, their conductivity, moisture content, and particle size values are extracted, and the particle sizes are stored in a global array variable in turn, and the gradation is obtained through the formula.
[0057] In some embodiments, the color marking module is further configured to create pure white self-luminous, pure blue self-luminous and pure black materials based on the UE5 material function, create and connect four blueprint nodes, and the four blueprint nodes are respectively to obtain all Actors of the class, convert the type to the aggregate class, For Each Loop, set the material, set the material of the ground to a pure black material, set the material of all generated aggregates to a pure white self-luminous material, set the material of the conductive material model in the aggregate to a pure blue self-luminous material, set the sky light intensity to 0, and perform intelligent extraction of label images through observer shooting to obtain label images in three colors: white, blue and black.
[0058] In some embodiments, the recognition training set generation module is further configured to restore the black material ground to a realistic simulated material and delete the generated aggregate by creating and connecting six blueprint nodes, and the six blueprint nodes include obtaining all Actors of the class, converting the type to the aggregate class, For Each Loop, setting the material, destroying the Actor, and clearing the array.
[0059] It should be noted that the various device structures described in this embodiment belong to the same technical concept as the previously described method, and achieve the same technical effect through the same principle, which will not be repeated here.
[0060] An embodiment of the present invention further provides a readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the method described in any of the above embodiments.
[0061] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present invention with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of this application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0062] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the present invention. This should not be interpreted as a feature of an invention that is not claimed for protection being necessary for any claim. On the contrary, the subject matter of the present invention may be less than all the features of the embodiments of a specific invention. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the full scope of the equivalent forms of the attached claims and these claims.
Claims
1. A method for generating a digital image of an aggregate gene, characterized in that: The method comprises: Step 1: Make a model, create a multi-scale basic aggregate model library and a conductive material model with conductivity; Step 2: Combine the basic aggregate model and the conductive material into a conductive aggregate model, and obtain the conductivity of the conductive aggregate model, obtain the first aggregate model with conductive gene characteristics, and store it in the model library, and create a floating-point variable named conductivity for each first aggregate model and assign the corresponding conductivity size; Step 3: Add water to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content, obtain the second aggregate model with the genetic characteristic of moisture content and store it in the model library, and obtain the genetic characteristic particle size of all second aggregate models, and create floating-point variables named moisture content and particle size for each second aggregate model and assign the corresponding genetic characteristic size; Step 4: Create a realistic simulation scene and a scene observer, wherein the realistic simulation scene includes scenes of sunlight, volumetric fog, sky clouds and / or the ground and surrounding environment, and create a camera facing the ground as a scene observer, generate a random number of random types of aggregate models in the aggregate model library at random positions on the ground, realize intelligent extraction of the original image, and traverse all the generated aggregates through the blueprint to extract the genetic characteristics of the aggregates including conductivity, moisture content, and particle size, and calculate the particle size by formula to obtain the gradation; Step 5: Render the ground into a first color body material, render the generated aggregate into a second color body material, render the conductive material therein into a third color body, and perform intelligent extraction of label images, wherein the first color body, the second color body, and the third color body are color bodies of different colors; Step 6: Restore the ground of the first color body material to a realistic simulated material and delete the generated aggregate, repeat steps 4 and 5, obtain multiple groups of original images, label images and gene characteristics, and obtain aggregate conductivity, moisture content, and particle size grading recognition training sets.
2. The method according to claim 1, characterized in that: In the step 1, a model is obtained through Unreal Mall or modeling software to create a multi-scale basic aggregate model library and a conductive material model with conductivity.
3. The method according to claim 1, characterized in that In the step 2, the basic aggregate model and the conductive material model obtained in step 1 are remodeled based on the visual model editing function of UE5. Through the merging, zooming in and out functions, the conductive material model is merged into the outer surface of the basic aggregate model to make it an aggregate model with conductive gene characteristics and stored in the model library. At the same time, a floating-point global variable named conductivity is created in UE5 for each first aggregate model, and the size of its genetic characteristic conductivity is obtained and assigned to this variable.
4. The method according to claim 1, characterized in that: In the step 3, secondary modeling is performed on the aggregate model in the model library in step 2. Based on the water plug-in of UE5, water is added to the interior and surface of the first aggregate model, and its genetic characteristic moisture content is obtained at the same time. An aggregate model with a certain moisture content genetic characteristic is obtained and stored in the model library. At the same time, the genetic characteristic particle size of all aggregate models is intelligently obtained through the measurement tool of UE5, and a floating-point global variable named moisture content and particle size is created for each second aggregate model, and the corresponding size is input. Finally, the conductivity, moisture content, and particle size are put together into a variable group named genetic characteristics.
5. The method according to claim 1, characterized in that In step 4: Create a realistic scene in UE5, that is, create a scene with sunlight, volumetric fog, sky clouds, and a rectangular block as the ground and surrounding environment. At the same time, create a camera Actor facing the ground as a scene observer for intelligent extraction of original images and label images; Based on the blueprint function of UE5, aggregate intelligent modeling is achieved by creating and connecting five nodes, namely, Generate Actor from Class, While Loop, Random Integer in Range, Random Float in Range, and Selection; Randomly select multiple types from the aggregate model library, generate a random number of selected aggregate models at random different positions within the observation range of the observer at the same height on the ground, and let them fall freely on the ground to form a random state, and then realize the intelligent extraction of the original image. When all the aggregates reach a stable state, the observer shoots and extracts the original image; By creating and connecting three blueprint nodes, namely, getting all Actors of the class, ForEach Loop, and adding items to the array, the genetic characteristic variable group of all aggregates generated on the ground is traversed, their conductivity, moisture content, and particle size values are extracted, and the particle sizes are stored in a global array variable in turn, and the gradation is obtained through the formula.
6. The method according to claim 1, characterized in that In the step 5, based on the UE5 material function, pure white self-luminous, pure blue self-luminous and pure black materials are created, and four blueprint nodes are created and connected. The four blueprint nodes are respectively to obtain all Actors of the class, convert the type to the aggregate class, For Each Loop, and set the material. The material of the ground is set to a pure black material, the material of all generated aggregates is set to a pure white self-luminous material, the material of the conductive material model in the aggregate is set to a pure blue self-luminous material, the sky light intensity is set to 0, and the label image is intelligently extracted through the observer to obtain a label image with three colors of white, blue and black.
7. The method according to claim 1, characterized in that In step 6, six blueprint nodes are created and connected to restore the black ground material to realistic simulated material and delete the generated aggregate. The six blueprint nodes include obtaining all Actors of the class, converting the type to the aggregate class, For Each Loop, setting the material, destroying the Actor, and clearing the array.
8. A digital image generation device for aggregate genes, characterized in that: The device comprises: A model making module, configured to make a model, create a multi-scale basic aggregate model library and a conductive material model with conductivity; The first aggregate model making module is configured to merge the basic aggregate model and the conductive material into a conductive aggregate model, and simultaneously obtain the conductivity of the gene characteristic of the conductive aggregate model, obtain the first aggregate model with the conductive gene characteristic and store it in the model library, and create a floating-point variable named conductivity for each first aggregate model and assign the corresponding conductivity value; The second aggregate model making module is configured to add water to the interior and surface of the first aggregate model, and obtain its genetic characteristic moisture content, obtain the second aggregate model with the moisture content genetic characteristic and store it in the model library, and obtain the genetic characteristic particle size of all second aggregate models, and create floating-point variables named moisture content and particle size for each second aggregate model and assign the corresponding genetic characteristic size; The real scene simulation module is configured to create a realistic simulated scene and a scene observer, wherein the realistic simulated scene includes scenes of sunlight, volumetric fog, sky clouds and / or the ground and surrounding environment, and a camera is created facing the ground as a scene observer, and a random number of random types of aggregate models in an aggregate model library are generated at random positions on the ground to realize intelligent extraction of the original image, and through a blueprint, all the generated aggregates are traversed to extract the genetic characteristics of the aggregates including electrical conductivity, moisture content, and particle size, and the particle size is calculated by formula to obtain the gradation; A color labeling module is configured to render the ground as a first color body material, render the generated aggregate as a second color body material, render the conductive material therein as a third color body, and perform intelligent extraction of label images, wherein the first color body, the second color body, and the third color body are different color bodies; The recognition training set generation module is configured to restore the ground of the first color body material to a realistic simulated material and delete the generated aggregate, repeatedly create realistic simulated scenes and scene observers, generate a random number of random types of aggregate models in the aggregate model library at random positions on the ground, realize intelligent extraction of the original image, and traverse all the generated aggregates through the blueprint to extract the genetic characteristics of the aggregates including conductivity, moisture content, and particle size, and calculate the particle size by formula to obtain the gradation; and render the ground with the first color body material, render the generated aggregate with the second color body material, render the conductive material therein into the third color body, and perform intelligent extraction of label images to obtain multiple groups of original images, label images and genetic characteristics, and obtain the aggregate conductivity, moisture content, and particle size gradation recognition training set.
9. The device according to claim 8, characterized in that The model making module is further configured to make and obtain models through Unreal Mall or modeling software, and create a multi-scale basic aggregate model library and a conductive material model with conductivity. 10 . A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, perform the method according to claim 1 .
Citation Information
Patent Citations
Simulation space model training data generation method based on unmanned container scene
CN112149348A
Intelligent detection method, system and equipment for gradation of aggregates with different depths of field in stock bin
CN117495843A
