Space scene generation method, electronic device, medium and program product

By receiving environment description text and generating associated constraints, it solves the time-consuming and labor-intensive problem of constructing 3D scene and image data sets, achieves fast and high-quality image data set generation, simplifies the image data set generation process and reduces costs.

WO2024221355A1PCT designated stage expired Publication Date: 2024-10-31SIEMENS AG +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/091280
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In the existing technology, building a 3D scene and generating an image data set requires a lot of time and effort, and previously constructed 3D scenes are difficult to reuse, resulting in an increase in project implementation cycle and cost.

Method used

By receiving text containing environmental descriptions of objects of interest, extracting object names and attribute information, obtaining CAD models, generating associated constraints based on this information, and updating spatial scenes, thereby generating two-dimensional images and high-quality image data sets.

Benefits of technology

It achieves fast and high-quality generation of spatial scenes and image data sets, simplifies the image data set generation process, saves costs, and ensures the accuracy and completeness of image data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023091280_31102024_PF_FP_ABST
    Figure CN2023091280_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a space scene generation method, comprising: receiving a first text, wherein the first text comprises an environment description comprising an object of interest; extracting a first group of information from the first text, wherein the first group of information comprises the name and attribute information of the object of interest; acquiring a corresponding CAD model according to the name of the object of interest; generating association constraints between the name of the object of interest and the attribute information of the object of interest according to the name of the object of interest and the attribute information of the object of interest to obtain a first group of association constraints; deleting the first group of information from the first text, and obtaining a second group of information; generating a two-dimensional image according to the second group of information; establishing a space scene; and taking the two-dimensional image as the background of the space scene, and configuring the acquired CAD model in the space scene according to the first group of association constraints so as to update the space scene.
Need to check novelty before this filing date? Find Prior Art

Description

Method for generating space scene, electronic device, medium and program product Technical Field

[0001] The embodiments of the present application mainly relate to the field of artificial intelligence technology, and in particular to a method for generating a spatial scene, an electronic device, a medium, and a program product. Background Art

[0002] In recent years, using image datasets to train AI models has received increasing attention in machine learning research. However, obtaining large, relevant, high-quality image datasets is challenging. Currently, the most common approach involves first constructing a 3D scene and then rendering it with high fidelity to obtain the corresponding image dataset. 3D scenes are often constructed manually, requiring significant time and effort. Furthermore, even for similar projects, previously constructed 3D scenes cannot be reused, requiring designers to re-model them from scratch, which increases the overall project implementation cycle and cost.

[0003] Summary of the Invention

[0004] The embodiments of the present application provide a method, electronic device, medium, and program product for generating a spatial scene. Through the embodiments of the present application, a corresponding spatial scene can be generated quickly and with high quality using only a text containing an environmental description of an object of interest.

[0005] In a first aspect, a method for generating a spatial scene is provided, comprising: receiving a first text, wherein the first text comprises: an environment description including an object of interest; extracting a first group of information from the first text, wherein the first group of information comprises: a name of the object of interest and attribute information of the object of interest; obtaining a corresponding CAD model according to the name of the object of interest; generating association constraints between the name of the object of interest and the attribute information of the object of interest according to the name of the object of interest and the attribute information of the object of interest, to obtain a first group of association constraints; deleting the first group of information in the first text to obtain a second group of information; generating a two-dimensional image according to the second group of information; establishing a spatial scene; using the two-dimensional image as the background of the spatial scene, and configuring the obtained CAD model in the spatial scene according to the first group of association constraints to update the spatial scene.

[0006] In a second aspect, an electronic device is provided, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute each step of the method provided in the first aspect.

[0007] According to a third aspect, a computer-readable medium is provided, on which a computer program is stored, and the program is used by a processor to execute the steps of the method provided in the first aspect.

[0008] In a fourth aspect, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform the steps of the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The following figures are intended only to illustrate and explain the embodiments of the present application and are not intended to limit the scope of the embodiments of the present application.

[0010] FIG1 is a flowchart of a method for generating a spatial scene according to an embodiment of the present application;

[0011] FIG2 is a schematic diagram of association constraints in a first scenario according to an embodiment of the present application;

[0012] FIG3 is a schematic diagram of an electronic device according to an embodiment of the present application.

[0013] DESCRIPTION OF REFERENCE NUMERALS 100 : Method for generating a spatial scene 101 - 104 : Method steps 300 : Electronic device 301 : Processor 302 : Communication interface 303 : Memory 304 : Communication bus 305 : Program DETAILED DESCRIPTION

[0014] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that discussing these embodiments is merely to enable those skilled in the art to better understand and implement the subject matter described herein, and is not intended to limit the scope of protection, applicability, or examples set forth in the claims. The functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the embodiments of the present application. Various examples may omit, replace, or add various processes or components as needed. For example, the described method may be performed in an order different from the described order, and various steps may be added, omitted, or combined. In addition, the features described relative to some examples may also be combined in other examples.

[0015] As used herein, the term "including" and its variations are open terms meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.

[0016] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0017] FIG1 is a flow chart of a method for generating a spatial scene according to an embodiment of the present application. As shown in FIG1 , the method 100 for generating a spatial scene includes:

[0018] Step 101: Receive a first text, wherein the first text includes: a description of an environment including an object of interest.

[0019] Step 102: extract a first set of information from the first text, where the first set of information includes: a name of an object of interest and attribute information of the object of interest.

[0020] Optionally, the name of the object of interest may include the model and name of the object of interest. Optionally, the attribute information of the object of interest includes: the position, size, material and / or color of the object of interest.

[0021] Optionally, the name of the object of interest and the attribute information of the object of interest in the first text can be extracted using a pre-trained information extraction tool or a preset keyword extraction template. Assume that in the first scenario, the content of the received first text includes: In a motor production workshop, there is a T01-type workbench on the ground, and the workbench has a D01-type base with a height of 80cm*50cm*10cm. On the base is a G01-type workpiece made of aluminum alloy. There is also an R01-type robot on the workshop floor.

[0022] Extracting the name of the object of interest and the attribute information of the object of interest from the first text may include the following:

[0023] Step 103: Obtain the corresponding CAD model according to the name of the object of interest.

[0024] Optionally, the name of the object of interest is searched in a preset CAD model library to obtain a corresponding CAD model.

[0025] Optionally, the corresponding CAD model can be generated by the name of the object of interest through artificial intelligence generated content (AIGC) technology.

[0026] Step 104 : generating association constraints between the name of the object of interest and the attribute information of the object of interest according to the name of the object of interest and the attribute information of the object of interest, thereby obtaining a first set of association constraints.

[0027] Optionally, when multiple names of objects of interest are extracted, association constraints between the multiple objects of interest, as well as association constraints between the name of each of the multiple objects of interest and the corresponding attribute information, are generated based on the names of the multiple objects of interest and their corresponding attribute information. For example, in the first scenario, the first set of association constraints obtained may be as shown in FIG2 .

[0028] Optionally, the association constraint between multiple objects of interest refers to a spatial constraint, and the association constraint between the name of an object of interest and a corresponding attribute refers to an attribute constraint.

[0029] Step 105: Delete the first set of information from the first text to obtain the second set of information.

[0030] In one embodiment, before step 105, if the corresponding CAD model cannot be obtained using the name of the object of interest, the name of the object of interest and its attribute information are deleted from the first set of information, resulting in an updated first set of information. Assuming that in the first scenario, in step 103, the CAD models corresponding to the T01 workbench, D01 base, and G01 workpiece are obtained, but the CAD model of the R01 robot is not obtained, the relevant information about the R01 robot is deleted from the first set of information, i.e., the first set of information no longer contains relevant information about the R01 robot. After executing step 104, the updated first set of information is deleted from the first text, resulting in a second set of information. Thus, the second set of information not only includes environmental information, such as the motor production workshop in the first scenario, but also includes relevant information about the R01 robot.

[0031] Step 106: Generate a two-dimensional image based on the second set of information.

[0032] In one embodiment, assuming that the second set of information includes relevant information of the R01 robot, the generated two-dimensional image also includes the R01 robot.

[0033] Step 107: Create a spatial scene.

[0034] Specifically, it is recommended to establish a blank three-dimensional space scene containing a Cartesian coordinate system.

[0035] Step 108 : Using the two-dimensional image as the background of the spatial scene, configuring the acquired CAD model in the spatial scene according to the first set of association constraints to update the spatial scene.

[0036] Optionally, in the first scenario, the first set of association constraints shown in Figure 2 includes association constraints between multiple objects of interest, and association constraints between multiple objects of interest and corresponding attribute information. Then, in step 108, the acquired CAD model is configured in the spatial scene according to the first set of association constraints, specifically: the acquired multiple CAD models are mapped in the spatial scene based on geometric constraints, and the attributes of the related objects of interest are configured based on attribute constraints.

[0037] The embodiment of the present application fully parses the information in the first text. In addition to retrieving the relevant CAD model, it combines the association constraints between multiple objects of interest generated by the names and attribute information of the objects of interest extracted through the first text, as well as the association constraints between multiple objects of interest and corresponding attribute information, thereby generating a corresponding spatial scene. The background of the spatial scene is also composed of a corresponding two-dimensional image generated by the relevant information in the first text. Through the embodiment of the present application, a corresponding spatial scene can be generated quickly and with high quality using only a text containing an environmental description of the object of interest. All information in the first text can be converted into expressions of relevant elements in the spatial scene.

[0038] In one embodiment, after step 108, a scene description file corresponding to the spatial scene is obtained. This scene description file is input into a renderer to perform rendering for each of the multiple camera perspectives. At the same time, annotation information corresponding to the currently rendered image is obtained, thereby obtaining an image dataset with annotation information. Optionally, the scene description file is in USD format.

[0039] Optionally, obtaining annotation information corresponding to the current rendering includes at least one of the following:

[0040] Obtain the name of the object of interest through the CAD model of the object of interest;

[0041] Obtain type information of the object of interest through the CAD model of the object of interest;

[0042] Generate the location information of the object of interest in the current rendering;

[0043] Generates the pixel region of the object of interest in the current rendering.

[0044] The embodiment of the present application greatly simplifies the generation of image datasets and can save a lot of costs. The embodiment of the present application can generate a realistic image dataset with annotated information based on the input text. This embodiment can also perform well in complex scenarios, because in the embodiment of the present application, all the information in the first text will be converted into expressions of relevant elements in the spatial scene, and therefore it will be reflected in each rendered image, which can avoid the omission of any objects of interest and related attribute information and background. By rendering the spatial scene containing the object of interest and its related details from multiple camera perspectives, richer and more realistic image data can be obtained. High-quality image datasets are the most important basis for training relevant AI models so that relevant AI models can make more accurate predictions.

[0045] FIG3 is a schematic diagram of an electronic device according to an embodiment of the present application. The specific embodiments of the present application do not limit the specific implementation of the electronic device. As shown in FIG3 , the electronic device 300 may include: a processor 301, a communications interface 302, a memory 303, and a communication bus 304.

[0046] The processor 301 , the communication interface 302 , and the memory 303 communicate with each other via the communication bus 304 .

[0047] The communication interface 302 is used to communicate with other electronic devices or servers.

[0048] The processor 301 is configured to execute a program 305 , and specifically may execute the relevant steps in any one of the aforementioned method embodiments.

[0049] Specifically, the program 305 may include program codes, which include computer operation instructions.

[0050] Processor 301 may be a CPU, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.

[0051] The memory 303 is used to store the program 305. The memory 303 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0052] The program 305 can be specifically used to enable the processor 301 to execute any one of the multiple method embodiments in the aforementioned embodiments.

[0053] The specific implementation of each step in program 305 can be found in the corresponding descriptions of the corresponding steps and units in the aforementioned data interaction model updating method embodiment, and will not be repeated here. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding process descriptions in the aforementioned method embodiment, and will not be repeated here.

[0054] The present application also provides a computer-readable storage medium storing instructions for causing a machine to perform any of the multiple method embodiments described herein. Specifically, a system or device equipped with a storage medium can be provided, wherein the storage medium stores software program code that implements the functions of any of the above-described embodiments, and a computer (or CPU or MPU) of the system or device can read and execute the program code stored in the storage medium.

[0055] In this case, the program code read from the storage medium itself can realize the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of this application.

[0056] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0057] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to perform any corresponding operation in the above-mentioned multiple method embodiments.

[0058] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0059] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or can be implemented as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded via a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here.

[0060] It should be noted that not all steps and modules in the above processes and system structure diagrams are required, and certain steps or modules can be omitted according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or may be implemented by certain components in multiple independent devices.

[0061] In the above embodiments, the hardware module can be implemented mechanically or electrically. For example, a hardware module can include a permanent dedicated circuit or logic (such as a dedicated processor, FPGA or ASIC) to complete the corresponding operation. The hardware module can also include programmable logic or circuits (such as a general-purpose processor or other programmable processors), which can be temporarily set by software to complete the corresponding operation. The specific implementation method (mechanical method, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.

[0062] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the scope of protection of the present invention.

Claims

1. A method for generating a spatial scene, include: - receiving (101) a first text, wherein the first text comprises: a description of an environment including an object of interest; - extracting (102) a first set of information from the first text, the first set of information comprising: a name of an object of interest and attribute information of the object of interest; -According to the name of the object of interest, obtaining (103) a corresponding CAD model; - generating (104) an association constraint between the name of the object of interest and the attribute information of the object of interest according to the name of the object of interest and the attribute information of the object of interest, to obtain a first set of association constraints; - deleting (105) the first set of information in the first text to obtain a second set of information; - generating (106) a two-dimensional image based on the second set of information; - establishing (107) a spatial scene; - Using the two-dimensional image as a background of the spatial scene, and configuring the acquired CAD model in the spatial scene according to the first set of association constraints (108) to update the spatial scene.

2. The method according to claim 1, in, After using the two-dimensional image as a background of the spatial scene and configuring the acquired CAD model in the spatial scene according to the first set of association constraints (108) to update the spatial scene, the method further includes: - Obtaining a scene description file corresponding to the spatial scene; - Inputting the scene description file into the renderer to render each of the multiple camera perspectives, while obtaining the annotation information corresponding to the current rendered image, to obtain an image data set with the annotation information.

3. The method according to claim 1, in, The name of the object of interest includes: the model and name of the object of interest.

4. The method according to claim 1, in, The attribute information of the object of interest includes: the position, size, material and / or color of the object of interest.

5. The method according to claim 1, in, According to the name of the object of interest, obtaining (103) a corresponding CAD model includes: -Searching the name of the object of interest in a preset CAD model library to obtain a corresponding CAD model.

6. The method according to claim 1, in, Generating (104) an association constraint between the name of the object of interest and the attribute information of the object of interest according to the name of the object of interest and the attribute information of the object of interest, including: -When the names of multiple objects of interest are extracted, association constraints between the multiple objects of interest and association constraints between the names of the multiple objects of interest and the corresponding attribute information of the objects of interest are generated according to the names of the multiple objects of interest and the attribute information of the corresponding objects of interest.

7. The method according to claim 1, in, Before deleting (105) the first set of information from the first text to obtain the second set of information, the method further includes: - When the corresponding CAD model cannot be obtained through the name of the object of interest, the name of the object of interest and the attribute information of the object of interest are deleted from the first group of information to obtain an updated first group of information.

8. The method according to claim 1, in, The first scene description file is a file in USD format.

9. The method according to claim 2, in, The obtaining of annotation information corresponding to the current rendering includes at least one of the following: - obtaining the name of the object of interest through the CAD model of the object of interest; - obtaining type information of the object of interest through the CAD model of the object of interest; - generating position information of the object of interest in the current rendering; - generating a pixel region of the object of interest in the current rendering.

10. An electronic device (300), include: A processor (301), a communication interface (302), a memory (303) and a communication bus (304), wherein the processor (301), the memory (303) and the communication interface (302) communicate with each other via the communication bus (304); The memory (303) is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for generating an image data set according to any one of claims 1 to 9.

11. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for generating an image data set according to any one of claims 1 to 9 is implemented.

12. A computer program product, the computer program product being tangibly stored on a computer-readable medium and comprising computer-executable instructions, which when executed cause at least one processor to perform the method for generating an image dataset according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method, device and apparatus for generating visualized model layout of space

    CN109426690A

  • Object matching method and device and equipment

    CN113762309A

  • Three-dimensional scene construction method and device, equipment and storage medium

    CN115147554A

  • Method for constructing three-dimensional scene model and image processing device

    CN115661366A

  • Synthetic dataset creation for object detection and classification with deep learning

    WO2023014369A1