House type map color matching method and device, electronic equipment and storage medium

By automatically generating color floor plans using an image generation model, the problem of complex color matching and high technical threshold in existing floor plan technologies has been solved, improving creation efficiency and reducing operational difficulty.

CN117540446BActive Publication Date: 2025-12-30HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311483503.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2025-12-30
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

In existing technologies, color matching for floor plans requires manual design, which is complex, inefficient, and technically demanding.

Method used

The first floor plan is created using an image generation model. The image is generated and the colors of each element are determined based on color characteristics, automatically generating a colored floor plan.

Benefits of technology

It enables efficient generation of color floor plans, reduces the skill requirements for operators, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117540446B_ABST
    Figure CN117540446B_ABST
Patent Text Reader

Abstract

The present disclosure provides a house type drawing color matching method and device, electronic equipment and storage medium, relates to the technical field of artificial intelligence, in particular to the field of image processing and computer vision. The specific implementation scheme is: obtaining a first house type drawing; obtaining a generated image based on the first house type drawing and a pre-configured image generation model; determining the color of each element in the first house type drawing according to the color feature of the generated image; filling the color of each element in the first house type drawing to obtain a second house type drawing. By adopting the technical scheme of the present disclosure, the technical threshold for house type drawing color matching can be reduced, and the work efficiency of house type drawing creation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of artificial intelligence, in particular to the fields of image processing and computer vision. BACKGROUND

[0002] In the house type design industry, a house type drawing is a planar space layout drawing of a house, that is, an image describing the use function, corresponding position and size of each element in the house. In order to more intuitively represent each element in the house in the house type drawing, the house type drawing needs to be color matched. However, the color matching of the house type drawing is generally designed by a person, and the complex operation process leads to low efficiency and high technical threshold. SUMMARY

[0003] The present disclosure provides a house type drawing color matching method and device, electronic equipment and storage medium, to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a house type drawing color matching method, comprising:

[0005] obtaining a first house type drawing;

[0006] obtaining a generated image based on the first house type drawing and a pre-configured image generation model;

[0007] determining the color of each element in the first house type drawing according to the color feature of the generated image;

[0008] filling the color of each element in the first house type drawing to obtain a second house type drawing.

[0009] In a second aspect, the present disclosure provides a house type drawing color matching device, comprising:

[0010] an image obtaining module configured to obtain a first house type drawing;

[0011] an image generation module configured to obtain a generated image based on the first house type drawing and a pre-configured image generation model;

[0012] a color determination module configured to determine the color of each element in the first house type drawing according to the color feature of the generated image;

[0013] a color filling module configured to fill the color of each element in the first house type drawing to obtain a second house type drawing.

[0014] In a third aspect, an electronic device is provided, comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein

[0017] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of the embodiments of the present disclosure.

[0018] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to enable the computer to perform the method according to any of the embodiments of the present disclosure.

[0019] The beneficial effects of the technical solutions provided by the present disclosure at least include: using an image generation model to create a first house type drawing, obtaining a generated image, obtaining color features, determining the colors of each element in the first house type drawing based on the color features, and filling the colors of each element into the first house type drawing to obtain a second house type drawing, which realizes efficient generation of a colored second house type drawing, and is conducive to improving the work efficiency of house type drawing creation. And by automatically generating instead of manually designing house type drawing colors, the ability requirements for operators are reduced, thereby reducing the technical threshold for house type drawing color matching.

[0020] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0021] In the drawings, like reference numerals refer to same or similar functionalities throughout the several views. The drawings are not necessarily to scale. It should be understood that the drawings merely depict some of the embodiments in accordance with the present disclosure and should not be considered to be limiting of the scope of the present disclosure.

[0022] Figure 1 is a flowchart of a house type drawing color matching method provided by an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of a user interaction interface in an embodiment of the present disclosure;

[0024] Figure 3 is a flowchart of a house type drawing color matching method provided by another embodiment of the present disclosure

[0025] Figure 4 is a schematic diagram of a user interaction interface of a first house type drawing in an embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram of a user interaction interface of a generated image in an embodiment of the present disclosure;

[0027] Figure 6 is a schematic diagram of a user interaction interface of a second house type drawing in an embodiment of the present disclosure;

[0028] Figure 7 This is a schematic block diagram of a floor plan color matching device provided in one embodiment of the present disclosure;

[0029] Figure 8 This is a schematic block diagram of a floor plan color matching device provided in another embodiment of this disclosure;

[0030] Figure 9 This is a block diagram of an electronic device used to implement the floor plan color matching method of the embodiments of this disclosure. Detailed Implementation

[0031] The present disclosure will now be described in further detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0032] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0033] In related technologies, to create personalized color floor plans, it is necessary to manually design the color scheme of the floor plan using drawing software. This process requires importing the floor plan into the drawing software and filling each color block of the floor plan with color using functions such as color filling and filters. The operation process is complex, and each step needs to be completed manually, resulting in low creation efficiency. Furthermore, it relies on the operator to have a high level of aesthetic sense and software operation skills, as well as the cost of using the software, thus presenting a high creative threshold.

[0034] To address at least one of the aforementioned problems, this disclosure provides a method for color matching in floor plans. The method utilizes an image generation model to create a first floor plan, generating an image and obtaining color features. Based on these color features, the colors of each element in the first floor plan are determined, and the colors of these elements are then filled into the first floor plan to obtain a second floor plan. This method efficiently generates a colored second floor plan, improving the efficiency of floor plan creation. Furthermore, by automatically generating floor plan colors instead of manually designing them, the method reduces the skill requirements for operators, thereby lowering the technical barrier to floor plan color matching.

[0035] Figure 1A schematic diagram of a floor plan color matching method according to an embodiment of this disclosure is shown. This method can be applied to a floor plan color matching device, which can be deployed in an electronic device. The electronic device may be a single-machine or multi-machine terminal, server, or other processing device. The terminal may be a mobile device, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, or other user equipment (UE). In some possible implementations, the method can also be implemented by a processor calling computer-readable instructions stored in memory. Figure 1 As shown, the method may include the following steps S110 to S130.

[0036] Step S110: Obtain the first floor plan.

[0037] In this embodiment of the disclosure, the first floor plan refers to an image used to represent the spatial layout of a house. The first floor plan may include BIM (Building Information Modeling) information for each element therein. The BIM information includes the type information of the building elements; that is, the first floor plan can distinguish various building elements as load-bearing walls, partition walls, doors, or tables, etc. For example, different types of building elements in the first floor plan can have different display styles. For instance, different types of linear building elements can be represented by outlines, shape lines, cross-sectional lines, etc.; different types of planar building elements can be represented by cross-sections, surfaces, etc. Correspondingly, building elements of the same type have the same display style.

[0038] Optionally, BIM information may also include one or more types of information such as the location, shape, size, and material of building elements. For example, each building element may include structural elements (such as load-bearing walls, columns, and partitions), hard furnishing elements (such as floors, windows, and doors), and soft furnishing elements (such as chairs, tables, and beds).

[0039] Optionally, the first floor plan can be a two-dimensional image, or a 2D (two-dimensional) image. For example, in some scenarios, the first floor plan can be obtained by converting a 3D (three-dimensional) image or 3D model of the house design into a 2D image. The 3D image can also be called a stereoscopic image, and the 3D model can also be called a stereoscopic model. In some scenarios, the first floor plan can also be a 2D image drawn by a designer.

[0040] Optionally, the first floor plan can be a black and white line drawing, a grayscale image, or a color image with a color scheme that does not meet expectations.

[0041] Step S120: Based on the first floor plan and the pre-configured image generation model, obtain the generated image.

[0042] In this embodiment of the disclosure, the image generation model refers to a model used to create and generate new images, including any model in the related art that has the ability to generate images from images.

[0043] In this embodiment of the disclosure, the image generation model can generate an image based on a first floor plan. Specifically, after inputting the first floor plan into the image generation model, the first floor plan can be processed based on the weight parameters of each computational node (e.g., a neuron) in the image generation model to obtain the generated image output by the image generation model.

[0044] Optionally, the input information of the image generation model may also include other auxiliary information, such as textual descriptions of the image to be generated.

[0045] It should be noted that, since the image generation model does not simply perform color matching on the first floor plan, the generated image will differ from the first floor plan. Figure 1 There will generally be differences. These differences may include: the generated image includes building element types that are not present in the first floor plan; the number of a certain building element in the generated image differs from the number of the same building element in the first floor plan; and the BIM characteristics (such as location, size, material, etc.) of the building elements in the generated image differ from the BIM characteristics of the building elements in the first floor plan.

[0046] Optionally, the floor plan color matching device can input the first floor plan into the image generation model and obtain the generated image returned by the image generation model by calling the interface of the image generation model.

[0047] Optionally, the image generation model can be a model trained based on design industry data.

[0048] Step S130: Determine the colors of each element in the first floor plan based on the color characteristics of the generated image.

[0049] Here, the elements in the first floor plan may include the background of the first floor plan and the various architectural elements in the first floor plan.

[0050] Optionally, in the embodiments of this disclosure, the color features may include the color of each color block or element itself, or the color attributes of each color block or element, such as chroma, saturation, and brightness, and may also include the coverage area of ​​each color block in the generated image.

[0051] In one embodiment, the color of each element in the first floor plan can be determined by selecting the color feature corresponding to the element from the color features of the generated image based on one or more features such as the building element type, corresponding position, and size of each element in the first floor plan.

[0052] Step S140: Fill in the colors of each element in the first floor plan to obtain the second floor plan.

[0053] In this embodiment of the disclosure, the colors determined in step S130 can be filled onto the corresponding elements in the first floor plan to obtain a colored floor plan with complete color matching, namely the second floor plan. The second floor plan and the first floor plan include the same elements and features of each element except for color. For example, the dimensions (e.g., length, width, and area), shape, position, and line outline of each building element in the second floor plan are the same as those in the first floor plan.

[0054] As can be seen from the technical solution of this disclosure embodiment, an image generation model can be used to create a generated image from a first floor plan. The color features of the generated image can determine the color of each element in the first floor plan, and the colors of each element are filled into the first floor plan to obtain a second floor plan, thus achieving efficient generation of a unique second floor plan. Since the image generation model's image creation method is uncontrollable, it may lead to inconsistencies between the size, shape, position, and line contours of the various architectural elements in the generated image and the first floor plan. Therefore, the generated image is not directly used as the final second floor plan. Instead, color filling is performed based on the first floor plan, ensuring that the structural features of each element designed in the first floor plan are not modified during the color matching process. Furthermore, by automatically generating the color of the floor plan instead of manually designing it, the operation is simple, reducing the technical threshold for floor plan color matching and improving the efficiency of floor plan creation.

[0055] In some embodiments, step S120, obtaining the generated image based on the first floor plan and a pre-configured image generation model, may include:

[0056] The first floor plan and style information determined based on user instructions are input into the image generation model to obtain the generated image output by the image generation model.

[0057] The generated image in this embodiment can be understood as an image obtained by processing the first floor plan based on style information. Optionally, the style information may include Nordic natural style, fresh Japanese style, or creative animation, etc. In this embodiment, the style information is determined based on user instructions, that is, the style information can be configured by the user. For example, the style information can be input through the input unit of the floor plan color matching device, such as a mouse or keyboard, or it can be input through a user device connected to the floor plan color matching device. In practical applications, the aforementioned floor plan color matching device or user device can provide a user interface, in which the user can input style information.

[0058] Optionally, the first floor plan and style information determined based on user instructions can be input into the image generation model to obtain one or more images that match the style information. If multiple images are obtained, one can be selected from the multiple images as the generated image.

[0059] According to the technical solution of this disclosure, the image generation model can create a first floor plan based on style information and generate a generated image that matches the style information specified by the user, so that the generated image is more in line with the user's creative intention and can improve the user experience.

[0060] In some embodiments, the floor plan color scheme method may further include:

[0061] Display multiple architectural style templates on the user interface;

[0062] In response to detecting a user selection instruction for a first architectural style template among multiple architectural style templates, style information is obtained based on the first architectural style template.

[0063] In this embodiment, each architectural style template represents different style information and has different color characteristics. In practical applications, each architectural style template can be a pre-drawn colored floor plan (i.e., a floor plan template), which may include different architectural elements and backgrounds. Different style information is presented intuitively through the colored floor plan. Users can input commands on the user interface to select one architectural style template from multiple templates as the first architectural style template. When the user selects the first architectural style template, the style information corresponding to the first architectural style template is extracted and used as the first floor plan template. Figure 1 And input the style information of the image generation model.

[0064] Figure 2 A schematic diagram of a user interface according to an embodiment of this disclosure is shown. Figure 2As shown, the user interface displays multiple architectural style templates (preferred templates), including templates corresponding to the current season's popular styles, Nordic natural styles, creative animation styles, and clear Japanese styles. When the user selects the template corresponding to the creative animation style, the floor plan color matching device will generate a model by combining the corresponding style information with the first floor plan input image to obtain the generated image.

[0065] According to the technical solution of the present disclosure, the user can select an architectural style template, thereby applying the style information corresponding to the architectural style template to the first floor plan, generating a generated image including the style information in the architectural style template specified by the user, so that the generated image is more in line with the user's creative intention, and further improving the user experience.

[0066] In some embodiments, step S130, determining the colors of each element in the first floor plan based on the color features of the generated image, may include:

[0067] The color of the first building element in the first floor plan is determined by sorting the colors in the generated image according to their intensity.

[0068] In this embodiment of the disclosure, attributes of each color in the generated image, such as chroma, saturation, and brightness, can be extracted to determine the intensity of each color. The colors are then sorted according to their intensity, either from darker to lighter or from lighter to darker.

[0069] Optionally, there can be multiple first building elements. These multiple first building elements can include different types of building elements. In one embodiment, the multiple first building elements can include some building elements from the first floor plan. Features (such as area, importance, and material) of some building elements in the first floor plan can be extracted, and then the first building elements corresponding to each color can be determined according to the order of color intensity. For example, the darkest color in the generated image can be applied to the load-bearing walls and columns of the first floor plan, the second darkest color in the generated image can be applied to the building structures of the first floor plan excluding load-bearing walls and columns, and the lightest color in the generated image can be applied to the soft furnishings and custom furniture of the first floor plan.

[0070] In another implementation, the multiple first building elements may also include all building elements in the first floor plan. The characteristics of each building element in the first floor plan (such as area, importance, and material) can be extracted, and the color of each building element corresponding to it can be determined according to the order of the shades of each color.

[0071] In some embodiments, step S130, determining the colors of each element in the first floor plan based on the color features of the generated image, may include:

[0072] The color of the second building element in the first floor plan is determined by sorting the areas of each color in the generated image.

[0073] In this embodiment, the area of ​​each color is used to represent the size of the area covered by each color in the generated image. If a color covers multiple areas, the area of ​​that color can include the sum of the areas of the multiple areas. In practical applications, the size information of each color-covered area in the generated image can be extracted to calculate the area of ​​each color-covered area, or the area of ​​each color-covered area in the generated image can be directly extracted. The areas of each color are sorted according to their size, either from larger to smaller areas or from smaller to larger areas.

[0074] Optionally, there can be multiple second building elements. These multiple second building elements can include different types of building elements. In one embodiment, the multiple second building elements can include some building elements from the first floor plan. Features (such as area, importance, and material) of some building elements in the first floor plan can be extracted, and then the second building elements corresponding to each color can be determined based on the area ranking of each color. For example, the color with the largest area in the generated image can be applied to the rooms and hard furnishings in the first floor plan.

[0075] In another implementation, the multiple second building elements may also include all building elements in the first floor plan. The characteristics of each building element in the first floor plan (such as area, importance, and material) can be extracted, and the color of each building element corresponding to each color can be determined according to the area order of each color.

[0076] In some embodiments, step S130, determining the colors of each element in the first floor plan based on the color features of the generated image, may include:

[0077] The background color in the first floor plan is determined based on the background color in the generated image.

[0078] In this embodiment of the disclosure, the background color in the generated image can be extracted and applied to the background color in the first floor plan.

[0079] In some embodiments, step S130, determining the colors of each element in the first floor plan based on the color features of the generated image, may include:

[0080] Among the multiple colors in the generated image, a color is randomly selected as the color of the third building element in the first floor plan.

[0081] Optionally, there can be multiple third architectural elements. These multiple third architectural elements can include architectural elements of different types. In one embodiment, a third architectural element can be a subset of architectural elements from the first floor plan, such as one or two elements. For example, two colors are randomly selected from the generated image and applied to the chair and furnishings, respectively.

[0082] In another approach, the third building element can also be all the building elements in the first floor plan, for example, by randomly applying multiple colors from the generated image to all the building elements in the first floor plan.

[0083] For example, the above embodiments can be implemented in combination with each other. For instance, the color of the first building element in the first floor plan can be determined according to the order of the shades of the colors in the generated image, the color of the second building element in the first floor plan can be determined according to the order of the areas of the colors in the generated image, and a color can be randomly selected from the multiple colors in the generated image as the color of the third building element in the first floor plan.

[0084] The following is a specific application example. In this example, the colors of each element in the first floor plan are determined based on the color characteristics of the generated image, including:

[0085] Use the background color of the generated image as the background color of the first floor plan;

[0086] Use the color with the largest area in the generated image as the color of the room and the hard decoration tiling in the floor plan;

[0087] The darkest color in the generated image will be used as the color of the load-bearing walls and columns in the floor plan;

[0088] Use the second darkest color in the generated image as the color of the building structure in the floor plan, excluding load-bearing walls and columns;

[0089] Use the lightest color in the generated image as the color for interior decoration and custom furniture;

[0090] Other colors from the generated image are randomly filled onto the chairs and furnishings.

[0091] By utilizing the color features of the generated image produced by an image generation model, the colors of each element in a floor plan can be determined, replacing manual color design. This ensures that the colors of each element in a floor plan are unique, allowing for individual variations, and lowers the creative threshold for floor plan color schemes, thus improving efficiency.

[0092] In some embodiments, the floor plan color scheme method may further include:

[0093] In response to detecting a user selection command for a first component in the second floor plan, the colors of the first and second components are modified; wherein the first and second components belong to the same architectural element.

[0094] Here, "first component" and "second component" can refer to instances of the same architectural element in different locations. For example, the first component could be a chair in a room, and the second component could be a chair in a restaurant.

[0095] In this embodiment, the user can input commands on the user interface to select the first component and modify its color. Simultaneously, the second component, which shares the same architectural elements as the first component, will also be modified accordingly. The same architectural elements can include the same type of architectural elements, such as both the first and second components being walls in a house; it can also include the same material of the architectural elements, such as both the first and second components being wooden chairs.

[0096] According to the above embodiments, users can modify the color of the first component in the second floor plan. When modifying the first component, the color of the second component with the same building element as the first component can also be modified simultaneously. This can improve the efficiency of modifying the second floor plan and keep the colors of the same building elements consistent, so that the building elements can be displayed intuitively in the second floor plan.

[0097] To better understand the technical solutions of the embodiments of this disclosure, a specific application example is provided below. Figure 3 A flowchart illustrating the color scheme method for floor plans is shown, such as... Figure 3 As shown, the color scheme for this floor plan includes the following processing steps:

[0098] S31. The user completes a 3D design, which can be an image or model of a house structure design.

[0099] S32. Automatically generate the first floor plan. The first floor plan may include a BIM floor plan, which can convert the 3D model into a 2D plan image and retain the BIM information of each building element.

[0100] Specifically, a 3D design can be sectionally projected onto a specified projection plane, converting it into 2D geometric shapes of points, lines, and surfaces. This allows the architectural information of the 3D design to be recorded onto each geometric element. In another implementation, lines and surfaces generated from the 3D design projection can be categorized according to user-preset rules into outlines, shape lines, section lines, sections, surfaces, etc. This allows for precise control over the display style of each geometric element, and ensures consistency in display style when geometric elements of the same type are used.

[0101] refer toFigure 4 Users can choose to create their own images or have them created using AI (Artificial Intelligence). Self-created images can include full-color, textured, or wireframe images. If a user chooses to create their own image, they can select the colors for each element in the first floor plan from a pre-configured color palette. If a user chooses AI creation, they proceed to step S33.

[0102] S33. AI creates and generates multiple secondary images. The AI ​​image-generating capability can be used to create secondary images from the first floor plan to obtain the generated images.

[0103] Specifically, commonly used style descriptions for architectural or interior design can be assembled into preset templates. Users can select a design style from the templates and send the relevant parameters of the design style and the first floor plan to the AI ​​to generate images suitable for the architectural and interior design industries.

[0104] When users from, for example Figure 4 When selecting AI creation in the user interface shown, you can enter... Figure 5 The user interface shown allows users to select the style of the generated image from templates, such as trendy styles, Nordic natural styles, creative animation, and fresh Japanese styles. Users can also select "Apply Color Scheme" to choose the specific color scheme for the generated image. Alternatively, users can click "Create Your Own" to create their own generated image.

[0105] S34. Select an image to generate and automatically parse the colors. For example, it can parse the intensity and area of ​​each color, as well as the color of the background of the planar image, and sort the intensity and area of ​​each color.

[0106] S35. Apply the analyzed colors to the first floor plan according to the user's preset rules to obtain the second floor plan;

[0107] Specifically, the background color in the generated image can be applied to the background color of the first floor plan; the color with the largest area in the generated image can be applied to the rooms and hard furnishings of the first floor plan; the darkest color in the generated image can be applied to the load-bearing walls and columns of the first floor plan; the second darkest color in the generated image can be applied to the building structure of the first floor plan excluding the load-bearing walls and columns; the lightest color in the generated image can be applied to the soft furnishings and custom furniture of the first floor plan; and other colors in the generated image can be randomly applied to chairs and furnishings.

[0108] S36. Manually adjust the colors of some building elements in the second floor plan;

[0109] Specifically, you can first select the building element and adjust its lines, fill, and color. Since the geometric elements of the building element already store all the attributes of the building element, the style replacement results can be applied to the same building element at the same time, supporting synchronous modification of the same building element or the same category model.

[0110] After obtaining the second floor plan, you can proceed to... Figure 6 The user interface shown allows users to first select some building elements in the second floor plan, and then select colors from a color chart to adjust the colors of some building elements in the second floor plan.

[0111] As can be seen, according to the method of this disclosure embodiment, the image generation model can be used to create a large number of generated images from the first floor plan in the above process. The color features of the generated images can determine the color of each element in the first floor plan, and the colors of each element are filled into the first floor plan to obtain the second floor plan, thus achieving efficient generation of unique second floor plans. Furthermore, by automatically generating floor plan colors instead of manually designing them, the creative threshold for floor plan color matching can be lowered, which is conducive to improving the work efficiency of floor plan creators.

[0112] According to embodiments of this disclosure, this disclosure also provides a floor plan color matching device. Figure 7 A schematic block diagram of a floor plan color matching device provided in an embodiment of this disclosure is shown, such as... Figure 7 As shown, the color matching device for this floor plan includes:

[0113] Image acquisition module 710 is used to acquire the first floor plan;

[0114] Image generation module 720 is used to generate an image based on the first floor plan and a pre-configured image generation model;

[0115] The color determination module 730 is used to determine the color of each element in the first floor plan based on the color characteristics of the generated image.

[0116] The color fill module 740 is used to fill the colors of each element in the first floor plan to obtain the second floor plan.

[0117] In some embodiments, the image generation module 720 can also be used for:

[0118] The first floor plan and style information determined based on user instructions are input into the image generation model to obtain the generated image output by the image generation model.

[0119] In some embodiments, such as Figure 8As shown, the floor plan color matching device may further include a first interaction module 810, which is used for:

[0120] Display multiple architectural style templates on the user interface;

[0121] In response to detecting a user selection instruction for a first architectural style template among multiple architectural style templates, style information is obtained based on the first architectural style template.

[0122] In some embodiments, the color determination module 730 can also be used for:

[0123] The color of the first building element in the first floor plan is determined by sorting the colors in the generated image according to their intensity.

[0124] In some embodiments, the color determination module 730 can also be used for:

[0125] The color of the second building element in the first floor plan is determined by sorting the areas of each color in the generated image.

[0126] In some embodiments, the color determination module 730 can also be used for:

[0127] Among the multiple colors in the generated image, a color is randomly selected as the color of the third building element in the first floor plan.

[0128] In some embodiments, the color determination module 730 can also be used for:

[0129] The background color in the first floor plan is determined based on the background color in the generated image.

[0130] In some embodiments, such as Figure 8 As shown, the floor plan color matching device may also include a color modification module 820, which is used for:

[0131] In response to detecting a user selection command for a first component in the second floor plan, the colors of the first and second components are modified; wherein the first and second components belong to the same architectural element.

[0132] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 9As shown, the electronic device includes a memory 910 and a processor 920. The memory 910 stores a computer program that can run on the processor 920. The number of memories 910 and processors 920 can be one or more. The memory 910 can store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the methods provided in the above-described method embodiments. The electronic device may also include a communication interface 930 for communicating with external devices and performing data exchange and transmission.

[0133] If the memory 910, processor 920, and communication interface 930 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 9 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0134] Optionally, in a specific implementation, if the memory 910, processor 920, and communication interface 930 are integrated on a single chip, then the memory 910, processor 920, and communication interface 930 can communicate with each other through an internal interface.

[0135] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.

[0136] Further, optionally, the aforementioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile or non-volatile, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous DRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).

[0137] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this disclosure are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)). It is worth noting that the computer-readable storage media mentioned in this disclosure can be non-volatile storage media; in other words, it can be non-transient storage media.

[0138] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0139] In the description of the embodiments of this disclosure, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0140] In the description of the embodiments disclosed herein, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0141] In the description of embodiments of this disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0142] The above description is merely an exemplary embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.

Claims

1. A house type drawing color matching method, characterized in that, The method comprises: obtaining a first house type drawing; based on the first house type drawing and a pre-configured image generation model, obtaining a generated image; wherein the image generation model refers to a model for creating a new image; determining the color of each element in the first house type drawing according to the color feature of the generated image; filling the color of each element in the first house type drawing to obtain a second house type drawing; in response to detecting a user selection instruction for a first component in the second house type drawing, modifying the color of the first component and a second component; wherein the first component and the second component belong to the same building element; wherein the color of each element in the first house type drawing is determined according to the color feature of the generated image, comprising: selecting the color feature corresponding to each element in the first house type drawing in the color feature of the generated image to determine the color of each element in the first house type drawing; wherein the first house type drawing includes a plurality of first building elements, and according to the features of part of the building elements in the first house type drawing and the lightness sorting of each color in the generated image, the first building element corresponding to each color is determined; the first house type drawing includes a plurality of second building elements, and according to the features of part of the building elements in the first house type drawing and the area sorting of each color in the generated image, the second building element corresponding to each color is determined; wherein the generated image is obtained based on the first house type drawing and the pre-configured image generation model, comprising: inputting the first house type drawing and the style information determined based on the user instruction into the image generation model to obtain the generated image output by the image generation model.

2. The method of claim 1, wherein, The method further comprises: displaying a plurality of building style templates on a user interaction interface; in response to detecting a user selection instruction for a first building style template in the plurality of building style templates, obtaining the style information based on the first building style template.

3. The method according to claim 1 or 2, characterized in that, The color of each element in the first house type drawing is determined according to the color feature of the generated image, comprising: randomly selecting a color from the plurality of colors in the generated image as the color of the third building element in the first house type drawing.

4. The method according to claim 1 or 2, characterized in that, The color of each element in the first house type drawing is determined according to the color feature of the generated image, comprising: determining the color of the background in the first house type drawing according to the color of the background in the generated image.

5. A house type drawing color matching device, characterized in that, The method comprises: an image acquisition module for obtaining a first house type drawing; an image generation module for obtaining a generated image based on the first house type drawing and a pre-configured image generation model; wherein the image generation model refers to a model for creating a new image; a color determination module for determining the color of each element in the first house type drawing according to the color feature of the generated image; a color filling module for filling the color of each element in the first house type drawing to obtain a second house type drawing; The first interaction module is configured to modify the color of the first component and a second component in response to detecting a user selection instruction for the first component in the second house type diagram; the first component and the second component belong to the same building element; The color determination module is further configured to: select color features corresponding to each element in the first house type diagram from the color features of the generated image to determine the color of each element in the first house type diagram; the first house type diagram includes a plurality of first building elements, and a first building element corresponding to each color is determined according to the features of part of the building elements in the first house type diagram and the lightness ordering of each color in the generated image; the first house type diagram includes a plurality of second building elements, and a second building element corresponding to each color is determined according to the features of part of the building elements in the first house type diagram and the area ordering of each color in the generated image; The image generation module is further configured to: input the first house type diagram and the style information determined based on the user instruction into the image generation model to obtain a generated image output by the image generation model. 6.An electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable 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 of any one of claims 1-4.

7. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Theme color processing method, device and display page generation method, device and equipment

    CN110673904A

  • House plan generation method and device, equipment and storage medium

    CN113808192A