Plant scheme drawing generation method and device
By obtaining the data of the plant matching scheme and scene base map associated with the environment, and using the rule engine to render the plants to the drawings, the problems of low efficiency and poor confidentiality in the existing technology are solved, and intelligent generation and efficient plant drawings are achieved.
Patent Information
- Application Number
- CN202510028851.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-01-08
AI Technical Summary
In the prior art, plant schemes require manual drawing when generating drawings, which are inefficient and have the risk of leaking confidential drawings.
By obtaining the plant matching scheme generated for the environment, rendering based on the environment-related scene base map and plant mapping data, and generating corresponding drawings. The method includes identifying the scene basemap, obtaining layout information, and rendering the plants to different locations of the basemap through a pre-built rule engine.
It realizes intelligent generation of plant drawings, improves the efficiency of drawing generation, avoids the shortcomings of manual drawings, and enhances the confidentiality of drawings.
Smart Images

Figure CN120030746A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information processing, and in particular to a method and device for generating plant scheme drawings. Background Art
[0002] In the related art, when generating drawings of plant plans, it is usually necessary to rely on manual drawing, which has poor drawing efficiency and also has the problem of confidential drawing leakage. Summary of the invention
[0003] The main purpose of the present invention is to provide a method and device for generating plant plan drawings to solve the deficiencies existing in the related art.
[0004] In order to achieve the above-mentioned purpose, according to a first aspect of the present invention, a method for generating a plant plan drawing is provided, comprising obtaining a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments; rendering is performed based on a scene base map associated with the environment and data mapped to each type of plant in the plant matching scheme to obtain a drawing corresponding to the environment.
[0005] Optionally, rendering based on the scene base map associated with the environment and the data of mapping each type of plant in the plant matching plan includes: identifying the scene base map to obtain the layout information of the scene; inputting the data of mapping each type of plant and the layout information into a pre-built rule engine, so as to render each type of plant to different positions in the base map through the rule engine.
[0006] Optionally, rendering different types of plants with different legends at different locations in the base map through a rule engine includes: determining legends corresponding to different types of plants based on the types of plants; and laying out legends corresponding to different types of plants at different locations in the base map based on the planting methods of each type of plants.
[0007] Optionally, when legends corresponding to different types of plants are arranged at different positions of the base map based on the planting methods of each type of plants, the method includes: determining the target type of plants at different positions of the base map based on the planting methods of each type of plants; determining the number of plants based on the data mapped by the target type of plants and the layout information at the corresponding positions; and arranging legends corresponding to different numbers and target types of plants at different positions of the base map.
[0008] Optionally, before obtaining the plant matching plan generated for the environment, the method includes: obtaining an environment selection request sent by the user end, and automatically generating a plant matching plan based on the selected environment.
[0009] According to a second aspect of the present invention, a plant scheme drawing generation device is provided, comprising: a plant matching scheme acquisition unit, used to acquire a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments; a drawing rendering unit, used to render based on a scene base map associated with the environment and data mapped to each type of plant in the plant matching scheme, to obtain a drawing corresponding to the environment.
[0010] Optionally, rendering based on the scene base map associated with the environment and the data of mapping each type of plant in the plant matching plan includes: identifying the scene base map to obtain the layout information of the scene; inputting the data of mapping each type of plant and the layout information into a pre-built rule engine, so as to render each type of plant to different positions in the base map through the rule engine.
[0011] Optionally, rendering different types of plants with different legends at different locations in the base map through a rule engine includes: determining legends corresponding to different types of plants based on the types of plants; and laying out legends corresponding to different types of plants at different locations in the base map based on the planting methods of each type of plants.
[0012] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to cause the computer to execute any one of the methods described in the first aspect.
[0013] According to a fourth aspect of the present invention, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one implementation of the first aspect.
[0014] The present embodiment provides a method and device for generating plant scheme drawings, wherein the method includes obtaining a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments; rendering is performed based on a scene base map associated with the environment and data mapped to each type of plant in the plant matching scheme to obtain drawings corresponding to the environment. Intelligent generation of plant drawings is achieved, overcoming the defect of poor manual drawing efficiency in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is a flow chart of a method for generating a plant plan drawing according to an embodiment of the present invention;
[0017] Figure 2a This is an example diagram of the effect of a plant plan drawing generated by the method of the embodiment of the present invention;
[0018] Figure 2b This is another example of the effect of the plant plan drawing generated by the method of the embodiment of the present invention;
[0019] Figure 2c This is another effect example diagram of a plant plan drawing generated by the method of the embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] According to an embodiment of the present invention, a method for generating a plant plan drawing is provided, such as Figure 1 As shown, it includes the following steps 101 to 103:
[0025] Step 101: Obtain a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments.
[0026] As an optional implementation of this embodiment, before obtaining the plant matching plan generated for the environment, the method includes: obtaining an environment selection request sent by the user end, and automatically generating a plant matching plan based on the selected environment.
[0027] In this step, the user can select different scenes through the web page of the user end or through the terminal APP. The scene can be a scene associated with the outdoor environment or a scene associated with the indoor environment. The scene associated with the outdoor environment can be a wetland park, a children's playground, a municipal park, a resort hotel, a rural greening, a commercial green space, a green building, a waterfront green space, a pocket park, a community green space, a forest park, a scenic spot, a special garden, a square green space, a rural complex, or a road green belt, etc. in the outdoor environment; the scene associated with the indoor environment can be a family environment, a company environment, a public place, etc., or a specific living room, bedroom, office, reception room, lobby, corridor, balcony, etc. The plant matching plan can be automatically matched according to the scene and area selected by the user.
[0028] Different regions determine the plants that can be matched in the plant configuration scheme. For example, the climates in Shanghai and Beijing are different, and the plants suitable for the two regions are different. After determining the target area, the scene selection component is presented for the target area. Different scenes have different characteristics. Different scenes determine the plants that can be matched in the plant configuration scheme. For example, in the wetland park scene in the outdoor environment, water-resistant plants suitable for growing in the wetland park are matched; if it is a children's playground in the outdoor scene, non-toxic, thornless, non-potentially harmful and colorful plants are matched, etc. For example, in the bedroom scene in the indoor environment, plants that absorb carbon and oxygen and help sleep are matched. If it is an indoor office scene, plants with smaller plants and certain radiation shielding functions are matched, etc. Different scenes can be pre-associated with plant-related features, such as non-toxicity, color, water resistance, cold resistance, etc., so as to perform feature matching when the server performs plant matching. There can be multiple plants that can be matched. In order not to make the final plant set open, constraints are required, such as users can increase the limit of green area. The number of plants can be determined based on the data mapped by different plants and the green area. The final plant set, i.e., the plant matching scheme, can be obtained by limiting the region, scene, and green area. For example, the data of plant mapping is used to describe plants. Each type of plant mapping has different data, including but not limited to the diameter at breast height, plant height, crown width, etc., which are not limited here. All plant-related data can be associated with the corresponding plant to form a mapping relationship for calling.
[0029] Step 102: Rendering is performed based on the scene base map associated with the environment and the data mapped to each type of plant in the plant matching scheme to obtain a drawing corresponding to the environment.
[0030] In this step, different scenes have different base maps. It should be understood that even scenes of the same type may have different base maps. The base map contains layout information of different elements in the scene, including location information of the elements and location relationship information between different elements. These elements include, but are not limited to, roads, water bodies, buildings, walls, etc. in outdoor environments; sofas, windows, desks, reception desks, etc. in indoor environments, which are not limited here. Drawings are obtained based on the layout information in the base map and the data rendering of the plant mapping in the plant matching plan.
[0031] As an optional implementation method of this embodiment, rendering based on the scene base map associated with the scene and the data mapped for each type of plant in the plant matching plan includes: identifying the scene base map to obtain the layout information of the scene; inputting the data mapped for each type of plant and the layout information into a pre-built rule engine, so as to render each type of plant to different positions in the base map through the rule engine.
[0032] In this optional implementation, the base map of the scene is identified, including row identification or column identification according to the coordinate system of the established base map, so as to obtain the position information of each element in the drawing, the position relationship between different elements, etc. After obtaining the layout information, the plants are further arranged at different positions in the base map based on the plant mapping data.
[0033] As an optional implementation method of this embodiment, rendering different types of plants with different legends to different positions in the base map through a rule engine includes: determining the legends corresponding to different types of plants based on the types of plants; and laying out the legends corresponding to different types of plants in different positions of the base map based on the planting methods of each type of plants.
[0034] In this optional implementation, different types of plants may have different legends. For example, circular or nearly circular legends may be used to represent trees or larger shrubs, cloud lines or cloud-line-like legends may represent small shrubs or ground cover plants, dot matrices or dot-matrix-like legends may represent lawns, and the size of the legend may represent the size of the plant.
[0035] The legend can be presented in different forms according to the information at different locations in the base map, such as size. For example, if there is enough space at the base map, the legend can be directly displayed on the drawing in the form of "legend + plant name" to show which plant the legend represents on the drawing; if there is not enough space, the legend can be displayed on the drawing in the form of "legend + number" or "legend + letter", etc., and a table can be attached to explain which plant the different numbers or letters represent. Through the above methods, the plant information can be transformed into a graphic form.
[0036] Furthermore, when the legends corresponding to different types of plants are laid out in different positions of the base map based on the planting methods of various types of plants, different plants can be laid out in the base map from the plant matching plan based on the layout information of the base map. The layout position of the plants in the base map can be determined according to the planting methods of the plants. If the position in the base map is a water area in an outdoor environment, then plants suitable for aquatic plants are matched at this position; if the layout position in the base map is an outdoor environment close to the road in a straight line, then plants suitable for row planting are matched. If the position in the base map is a children's room in an indoor environment, then non-toxic, thornless and odorless plants are matched at this position; if the position in the base map is a bathroom, then shade-tolerant and aromatic plants are matched at this position, and so on. After determining the plants in different positions, the information of the corresponding legend can be determined according to the data mapped by the plants, such as determining the size of different legends according to the plant's diameter at breast height, plant height, crown width, and other contents. Associate different location information, plants at different locations, and the corresponding legends of the plants. When rendering the drawings to the user's web page, the base map can be rendered based on the layout information first, and then rendered in the base map based on the plants associated with different locations and the corresponding legends of the plants. Plant mappings at different locations have their own data, so when the user clicks on the legend, the data of the plant mapping corresponding to the legend can be called for presentation. Reference Figure 2a and Figure 2b It shows the effect diagram of generating drawings for specific scenes in outdoor environment. Figure 2c The effect diagram of generating drawings for indoor environment is shown.
[0037] This embodiment realizes the intelligent generation of drawings for different plant matching schemes in different environments, and overcomes the problem that the drawing generation in the related art relies on manual work and has low generation efficiency.
[0038] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] According to an embodiment of the present invention, a plant plan drawing generation device is also provided, including a plant matching plan acquisition unit, used to obtain a plant matching plan generated for an environment, wherein the plant matching plan is different types of plants determined for different environments; a drawing rendering unit, used to render based on a scene base map associated with the environment and data mapped to each type of plant in the plant matching plan to obtain a drawing corresponding to the environment.
[0040] As an optional implementation method of this embodiment, rendering based on the scene base map associated with the environment and the data mapped for each type of plant in the plant matching plan includes: identifying the scene base map to obtain the layout information of the scene; inputting the data mapped for each type of plant and the layout information into a pre-built rule engine, so as to render each type of plant to different positions in the base map through the rule engine.
[0041] As an optional implementation method of this embodiment, rendering different types of plants with different legends to different positions in the base map through a rule engine includes: determining the legends corresponding to different types of plants based on the types of plants; and laying out the legends corresponding to different types of plants in different positions of the base map based on the planting methods of each type of plants.
[0042] As an optional implementation method of the present embodiment, when legends corresponding to different types of plants are laid out at different positions of the base map based on the planting methods of each type of plants, the method includes: determining the target type of plants at different positions of the base map based on the planting methods of each type of plants; determining the number of plants based on the data mapped by the target type of plants and the layout information at the corresponding positions; and laying out legends corresponding to plants of different numbers and different target types at different positions of the base map.
[0043] As an optional implementation of this embodiment, before obtaining the plant matching plan generated for the environment, the method includes: obtaining an environment selection request sent by the user end, and automatically generating a plant matching plan based on the selected environment.
[0044] According to an embodiment of the present invention, the present invention also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the method described in any of the above embodiments when executing.
[0045] According to an embodiment of the present invention, the present invention further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the method described in any of the above embodiments when executed.
[0046] According to an embodiment of the present invention, the present invention further provides a computer program product, which can implement the method described in any of the above embodiments when executed by a processor.
[0047] Figure 3A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices.
[0048] like Figure 3 As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0049] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0050] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as the object matching method. For example, in some embodiments, the object matching method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed.
[0051] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0052] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0053] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Claims
1. A method for generating plant plan drawings, characterized in that: include: Obtaining a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments; Rendering is performed based on the scene base map associated with the environment and the data mapped to each type of plant in the plant matching scheme to obtain a drawing corresponding to the environment.
2. The method for generating plant plan drawings according to claim 1, characterized in that: Rendering based on the scene base map associated with the environment and the data mapped by various types of plants in the plant matching scheme includes: Identify the scene base map to obtain layout information of the scene; The data of each type of plant mapping and the layout information are input into a pre-built rule engine, so that each type of plant is rendered to a different position in the base map through the rule engine.
3. The method for generating plant plan drawings according to claim 2, characterized in that: Rendering various types of plants with different legends to different locations in the base map by the rule engine includes: Based on the type of plants, determine the legends corresponding to different types of plants; Based on the planting methods of various types of plants, legends corresponding to different types of plants are arranged at different positions of the base map.
4. The method for generating plant plan drawings according to claim 3, characterized in that: When legends corresponding to different types of plants are arranged at different positions of the base map based on the planting methods of different types of plants, the method includes: Determining target types of plants at different locations of the base map based on the planting methods of each type of plants; Determine the number of plants based on the data of the plant mapping of the target type and the layout information at the corresponding position; Legends corresponding to plants of different quantities and target types are arranged at different locations of the base map.
5. The method for generating plant plan drawings according to claim 1, characterized in that: Before obtaining the plant matching plan generated for the environment, the method includes: Get the environment selection request sent by the user, and automatically generate a plant matching plan based on the selected environment.
6. A plant plan drawing generation device, characterized in that: include: A plant matching scheme acquisition unit, used to acquire a plant matching scheme generated for an environment, wherein the plant matching scheme is different types of plants determined for different environments; The drawing rendering unit is used to render based on the scene base map associated with the environment and the data mapped by various types of plants in the plant matching plan to obtain a drawing corresponding to the environment.
7. The plant plan drawing generating device according to claim 6, characterized in that: Rendering based on the scene base map associated with the environment and the data mapped by various types of plants in the plant matching scheme includes: Identify the scene base map to obtain layout information of the scene; The data of each type of plant mapping and the layout information are input into a pre-built rule engine, so that each type of plant is rendered to a different position in the base map through the rule engine.
8. The plant plan drawing generating device according to claim 7, characterized in that: Rendering various types of plants with different legends to different locations in the base map by the rule engine includes: Based on the type of plants, determine the legends corresponding to different types of plants; Based on the planting methods of various types of plants, legends corresponding to different types of plants are arranged at different positions of the base map.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 5.
10. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one of claims 1-5.
Citation Information
Patent Citations
Informationalization design method for green planting
CN108304669A
Method for presenting distribution of plants, computer system and storage medium
CN113793405A
Legend labeling method and device and drawing operation system
CN113987616A
Derivative deepened design method for landscape plants based on AI (artificial intelligence) technology
CN115795602A
LIM technology-based landscape garden plant airflow analysis and configuration method
CN116861641A