Image processing method, apparatus, device, and storage medium
Patent Information
- Application Number
- CN202311740600.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-12-18
AI Technical Summary
[0003]本公开提供了一种图像处理方法、装置、设备以及存储介质,以解决或缓解现有技术中的一项或更多项技术问题
[0016] In this way, the present invention can configure and process the target hard decoration area in the initial decoration image based on the configured hard decoration configuration information to obtain a target effect image representing the overall decoration effect. This process does not require the user to manually design the scheme and can directly obtain the effect image after processing the target hard decoration area. Therefore, it is highly efficient. Moreover, compared with the existing solutions, the present invention is simple to operate and improves the user experience.
Smart Images

Figure CN117725649B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing technology, and in particular to an image processing method, apparatus, device, and storage medium. Background Technology
[0002] For hard decoration scenarios, in order to better demonstrate the effect of hard decoration products in actual house layouts, users usually need to create renderings of hard decoration products combined with actual scenes. However, the existing methods for creating renderings are cumbersome, inefficient, and fail to meet user needs, thus reducing the user experience. Summary of the Invention
[0003] This disclosure provides an image processing method, apparatus, device, and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, this disclosure provides an image processing method, including:
[0005] When a selected target hard decoration area is displayed, in response to a configuration operation for the target hard decoration area, hard decoration configuration information for the target hard decoration area is obtained; the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least the hard decoration materials and the laying method of the hard decoration materials;
[0006] In response to the image generation operation, a target rendering is displayed, wherein the target rendering is an overall decoration rendering obtained by configuring the target hard decoration area using the hard decoration materials and laying methods in the hard decoration configuration information.
[0007] Secondly, this disclosure provides an image processing apparatus, comprising:
[0008] A processing unit is configured to, when displaying a selected target hard decoration area, obtain hard decoration configuration information for the target hard decoration area in response to a configuration operation for the target hard decoration area; the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least hard decoration materials and the laying method of the hard decoration materials; and obtain a target effect image in response to an image generation operation, wherein the target effect image is an overall decoration effect image obtained after configuring the target hard decoration area using the hard decoration materials and laying method in the hard decoration configuration information.
[0009] The display unit is used to display the target effect diagram.
[0010] Thirdly, an electronic device is provided, comprising:
[0011] At least one processor; and
[0012] The memory is communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the methods described in the present disclosure.
[0014] Fourthly, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform any of the methods according to embodiments of the present disclosure.
[0015] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the methods according to embodiments of the present disclosure.
[0016] In this way, the present invention can configure and process the target hard decoration area in the initial decoration image based on the configured hard decoration configuration information to obtain a target effect image representing the overall decoration effect. This process does not require the user to manually design the scheme and can directly obtain the effect image after processing the target hard decoration area. Therefore, it is highly efficient. Moreover, compared with the existing solutions, the present invention is simple to operate and improves the user experience.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0018] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments provided according to this disclosure and should not be construed as limiting the scope of this disclosure.
[0019] Figure 1 This is an illustrative flowchart of an image processing method according to an embodiment of this application. Figure 1 ;
[0020] Figure 2(a) is a schematic diagram of a scene for obtaining an initial decoration image according to an embodiment of this application;
[0021] Figure 2(b) is a schematic diagram of a scene for obtaining an initial decoration image according to another embodiment of this application;
[0022] Figure 3(a) is a schematic diagram of a scenario for identifying hard decoration areas in an initial decoration image according to an embodiment of this application;
[0023] Figure 3(b) is a schematic diagram of a scenario in which a user selects a portion of the hard decoration area in an initial decoration image according to an embodiment of this application;
[0024] Figure 4(a) is a schematic diagram of a hardware configuration interface according to an embodiment of this application;
[0025] Figure 4(b) is a schematic diagram of a hardware configuration interface according to another embodiment of this application;
[0026] Figure 5(a) is a schematic diagram of the initial outline effect according to an embodiment of the present application;
[0027] Figure 5(b) is a schematic diagram of a preset outline effect according to an embodiment of the present application;
[0028] Figure 6(a) is a schematic flowchart of an image processing method according to an embodiment of this application;
[0029] Figure 6(b) is a schematic diagram of the adaptation operation of the preset contour effect diagram according to an embodiment of the present application;
[0030] Figure 6(c) is a scene diagram of obtaining the initial outline effect according to an embodiment of this application;
[0031] Figure 7(a) is a schematic flowchart of an image processing method according to an embodiment of the present application in one example;
[0032] Figure 7(b) is a scene diagram in an example of an initial outline effect diagram according to an embodiment of the present application;
[0033] Figure 7(c) is a scene diagram of the target effect diagram according to an embodiment of the present application;
[0034] Figure 8 This is a schematic diagram of the structure of an image processing apparatus according to an embodiment of this application;
[0035] Figure 9 This is a block diagram of an electronic device used to implement the image processing method of the embodiments of this disclosure. Detailed Implementation
[0036] 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.
[0037] 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.
[0038] For hard furnishing scenarios, due to space limitations in physical stores, it is often impossible to display all hard furnishing products (such as tiles). Moreover, in order to better demonstrate the effect of hard furnishing products in actual apartment layouts, it is necessary to create renderings combining hard furnishing products with actual scenarios so that users can see how the hard furnishing products will appear in real-world settings. However, existing methods for creating renderings are cumbersome, inefficient, and degrade the user experience.
[0039] Based on this, the present disclosure proposes an image processing method to solve the above problems.
[0040] Specifically, Figure 1 This is an illustrative flowchart of an image processing method according to an embodiment of this application. Figure 1 This method can be optionally applied to electronic devices, such as personal computers, servers, server clusters, and other electronic devices.
[0041] Furthermore, the method includes at least a portion of the following: For example... Figure 1 As shown, the image processing method includes:
[0042] Step S101: When the selected target hard decoration area is displayed, in response to the configuration operation for the target hard decoration area, obtain the hard decoration configuration information of the target hard decoration area.
[0043] Here, the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least the hard decoration materials and the laying method of the hard decoration materials; for example, the hard decoration materials include but are not limited to: tiles, flooring, stone, etc., and the laying method includes but is not limited to: the size parameters of the hard decoration materials (such as the size parameters of tiles), the laying method (such as "I" pattern), etc.
[0044] Furthermore, in a specific example, the selected target hard decoration area can be obtained in the following manner; specifically, before displaying the selected target hard decoration area (e.g., before step S101 described above), the method further includes:
[0045] Step S100-1: In response to the second input operation, display the initial decoration image.
[0046] For example, in one example, the initial decoration image can be a decoration image uploaded by the user. For instance, as shown in Figure 2(a), the user can click the "Add Image" button to select an image from the album or take a picture in real time and upload it as the initial decoration image, which will be displayed in the image display area. Alternatively, in another example, the initial decoration image can be a built-in decoration image provided by this disclosure. For instance, as shown in Figure 2(b), the user can directly select built-in decoration image 2 as the initial decoration image in the built-in decoration image display area. For example, by selecting built-in decoration image 2 and then clicking the "Add Image" button, the selected built-in decoration image 2 will be displayed in the image display area.
[0047] It should be noted that, in this example, the method of obtaining the initial decoration images is not limited.
[0048] Step S100-2: In response to the recognition operation for the initial decoration image, display the hard decoration area in the initial decoration image.
[0049] In other words, the present invention can perform region recognition on the initial decoration image selected by the user to obtain the hard decoration area in the initial decoration image. For example, as shown in Figure 3(a), the initial decoration image is recognized to obtain hard decoration areas including the ceiling area (corresponding to area 3), the wall area (corresponding to area 2, area 4 and area 5), and the floor area (corresponding to area 1).
[0050] Step S100-3: In response to a selection operation targeting at least a portion of the hard decoration area, display the selected target hard decoration area.
[0051] For example, in one example, as shown in Figure 3(b), the user can select a portion of the identified hard decoration area, such as selecting area 1 (i.e., the ground area). At this time, the selected area 1 is the target hard decoration area (the shaded part in the figure), and then the effect picture containing the target hard decoration area in the selected state is displayed.
[0052] In this way, the disclosed solution can automatically identify the hard decoration area based on the input initial decoration image. This makes it convenient for users to select the area to be configured (i.e., the target hard decoration area) according to their actual needs. Moreover, the operation is simple, meets the user's personalized design needs, and improves the user experience.
[0053] Further, in a specific example, the hardware configuration information of the target hardware area can be obtained in the following manner; specifically, the above-described method of obtaining the hardware configuration information of the target hardware area in response to a configuration operation for the target hardware area (e.g., step S101 described above) specifically includes:
[0054] Step S101-1: In response to the configuration operation for the target hard decoration area, display the hard decoration configuration interface for the target hard decoration area.
[0055] Here, the hard decoration configuration interface displays at least a variety of hard decoration materials and at least one laying method for each hard decoration material.
[0056] Furthermore, in one example, the various hard decoration materials are obtained from a material library based on one of the following: a local material library or a preset material library.
[0057] For example, as shown in Figure 4(a), after selecting the ground area (i.e., the target hard decoration area), the user can click on the configuration operation for the ground area to display the hard decoration configuration interface for the ground area. Here, in one example, the displayed hard decoration configuration interface includes a preset material library (such as a public library or a corporate library) and a local material library (such as "My"), each containing a variety of hard decoration materials. Here, the user can select the built-in hard decoration materials provided by this public solution from the public library, or select hard decoration materials corresponding to other production processes from the purchased third-party corporate library, or upload their own stored hard decoration materials from their local computer. In this way, multiple channels are provided for the user to choose according to their actual needs.
[0058] Furthermore, the hard decoration configuration interface in this example also includes configuration functions for the laying method, such as the splicing method (i.e. the laying method mentioned above, such as "I" pattern) in the hard decoration configuration interface shown in Figure 4(a), which makes it convenient for users to select the required laying method according to the actual situation.
[0059] It should be noted that in this example, the configuration functions for hard decoration materials and laying methods are in the same configuration interface. In actual applications, the two can be in different interfaces, as shown in Figure 4(b). This disclosure does not impose any specific restrictions on this.
[0060] Furthermore, the functions in the hard decoration configuration interface in this example are only one example. In actual applications, the hard decoration configuration interface may also include configuration functions such as gap width and gap material.
[0061] Step S101-2: In response to a click operation on the hard decoration configuration interface of the target hard decoration area, obtain the hard decoration configuration information of the target hard decoration area.
[0062] In this way, the disclosed solution can display the hard decoration configuration interface for the target hard decoration area, which makes it easy for users to configure according to their own needs. This can enhance the user's autonomy, meet the user's personalized customization needs for the target hard decoration area, and further improve the user experience.
[0063] Step S102: In response to the image generation operation, display the target effect image.
[0064] Here, the target effect image is the overall decoration effect image obtained after configuring the target hard decoration area using the hard decoration materials and laying methods in the hard decoration configuration information.
[0065] In a specific example, the target rendering is the overall decoration rendering obtained by processing the initial outline rendering using the hard furnishing materials in the hard furnishing configuration information; the initial outline rendering is a laying outline rendering generated by processing the target hard furnishing area based on the laying method in the hard furnishing configuration information. That is, in this example, the target hard furnishing area can first be processed using the laying method in the hard furnishing configuration information to obtain the initial outline rendering, and then the initial outline rendering can be processed using the hard furnishing materials in the hard furnishing configuration information to obtain the target rendering that represents the overall decoration effect. This improves image processing efficiency, avoids long waiting times for users, and quickly provides a satisfactory rendering, further enhancing the user experience.
[0066] It should be noted that in this example, the initial outline rendering can be shown to the user or not; furthermore, if the initial outline rendering is shown to the user, the user's waiting time can be reduced, thus avoiding the negative experience caused by excessive waiting time and improving the user experience.
[0067] Furthermore, in a specific example, the initial contour rendering can be displayed in the following manner: before displaying the target rendering in response to the image generation operation (e.g., before step S102 described above), the method further includes: displaying the initial contour rendering in response to the contour generation operation. In this way, a satisfactory initial contour rendering is quickly obtained, laying the foundation for subsequently obtaining the target rendering.
[0068] Furthermore, in a specific example, a pre-trained model can be used to obtain the target effect image. This allows for the rapid generation of a target effect image that satisfies the user and provides an overall aesthetic appeal, improving image processing efficiency, reducing user waiting time, and ultimately enhancing the user experience. Specifically, the above-described response to the image generation operation, displaying the target effect image (e.g., step S102 above), can specifically include one of the following two methods:
[0069] Option 1: In response to the image generation operation, the hard decoration materials in the hard decoration configuration information and the initial outline effect image are input into the first model to obtain the target effect image;
[0070] Here, the first model is used to perform material configuration processing on the initial outline rendering based on the hard decoration materials in the hard decoration configuration information, so as to obtain the target rendering.
[0071] Option 2: In response to the image generation operation, the hard decoration configuration information (including hard decoration materials and laying method) and the target hard decoration area are input into the second model to obtain the target effect image;
[0072] Here, the second model is used to process the target hard decoration area based on the laying method in the hard decoration configuration information to obtain an initial outline effect picture, and to use the hard decoration materials in the hard decoration configuration information to perform material configuration processing on the initial outline effect picture to obtain the target effect picture.
[0073] In this way, the present invention can configure and process the target hard decoration area in the initial decoration image based on the configured hard decoration configuration information to obtain a target effect image representing the overall decoration effect. This process does not require the user to manually design the scheme and can directly obtain the effect image after processing the target hard decoration area. Therefore, it is highly efficient. Moreover, compared with the existing solutions, the present invention is simple to operate and improves the user experience.
[0074] Furthermore, since this solution provides configuration functionality for hard decoration configuration information of the target hard decoration area, it can better meet users' personalized customization needs for the target hard decoration area, thereby quickly obtaining a satisfactory rendering with specified hard decoration materials and laying methods, further enhancing the user experience.
[0075] In a specific example of the disclosed solution, the initial contour rendering can be obtained in the following ways; specifically, it includes the following two methods:
[0076] Method 1: As described above, in response to the contour generation operation, the initial contour effect image is displayed, specifically including:
[0077] In response to the contour generation operation, the actual hard decoration area corresponding to the target hard decoration area in the initial decoration image is identified;
[0078] Based on the laying method in the hard decoration configuration information, the actual hard decoration area is processed to obtain an initial outline effect diagram representing the laying outline effect of the actual hard decoration area.
[0079] In other words, in this example, after responding to the contour generation operation, the actual hard decoration area corresponding to the target hard decoration area in the initial decoration image is first identified, and then an effect image representing the laying contour effect of the actual hard decoration area corresponding to the target hard decoration area is obtained. This further enhances the user experience.
[0080] For example, continuing with the target hard decoration area in Figure 3(b), after the user clicks the outline generation operation for the ground area (i.e., the target hard decoration area mentioned above), the target hard decoration area is first automatically identified to obtain the real hard decoration area corresponding to the target hard decoration area, which represents the actual size parameters. Then, based on the size of the hard decoration material (such as tiles) and the laying method of the hard decoration material (such as the "I" pattern), the real hard decoration area is processed to obtain the initial outline effect shown in Figure 5(a).
[0081] In this way, the disclosed solution can automatically identify the actual hard decoration area corresponding to the target hard decoration area, and then process the actual hard decoration area using the laying method. Thus, a rendering representing the laying effect of the actual hard decoration area can be quickly obtained, and the rendering is more realistic, thereby further improving the user experience.
[0082] Method 2: In response to the contour generation operation described above, the initial contour effect image is displayed, specifically including:
[0083] In response to the contour generation operation, a preset contour effect diagram is displayed; the preset contour effect diagram can at least represent the laying effect diagram of the laying method in the hard decoration configuration information;
[0084] In response to the adaptation operation for the preset outline effect image, the initial outline effect image is obtained. At this time, the initial outline effect image can represent the laying outline effect of the actual hard decoration area.
[0085] In other words, in this example, after responding to the outline generation operation, a laying effect diagram representing the laying method, i.e., a preset outline effect diagram, is first generated. Then, the preset outline effect diagram is adapted to the actual hard decoration area to obtain the initial outline effect diagram.
[0086] Here, continuing with the target hard decoration area in Figure 3(b) as an example, after the user clicks the outline generation operation of the ground area (i.e., the target hard decoration area mentioned above), a preset outline effect diagram representing the laying method in the hard decoration configuration information is generated, such as the preset outline effect diagram shown in Figure 5(b); secondly, the user manually adjusts the preset outline effect diagram according to the target hard decoration area, for example, adapting the preset outline effect diagram to the target hard decoration area to obtain an initial outline effect diagram that can represent the laying outline effect of the real hard decoration area, such as the initial outline effect diagram shown in Figure 5(a).
[0087] Thus, this disclosed solution provides another specific example of obtaining an initial outline rendering, namely, first obtaining a preset outline rendering, and then having the user manually adjust the preset outline rendering to obtain the initial outline rendering. In this way, the rendering of the laying method required by the user in the actual hard decoration area can be obtained quickly, thereby further improving the user experience.
[0088] Figure 6(a) is a schematic flowchart of an image processing method according to an embodiment of this application. This method can be optionally applied to electronic devices, such as personal computers, servers, server clusters, and other electronic devices. It is understood that the above... Figure 1 The methods shown can also be applied to this example, and the related content will not be elaborated further in this example.
[0089] Furthermore, the method includes at least a portion of the following. As shown in Figure 6(a), the image processing method includes:
[0090] Step S601: When the selected target hard decoration area is displayed, in response to the configuration operation for the target hard decoration area, obtain the hard decoration configuration information of the target hard decoration area.
[0091] Here, the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least the hard decoration materials and the laying method of the hard decoration materials; the content of the hard decoration materials and the laying method of the hard decoration materials can be referred to the above example, and will not be repeated here.
[0092] Step S602: In response to the first input operation, obtain the size parameters of the actual hard decoration area of the target hard decoration area.
[0093] Step S603: In response to the contour generation operation, obtain the template to be laid based on the size parameters of the actual hard decoration area of the target hard decoration area.
[0094] Step S604: Using the laying method in the hard decoration configuration information, simulate the laying of the template to be laid to obtain the preset outline effect diagram.
[0095] Step S605: In response to the adaptation operation for the preset contour effect image, the initial contour effect image is obtained.
[0096] Here, in a specific example, the initial outline effect image can be obtained in the following manner; specifically, the above-described response to the adaptation operation for the preset outline effect image, displaying the initial outline effect image (e.g., step S605 above), specifically includes:
[0097] In response to the adaptation operation for the preset outline effect image, the key points of the preset outline effect image are adjusted to obtain the initial outline effect image.
[0098] Here, the key points (such as corner points) of the adjusted preset outline effect image are matched with the key points of the target hard decoration area in the initial decoration image. In one example, as shown in Figure 6(b), the user can manually adjust the preset outline effect image to match corner point 1 in the preset outline effect image with corner point 1 in the target hard decoration area, corner point 2 in the preset outline effect image with corner point 2 in the target hard decoration area, corner point 3 in the preset outline effect image with corner point 3 in the target hard decoration area, and corner point 4 in the preset outline effect image with corner point 4 in the target hard decoration area, etc. In this way, the user can manually complete the adaptation operation.
[0099] Thus, this disclosed solution provides a specific example of an adaptation operation for a preset outline effect diagram. In this way, an initial outline effect diagram representing the laying outline effect of the real outline effect diagram can be quickly obtained, thereby laying the foundation for obtaining a target effect diagram with an overall decoration effect.
[0100] Step S606: In response to the image generation operation, display the target effect image, which is the overall decoration effect image obtained after processing the initial outline effect image with material configuration using the hard decoration materials in the hard decoration configuration information.
[0101] For example, continuing with the target hard decoration area shown in Figure 3(b), as shown in Figure 6(c), firstly, the hard decoration configuration information of the target hard decoration area and the size parameters of the actual hard decoration area of the target hard decoration area are obtained. Based on the size parameters of the actual hard decoration area of the target hard decoration area, a template to be laid is generated. Secondly, the laying method in the hard decoration configuration information is used to simulate the laying of the template to be laid, and the preset outline effect is obtained. Thirdly, the user adjusts the preset outline effect to obtain and display the initial outline effect representing the laying outline effect of the actual hard decoration area. Finally, the hard decoration materials in the hard decoration configuration information are used to process the initial outline effect to obtain a target effect with an overall decoration effect.
[0102] Thus, this disclosed solution provides a complete example of obtaining a target rendering. In this example, users only need to configure the hard decoration configuration information according to their actual needs to obtain the rendering of the target hard decoration area after processing. It is efficient and can better meet users' personalized customization needs for the target hard decoration area, thereby quickly obtaining a rendering that satisfies the user and further improving the user experience.
[0103] The following specific examples further illustrate the present invention; the present invention provides an image processing method for personalized customization of a specified hard decoration area in a specific floor plan.
[0104] Specifically, as shown in Figure 7(a), the core steps include:
[0105] Step 1: Obtain initial decoration images;
[0106] Specifically, users can upload their own images, or they can select sample images (i.e., the built-in decoration images mentioned above).
[0107] Step 2: Perform region recognition on the hard decoration area in the initial decoration image and determine the target hard decoration area. For example, as shown in Figures 3(a) and 3(b), perform hard decoration area recognition on the initial decoration image to obtain hard decoration areas including the ceiling area (corresponding to area 3), wall areas (corresponding to areas 2, 4 and 5), and floor area (corresponding to area 1), etc., for the user to select to obtain the target hard decoration area.
[0108] Step 3: Determine the hard decoration configuration information of the target hard decoration area. For example, as shown in Figure 4(a), after the user clicks the hard decoration configuration information setting button corresponding to the target hard decoration area (such as the ground area), the hard decoration configuration interface is displayed. The hard decoration configuration interface displays a variety of hard decoration materials (such as tiles, baseboards, stone, wall paint, etc.) and laying methods (that is, the laying methods mentioned above) for the user to choose from.
[0109] Here, the hard decoration configuration interface in this example may include a corporate library, a public library, and a "My" material library, each containing a variety of hard decoration materials; further, in one example, the corporate library displays each hard decoration material in a hierarchical structure, and each hard decoration material is displayed in the form of "preview image + name"; the laying method in the hard decoration configuration interface also displays the size and splicing method of the selected hard decoration material.
[0110] In addition, in one example, when a user customizes the design of a wall area, they can directly select the wall paint in the corresponding hard furnishing configuration interface for that wall area.
[0111] Step 4: Based on the size parameters of the actual hard decoration area where the target hard decoration area is located, determine the template to be laid. For example, generate the template to be laid based on the size parameters of the actual hard decoration area where the target hard decoration area is located, as input by the user.
[0112] Step 5: Based on the hard decoration configuration information, process the obtained template to be laid to obtain the initial outline effect diagram.
[0113] Specifically, as shown in Figure 6(c), the processing steps include:
[0114] Step 5.1: Based on the laying method in the hard decoration configuration information, process the template to be laid to obtain the preset outline effect diagram of the target hard decoration area.
[0115] Step 5.2: Adjust the obtained preset outline effect to obtain the initial outline effect.
[0116] For example, as shown in Figure 6(b), the corner points in the preset outline effect diagram are adjusted so that the corner points in the preset outline effect diagram match the corner points in the target hard decoration area to obtain the initial outline effect diagram shown in Figure 7(b).
[0117] Step 6: Generate and display the target rendering with the overall decoration effect.
[0118] Specifically, in one example, the generated initial outline rendering and the hard furnishing materials in the hard furnishing configuration information are passed to Model As a Service (MAAS) to obtain the target rendering. Here, MAAS is mainly used to handle the integration of laying methods and other elements, such as ensuring that the splicing method does not block the furniture, in order to generate the rendering shown in Figure 7(c).
[0119] This completes the personalized design of the designated hard furnishing area in the specific floor plan.
[0120] In summary, compared with the prior art, the disclosed solution has the following advantages, specifically including:
[0121] First, it is simple and efficient to operate. Compared with existing technologies that require users to manually design solutions, this disclosed solution does not require users to manually design solutions and can directly obtain the effect diagram of the specified hard decoration area after processing. It is easy to operate and highly efficient.
[0122] Second, personalized design. This publicly available solution allows users to flexibly configure the required hard decoration materials and laying methods to meet their needs for personalized design of specific hard decoration areas in a particular floor plan, thereby obtaining a satisfactory rendering.
[0123] Third, the user experience is improved. This publicly available solution offers multiple paths for processing renderings. For example, users can generate renderings with a single click based on their configured hard furnishing information, or they can manually participate in the processing of details on preset outline renderings. Therefore, users can choose according to their actual situation, thus improving the user experience.
[0124] This disclosure also provides an image processing apparatus, such as... Figure 8 As shown, it includes:
[0125] The processing unit 801 is configured to, when displaying a selected target hard decoration area, obtain hard decoration configuration information of the target hard decoration area in response to a configuration operation for the target hard decoration area; the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least hard decoration materials and the laying method of the hard decoration materials; and obtain a target effect image in response to an image generation operation, wherein the target effect image is an overall decoration effect image obtained after configuring the target hard decoration area using the hard decoration materials and laying method in the hard decoration configuration information.
[0126] Display unit 802 is used to display the target effect diagram.
[0127] In a specific example of the scheme disclosed herein,
[0128] The target rendering is the overall decoration rendering obtained by processing the initial outline rendering with material configuration using the hard decoration materials in the hard decoration configuration information.
[0129] The initial outline effect diagram is a paving outline effect diagram generated after processing the target hard decoration area based on the paving method in the hard decoration configuration information.
[0130] In a specific example of the scheme disclosed herein,
[0131] The processing unit is also configured to obtain the initial contour effect image in response to the contour generation operation;
[0132] The display unit is also used to display the initial outline effect diagram.
[0133] In a specific example of the disclosed solution, the processing unit is specifically used for:
[0134] In response to the contour generation operation, the actual hard decoration area corresponding to the target hard decoration area in the initial decoration image is identified;
[0135] Based on the laying method in the hard decoration configuration information, the actual hard decoration area is processed to obtain an initial outline effect diagram representing the laying outline effect of the actual hard decoration area.
[0136] In a specific example of the scheme disclosed herein,
[0137] The processing unit is specifically used to respond to the contour generation operation and obtain a preset contour effect diagram; the preset contour effect diagram can at least represent the laying effect diagram of the laying method in the hard decoration configuration information.
[0138] The display unit is also used to display the preset outline effect diagram;
[0139] The processing unit is specifically used to obtain the initial contour effect image in response to the adaptation operation for the preset contour effect image.
[0140] In a specific example of the scheme disclosed herein, the processing unit is further configured to:
[0141] In response to the first input operation, the actual size parameters of the target hard decoration area are obtained;
[0142] In response to the contour generation operation, the template to be laid is obtained based on the size parameters of the actual hard decoration area of the target hard decoration area;
[0143] Using the laying method in the hard decoration configuration information, the laying simulation is performed on the template to be laid to obtain the preset outline effect diagram.
[0144] In a specific example of the disclosed solution, the processing unit is specifically used for:
[0145] In response to the adaptation operation for the preset outline effect image, the key points of the preset outline effect image are adjusted to obtain the initial outline effect image, wherein the key points of the adjusted preset outline effect image match the key points of the target hard decoration area in the initial decoration image.
[0146] In a specific example of the disclosed solution, the processing unit is specifically used for:
[0147] In response to the image generation operation, the hard decoration materials in the hard decoration configuration information and the initial outline effect map are input into the first model to obtain the target effect map;
[0148] The first model is used to perform material configuration processing on the initial outline rendering based on the hard decoration materials in the hard decoration configuration information, so as to obtain the target rendering.
[0149] In a specific example of the disclosed solution, the processing unit is specifically used for:
[0150] In response to the image generation operation, the hard decoration configuration information and the target hard decoration area are input into the second model to obtain the target effect image;
[0151] The second model is used to process the target hard decoration area based on the laying method in the hard decoration configuration information to obtain an initial outline effect picture, and to process the initial outline effect picture with the hard decoration materials in the hard decoration configuration information to obtain the target effect picture.
[0152] In a specific example of the scheme disclosed herein,
[0153] The processing unit is also configured to obtain the initial decoration image in response to the second input operation;
[0154] The display unit is also used to display the initial decoration image;
[0155] The processing unit is further configured to, in response to a recognition operation on the initial decoration image, obtain the hard decoration area in the initial decoration image;
[0156] The display unit is also used to display the hard decoration area in the initial decoration image;
[0157] The processing unit is further configured to, in response to a selection operation on at least a portion of the hard-decorated area, obtain the selected target hard-decorated area;
[0158] The display unit is also used to display the selected target hard decoration area.
[0159] In a specific example of the scheme disclosed herein,
[0160] The processing unit is specifically configured to, in response to a configuration operation for the target hard decoration area, obtain a hard decoration configuration interface for the target hard decoration area; the hard decoration configuration interface displays at least a variety of hard decoration materials and at least one laying method for each hard decoration material; the hard decoration materials are obtained from one of the following material libraries: a local material library and a preset material library; in response to a click operation on the hard decoration configuration interface for the target hard decoration area, obtain hard decoration configuration information for the target hard decoration area;
[0161] The display unit is also used to display the hardware configuration interface.
[0162] For a description of the specific functions and examples of each unit of the apparatus in this disclosure embodiment, please refer to the relevant descriptions of the corresponding steps in the above method embodiments, which will not be repeated here.
[0163] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0164] 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.
[0165] 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.
[0166] Optionally, in a specific implementation, if the memory 910, processor 920, and communication interface 930 are integrated on a single chip, the memory 910, processor 920, and communication interface 930 can communicate with each other through an internal interface.
[0167] 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.
[0168] 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).
[0169] 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.
[0170] 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.
[0171] 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.
[0172] 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.
[0173] 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.
[0174] 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. An image processing method, comprising: When a selected target hard decoration area is displayed, in response to a configuration operation for the target hard decoration area, hard decoration configuration information for the target hard decoration area is obtained; the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least the hard decoration materials and the laying method of the hard decoration materials; In response to the contour generation operation, an initial contour effect image is displayed, wherein the initial contour effect image is a paving contour effect image generated after processing the target hard decoration area based on the paving method in the hard decoration configuration information. In response to the image generation operation, a target rendering is displayed, wherein the target rendering is an overall decoration rendering obtained by processing the initial outline rendering with material configuration using the hard decoration materials in the hard decoration configuration information.
2. The method according to claim 1, wherein, The response to the contour generation operation, displaying the initial contour effect image, includes: In response to the contour generation operation, the actual hard decoration area corresponding to the target hard decoration area in the initial decoration image is identified; Based on the laying method in the hard decoration configuration information, the actual hard decoration area is processed to obtain an initial outline effect diagram representing the laying outline effect of the actual hard decoration area.
3. The method according to claim 1, wherein, The response to the contour generation operation, displaying the initial contour effect image, includes: In response to the contour generation operation, a preset contour effect diagram is displayed; the preset contour effect diagram can at least represent the laying effect diagram of the laying method in the hard decoration configuration information; In response to the adaptation operation for the preset contour effect image, the initial contour effect image is obtained.
4. The method according to claim 3, wherein, Before displaying the preset outline effect in response to the outline generation operation, it also includes: In response to the first input operation, the actual size parameters of the target hard decoration area are obtained; The step of responding to the contour generation operation and displaying a preset contour effect image includes: In response to the contour generation operation, the template to be laid is obtained based on the size parameters of the actual hard decoration area of the target hard decoration area; Using the laying method in the hard decoration configuration information, the laying simulation of the template to be laid is performed to obtain the preset outline effect diagram.
5. The method according to claim 3 or 4, wherein, The step of obtaining the initial contour image in response to the adaptation operation for the preset contour image includes: In response to the adaptation operation for the preset outline effect image, the key points of the preset outline effect image are adjusted to obtain the initial outline effect image, wherein the key points of the adjusted preset outline effect image match the key points of the target hard decoration area in the initial decoration image.
6. The method according to any one of claims 1-4, wherein, The step of responding to the image generation operation and displaying the target effect image includes: In response to the image generation operation, the hard decoration materials in the hard decoration configuration information and the initial outline effect map are input into the first model to obtain the target effect map; The first model is used to perform material configuration processing on the initial outline rendering based on the hard decoration materials in the hard decoration configuration information, so as to obtain the target rendering.
7. The method according to any one of claims 1-4, wherein, The step of responding to the image generation operation and displaying the target effect image includes: In response to the image generation operation, the hard decoration configuration information and the target hard decoration area are input into the second model to obtain the target effect image; The second model is used to process the target hard decoration area based on the laying method in the hard decoration configuration information to obtain an initial outline effect picture, and to process the initial outline effect picture with the hard decoration materials in the hard decoration configuration information to obtain the target effect picture.
8. The method according to any one of claims 1-4, wherein, Before displaying the selected target hard decoration area, it also includes: In response to the second input operation, the initial decoration image is displayed; In response to a recognition operation on the initial renovation image, the hard-decorated areas in the initial renovation image are displayed; In response to a selection operation targeting at least a portion of the hard-surface area, the selected target hard-surface area is displayed.
9. The method according to any one of claims 1-4, wherein, The step of obtaining the hard decoration configuration information of the target hard decoration area in response to a configuration operation for the target hard decoration area includes: In response to a configuration operation for the target hard decoration area, a hard decoration configuration interface for the target hard decoration area is displayed; the hard decoration configuration interface displays at least a variety of hard decoration materials and at least one laying method for each hard decoration material; the hard decoration materials are obtained from one of the following material libraries: local material library, preset material library; In response to a click operation on the hard decoration configuration interface of the target hard decoration area, the hard decoration configuration information of the target hard decoration area is obtained.
10. An image processing apparatus, comprising: A processing unit is configured to, when displaying a selected target hard decoration area, obtain hard decoration configuration information for the target hard decoration area in response to a configuration operation for the target hard decoration area; the target hard decoration area is at least a portion of the hard decoration area contained in the initial decoration image; the hard decoration configuration information includes at least hard decoration materials and the laying method of the hard decoration materials; and, in response to an image generation operation, obtain a target rendering image, wherein the target rendering image is an overall decoration rendering image obtained after processing the initial outline rendering image with material configuration using the hard decoration materials in the hard decoration configuration information; the initial outline rendering image is a laying outline rendering image generated after processing the target hard decoration area based on the laying method in the hard decoration configuration information. The display unit is used to display the target effect diagram; The processing unit is further configured to obtain the initial contour effect image in response to the contour generation operation; The display unit is also used to display the initial outline effect diagram.
11. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-9.
Citation Information
Patent Citations
Interior design scheme automatic generation method and device, computer equipment and medium
CN116933362A