CN117744212A - Curtain box processing method, device, equipment and storage medium - Google Patents

Curtain box processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117744212A
CN117744212A CN202311745368.6A CN202311745368A CN117744212A CN 117744212 A CN117744212 A CN 117744212A CN 202311745368 A CN202311745368 A CN 202311745368A CN 117744212 A CN117744212 A CN 117744212A
Authority
CN
China
Prior art keywords
initial
target
box model
curtain box
graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311745368.6A
Other languages
Chinese (zh)
Inventor
洪贵坤
朱皓
陈航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202311745368.6A priority Critical patent/CN117744212A/en
Publication of CN117744212A publication Critical patent/CN117744212A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a method, apparatus, device, and storage medium for processing a blind box. The method comprises the following steps: determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface; determining the adapting characteristics required for adjusting from the preset initial position to the target position in the target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned; obtaining a target effect diagram based on the initial curtain box model and the adaptation characteristic; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.

Description

Curtain box processing method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of image processing, and in particular relates to a curtain box processing method, a curtain box processing device, a curtain box processing equipment and a storage medium.
Background
In the design of the house type graph, the existing method can obtain a three-dimensional effect graph of the house type graph and display the three-dimensional effect graph to a user, but cannot meet the personalized customization requirement of the user on part of details (such as curtain boxes) of the house type graph.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and storage medium for processing a curtain box, so as to solve or alleviate one or more technical problems in the prior art.
In a first aspect, the present disclosure provides a method for treating a blind box, including:
determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface;
determining the adapting characteristics required for adjusting from the preset initial position to the target position in the target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned;
obtaining a target effect diagram based on the initial curtain box model and the adaptation characteristic; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.
In a second aspect, the present disclosure provides a blind box processing apparatus comprising:
the model building unit is used for determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface;
the characteristic determining unit is used for determining the adapting characteristic required by adjusting from the preset initial position to the target position in the target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned;
The image processing unit is used for obtaining a target effect diagram based on the initial curtain box model and the adaptation characteristic; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.
In a third aspect, an electronic device is provided, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are for causing the computer to perform a method according to any one of the embodiments of the present disclosure.
In a fifth aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to any of the embodiments of the present disclosure.
The beneficial effects of the technical scheme provided by the disclosure at least include: according to the determined adapting characteristics, the initial curtain box model can be adapted to the target house type graph to obtain the target effect graph, so that a user can better adapt the required curtain box model to the given target house type graph, a three-dimensional effect graph satisfactory to the user is obtained, the personalized customization requirement of the user on part of details in the house type graph is met, and further user experience is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments provided according to the disclosure and are not to be considered limiting of its scope.
FIG. 1 is a schematic flow chart diagram I of a method of treating a blind box according to an embodiment of the present application;
FIG. 2 (a) is a schematic diagram of a target interactive interface according to an embodiment of the present application;
FIG. 2 (b) is a schematic representation of the three-dimensional effect of an initial blind box model according to an embodiment of the present application;
FIGS. 3 (a) and 3 (b) are schematic top views of an initial blind box model rotated from a predetermined initial position to a target position according to an embodiment of the present application;
fig. 4 (a) and 4 (b) are schematic top views of an initial blind box model moving from a preset position to a target position according to another embodiment of the present application;
Fig. 5 (a) to 5 (d) are schematic top views illustrating the initial curtain box model rotating from a predetermined position and moving to a target position according to still another embodiment of the present application;
FIG. 6 (a) is a schematic flow chart of an implementation of a method for treating a blind box according to an embodiment of the present application in an example;
FIG. 6 (b) is a schematic illustration of the angle of rotation required to adjust an initial blind box model from a preset initial position to a target position according to an example of the present application;
FIG. 6 (c) is a schematic illustration of an exemplary initial blind box model according to the present application being adjusted from a preset initial position to a target position;
fig. 7 is a schematic structural view of a device for treating a blind box according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device for implementing a method of treating a blind box according to an embodiment of the disclosure.
Detailed Description
The present disclosure will be described in further detail below with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, circuits, etc. well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
In the design of the house type graph, the existing method can obtain a three-dimensional effect graph of the house type graph and display the three-dimensional effect graph to a user, but cannot meet the personalized customization requirement of the user on part of details (such as curtain boxes) in the house type graph.
Based on this, the present disclosure proposes a treatment method for a curtain box to solve the above-mentioned problems.
Specifically, fig. 1 is a schematic flowchart of a method for processing a blind box according to an embodiment of the present application. The method is optionally applied to electronic equipment, such as personal computers, servers, server clusters and the like.
Further, the method includes at least some of the following. As shown in fig. 1, the curtain box processing method includes:
step S101: determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface.
That is, the initial curtain box model is displayed at a preset initial position of the target interactive interface.
Further, the preset initial position is a model placement position preset by a user or a default placement position; for example, as shown in fig. 2 (a), the upper right corner of the target interactive interface is a stereoscopic view angle of the target house type diagram, and the operation area may be a schematic view of the target house type diagram under a view angle, for example, a top view of the target house type diagram; further, the position 2, the position 3 and the position 4 in the operation area can be target positions where the initial curtain box model is required to be adapted to each window, for example, when the user clicks the position 2, the position 2 can be used as the target position where the initial curtain box model is required to be adapted to the window; further, the preset initial position may be located at a position 1 in the operation area, where the position 1 is a default placement position of the initial blind box model.
It is understood that the present disclosure is not limited to the preset initial position.
Further, in an example, after determining the initial curtain box model, a three-dimensional effect diagram may be further displayed, for example, as shown in fig. 2 (b), and in addition, the initial curtain box model may include a box body 1 and a box body 2, so that a user may view a detailed portion of the initial curtain box model to determine whether the design requirement is met, and if not, the initial curtain box model is adjusted until the user's satisfactory curtain box model is obtained, thereby improving the user experience.
In one specific example, the initial curtain box model may be obtained as follows; specifically, the determining the initial curtain box model (for example, step S101 described above) specifically includes:
step S101-1: configuration information is obtained.
Here, the configuration information represents the box body characteristics required to construct the initial curtain box model; further, the box body characteristics of the initial curtain box model include, but are not limited to, length, width, type, material, etc.
Step S101-2: based on the obtained configuration information, an initial curtain box model is generated (e.g., generated and displayed) at a preset initial position of the target interactive interface.
Therefore, the initial curtain box model can be built based on the configuration information, so that a user can configure the curtain box model meeting the actual demands of the user through the configuration information, the generated curtain box model is more reasonable and exquisite, and the user experience is improved.
Step S102: and determining the adapting characteristics required for adjusting from the preset initial position to the target position in the target house type graph.
Here, the target position is a position where the initial curtain box model in the target house type graph needs to be located.
In a specific example, the target household pattern graph may be a household pattern graph input by a user. Alternatively, in another example, the user may be a built-in house type map given in the present disclosure, which is not limited by the present disclosure.
Further, the target house type graph may be a two-dimensional image or a three-dimensional image, which is not limited in the scheme of the present disclosure.
Step S103: and obtaining a target effect graph based on the initial curtain box model and the adapting characteristic.
Here, the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position. For example, the three-dimensional effect map corresponding to the whole target house type map of the adaptive complete curtain box model is included.
In this way, the initial curtain box model can be adapted to the target house type graph according to the determined adapting characteristic, so that the target effect graph is obtained, a user can better adapt the required curtain box model to the given target house type graph, the three-dimensional effect graph satisfactory to the user is obtained, the personalized customization requirement of the user to the house type graph is met, and further user experience is improved.
Further, since the target house type graph can be specifically the house type graph input by the user, the curtain box model meeting the requirements can be generated according to the house type graph provided by the user, and the curtain box model is accurately adapted to the house type graph, so that the user experience is further improved.
In a specific example of the solution of the present disclosure, the target effect graph may be obtained in the following manner; specifically, the obtaining the target effect map based on the initial curtain box model and the adaptation feature (for example, step S103 described above) specifically includes:
step S103-1: and obtaining an initial effect diagram of the initial curtain box model at the target position based on the initial curtain box model and the adapting characteristic.
Here, the initial effect map is a three-dimensional effect map obtained by processing the initial curtain box model located at the target position, and specifically, the initial effect map includes a target curtain box model located at the target position and is used for representing a local effect of the target house type map.
Step S103-2: and processing other parts except the initial effect diagram in the target house type diagram to obtain a target effect diagram representing the overall effect of the target house type diagram.
In this way, the specific example of obtaining the target effect diagram is provided in the scheme of the disclosure, namely, the initial effect diagram with the local effect is obtained first, and then the target effect diagram with the global effect is obtained, so that the waiting time of the user is avoided and the experience of the user is enriched by using the staged generation mode of the target effect diagram; in addition, because the target effect graph is generated in stages, fewer computing resources can be used in each stage, the processing efficiency of the image is improved, the target effect graph with the integral effect, in which the curtain box model is located at the target position, is further obtained rapidly, and the user experience is improved.
In a specific example of the disclosed approach, the initial effect map may be obtained in different ways, specifically,
a first mode, that is, the above-mentioned obtaining an initial effect diagram of the initial curtain box model at the target position based on the initial curtain box model and the adapting feature (for example, step S103-1 described above), specifically includes:
step S103-1-1a: and carrying out rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adapting characteristic so as to enable the initial curtain box model to be positioned at the target position.
Here, the angle information is used to represent a rotation angle required for the initial box curtain model to rotate from the preset initial position to the target position.
That is, in this example, the initial blind box model is adjusted from a preset initial position to a target position, and only needs to be rotated by a corresponding angle; for example, in one example, the target house type graph is a three-dimensional image of the world coordinate system, and accordingly, the initial curtain box model displayed in the target interactive interface is also a model under the world coordinate system; more specifically, as shown in fig. 2 (a), when the user selects the window corresponding to the position 3, the position 3 is the target position where the initial curtain box model is required to be located for the adaptive window, and at this time, as shown in fig. 3 (a), the initial curtain box model is adjusted from the preset initial position to the target position, and only needs to rotate by a corresponding angle.
Further, in an example, the rotation angle is obtained based on an included angle between the preset initial position and the target position, for example, as shown in fig. 3 (b), the rotation angle is an angle between a first direction (for example, a positive direction of a y axis) in which the preset initial position is located and a second direction (for example, a positive direction of an x axis) in which the target position is located.
It will be appreciated that the rotation of the initial blind box model in this example refers to the overall rotation of the initial blind box model, so that the relative positions of the various components (e.g., box 1 and box 2) in the initial blind box model are ensured to be unchanged.
Step S103-1-1b: and processing the initial curtain box model at the target position to obtain the initial effect graph.
In this way, the specific example of completing the adaptation of the initial curtain box model and the target position by utilizing the angle information is provided by the scheme disclosed by the invention, so that the adaptation capability is improved, the curtain box model and the target house type graph are accurately adapted, the three-dimensional effect graph required by a user is obtained, the personalized customization requirement of the user on the house type graph is met, and meanwhile, the user experience is improved.
Mode two: namely, based on the initial curtain box model and the adapting feature, an initial effect diagram of the initial curtain box model at the target position is obtained (for example, step S103-1 described above), and the second mode specifically includes:
step S103-1-2a: and moving the initial curtain box model from an initial coordinate represented by the displacement information to a target coordinate represented by the displacement information at least based on the displacement information in the initial curtain box model and the adapting feature.
Here, the initial coordinates represent coordinate information of a box body key point in the initial curtain box model at the preset initial position under a first coordinate system; and the target coordinates represent coordinate information of the box body key points in the initial curtain box model at the target position under a target coordinate system. Further, the target coordinate system represents a coordinate system corresponding to the target house type graph, and the first coordinate system is the same as the target coordinate system or different from the target coordinate system.
That is, in this example, the initial curtain box model is adjusted from a preset initial position to a target position, and only the box body key point is required to be moved from one coordinate to another coordinate; for example, in one example, the target house type graph is a three-dimensional image of a target coordinate system (such as a world coordinate system), and accordingly, the initial curtain box model displayed in the target interactive interface is also a model under the world coordinate system; more specifically, as shown in fig. 2 (a), when the window corresponding to the position 4 is selected by the user, the position 4 is a target position where the initial window box model needs to be located for adapting to the window, and the position 1 is a preset initial position where the initial window box model is located, at this time, as shown in fig. 4 (a), the center coordinate of the initial window box model may be moved from the center coordinate 1 to the center coordinate 2, where the center coordinate 1 is a coordinate where the box center (such as the center of the box 1) in the initial window box model located at the preset initial position is located (i.e., corresponds to the initial coordinate described above), and the center coordinate 2 is a coordinate where the box center (such as the center of the box 1) in the initial window box model located at the target position is located (i.e., corresponds to the target coordinate described above).
Alternatively, in another example, the target house type graph is a three-dimensional image of a target coordinate system (such as a world coordinate system), and accordingly, the initial window shade model displayed in the target interactive interface is a model in a first coordinate system different from the world coordinate system, at this time, as shown in fig. 4 (b), the center coordinate of the initial window shade model is mapped from the center coordinate 3 in the first coordinate system to the center coordinate 1 in the world coordinate system, and then the center coordinate of the initial window shade model is moved from the center coordinate 1 in the world coordinate system to the center coordinate 2 in the world coordinate system. Here, the center coordinate 3 is a coordinate in which a box center (such as a center of the box 1) in the initial box model at the preset initial position is located in the first coordinate system (i.e., corresponds to the initial coordinate described above), and the center coordinate 1 is a coordinate in which a box center (such as a center of the box 1) in the initial box model at the preset initial position is located in the world coordinate system. The center coordinate 2 is the coordinate where the center of the box (such as the center of the box 1) in the initial box model at the target position is located (i.e., corresponds to the target coordinate described above).
Step S103-1-2b: and processing the initial curtain box model at the target position to obtain the initial effect graph.
In this way, the specific example of completing the adaptation of the initial curtain box model and the target position by using the displacement information is provided by the scheme disclosed by the invention, so that the adaptation capability is improved, the curtain box model and the target house type graph are accurately adapted, the three-dimensional effect graph satisfactory to the user is obtained, the personalized customization requirement of the user on the house type graph is met, and meanwhile, the user experience is improved.
Mode three, namely, moving the initial curtain box model from the initial coordinate represented by the displacement information to the target coordinate represented by the displacement information based on at least the displacement information in the initial curtain box model and the adapting feature (for example, step S103-1-2a described above), specifically includes:
step S103-1-2a-1: and carrying out rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adapting characteristic so as to enable the initial curtain box model to rotate to an angle adapted to the target position.
Here, regarding the relevant content of the angle information, reference may be made to the example of the angle information described above, and the description thereof will not be repeated here.
Step S103-1-2a-2: after the rotation operation is completed, the initial curtain box model is moved from the initial coordinate represented by the displacement information to the target coordinate represented by the displacement information.
That is, in this example, the initial curtain box model is adjusted from a preset initial position to a target position, and needs to be rotated by a corresponding angle first, and then moved from one coordinate to another coordinate of the key point of the box body; for example, in an example, the target house type graph is a three-dimensional image of a target coordinate system (such as a world coordinate system), and accordingly, the initial curtain box model displayed in the target interactive interface is also a model under the world coordinate system, further, as shown in fig. 2 (a), when the window corresponding to the position 3 is selected by the user, the position 3 is a target position where the initial curtain box model needs to be located for adapting to the window, and the position 1 is a preset initial position where the initial curtain box model is located, at this time, as shown in fig. 5 (a), firstly, the initial curtain box model located at the preset initial position is rotated by a corresponding angle (that is, a rotation angle in the drawing), so as to obtain a structure as shown in fig. 5 (b); and then the central coordinate of the initial curtain box model is moved from the central coordinate 1 to the central coordinate 2.
It will be appreciated that the processing sequence in this example is "rotate first then move", and in practical applications, the processing sequence may also be "move first then rotate", such as shown in fig. 5 (c), and the processing sequence is not limited by the present disclosure.
Or in another example, the target house type graph is a three-dimensional image of a target coordinate system (such as a world coordinate system), correspondingly, the initial curtain box model displayed in the target interactive interface is a model under a first coordinate system different from the world coordinate system, further, as shown in fig. 2 (a), the position 1 is a preset initial position where the initial curtain box model is located, and the position 3 is a target position; at this time, as shown in fig. 5 (d), first, the center coordinates of the initial blind box model are mapped from the center coordinates 3 in the first coordinate system to the center coordinates 1 in the world coordinate system. The initial blind box model at the central coordinate 1 is rotated by a corresponding angle (i.e. the rotation angle in the drawing), and finally, the central coordinate of the initial blind box model is moved from the central coordinate 1 in the world coordinate system to the central coordinate 2 in the world coordinate system.
Here, the center coordinate 3 is a coordinate in which a box center (such as a center of the box 1) in the initial box model at the preset initial position is located in the first coordinate system (i.e., corresponds to the initial coordinate described above), and the center coordinate 1 is a coordinate in which a box center (such as a center of the box 1) in the initial box model at the preset initial position is located in the world coordinate system. The center coordinate 2 is the coordinate (i.e., corresponds to the target coordinate described above) of the center of the box (e.g., the center of the box 1) in the initial box model at the target position in the world coordinate system.
It will be appreciated that the processing sequence in this example is "map first, rotate second, and then move", and in practical application, the rotation operation may be sequentially exchanged with any other operation, for example "map first, move second, and then rotate", which is not limited by the scheme of the present disclosure.
In this way, the complete scheme for adapting the curtain box model to the target position in the target house type graph is provided, specifically, the displacement information and the angle information in the adapting feature are used for completing the adapting task, so that the adapting capability is improved, the curtain box model and the target house type graph can be accurately adapted, the three-dimensional effect graph required by a user is obtained, the personalized customization requirement of the user to the house type graph is met, and the user experience is improved.
The present disclosure is further described below with reference to specific examples; specifically, the curtain box processing method provided by the scheme of the disclosure can better adapt the generated curtain box model to the house type graph appointed by the user so as to obtain the effect graph satisfied by the user, and further improve the experience of the user.
Specifically, as shown in fig. 6 (a), the specific steps of the scheme of the present disclosure include:
Step 1: and acquiring a target household pattern, such as a household pattern input by a user or selecting a specified household pattern from a plurality of provided household patterns by the user.
Here, the target house type graph may be specifically a two-dimensional image or a three-dimensional image, which is not limited by the present disclosure.
Step 2: the placement path (i.e., corresponding to the target location described above) that the initial blind box model is required to lie in is determined.
It should be noted that the target position at which the initial curtain box model is required to be located is determined according to whether there is a window, and is typically generated at the edge of the suspended ceiling of the house; further, the user can manually select the target position where the initial curtain box model needs to be located, or can automatically identify the target position where the initial curtain box model needs to be located according to whether the wall surface has a window.
Step 3: the type of the initial blind box model is determined, such as determining the style or style type of the initial blind box model.
Step 4: the parameters associated with the desired configuration of the initial blind box model (i.e., corresponding to the configuration information described above) are determined, for example, the user may configure the length, width, material, etc. of the blind box model to be generated to generate the initial blind box model.
Step 5: the initial blind box model is adapted from a preset initial position to a target position.
Step 5.1: the angle of rotation (i.e., corresponding to the angle information described above) of the component model to be swept (i.e., corresponding to the initial blind box model described above) is determined to rotate the initial blind box model to the corresponding target position.
It should be noted that this step is an integral rotation of the entire initial blind box model, so that the relative positions of the components (e.g. box 1 and box 2) in the initial blind box model are ensured to be unchanged.
Specifically, the generated initial blind box model is set to determine a rotation angle required for the initial blind box model to be adapted to the target position based on the following standard conditions, wherein the standard conditions specifically include:
condition 1: the first direction of the initial curtain box model positioned at the preset initial position is the positive y-axis direction;
condition 2: the origin of the swept profile (e.g., the coordinate system in a top view of the world coordinate system, such as the XY coordinate system) is in the lower left corner;
condition 3: the relative positional relationship between the different components (such as the case 1 and the case 2) is determined.
Further, as shown in fig. 6 (b), the first direction of the initial curtain box model located at the preset initial position is the y-axis positive direction, if the target position is the position 1, the rotation angle required for the initial curtain box model to be adapted from the preset initial position to the position 2 is the angle between the y-axis positive direction and the second direction of the position 2 (i.e. 45 degrees in the illustration), and similarly, if the target position is the position 3, the rotation angle required for the initial curtain box model to be adapted from the preset initial position to the position 2 is 90 degrees, and here, the angles between the second direction and the first direction of the other positions are not repeated here.
It should be understood that, in this example, the first direction is a positive y-axis direction, which is merely an example, and the present disclosure is not limited to the first direction.
Step 5.2: reprocessing (such as moving processing and rotating processing) the configuration information of the initial curtain box model and the target position to be located so as to ensure that the initial curtain box model is adjusted to the corresponding target position; as shown in fig. 6 (c), the reprocessing step specifically includes:
(a) The length of the initial curtain box model is adjusted to the length of the target position (or
The length of the target window may be denoted as d);
(b) Moving the center of the initial box of the curtain box model from the center coordinate 1 (i.e., corresponding to the initial coordinate described above, such as the center coordinate of the box 1 at the predetermined position) to the center coordinate 2 (i.e., corresponding to the target coordinate described above, such as the center coordinate described above)
Center coordinates of the case 1 at the target position);
here, in an example, the center coordinate 2 is obtained based on a midpoint of the path along which the target window is located, for example, a position shifted from the midpoint of the path along which the target window is located to the right in the second direction by a preset adjustment distance (for example, a position corresponding to half of the width (may be denoted as w) of the initial window box model, that is, w/2);
(c) And (3) performing rotation processing on the initial curtain box model based on the rotation angle obtained in the step 5.1 so as to adapt to the target position.
Step 6: and processing the initial curtain box model at the target position to obtain an initial effect diagram, wherein the initial effect diagram comprises a target curtain box model at the target position and is used for representing the local effect of the target house type diagram.
Step 7: and processing other parts except the initial effect diagram in the target house type diagram to obtain a target effect diagram representing the overall effect of the target house type diagram.
So far, the target effect graph after the adaptation of the curtain box model and the target house type graph can be obtained.
In summary, the solution of the present disclosure has the following advantages, including:
first, the curtain box generates the function more complete. At present, no tool is available for generating a curtain box, and the curtain box generating capability is provided for the scheme of the present disclosure, so that the function is complete, for example, a user can freely select length, width, height, style, material and the like.
And the second, the adaptation of the curtain box and the house type is more accurate. The method and the device utilize the determined adapting characteristics to accurately adapt the generated curtain boxes to the house type graph appointed by the user, and display the complete effect graph.
Third, the user experience is improved. According to the scheme, the curtain box model can be generated according to the requirements of the user, and the curtain box model is matched with the user-specified house type graph, so that the requirement of the user for personalized customization of part of details of the house type graph is met.
The present disclosure also provides a device for handling a curtain box, as shown in fig. 7, including:
a model building unit 701, configured to determine an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface;
a feature determining unit 702, configured to determine an adaptation feature required for adjusting from the preset initial position to a target position in a target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned;
an image processing unit 703, configured to obtain a target effect map based on the initial curtain box model and the adaptation feature; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.
In a specific example of the solution of the present disclosure, the image processing unit is specifically configured to:
Based on the initial curtain box model and the adapting characteristic, obtaining an initial effect diagram of the initial curtain box model at the target position; the initial effect graph is a three-dimensional effect graph obtained after the initial curtain box model at the target position is processed; the initial effect graph is used for representing the local effect of the target house type graph;
and processing other parts except the initial effect diagram in the target house type diagram to obtain a target effect diagram representing the overall effect of the target house type diagram.
In a specific example of the solution of the present disclosure, the model building unit is specifically configured to:
acquiring configuration information; the configuration information represents box body characteristics required for constructing an initial curtain box model;
and generating an initial curtain box model at a preset initial position of the target interactive interface based on the acquired configuration information.
In a specific example of the solution of the present disclosure, the image processing unit is specifically configured to:
performing rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adapting feature so as to enable the initial curtain box model to be positioned at the target position; the angle information is used for indicating a rotation angle required by the initial curtain box model to rotate from the preset initial position to the target position;
And processing the initial curtain box model at the target position to obtain the initial effect graph.
In a specific example of the solution of the present disclosure, the image processing unit is specifically configured to:
moving the initial blind box model from an initial coordinate represented by the displacement information to a target coordinate represented by the displacement information based at least on the displacement information in the initial blind box model and the adaptation feature; the initial coordinates represent coordinate information of box body key points in the initial curtain box model at the preset initial position under a first coordinate system; the target coordinates represent coordinate information of key points of the box body in the initial curtain box model at the target position under a target coordinate system; the target coordinate system represents a coordinate system corresponding to the target house type graph; the first coordinate system is the same as the target coordinate system or different from the target coordinate system;
and processing the initial curtain box model at the target position to obtain the initial effect graph.
In a specific example of the solution of the present disclosure, the image processing unit is specifically configured to:
Performing rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adaptation characteristic so as to enable the initial curtain box model to rotate to an angle adapted to the target position;
after the rotation operation is completed, the initial curtain box model is moved from the initial coordinate represented by the displacement information to the target coordinate represented by the displacement information.
Descriptions of specific functions and examples of each unit of the apparatus in the embodiments of the present disclosure may refer to related descriptions of corresponding steps in the foregoing method embodiments, which are not repeated herein.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 8, the electronic device includes: a memory 810 and a processor 820, the memory 810 storing a computer program executable on the processor 820. The number of memory 810 and processors 820 may be one or more. The memory 810 may store one or more computer programs that, when executed by the electronic device, cause the electronic device to perform the methods provided by the method embodiments described above. The electronic device may further include: and the communication interface 830 is used for communicating with external devices and performing data interaction transmission.
If the memory 810, the processor 820, and the communication interface 830 are implemented independently, the memory 810, the processor 820, and the communication interface 830 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 810, the processor 820, and the communication interface 830 are integrated on a chip, the memory 810, the processor 820, and the communication interface 830 may communicate with each other through internal interfaces.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double Data rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of 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, the processes or functions described in accordance with the embodiments of the present disclosure are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, bluetooth, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., digital versatile Disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., solid State Disk (SSD)), etc. It is noted that the computer readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, may be a non-transitory storage medium.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the description of embodiments of the present disclosure, a description of reference to the terms "one embodiment," "some embodiments," "examples," "particular examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
In the description of the embodiments of the present disclosure, unless otherwise indicated, "/" means or, for example, a/B may represent a or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
In the description of the embodiments of the present disclosure, the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
The foregoing description of the exemplary embodiments of the present disclosure is not intended to limit the present disclosure, but rather, any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (9)

1. A method of treating a blind box comprising:
determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface;
determining the adapting characteristics required for adjusting from the preset initial position to the target position in the target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned;
obtaining a target effect diagram based on the initial curtain box model and the adaptation characteristic; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.
2. The method of claim 1, wherein the deriving a target effect map based on the initial blind box model and the adaptation features comprises:
based on the initial curtain box model and the adapting characteristic, obtaining an initial effect diagram of the initial curtain box model at the target position; the initial effect graph is a three-dimensional effect graph obtained after the initial curtain box model at the target position is processed; the initial effect graph is used for representing the local effect of the target house type graph;
and processing other parts except the initial effect diagram in the target house type diagram to obtain a target effect diagram representing the overall effect of the target house type diagram.
3. The method of claim 1 or 2, wherein the determining an initial blind box model comprises:
acquiring configuration information; the configuration information represents box body characteristics required for constructing an initial curtain box model;
and generating an initial curtain box model at a preset initial position of the target interactive interface based on the acquired configuration information.
4. A method according to claim 2 or 3, wherein said deriving an initial effect map of said initial blind box model at said target location based on said initial blind box model and said adaptation features comprises:
Performing rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adapting feature so as to enable the initial curtain box model to be positioned at the target position; the angle information is used for indicating a rotation angle required by the initial curtain box model to rotate from the preset initial position to the target position;
and processing the initial curtain box model at the target position to obtain the initial effect graph.
5. A method according to claim 2 or 3, wherein said deriving an initial effect map of said initial blind box model at said target location based on said initial blind box model and said adaptation features comprises:
moving the initial blind box model from an initial coordinate represented by the displacement information to a target coordinate represented by the displacement information based at least on the displacement information in the initial blind box model and the adaptation feature; the initial coordinates represent coordinate information of box body key points in the initial curtain box model at the preset initial position under a first coordinate system; the target coordinates represent coordinate information of key points of the box body in the initial curtain box model at the target position under a target coordinate system; the target coordinate system represents a coordinate system corresponding to the target house type graph; the first coordinate system is the same as the target coordinate system or different from the target coordinate system;
And processing the initial curtain box model at the target position to obtain the initial effect graph.
6. The method of claim 5, wherein the moving the initial blind box model from an initial coordinate represented by the displacement information to a target coordinate represented by the displacement information based at least on the displacement information in the initial blind box model and the adaptation feature comprises:
performing rotation processing on the initial curtain box model positioned at the preset initial position based on the angle information in the initial curtain box model and the adaptation characteristic so as to enable the initial curtain box model to rotate to an angle adapted to the target position;
after the rotation operation is completed, the initial curtain box model is moved from the initial coordinate represented by the displacement information to the target coordinate represented by the displacement information.
7. A blind box handling apparatus comprising:
the model building unit is used for determining an initial curtain box model; the initial curtain box model is located at a preset initial position of the target interactive interface;
the characteristic determining unit is used for determining the adapting characteristic required by adjusting from the preset initial position to the target position in the target house type graph; the target position is the position where the initial curtain box model in the target house type graph is required to be positioned;
The image processing unit is used for obtaining a target effect diagram based on the initial curtain box model and the adaptation characteristic; the target effect graph is a three-dimensional effect graph obtained by processing a target house type graph of the initial curtain box model at the target position.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202311745368.6A 2023-12-18 2023-12-18 Curtain box processing method, device, equipment and storage medium Pending CN117744212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311745368.6A CN117744212A (en) 2023-12-18 2023-12-18 Curtain box processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311745368.6A CN117744212A (en) 2023-12-18 2023-12-18 Curtain box processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117744212A true CN117744212A (en) 2024-03-22

Family

ID=90276676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311745368.6A Pending CN117744212A (en) 2023-12-18 2023-12-18 Curtain box processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117744212A (en)

Similar Documents

Publication Publication Date Title
US11288413B2 (en) Method for automatic modeling of an architecture based on an architectural drawing
CN109858138B (en) BIM-based room decoration component processing method, device, terminal and medium
CN113010937B (en) Parametric modeling method of member section steel bar and related device
US11934744B2 (en) Method, system and graphical user interface for building design
CN108564645B (en) Rendering method of house model, terminal device and medium
CN110737944A (en) floor slab generation method and generation device based on Revit
CN115393474A (en) Method and system for rapidly drawing flow chart
CN114818093A (en) Method, device and equipment for generating column beam of assembled steel structure module building
JP2021039520A (en) Curved surface fitting processing method, fitting processing apparatus, fitting processing program, and computer-readable storage medium for storing fitting processing program
CN117744212A (en) Curtain box processing method, device, equipment and storage medium
US8462176B1 (en) Automatic annotation generation
JP7313433B2 (en) Construction and Enforcement of Counterconstraints on CAD (Computer Aided Design) Models
CN116612214A (en) Vertex weight processing method, vertex weight processing device, electronic equipment and storage medium
CN112884899B (en) Three-dimensional member generation method, three-dimensional member generation device, computer equipment and storage medium
CN109189537A (en) The dynamic display method of page info calculates equipment and computer storage medium
CN110750816A (en) Method and device for building model, computer equipment and readable storage medium
CN117633982A (en) Method, device, equipment and storage medium for generating stacked suspended ceiling
CN117456127A (en) Attribute configuration method, device, equipment and storage medium
US11074763B2 (en) Systems and methods for editing shapes of faceted geometries
CN117574498A (en) Home decoration design method and device, electronic equipment and storage medium
CN117195364A (en) Glass interior trim realization method, device, equipment and storage medium
CN116152404B (en) Animation redirection method, device, computer equipment and storage medium
CN110795811A (en) MEP pipeline adjusting method and device, computer equipment and storage medium
CN116543111A (en) Virtual space mapping method and device based on robot
KR102503749B1 (en) Public housing recycling center drawing design method in which area is automatically allocated by processing number of households and number of occupants

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination