Graphics generation method and device
By receiving the house and room parameter information input by the user and furniture-related information, generating layout diagrams and matching them using graphic matching models, the problems of complexity and efficiency of matching furniture and house types in the prior art are solved, a fast and simple matching process is achieved, and service quality is improved.
Patent Information
- Application Number
- CN202110060181.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-18
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-01-18
AI Technical Summary
The prior art has problems of complexity and inefficiency in house modeling and furniture matching, and it is difficult to quickly confirm whether the furniture matches the house type.
By receiving the house and room parameter information input by the user and furniture-related information, a house layout diagram and a specific location diagram of the furniture in the layout are generated, and a pre-trained graphic matching model is used for matching.
It realizes a method of quickly and simply confirming the matching of furniture and house types without taking photos, customer service, or measuring tape, improving matching efficiency and targeting, and providing users with a better service experience.
Smart Images

Figure CN113822312B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, specifically to the field of data processing technology, and especially to a method and device for generating graphics. Background Art
[0002] In the field of residential services, from VR house viewing, VR house explanation, to AI house explanation, VR guided house viewing, the services are becoming more and more diverse. Existing home improvement service providers hope to provide customers with the most accurate home improvement plan and the most satisfactory VR effect, so they hope to use accurate and effective parameters and pictures when modeling the house. As for the furniture retail industry, facing customers who have the idea of replacement, their main demand is to quickly confirm whether the furniture meets the existing apartment type when they have the intention to purchase. At present, for the simple needs of sporadic furniture purchases or replacements, whether it is hand-drawing home improvement drawings or using software technology, such as CAD, to generate home improvement drawings, the process is too complicated and many results are useless, such as wall thickness, load-bearing wall location and other details. Therefore, how to quickly confirm whether the furniture sold on the platform matches the apartment type has become a problem that service providers urgently need to solve. Summary of the invention
[0003] The present application provides a graphics generation method, apparatus, device and storage medium.
[0004] According to a first aspect of the present application, a graphic generation method is provided, the method comprising: in response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user; in response to receiving a graphic generation instruction issued by the user, determining graphic information corresponding to the first information based on the first information received from the user input, and generating a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to a house and a room, and the first graphic is a layout diagram of the house and a room; in response to receiving a product acquisition instruction issued by the user, acquiring target product information corresponding to second information input by the user, wherein the second information is used to represent various information related to products required to be laid out by the user, and the target product information is information about a certain product or a certain type of product placed in the house and a room; based on the matching result between the target product information and the first graphic, generating a target graphic corresponding to the matching result, wherein the target graphic is used to represent the specific position of the target product in the first graphic.
[0005] In some embodiments, in response to receiving a graphic generation instruction from a user, based on first information received as input by the user, graphic information corresponding to the first information is determined, and a first graphic corresponding to the graphic information is generated, including: in response to receiving a graphic generation instruction from a user, based on first information received as input by the user, graphic information corresponding to the first information is determined, and a first graphic corresponding to the graphic information is generated, wherein the first information is selected information related to a house and a room, and the graphic generation instruction is a move instruction for the selected information.
[0006] In some embodiments, based on the matching result between the target product information and the first graphic, a target graphic corresponding to the matching result is generated, including: inputting the target product information and the first graphic into a pre-trained graphic matching model to generate position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic determined based on the graphic information corresponding to the target product information and the first graphic; based on the target product position information and the first graphic, a target graphic corresponding to the target product is generated.
[0007] In some embodiments, in response to receiving a graphic generation instruction issued by a user, based on the first information received as input by the user, determining the graphic information corresponding to the first information, and generating the first graphic corresponding to the graphic information, it also includes: displaying the first graphic in a preset image area; in response to receiving annotation information input by the user in the first graphic, updating the graphic information based on the association between the annotation information and the graphic information, and generating a first graphic corresponding to the updated graphic information.
[0008] In some embodiments, based on the association between the annotation information and the graphic information, the graphic information is updated to generate a first graphic corresponding to the updated graphic information, including: based on the relationship between the area information input by the user and the area of each sub-graphic in the graphic information, the area of each sub-graphic and the side length of each sub-graphic in the graphic information are updated to generate a first graphic corresponding to the updated graphic information.
[0009] In some embodiments, in response to receiving a graphic generation instruction from a user, determining graphic information corresponding to the first information based on first information received from the user input, and generating a first graphic corresponding to the graphic information, it also includes: in response to receiving a modification instruction for the graphic information input by the user, adjusting the graphic information based on the modification information corresponding to the received graphic information, and generating a first graphic corresponding to the adjusted graphic information.
[0010] In some embodiments, the method further includes: based on the target graphic, generating a layout solution of the target product corresponding to the target graphic and displaying it to the user.
[0011] According to a second aspect of the present application, a graphic generation device is provided, the device comprising: a receiving unit, configured to, in response to receiving a graphic generation request, receive information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user; a determining unit, configured to, in response to receiving a graphic generation instruction issued by the user, determine graphic information corresponding to the first information based on the first information received as input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to a house and a room, and the first graphic is a layout diagram of the house and a room; an acquiring unit, configured to, in response to receiving a product acquisition instruction issued by the user, acquire target product information corresponding to second information input by the user, wherein the second information is used to represent various information related to a product required to be laid out by the user, and the target product information is information of a certain product or a certain type of product placed in a house and a room; a first generating unit, configured to, based on a matching result between the target product information and the first graphic, generate a target graphic corresponding to the matching result, wherein the target graphic is used to represent a specific position of the target product in the first graphic.
[0012] In some embodiments, the determination unit is further configured to, in response to receiving a graphic generation instruction issued by a user, determine the graphic information corresponding to the first information based on the first information received as input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is selected information related to the rooms of the house, and the graphic generation instruction is a movement instruction for the selected information.
[0013] In some embodiments, the first generation unit includes: a first generation module, configured to input the target product information and the first graphic into a pre-trained graphic matching model, and generate position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic determined based on the target product information and the graphic information corresponding to the first graphic; a second generation module, configured to generate a target graphic corresponding to the target product based on the target product position information and the first graphic.
[0014] In some embodiments, the device also includes: a display unit, configured to display a first graphic in a preset image area; an update unit, configured to update the graphic information in response to receiving annotation information input by a user in the first graphic, based on the association between the annotation information and the graphic information, and generate a first graphic corresponding to the updated graphic information.
[0015] In some embodiments, the updating unit is further configured to update the area and side length of each sub-graphic in the graphic information based on the relationship between the area information input by the user and the area of each sub-graphic in the graphic information, and generate a first graphic corresponding to the updated graphic information.
[0016] In some embodiments, the device also includes: an adjustment unit, configured to adjust the graphic information in response to receiving a modification indication for the graphic information input by a user, based on the modification information corresponding to the received graphic information, and generate a first graphic corresponding to the adjusted graphic information.
[0017] In some embodiments, the device further includes: a second generating unit configured to generate a layout solution of a target product corresponding to the target graphic based on the target graphic and display the layout solution to the user.
[0018] According to the third aspect of the present application, an electronic device is provided, comprising: 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 execute the method described in any implementation manner in the first aspect.
[0019] According to a fourth aspect of the present application, the present application provides a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute a method as described in any implementation manner in the first aspect.
[0020] The technology according to the present application adopts, in response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user, in response to receiving a graphic generation instruction issued by the user, determining graphic information corresponding to the first information based on the first information received from the user, and generating a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to the house and the room, and the first graphic is a layout diagram of the house and the room, in response to receiving a product acquisition instruction issued by the user, acquiring target product information corresponding to the second information input by the user, based on the matching result between the target product information and the first graphic, generating a target graphic corresponding to the matching result, wherein the target graphic is used to represent the specific position of the target product in the first graphic, and running on a client terminal, realizing a method for quickly and simply confirming whether the furniture required by the user matches the apartment type without taking pictures, without customer service, and without measuring with a tape measure, matching is performed based on the information input by the user, using accurate and effective parameters and / or pictures, improving the efficiency of matching and being more targeted, providing users with more high-quality services, and bringing users a flexible and convenient experience.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0023] Figure 1 is a schematic diagram of a first embodiment of a method for generating a graph according to the present application;
[0024] Figure 2 is a scene graph that can implement the graphics generation method of the embodiment of the present application;
[0025] Figure 3 is a schematic diagram of a second embodiment of a method for generating a graph according to the present application;
[0026] Figure 4 is a structural schematic diagram of an embodiment of a graphics generating device according to the present application;
[0027] Figure 5 It is a block diagram of an electronic device used to implement the graphics generation method of an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] Figure 1 A schematic diagram 100 of a first embodiment of a graph generation method according to the present application is shown. The graph generation method comprises the following steps:
[0031] Step 101 : in response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by a user.
[0032] In this embodiment, when the execution subject (such as a terminal device) receives a graphics generation request, the execution subject receives information corresponding to the graphics generation request input by the user and instructions corresponding to the graphics generation request issued by the user from the local through a wired connection or a wireless connection. The execution subject can first receive various instructions from the user by monitoring events issued by the user (for example, events triggered by clicking a predetermined button, menu or set shortcut key). The graphics generation request can be a request for drawing a graphic initiated after the user triggers an event, or it can be a request monitored by the terminal device. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G, 4G, 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0033] It is understandable that the method of user inputting information is not limited in this application. For example, through voice input, text input, etc. in the input method, and for example, selecting target parameters from a target parameter file pre-stored in the electronic device. The time when the user inputs information is not limited in this application. For example, when considering the compatibility of the house area and / or layout with the product when selecting furniture / home products, when completing the design of the house type and selecting the preferences of home furnishings / furniture, when presetting user preferences and / or information for future product purchases, etc.
[0034] Step 102, in response to receiving a graphic generation instruction issued by a user, based on first information received from a user input, determining graphic information corresponding to the first information, and generating a first graphic corresponding to the graphic information.
[0035] In this embodiment, when the execution subject receives the graphic generation instruction issued by the user, the first information received from the user input is converted into graphic information corresponding to the first information by using the information conversion method, and the first graphic corresponding to the graphic information is generated according to the graphic information. The first information can be used to characterize various parameter information related to the house and the room, and the first graphic is a layout diagram of the house and the room. The first graphic can be a two-dimensional graphic or a three-dimensional graphic. The graphic information can include various information such as pictures, colors, and texts, and can also include various information related to the layout of the house such as area, side length, and height. The graphic generation instruction can be drawn based on the event triggered for generating the layout diagram. It should be pointed out that the model of the information conversion method can be, for example, a data table or a calculation formula, and this embodiment does not make any limitation on this aspect.
[0036] In some optional implementations of this embodiment, in response to receiving a graphic generation instruction issued by a user, based on the first information received from the user input, determining the graphic information corresponding to the first information, and generating the first graphic corresponding to the graphic information, including: in response to receiving a graphic generation instruction issued by a user, based on the first information received from the user input, determining the graphic information corresponding to the first information, and generating the first graphic corresponding to the graphic information, wherein the first information is the graphic and / or picture information related to the house room selected by the user from the graphic library, and the graphic generation instruction is a moving instruction for the selected information, that is, an operation instruction for moving the picture information to a specified blank area. The house layout diagram can be quickly and easily selected and displayed to the user, which improves the efficiency of subsequent information matching and brings a more intuitive and convenient experience to the user.
[0037] Step 103: in response to receiving a product acquisition instruction sent by the user, acquiring target product information corresponding to the second information input by the user.
[0038] In this embodiment, when the execution subject receives the product acquisition instruction sent by the user, the execution subject can obtain the target product information corresponding to the second information input by the user from the local or remote device through a wired connection or a wireless connection. The second information can be used to represent various information related to the product that the user needs to layout, such as product brand, product name, product category, product size and product function, etc. The target product information is the information of a certain product or a certain type of product placed in the house. The target product can specifically be furniture, electrical appliances, home decoration pipes and home decoration wiring, etc.
[0039] Step 104: Based on the matching result between the target product information and the first graphic, a target graphic corresponding to the matching result is generated.
[0040] In this embodiment, the execution subject may use a matching method to match the target product information with the first graphic, and based on the matching result, generate a target graphic corresponding to the matching result. The target graphic may be used to characterize the specific position of the target product in the first graphic. The matching method characterizes comparing the target product information with each graphic parameter in the first graphic to find the location information where the target product can be placed. The target graphic may include the first graphic and the location information of the target product.
[0041] In some optional implementations of this embodiment, based on the matching result between the target product information and the first graphic, generating a target graphic corresponding to the matching result includes: inputting the target product information and the first graphic into a pre-trained graphic matching model, generating the position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic based on the graphic information corresponding to the target product information and the first graphic; based on the position information of the target product and the first graphic, drawing and generating a target graphic corresponding to the target product. Pre-training the graphic matching model using deep learning technology makes the model more widely applicable, can meet the various needs of different users, and at the same time improves the matching accuracy, giving users a better sense of use.
[0042] It should be noted that the above training method is a well-known technology that is currently widely studied and applied, and will not be described in detail here. The technicians can set the model structure of the above matching method model according to actual needs, and the embodiments of the present disclosure do not limit this.
[0043] In some optional implementations of this embodiment, the method further includes: based on the target graphic, generating a layout plan of the target product corresponding to the target graphic and displaying it to the user. By providing the layout plan of the house to the user, the user can use it as a reference when purchasing products on the platform, thereby providing more services to the user.
[0044] Continue to see Figure 2 , the graphic generation method 200 of this embodiment runs in the electronic device 201. When the electronic device 201 receives the graphic generation request issued by the user, it receives the information corresponding to the graphic generation request input by the user and the instruction 202 corresponding to the graphic generation request issued by the user. When the electronic device 201 receives the graphic generation instruction issued by the user, it determines the graphic information corresponding to the first information based on the received first information input by the user, and generates the first graphic 203 corresponding to the graphic information. When the electronic device 201 receives the product acquisition instruction issued by the user, it acquires the target product information corresponding to the second information input by the user 204. Finally, based on the matching result between the target product information and the first graphic, the electronic device 201 generates the target graphic 205 corresponding to the matching result. Among them, the first information is used to represent various parameter information related to the house and the room, the first graphic is the layout diagram of the house and the room, the second information is used to represent various information related to the product required to be laid out by the user, the target product information is the information of a certain product or a certain type of product placed in the house and the room, and the target graphic is used to represent the specific position of the target product in the first graphic.
[0045] The graphic generation method provided by the above-mentioned embodiment of the present application adopts a method of receiving information corresponding to the graphic generation request input by the user and an instruction corresponding to the graphic generation request issued by the user in response to receiving a graphic generation request, determining graphic information corresponding to the first information based on the first information received from the user in response to receiving the graphic generation instruction issued by the user, and generating a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to the house and the room, and the first graphic is a layout diagram of the house and the room, and in response to receiving a product acquisition instruction issued by the user, acquiring target product information corresponding to the second information input by the user, and generating a target graphic corresponding to the matching result based on the matching result between the target product information and the first graphic, wherein the target graphic is used to represent the specific position of the target product in the first graphic, and running on the client terminal, realizing a method of quickly and simply confirming whether the furniture required by the user matches the apartment type without taking pictures, without customer service, and without measuring with a tape measure, matching is performed based on the information input by the user, using accurate and effective parameters and / or pictures, improving the efficiency of matching and being more targeted, providing users with more high-quality services, and bringing users a flexible and convenient experience.
[0046] Further references Figure 3 , which shows a schematic diagram 300 of a second embodiment of a graph generation method. The process of the method comprises the following steps:
[0047] Step 301 : in response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by a user.
[0048] Step 302: In response to receiving a graphic generation instruction issued by a user, based on the first information received from the user, determine graphic information corresponding to the first information, and generate a first graphic corresponding to the graphic information.
[0049] Step 303: display a first graphic in a preset image area.
[0050] In this embodiment, the execution entity may display a first graphic in a preset image area, so that the user can determine whether the selected information is correct through the displayed first graphic.
[0051] Step 304 , in response to receiving the annotation information input by the user in the first graphic, based on the association relationship between the annotation information and the graphic information, the graphic information is updated to generate a first graphic corresponding to the updated graphic information.
[0052] In this embodiment, after the execution subject receives the annotation information input by the user in the first graphic, the graphic information is updated according to the association relationship between the annotation information and the graphic information, and a first graphic corresponding to the updated graphic information is generated. The first graphic includes sub-graphics corresponding to each room of the house, and the annotation information is displayed in the first graphic. The update is used to represent the increase or decrease of information, scaling of the size, modification of information, etc. of the first graphic based on the association relationship between the annotation information of the user in the first graphic and the graphic information corresponding to the first graphic. The annotation information may include: annotation information on the position or size of points, lines, and surfaces in the first graphic, and the association relationship may be pre-set, such as the proportional relationship between the side lengths, the proportional relationship between the areas, the locking relationship between the sub-graphic vertex angles, and the angular relationship between the sub-graphic sides.
[0053] In some optional implementations of this embodiment, based on the association between the annotation information and the graphic information, the graphic information is updated to generate a first graphic corresponding to the updated graphic information, including: based on the area information input by the user and the area relationship between each sub-graphic in the graphic information, the area of each sub-graphic in the graphic information and the side length of each sub-graphic are updated to generate a first graphic corresponding to the updated graphic information. The area relationship includes at least: the area ratio between the graphic and the real house and the area ratio between each sub-graphic between the house and the room. The area and side length of each sub-graphic (house and room) in the graphic are updated according to the usage area input by the user, so as to realize the simple construction of the house floor plan.
[0054] Step 305 , in response to receiving a modification instruction for the graphic information input by the user, adjusting the graphic information based on the modification information corresponding to the received graphic information, and generating a first graphic corresponding to the adjusted graphic information.
[0055] In this embodiment, when the execution subject receives a modification instruction for graphic information input by the user, the graphic information is adjusted based on the modification information corresponding to the received graphic information, and a first graphic corresponding to the adjusted graphic information is generated.
[0056] Step 306: in response to receiving the product acquisition instruction sent by the user, acquiring target product information corresponding to the second information input by the user.
[0057] Step 307: Based on the matching result between the target product information and the first graphic, a target graphic corresponding to the matching result is generated.
[0058] In this embodiment, the specific operations of steps 301, 302, 306 and 307 are the same as Figure 1 The operations of steps 101, 102, 103 and 104 in the illustrated embodiment are substantially the same and will not be described in detail herein.
[0059] from Figure 3 It can be seen that Figure 1 Compared with the corresponding embodiments, the schematic diagram 300 of the graphic generation method in this embodiment adopts, in response to receiving the annotation information input by the user in the first graphic, based on the association relationship between the annotation information and the graphic information, updating the graphic information, generating a first graphic corresponding to the updated graphic information, and in response to receiving the modification instruction for the graphic information input by the user, adjusting the graphic information based on the modification information corresponding to the received graphic information, generating a first graphic corresponding to the adjusted graphic information. The user can modify and adjust the input information and the generated first graphic to obtain a more accurate matching result, so that the matching of the product and the house layout diagram is more flexible, convenient and intelligent.
[0060] Further references Figure 4 , as a response to the above Figures 1 to 3 The present application provides an embodiment of a graphics generation device, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0061] like Figure 4 As shown, the graphic generation device 400 of this embodiment includes: a receiving unit 401, a determining unit 402, an acquiring unit 403 and a first generating unit 404, wherein the receiving unit is configured to receive information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user in response to receiving a graphic generation request; the determining unit is configured to determine graphic information corresponding to the first information based on the first information received from the user in response to receiving a graphic generation instruction issued by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to a house and a room, and the first graphic is a layout diagram of the house and a room; the acquiring unit is configured to acquire target product information corresponding to the second information input by the user in response to receiving a product acquisition instruction issued by the user, wherein the second information is used to represent various information related to the product required to be laid out by the user, and the target product information is information of a certain product or a certain type of product placed in the house and a room; the first generating unit is configured to generate a target graphic corresponding to the matching result based on the matching result between the target product information and the first graphic, wherein the target graphic is used to represent the specific position of the target product in the first graphic.
[0062] In this embodiment, the specific processing of the receiving unit 401, the determining unit 402, the obtaining unit 403 and the first generating unit 404 of the graphic generating device 400 and the technical effects thereof can be referred to in Figure 1The relevant descriptions of steps 101 to 104 in the corresponding embodiment are not repeated here.
[0063] In some optional implementations of this embodiment, the determination unit is further configured to, in response to receiving a graphic generation instruction issued by a user, determine the graphic information corresponding to the first information based on the first information received as input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is selected information related to the room of the house, and the graphic generation instruction is a movement instruction for the selected information.
[0064] In some optional implementations of this embodiment, the first generation unit includes: a first generation module, configured to input the target product information and the first graphic into a pre-trained graphic matching model, and generate position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic determined based on the target product information and the graphic information corresponding to the first graphic; a second generation module, configured to generate a target graphic corresponding to the target product based on the target product position information and the first graphic.
[0065] In some optional implementations of this embodiment, the device also includes: a display unit, configured to display a first graphic in a preset image area; an update unit, configured to update the graphic information in response to receiving annotation information input by a user in the first graphic, based on the association between the annotation information and the graphic information, and generate a first graphic corresponding to the updated graphic information.
[0066] In some optional implementations of this embodiment, the updating unit is further configured to update the area and side length of each sub-graphic in the graphic information based on the relationship between the area information input by the user and the area of each sub-graphic in the graphic information, and generate a first graphic corresponding to the updated graphic information.
[0067] In some optional implementations of this embodiment, the device also includes: an adjustment unit, configured to adjust the graphic information in response to receiving a modification indication for the graphic information input by a user, based on the modification information corresponding to the received graphic information, and generate a first graphic corresponding to the adjusted graphic information.
[0068] In some optional implementations of this embodiment, the device further includes: a second generating unit configured to generate a layout solution of a target product corresponding to the target graphic based on the target graphic and display it to the user.
[0069] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0070] like Figure 5 , is a block diagram of an electronic device according to a method for generating graphics according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0071] like Figure 5 As shown, the electronic device includes: one or more processors 501, a memory 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 501 is taken as an example.
[0072] The memory 502 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the graphics generation method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the graphics generation method provided in the present application.
[0073] The memory 502 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the graphics generation method in the embodiment of the present application (for example, the attached Figure 4 The processor 501 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 502, that is, the graphic generation method in the above method embodiment is implemented.
[0074] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the graphic generating electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the graphic generating electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0075] The electronic device of the graphic generation method may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0076] The input device 503 can receive input digital or character information, and generate key signal input related to user settings and function control of the graphic generation electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 504 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0077] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can 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.
[0078] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0079] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0080] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0081] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0082] According to the technical solution of the embodiment of the present application, in response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user, in response to receiving a graphic generation instruction issued by the user, determining graphic information corresponding to the first information based on the first information received from the user, and generating a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to the house and the room, and the first graphic is a layout diagram of the house and the room, in response to receiving a product acquisition instruction issued by the user, acquiring target product information corresponding to the second information input by the user, based on the matching result between the target product information and the first graphic, generating a target graphic corresponding to the matching result, wherein the target graphic is used to represent the specific position of the target product in the first graphic, and running on a client terminal, a method is implemented to quickly and simply confirm whether the furniture required by the user matches the apartment type without taking pictures, customer service, or measuring with a tape measure, matching is performed based on the information input by the user, using accurate and effective parameters and / or pictures, improving the efficiency of matching and being more targeted, providing users with more high-quality services, and bringing users a flexible and convenient experience.
[0083] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0084] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for generating a graph, the method comprising: include: In response to receiving a graphic generation request, receiving information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user; In response to receiving a graphic generation instruction issued by the user, based on the received first information input by the user, determining graphic information corresponding to the first information, and generating a first graphic corresponding to the graphic information, wherein the first information is used to represent various parameter information related to a house and a room, and the first graphic is a layout diagram of the house and a room; In response to receiving a product acquisition instruction sent by the user, acquiring target product information corresponding to second information input by the user, wherein the second information is used to represent various information related to the product that the user needs to arrange, and the target product information is information about a certain product or a certain type of product placed in the room of the house; Based on the matching result between the target product information and the first graphic, generating a target graphic corresponding to the matching result, wherein the target graphic is used to represent the specific position of the target product in the first graphic, and the matching result is obtained by comparing the target product information with various graphic parameters in the first graphic to find the position information where the target product can be placed; Wherein, the step of generating a target graphic corresponding to the matching result based on the matching result between the target product information and the first graphic includes: Inputting the target product information and the first graphic into a pre-trained graphic matching model to generate position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic determined based on the target product information and the graphic information corresponding to the first graphic; Based on the position information of the target product and the first graphic, a target graphic corresponding to the target product is generated.
2. The method according to claim 1, in, The step of determining, in response to receiving a graphic generation instruction issued by the user, graphic information corresponding to the first information received as input by the user, and generating a first graphic corresponding to the graphic information comprises: In response to receiving a graphic generation instruction issued by the user, based on the first information received as input by the user, graphic information corresponding to the first information is determined, and a first graphic corresponding to the graphic information is generated, wherein the first information is selected information related to the house and the room, and the graphic generation instruction is a movement instruction for the selected information.
3. The method according to claim 1, in, After, in response to receiving the graphic generation instruction issued by the user, determining graphic information corresponding to the first information based on the first information received from the user, and generating a first graphic corresponding to the graphic information, the method further includes: Displaying the first graphic in a preset image area; In response to receiving the annotation information input by the user in the first graph, based on the association relationship between the annotation information and the graph information, update the graph information, and generate a first graph corresponding to the updated graph information.
4. The method according to claim 3, wherein, the updating the graph information based on the association relationship between the annotation information and the graph information to generate a first graph corresponding to the updated graph information includes: Based on the area relationship between the area information input by the user and each sub-graph in the graph information, update the area of each sub-graph and the side length of each sub-graph in the graph information, and generate a first graph corresponding to the updated graph information.
5. The method according to claim 1, wherein, after the generating a first graph corresponding to the graph information in response to receiving the graph generation instruction sent by the user and based on the first information input by the user received, further includes: In response to receiving a modification instruction for the graph information input by the user, adjust the graph information based on the modification information corresponding to the received graph information, and generate a first graph corresponding to the adjusted graph information.
6. The method according to claim 1, further includes: Generate a layout plan of the target product corresponding to the target graph and display it to the user based on the target graph.
7. A graph generation device, the device includes: A receiving unit, configured to receive the information input by the user corresponding to the graph generation request and the instruction sent by the user corresponding to the graph generation request in response to receiving a graph generation request; A determining unit, configured to determine graph information corresponding to the first information and generate a first graph corresponding to the graph information in response to receiving the graph generation instruction sent by the user, based on the first information input by the user received, wherein the first information is used to represent each parameter information related to a house living room, and the first graph is a layout diagram of the house living room; An obtaining unit, configured to obtain target product information corresponding to the second information input by the user in response to receiving the product obtaining instruction sent by the user, wherein the second information is used to represent each information related to the product whose layout is required by the user, and the target product information is the information of a certain product or a certain type of product placed in the house living room; A first generating unit, configured to generate a target graph corresponding to the matching result based on the matching result between the target product information and the first graph, wherein the target graph is used to represent the specific position of the target product in the first graph, and the matching result is obtained by comparing the target product information with each graph parameter in the first graph to find the position information where the target product can be placed; wherein, the first generating unit includes: a first generating module, configured to input the target product information and the first graphic into a pre-trained graphic matching model, and generate position information of the target product corresponding to the input target product information and the first graphic, wherein the graphic matching model is used to characterize the optimal placement position of the target product in the first graphic determined based on the target product information and the graphic information corresponding to the first graphic; The second generating module is configured to generate a target graphic corresponding to the target product based on the location information of the target product and the first graphic.
8. The device according to claim 7, in, The determination unit is further configured to, in response to receiving a graphic generation instruction issued by the user, determine graphic information corresponding to the first information based on the first information received as input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is selected information related to the house and the room, and the graphic generation instruction is a movement instruction for the selected information.
9. The device according to claim 7, further comprising: include: A display unit, configured to display the first graphic in a preset image area; The updating unit is configured to, in response to receiving the annotation information input by the user in the first graphic, update the graphic information based on the association relationship between the annotation information and the graphic information, and generate a first graphic corresponding to the updated graphic information.
10. The device according to claim 9, in, The updating unit is further configured to update the area and side length of each sub-graphic in the graphic information based on the relationship between the area information input by the user and the area of each sub-graphic in the graphic information, and generate a first graphic corresponding to the updated graphic information.
11. The device according to claim 7, further comprising: include: The adjustment unit is configured to adjust the graphic information in response to receiving a modification instruction input by a user for the graphic information, based on the received modification information corresponding to the graphic information, and generate a first graphic corresponding to the adjusted graphic information.
12. The device according to claim 7, further comprising: include: The second generating unit is configured to generate a layout plan of the target product corresponding to the target graphic based on the target graphic and display the layout plan to the user.
13. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interior design method and a device applied to real estate
CN109344532A
Control method, device, computer device and storage medium for simulated decoration
CN109522616A
Methods and systems for home device recommendation
US20200065879A1