CN113822312A - Graph generation method and device - Google Patents
Graph generation method and device Download PDFInfo
- Publication number
- CN113822312A CN113822312A CN202110060181.7A CN202110060181A CN113822312A CN 113822312 A CN113822312 A CN 113822312A CN 202110060181 A CN202110060181 A CN 202110060181A CN 113822312 A CN113822312 A CN 113822312A
- Authority
- CN
- China
- Prior art keywords
- information
- graph
- graphic
- user
- target product
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000004044 response Effects 0.000 claims abstract description 53
- 238000012986 modification Methods 0.000 claims description 20
- 230000004048 modification Effects 0.000 claims description 20
- 230000015654 memory Effects 0.000 claims description 19
- 238000010586 diagram Methods 0.000 claims description 17
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000005034 decoration Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
- G06F16/532—Query formulation, e.g. graphical querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5854—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using shape and object relationship
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Library & Information Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Evolutionary Biology (AREA)
- Software Systems (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a graph generation method and a device, and the specific implementation scheme is as follows: receiving information corresponding to the graph generation request input by a user and an indication corresponding to the graph generation request sent by the user in response to receiving the graph generation request; in response to receiving a graphic generation instruction sent by a user, determining graphic information corresponding to first information based on the received first information input by the user, and generating a first graphic corresponding to the graphic information; in response to receiving a product acquisition instruction sent by a user, acquiring target product information corresponding to second information input by the user; and generating a target graph corresponding to the matching result based on the matching result of the target product information and the first graph, wherein the target graph is used for representing the specific position of the target product in the first graph. The scheme realizes a method for quickly and simply confirming whether the furniture required by the user is matched with the house type.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of data processing, and particularly relates to a graph generation method and device.
Background
In the service in the field of living, see the room from the VR, the VR speaks the room, talkbacks the room to the AI, and the VR area is seen, and the service is more and more abundant various. The existing home decoration service providers want to provide customers with the most accurate home decoration scheme and the most satisfactory VR effect, so that accurate and effective parameters and pictures are desired when building modeling. In the retail furniture industry, customers with replacement ideas face a main requirement that whether the furniture meets the existing house type can be quickly confirmed when purchasing the furniture. The current simple need for sporadic furniture purchases or replacements, whether by hand drawing home pictures or by generating home pictures using software techniques such as CAD, etc., is overly complicated and results in many of them being unwieldy with details such as wall thickness, load-bearing wall location, etc. Therefore, how to quickly confirm whether the furniture sold by the platform is matched with the house type becomes an urgent problem to be solved by the service provider.
Disclosure of Invention
The application provides a graph generation method, a graph generation device, a graph generation equipment and a storage medium.
According to a first aspect of the present application, there is provided a graphics generation method, the method comprising: receiving information corresponding to the graph generation request input by a user and an indication corresponding to the graph generation request sent by the user in response to receiving the graph generation request; in response to the receiving of a graph generation instruction sent by a user, determining graph information corresponding to first information based on the received first information input by the user, and generating a first graph corresponding to the graph information, wherein the first information is used for representing various parameter information related to a house room, and the first graph is a layout graph of the house room; in response to receiving a product acquisition instruction sent by a user, acquiring target product information corresponding to second information input by the user, wherein the second information is used for representing various information related to products 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 arranged in a house; and generating a target graph corresponding to the matching result based on the matching result of the target product information and the first graph, wherein the target graph is used for representing the specific position of the target product in the first graph.
In some embodiments, in response to receiving a user-initiated graphical generation indication, determining graphical information corresponding to first information based on the received first information input by the user, generating a first graphic corresponding to the graphical information, includes: in response to receiving a graphic generation instruction sent by a user, determining graphic information corresponding to first information based on the received first information input by the user, and generating a first graphic corresponding to the graphic information, wherein the first information is selected information related to a house room, and the graphic generation instruction is a movement instruction aiming at the selected information.
In some embodiments, generating the target graphic corresponding to the matching result based on the matching result of the target product information and the first graphic includes: inputting the target product information and the first graph into a pre-trained graph matching model, and generating position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing and determining the optimal placement position of the target product in the first graph based on the target product information and the graph information corresponding to the first graph; and generating a target graph corresponding to the target product based on the position information of the target product and the first graph.
In some embodiments, after determining, in response to receiving a user-issued indication for generating a graphic, graphic information corresponding to first information based on the received first information input by the user, and generating the first graphic corresponding to the graphic information, the method further includes: displaying a first graph in a preset image area; and in response to receiving the annotation information input by the user in the first graph, updating the graph information based on the association relationship between the annotation information and the graph information, and generating the first graph corresponding to the updated graph information.
In some embodiments, updating the graphic information based on the association relationship between the annotation information and the graphic information, and generating a first graphic corresponding to the updated graphic information, includes: and updating the area of each sub-graph and the side length of each sub-graph in the graph information based on the area relation between the area information input by the user and each sub-graph in the graph information, and generating a first graph corresponding to the updated graph information.
In some embodiments, after determining, in response to receiving a user-issued indication for generating a graphic, graphic information corresponding to first information based on the received first information input by the user, and generating the first graphic corresponding to the graphic information, the method further includes: in response to receiving a modification instruction for the graphic information input by a user, the graphic information is adjusted based on modification information corresponding to the received graphic information, and a first graphic corresponding to the adjusted graphic information is generated.
In some embodiments, the method further comprises: and generating a layout scheme of the target product corresponding to the target graph based on the target graph and displaying the layout scheme on the user.
According to a second aspect of the present application, there is provided a graphics-generating apparatus comprising: a receiving unit configured to receive, in response to receiving a graphic generation request, information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user; the determining unit is configured to determine graphic information corresponding to first information in response to receiving a graphic generation instruction sent by a user, based on the received first information input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is used for representing various parameter information related to a house living room, and the first graphic is a layout diagram of the house living room; the system comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is configured to respond to the reception of a product acquisition instruction sent by a user and acquire target product information corresponding to second information input by the user, the second information is used for representing various information related to products required to be distributed by the user, and the target product information is information of a certain product or a certain type of product arranged in a house room; and the first generating unit is configured to generate a target graph corresponding to a matching result of the target product information and the first graph, wherein the target graph is used for representing the specific position of the target product in the first graph.
In some embodiments, the determining unit is further configured to determine, based on the received first information input by the user, a graphic information corresponding to the first information 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 selected information related to the house room, and the graphic generation instruction is a movement instruction for the selected information.
In some embodiments, the first generating unit includes: the first generation module is configured to input the target product information and a first graph into a pre-trained graph matching model, and generate position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing that the optimal placement position of the target product in the first graph is determined based on the target product information and the graph information corresponding to the first graph; and the second generation module is configured to generate a target graph corresponding to the target product based on the position information of the target product and the first graph.
In some embodiments, the apparatus further comprises: a display unit configured to display a first graphic in a preset image area; and the updating unit is configured to respond to the receiving of the annotation information input by the user in the first graph, update the graph information based on the association relationship between the annotation information and the graph information, and generate the first graph corresponding to the updated graph information.
In some embodiments, the updating unit is further configured to update the area of each sub-graph in the graph information and the side length of each sub-graph based on the area relationship between the area information input by the user and each sub-graph in the graph information, and generate the first graph corresponding to the updated graph information.
In some embodiments, the apparatus further comprises: the adjusting unit is configured to adjust the graphic information based on modification information corresponding to the received graphic information in response to receiving a modification instruction for the graphic information input by a user, and generate a first graphic corresponding to the adjusted graphic information.
In some embodiments, the apparatus further comprises: and the second generation unit is configured to generate a layout scheme of the target product corresponding to the target graph based on the target graph and display the layout scheme on the user.
According to a third aspect of the present application, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of the implementations of the first aspect.
According to a fourth aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions, wherein the computer instructions are for causing a computer to perform the method as described in any one of the implementations of the first aspect.
The technology of the application adopts the steps of receiving information corresponding to a graph generation request input by a user and an instruction corresponding to the graph generation request sent by the user in response to receiving the graph generation request sent by the user, determining graph information corresponding to first information based on the received first information input by the user, generating first graphs corresponding to the graph information, wherein the first information is used for representing various parameter information related to a house room, the first graphs are layout graphs of the house room, acquiring target product information corresponding to second information input by the user in response to receiving a product acquisition instruction sent by the user, generating target graphs corresponding to matching results based on the matching results of the target product information and the first graphs, wherein the target graphs are used for representing specific positions of target products in the first graphs, the method runs in a client terminal, can realize the method for quickly and simply confirming whether the furniture required by the user is matched with the house type without photographing, customer service and measuring by a tape measure, carries out matching based on the information input by the user, uses accurate and effective parameters and/or pictures, improves the matching efficiency, is more pertinent, provides more high-quality services for the user and brings flexible and convenient experience to the user.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application.
FIG. 1 is a schematic diagram of a first embodiment of a graph generation method according to the present application;
FIG. 2 is a scene diagram of a graph generation method that can implement an embodiment of the present application;
FIG. 3 is a schematic diagram of a second embodiment of a graph generation method according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a graph generation apparatus according to the present application;
fig. 5 is a block diagram of an electronic device for implementing the graph generation method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows a schematic diagram 100 of a first embodiment of a graph generation method according to the present application. The graph generation method comprises the following steps:
In this embodiment, when the execution main body (for example, the terminal device) receives the graphics generation request, the execution main body locally receives information corresponding to the graphics generation request input by the user and an instruction corresponding to the graphics generation request issued by the user, by way of wired connection or wireless connection. The execution subject may first receive various indications from the user by monitoring events issued by the user (e.g., events triggered by clicking/triggering a predetermined button \ menu or a set shortcut key). The graphic generation request may be a request for drawing a graphic initiated by a user after triggering a certain event, or may be a certain request monitored by the terminal device. It should be noted that the wireless connection means 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 means now known or developed in the future.
It is to be understood that the manner in which the user inputs information is not limited in this application. For example, the target parameters are selected from a target parameter file pre-stored in the electronic equipment through voice input, text input and the like in an input method. The time at which the user enters the information is not limited in this application. Such as when thinking about the suitability of the house area and/or layout to the merchandise when choosing furniture/home products, when completing the design of house type and choosing home/furniture preferences, when presetting user preferences and/or information in advance for future product purchases, etc.
In this embodiment, after the execution subject receives a graphic generation instruction from a user, the received first information input by the user is converted into graphic information corresponding to the first information by using an information conversion method, and a first graphic corresponding to the graphic information is generated according to the graphic information. The first information may be used to represent various parameter information related to a house living room, and the first graph is a layout diagram of the house living room. The first graphic may be a two-dimensional graphic or a three-dimensional graphic. The graphic information may include: various information such as pictures, colors, characters, etc. may also include: area, side length, height, and the like, and various information related to the layout of the house. The graphical generation indication may be drawn based on an event triggered to generate the layout diagram. It should be noted that the model of the information conversion method may be, for example, a data table or a calculation formula, and the present embodiment does not limit the content in this respect.
In some optional implementations of this embodiment, in response to receiving a graphic generation instruction issued by a user, determining, based on first information input by the user and received, graphic information corresponding to the first information, and generating a first graphic corresponding to the graphic information includes: in response to receiving a graphic generation instruction sent by a user, determining graphic information corresponding to first information based on the received first information input by the user, and generating a first graphic corresponding to the graphic information, wherein the first information is graphic and/or picture information which is selected by the user from a graphic library and is related to a house living room, and the graphic generation instruction is an operation instruction for moving the selected information, namely moving the picture information to a specified blank domain. The house layout is quickly and simply selected and displayed on the user, the efficiency of follow-up information matching is improved, and more visual and convenient experience is brought to the user.
And 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.
In this embodiment, when the execution main body receives a product acquisition instruction sent by the user, the execution main body may acquire target product information corresponding to the second information input by the user from the local or remote device through wired connection or wireless connection. The second information may be used to characterize various information related to the product to be laid out by the user, such as product brand, product name, product category, product size, product function, and the like, and the target product information is information of a certain product or a certain type of product disposed in the housing. The target product can be specifically furniture, electric appliances, home decoration pipelines, home decoration cables and the like.
And 104, generating a target graph corresponding to the matching result based on the matching result of the target product information and the first graph.
In this embodiment, the execution subject may match the target product information with the first pattern using a matching method, and generate a target pattern corresponding to the matching result based on the matching result. The target graphic may be used to characterize a specific location of the target product in the first graphic. The matching method represents that the target product information is compared with each graph parameter in the first graph, and position information capable of placing the target product is found. The target graphic may include the first graphic and location information of the target product.
In some optional implementation manners of this embodiment, generating a target graph corresponding to a matching result based on the matching result of the target product information and the first graph includes: inputting the target product information and the first graph into a pre-trained graph matching model, and generating position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing and determining the optimal placement position of the target product in the first graph based on the target product information and the graph information corresponding to the first graph; and drawing and generating a target graph corresponding to the target product based on the position information of the target product and the first graph. The deep learning technology is utilized to pre-train the pattern matching model, so that the model is more widely applied, various requirements of different users can be met, the matching precision is improved, and better use feeling is brought to the users.
It should be noted that the above training method is a well-known technique widely studied and applied at present, and is not described herein again. A technician can set the model structure of the matching method model according to actual requirements, which is not limited in the embodiments of the present disclosure.
In some optional implementations of this embodiment, the method further includes: and generating a layout scheme of the target product corresponding to the target graph based on the target graph and displaying the layout scheme on the user. The layout scheme of the house is provided for the user, so that the user can make reference when purchasing products on the platform, and more services are provided for the user.
With continued reference to fig. 2, the graph generating method 200 of the present embodiment runs in the electronic device 201. After the electronic device 201 receives a graph generation request sent by a user, receiving information corresponding to the graph generation request input by the user and an instruction 202 sent by the user and corresponding to the graph generation request, when the electronic device 201 receives the graph generation instruction sent by the user, determining graph information corresponding to first information based on the received first information input by the user, generating a first graph 203 corresponding to the graph information, when the electronic device 201 receives a product acquisition instruction sent by the user, acquiring target product information 204 corresponding to second information input by the user, and finally, generating a target graph 205 corresponding to a matching result based on a matching result of the target product information and the first graph by the electronic device 201. The first information is used for representing various parameter information related to house living rooms, the first graph is a layout graph of the house living rooms, the second information is used for representing various information related to products required to be laid out by a user, the target product information is information of a certain product or a certain type of product arranged in the house living rooms, and the target graph is used for representing specific positions of the target product in the first graph.
The graphic generation method provided by the above embodiment of the present application adopts a method of receiving information corresponding to a graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user in response to receiving the graphic generation request issued by the user, determining graphic information corresponding to first information based on the received first information input by the user, generating a first graphic corresponding to the graphic information, wherein the first information is used for representing various parameter information related to a house room, the first graphic is a layout diagram of the house room, acquiring target product information corresponding to second information input by the user in response to receiving a product acquisition instruction issued by the user, generating a target graphic corresponding to a matching result based on a matching result of the target product information and the first graphic, wherein, the target graph is used for representing the specific position of a target product in the first graph, the method runs in a client terminal, whether furniture required by a user is matched with a house type or not can be quickly and simply confirmed without taking pictures, customer service and measuring by a tape measure, matching is carried out based on information input by the user, accurate and effective parameters and/or pictures are used, matching efficiency is improved, more pertinence is achieved, more high-quality services are provided for the user, and flexible and convenient experience is brought to the user.
With further reference to fig. 3, a schematic diagram 300 of a second embodiment of a graph generation method is shown. The process of the method comprises the following steps:
In this embodiment, the execution body may display a first graphic in a preset image area so that the user determines whether the selected information is correct through the displayed first graphic.
And 304, in response to receiving the annotation information input by the user in the first graph, updating the graph information based on the association relationship between the annotation information and the graph information, and generating the first graph corresponding to the updated graph information.
In this embodiment, after the execution main body receives the annotation information input by the user in the first graph, the execution main body updates the graph information according to the association relationship between the annotation information and the graph information, and generates the first graph corresponding to the updated graph information. The first graph comprises sub-graphs corresponding to all rooms of the house, and the first graph is displayed with marking information. And updating the graph information used for representing the relationship between the labeling information in the first graph and the graph information corresponding to the first graph based on the user, and performing information increase and decrease, size scaling, information modification and the like on the first graph. The annotation information may include: the relationship of the position or size of the point, line or surface in the first graph may be preset, for example, the relationship of the ratio of side lengths, the ratio of areas, the locking relationship of corners of the sub graph, and the angle relationship between sides of the sub graph.
In some optional implementation manners of this embodiment, updating the graphic information based on the association relationship between the annotation information and the graphic information, and generating a first graphic corresponding to the updated graphic information includes: and updating the area of each sub-graph and the side length of each sub-graph in the graph information based on the area relation between the area information input by the user and each sub-graph in the graph information, and generating a first graph corresponding to the updated graph information. The area relationship at least includes: the area ratio of the graph to the real house room and the area ratio of each sub-graph between the house rooms. The area and the side length of each sub-graph (house room) in the graph are updated according to the use area input by the user, and the house room type graph is simply constructed.
In this embodiment, when the execution subject receives a modification instruction for the graphic information input by the user, the execution subject adjusts the graphic information based on the modification information corresponding to the received graphic information, and generates a first graphic corresponding to the adjusted graphic information.
And step 306, 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.
And 307, generating a target graph corresponding to the matching result based on the matching result of the target product information and the first graph.
In this embodiment, the specific operations of steps 301, 302, 306, and 307 are substantially the same as the operations of steps 101, 102, 103, and 104 in the embodiment shown in fig. 1, and are not repeated here.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 1, the schematic diagram 300 of the graph generating method in this embodiment adopts that in response to receiving the annotation information input by the user in the first graph, the graph information is updated based on the association relationship between the annotation information and the graph information, the first graph corresponding to the updated graph information is generated, in response to receiving the modification instruction for the graph information input by the user, the graph information is adjusted based on the modification information corresponding to the received graph information, and the first graph corresponding to the adjusted graph information is generated, so that the user can modify and adjust the input information and the generated first graph, obtain a more accurate matching result, and make matching between the product and the house layout diagram more flexible, convenient, and intelligent.
With further reference to fig. 4, as an implementation of the methods shown in fig. 1 to 3, the present application provides an embodiment of a graph generating apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 1, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 4, the graphic generation apparatus 400 of the present embodiment includes: a receiving unit 401, a determining unit 402, an obtaining unit 403 and a first generating unit 404, wherein the receiving unit is configured to receive information corresponding to a graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user in response to receiving the graphic generation request; the determining unit is configured to determine graphic information corresponding to first information in response to receiving a graphic generation instruction sent by a user, based on the received first information input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is used for representing various parameter information related to a house living room, and the first graphic is a layout diagram of the house living room; the system comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is configured to respond to the reception of a product acquisition instruction sent by a user and acquire target product information corresponding to second information input by the user, the second information is used for representing various information related to products required to be distributed by the user, and the target product information is information of a certain product or a certain type of product arranged in a house room; and the first generating unit is configured to generate a target graph corresponding to a matching result of the target product information and the first graph, wherein the target graph is used for representing the specific position of the target product in the first graph.
In this embodiment, specific processes of the receiving unit 401, the determining unit 402, the obtaining unit 403, and the first generating unit 404 of the graph generating apparatus 400 and technical effects thereof may refer to the related descriptions of step 101 to step 104 in the embodiment corresponding to fig. 1, and are not described herein again.
In some optional implementations of the embodiment, the determining unit is further configured to determine, in response to receiving a graphic generation instruction issued by a user, based on received first information input by the user, graphic information corresponding to the first information, and generate a first graphic corresponding to the graphic information, where the first information is selection information related to a house room, and the graphic generation instruction is a movement instruction for the selection information.
In some optional implementations of this embodiment, the first generating unit includes: the first generation module is configured to input the target product information and a first graph into a pre-trained graph matching model, and generate position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing that the optimal placement position of the target product in the first graph is determined based on the target product information and the graph information corresponding to the first graph; and the second generation module is configured to generate a target graph corresponding to the target product based on the position information of the target product and the first graph.
In some optional implementations of this embodiment, the apparatus further includes: a display unit configured to display a first graphic in a preset image area; and the updating unit is configured to respond to the receiving of the annotation information input by the user in the first graph, update the graph information based on the association relationship between the annotation information and the graph information, and generate the first graph corresponding to the updated graph information.
In some optional implementations of the embodiment, the updating unit is further configured to update the area of each sub-graph and the side length of each sub-graph in the graph information based on the area relationship between the area information input by the user and each sub-graph in the graph information, and generate the first graph corresponding to the updated graph information.
In some optional implementations of this embodiment, the apparatus further includes: the adjusting unit is configured to adjust the graphic information based on modification information corresponding to the received graphic information in response to receiving a modification instruction for the graphic information input by a user, and generate a first graphic corresponding to the adjusted graphic information.
In some optional implementations of this embodiment, the apparatus further includes: and the second generation unit is configured to generate a layout scheme of the target product corresponding to the target graph based on the target graph and display the layout scheme on the user.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate 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. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.
The memory 502, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory 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 receiving unit 401, the determining unit 402, the obtaining unit 403, and the first generating unit 404 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing, i.e., implements the graphics generating method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 502.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the graphics-generating electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to the graphics-generating electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
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 by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the graphics-generating electronic apparatus, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer, one or more mouse buttons, a track ball, a joystick, or other input device. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. 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 implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may 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, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide 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 used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, 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 may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
The technical scheme includes that in response to receiving a graph generation request, information corresponding to the graph generation request input by a user and an instruction corresponding to the graph generation request sent by the user are received, in response to receiving the graph generation instruction sent by the user, graph information corresponding to first information is determined based on the received first information input by the user, a first graph corresponding to the graph information is generated, wherein the first information is used for representing various parameter information related to a house room, the first graph is a layout diagram of the house room, in response to receiving a product acquisition instruction sent by the user, target product information corresponding to second information input by the user is acquired, in response to receiving a matching result of the target product information and the first graph, a target graph corresponding to the matching result is generated, wherein the target graph is used for representing a specific position of a target product in the first graph, the method runs in a client terminal, can realize the method for quickly and simply confirming whether the furniture required by the user is matched with the house type without photographing, customer service and measuring by a tape measure, carries out matching based on the information input by the user, uses accurate and effective parameters and/or pictures, improves the matching efficiency, is more pertinent, provides more high-quality services for the user and brings flexible and convenient experience to the user.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (16)
1. A method of graph generation, the method comprising:
receiving information corresponding to a graph generation request input by a user and an indication corresponding to the graph generation request sent by the user in response to receiving the graph generation request;
in response to receiving a graphic generation instruction sent by the user, determining graphic information corresponding to first information based on the received first information input by the user, and generating a first graphic corresponding to the graphic information, wherein the first information is used for representing various parameter information related to a house living room, and the first graphic is a layout of the house living 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 for representing various information related to products required to be arranged by the user, and the target product information is information of a certain product or a certain type of product arranged in the housing room;
and generating a target graph corresponding to the matching result based on the matching result of the target product information and the first graph, wherein the target graph is used for representing the specific position of the target product in the first graph.
2. The method of claim 1, wherein the determining, in response to receiving the user-initiated graphical generation indication based on the received first information input by the user, graphical information corresponding to the first information, generating a first graphic corresponding to the graphical information comprises:
in response to receiving a graphic generation instruction sent by the user, determining graphic information corresponding to first information based on the received first information input by the user, and generating a first graphic corresponding to the graphic information, wherein the first information is selected information related to the house room, and the graphic generation instruction is a movement instruction aiming at the selected information.
3. The method of claim 1, wherein the generating a target graphic corresponding to the matching result based on the matching result of the target product information and the first graphic comprises:
inputting the target product information and the first graph into a pre-trained graph matching model, and generating position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing that the optimal placement position of the target product in the first graph is determined based on the target product information and the graph information corresponding to the first graph;
and generating a target graph corresponding to the target product based on the position information of the target product and the first graph.
4. The method of claim 1, wherein, after the determining, based on the received first information input by the user, graphical information corresponding to the first information in response to receiving the user-issued indication of graphical generation, generating a first graphic corresponding to the graphical information, further comprises:
displaying the first graph in a preset image area;
and responding to the received annotation information input by the user in the first graph, updating the graph information based on the association relationship between the annotation information and the graph information, and generating the first graph corresponding to the updated graph information.
5. The method according to claim 4, wherein the updating the graphic information based on the association relationship between the annotation information and the graphic information to generate a first graphic corresponding to the updated graphic information comprises:
updating the area of each sub-graph and the side length of each sub-graph in the graph information based on the area relation between the area information input by a user and each sub-graph in the graph information, and generating a first graph corresponding to the updated graph information.
6. The method of claim 1, wherein, after the determining, based on the received first information input by the user, graphical information corresponding to the first information in response to receiving the user-issued indication of graphical generation, generating a first graphic corresponding to the graphical information, further comprises:
in response to receiving a modification instruction for the graphic information input by a user, the graphic information is adjusted based on the received modification information corresponding to the graphic information, and a first graphic corresponding to the adjusted graphic information is generated.
7. The method of claim 1, further comprising:
and generating a layout scheme of the target product corresponding to the target graph based on the target graph and displaying the layout scheme on the user.
8. An apparatus for generating graphics, the apparatus comprising:
a receiving unit configured to receive, in response to receiving a graphic generation request, information corresponding to the graphic generation request input by a user and an instruction corresponding to the graphic generation request issued by the user;
the determining unit is configured to determine, in response to receiving a graphic generation instruction sent by the user, graphic information corresponding to first information based on the received first information input by the user, and generate a first graphic corresponding to the graphic information, wherein the first information is used for representing various parameter information related to a house living room, and the first graphic is a layout diagram of the house living room;
an acquisition unit configured to acquire, in response to receiving a product acquisition instruction issued by the user, target product information corresponding to second information input by the user, the second information being used to represent respective information related to a product to be laid out by the user, the target product information being information of a certain product or a certain type of product placed in the residential room;
a first generating unit configured to generate a target graph corresponding to a matching result of the target product information and the first graph, wherein the target graph is used for representing a specific position of the target product in the first graph.
9. The apparatus of claim 8, wherein the determining unit is further configured to determine, based on the received first information input by the user, graphical information corresponding to the first information in response to receiving a graphical generation indication issued by the user, and generate a first graphic corresponding to the graphical information, wherein the first information is selection information related to the residential dwelling, and the graphical generation indication is a movement indication for the selection information.
10. The apparatus of claim 8, wherein the first generating unit comprises:
a first generating module configured to input the target product information and the first graph into a pre-trained graph matching model, and generate position information of the target product corresponding to the input target product information and the first graph, wherein the graph matching model is used for representing that an optimal placement position of the target product in the first graph is determined based on the target product information and the graph information corresponding to the first graph;
a second generation module configured to generate a target graphic corresponding to the target product based on the position information of the target product and the first graphic.
11. The apparatus of claim 8, further comprising:
a display unit configured to display the first graphic in a preset image area;
the updating unit is configured to respond to the receiving of the annotation information input in the first graph by the user, update the graph information based on the association relationship between the annotation information and the graph information, and generate the first graph corresponding to the updated graph information.
12. The apparatus according to claim 11, wherein the updating unit is further configured to update an area of each of the sub-graphics and a side length of each of the sub-graphics in the graphics information based on an area relationship between area information input by a user and each of the sub-graphics in the graphics information, and generate a first graphic corresponding to the updated graphics information.
13. The apparatus of claim 8, further comprising:
the adjusting unit is configured to adjust the graphic information based on received modification information corresponding to the graphic information in response to receiving a modification instruction for the graphic information input by a user, and generate a first graphic corresponding to the adjusted graphic information.
14. The apparatus of claim 8, further comprising:
and the second generation unit is configured to generate a layout scheme of the target product corresponding to the target graph based on the target graph and display the layout scheme on the user.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110060181.7A CN113822312A (en) | 2021-01-18 | 2021-01-18 | Graph generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110060181.7A CN113822312A (en) | 2021-01-18 | 2021-01-18 | Graph generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113822312A true CN113822312A (en) | 2021-12-21 |
Family
ID=78912367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110060181.7A Pending CN113822312A (en) | 2021-01-18 | 2021-01-18 | Graph generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113822312A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006163721A (en) * | 2004-12-06 | 2006-06-22 | Step Loan Partners Kk | Method for simulating furniture layout |
US20130259308A1 (en) * | 2012-03-27 | 2013-10-03 | Mark Klusza | System and method of room decoration for use with a mobile device |
CN109344532A (en) * | 2018-10-23 | 2019-02-15 | 美宅科技(北京)有限公司 | A kind of indoor design method and device applied to real estate |
CN109522616A (en) * | 2018-10-26 | 2019-03-26 | 平安科技(深圳)有限公司 | Simulate control method, device, computer equipment and the storage medium of finishing |
US20200065879A1 (en) * | 2018-08-22 | 2020-02-27 | Midea Group Co., Ltd. | Methods and systems for home device recommendation |
CN111986305A (en) * | 2020-06-23 | 2020-11-24 | 北京城市网邻信息技术有限公司 | Furniture display method and device, electronic equipment and storage medium |
CN112001997A (en) * | 2020-06-23 | 2020-11-27 | 北京城市网邻信息技术有限公司 | Furniture display method and device |
CN112016139A (en) * | 2019-05-29 | 2020-12-01 | 阿里巴巴集团控股有限公司 | Home decoration household object information processing method and device |
-
2021
- 2021-01-18 CN CN202110060181.7A patent/CN113822312A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006163721A (en) * | 2004-12-06 | 2006-06-22 | Step Loan Partners Kk | Method for simulating furniture layout |
US20130259308A1 (en) * | 2012-03-27 | 2013-10-03 | Mark Klusza | System and method of room decoration for use with a mobile device |
US20200065879A1 (en) * | 2018-08-22 | 2020-02-27 | Midea Group Co., Ltd. | Methods and systems for home device recommendation |
CN109344532A (en) * | 2018-10-23 | 2019-02-15 | 美宅科技(北京)有限公司 | A kind of indoor design method and device applied to real estate |
CN109522616A (en) * | 2018-10-26 | 2019-03-26 | 平安科技(深圳)有限公司 | Simulate control method, device, computer equipment and the storage medium of finishing |
CN112016139A (en) * | 2019-05-29 | 2020-12-01 | 阿里巴巴集团控股有限公司 | Home decoration household object information processing method and device |
CN111986305A (en) * | 2020-06-23 | 2020-11-24 | 北京城市网邻信息技术有限公司 | Furniture display method and device, electronic equipment and storage medium |
CN112001997A (en) * | 2020-06-23 | 2020-11-27 | 北京城市网邻信息技术有限公司 | Furniture display method and device |
Non-Patent Citations (2)
Title |
---|
孙彬;武士博;朱剑刚;: "基于EON Studio的家具虚拟展示技术", 家具, no. 03, 1 May 2015 (2015-05-01) * |
张天雨;张帆;: "基于逆向工程的家具产品虚拟展示研究", 家具与室内装饰, no. 10, 5 October 2018 (2018-10-05) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102186864B1 (en) | Network topology adaptive data visualization method, device, equipment and storage medium | |
US20180350145A1 (en) | Augmented Reality Devices and Methods Thereof for Rendering Virtual Objects | |
US20160379395A1 (en) | Methods and devices for presenting dynamic information graphics | |
US9785741B2 (en) | Immersive virtual telepresence in a smart environment | |
CN112529890A (en) | Method and device for processing track, road side equipment and cloud control platform | |
US20150135144A1 (en) | Apparatus for obtaining virtual 3d object information without requiring pointer | |
CN110806865A (en) | Animation generation method, device, equipment and computer readable storage medium | |
US10777009B2 (en) | Dynamically forming an immersive augmented reality experience through collaboration between a consumer and a remote agent | |
CN113240778A (en) | Virtual image generation method and device, electronic equipment and storage medium | |
CN109074214A (en) | System and method for controlling the display of content | |
CN112233211A (en) | Animation production method and device, storage medium and computer equipment | |
CN113325952A (en) | Method, apparatus, device, medium and product for presenting virtual objects | |
CN113552988A (en) | Interface focus control method and device, electronic equipment and storage medium | |
CN114565701A (en) | Line segment drawing method and device, electronic equipment and computer readable storage medium | |
CN105988572A (en) | Method for operating device by using mobile terminal to simulate mouse, mobile terminal and demonstration system | |
CN117271045A (en) | Equipment information display method and device based on digital twinning and electronic equipment | |
Andujar et al. | A cost-effective approach for developing application-control GUIs for virtual environments | |
JP2024040211A (en) | Moving image processing method, server device, and computer program | |
CN113822312A (en) | Graph generation method and device | |
CN108874141B (en) | Somatosensory browsing method and device | |
CN110618944A (en) | Device simulation method, device, electronic device and storage medium | |
US20220318192A1 (en) | Method and apparatus for displaying event information, storage medium and electronic device | |
CN113962776A (en) | Panoramic interaction method and system based on virtual reality | |
CN114638919A (en) | Virtual image generation method, electronic device, program product and user terminal | |
CN112035210B (en) | Method, apparatus, device and medium for outputting color information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |