Tabletop accessory layout method, apparatus, device, and storage medium

By dividing the area based on the tabletop coordinate data and preset rules, the position of the ornaments is automatically selected and adjusted, solving the problem of cumbersome traditional tabletop ornament placement and achieving efficient tabletop ornament layout.

CN115795811BActive Publication Date: 2026-07-07MEIPING MEIWU (SHANGHAI) TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MEIPING MEIWU (SHANGHAI) TECH CO LTD
Filing Date
2022-11-08
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Traditional methods of arranging decorative items on a table are cumbersome and time-consuming. Existing smart decorative item arrangement methods suffer from limited template availability or require extensive training data from designers.

Method used

Based on the key position coordinate data of the target tabletop, a set of line segments is determined, the area is divided according to preset rules, and ornaments that match the style of the tabletop are selected from the preset ornament pool to ensure that they are not placed repeatedly, and the positions of the ornaments are randomly adjusted.

Benefits of technology

It simplifies the process of placing decorative items on the table, improves layout efficiency, reduces manual selection and design costs, and enables automated determination of decorative item types and locations based on table layout and style.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115795811B_ABST
    Figure CN115795811B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a table decoration layout method, device and equipment and a storage medium. In the embodiments of the present application, based on the table coordinate data of the key positions in the target table to be laid out, a horizontal line segment set in the horizontal axis direction and a vertical line segment set in the vertical axis direction of the target table are determined; based on the line segment set in the horizontal axis direction and the line segment set in the vertical axis direction and a preset area frame composition rule, a plurality of area frames in which decorations can be placed in the target table are determined; based on the table style of the target table, the size of the plurality of area frames and a preset selection rule, one or more corresponding decorations are selected for the plurality of area frames from a preset decoration pool, and the preset selection rule includes a rule that decorations in the same table are not repeated; and based on the center positions of the plurality of area frames, the placement positions of the one or more corresponding decorations of the plurality of area frames are determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for arranging tabletop decorations. Background Technology

[0002] With the rise of online shopping, more and more internet companies are launching 3D design platforms, allowing designers and homeowners to design online, select products, and preview the desired interior design. This preview helps them decide whether to purchase corresponding soft and hard furnishings, while merchants can also sell these furnishings through the platform.

[0003] One key feature of 3D design platforms is the placement of decorative items on countertops. This function allows for the arrangement of corresponding items in different countertop layouts to highlight both the practicality and aesthetics of the countertop. This not only makes interior design renderings appear more refined and complete but also increases homeowners' purchasing desire, helping businesses improve the conversion rate of their soft and hard furnishing products. However, traditionally, countertop decoration placement is usually done manually by designers, a process that is not only tedious but also consumes a significant amount of time and effort. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for arranging tabletop decorations, thereby simplifying the tedious process of placing tabletop decorations and improving the efficiency of tabletop decoration placement.

[0005] This application provides a method for arranging decorative items on a tabletop, comprising: determining a set of line segments between key locations on a target tabletop based on tabletop coordinate data, wherein the set of line segments includes a set of line segments along the horizontal axis and a set of line segments along the vertical axis of the target tabletop, and the key locations include the edge locations of the target tabletop and the locations of fixing devices on the target tabletop; determining multiple regions on the target tabletop where decorative items can be placed based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, and a preset region frame composition rule; selecting one or more decorative items corresponding to the multiple regions from a preset decorative item pool based on the tabletop style of the target tabletop, the size of the multiple regions, and a preset item selection rule, wherein the preset item selection rule includes the rule that decorative items on the same tabletop are not repeated; and determining the placement position of one or more decorative items corresponding to the multiple regions based on the center location of the multiple regions.

[0006] This application embodiment also provides a tabletop decoration layout device, including: a line segment determination module, used to determine a set of line segments between key positions in the target tabletop to be laid out, based on tabletop coordinate data of key positions in the target tabletop, the set of line segments including a set of line segments in the horizontal axis direction and a set of line segments in the vertical axis direction of the target tabletop, the key positions including the edge positions of the target tabletop and the positions of fixing devices on the target tabletop; a region frame determination module, used to determine multiple region frames in the target tabletop where decorations can be placed, based on the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction and a preset region frame composition rule; a decoration selection module, used to select one or more corresponding decorations for the multiple region frames from a preset decoration pool based on the tabletop style of the target tabletop, the size of the multiple region frames, and a preset selection rule, the preset selection rule including the rule that decorations in the same tabletop are not repeated; and a position determination module, used to determine the placement position of one or more decorations corresponding to the multiple region frames based on the center position of the multiple region frames.

[0007] This application embodiment also provides an electronic device, including: a memory and a processor; the memory is used to store a computer program; the processor, coupled to the memory, is used to execute the computer program for: determining a set of line segments between key positions on a target tabletop, based on tabletop coordinate data of key positions in the target tabletop to be laid out, the set of line segments including a set of line segments on the target tabletop in the horizontal axis direction and a set of line segments in the vertical axis direction, the key positions including the edge positions of the target tabletop and the positions of fixing devices on the target tabletop; determining multiple area frames in the target tabletop where ornaments can be placed, based on the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction and a preset area frame composition rule; selecting one or more ornaments corresponding to the multiple area frames from a preset ornament pool, based on the tabletop style of the target tabletop, the size of the multiple area frames, and a preset selection rule, the preset selection rule including the rule that ornaments in the same tabletop are not repeated; and determining the placement position of one or more ornaments corresponding to the multiple area frames based on the center position of the multiple area frames.

[0008] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps in the countertop decoration layout method provided in this application.

[0009] In this embodiment, based on the coordinate data of key locations on the target tabletop, the set of line segments along the horizontal axis and the set of line segments along the vertical axis of the target tabletop can be determined. These key locations include the edge positions of the target tabletop and the positions of the fixing devices on the target tabletop. Based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, as well as preset area frame composition rules, multiple area frames in the target tabletop that can hold ornaments are determined. Based on the tabletop style, the size of the multiple area frames, and preset selection rules, one or more ornaments corresponding to the multiple area frames are selected from a preset ornament pool. The preset selection rules include the rule that ornaments in the same tabletop are not repeated. Finally, based on the center positions of the multiple area frames, the placement positions of one or more ornaments corresponding to the multiple area frames can be determined. This realizes that the corresponding ornament type, quantity, and position can be determined based on the layout and style of the tabletop, reducing the cost of manual selection and placement design, and improving the efficiency of tabletop ornament layout. Attached Figure Description

[0010] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0011] Figure 1 A flowchart illustrating a method for arranging tabletop decorations, provided as an exemplary embodiment of this application;

[0012] Figure 2 A schematic diagram illustrating the determination of multiple region boxes in a target countertop in a countertop decoration layout method provided as an exemplary embodiment of this application, wherein... Figure 2 (1) A schematic diagram of the projection frame of the target platform edge and the projection frame of the fixing device. Figure 2 (2) Based on Figure 2 (1) The set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction corresponding to the projection frame are used to determine the multiple area frames where ornaments can be placed.

[0013] Figure 3 A schematic diagram showing the positions of ornaments within multiple region frames determined in the tabletop ornament layout method provided in an exemplary embodiment of this application;

[0014] Figure 4 A flowchart illustrating the application of the tabletop decoration layout method provided in an exemplary embodiment of this application to a real-world scenario;

[0015] Figure 5 A schematic diagram of a countertop decoration layout device provided as an exemplary embodiment of this application;

[0016] Figure 6This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] As described in the background section, traditional tabletop decoration placement is typically done manually by designers, a process that is not only tedious but also time-consuming and labor-intensive. Currently, there are two methods for achieving intelligent tabletop decoration: the first is a rule-based method, which applies rule templates to arrange decorations, enabling relatively quick and stable intelligent tabletop decoration. However, the number of templates is limited and too fixed, potentially leading to rigid placement. The second method is a deep neural network-based method, which learns from designers' placement habits. Compared to the first method, this is more flexible. However, it requires collecting a large amount of data on designer placement for training the deep neural network. The quality of the training data directly affects the network's performance during intelligent placement, necessitating highly skilled designers to produce this training data. This further increases the designer's labor costs and significantly reduces the return on investment.

[0019] To address this, in some embodiments of this application, based on the coordinate data of key locations on the target tabletop, the set of line segments along the horizontal axis and the set of line segments along the vertical axis of the target tabletop can be determined. These key locations include the edge positions of the target tabletop and the positions of the fixing devices on the target tabletop. Then, based on the set of line segments along the horizontal and vertical axes and preset area frame composition rules, multiple area frames on the target tabletop for placing ornaments are determined. Furthermore, based on the tabletop style, the size of the multiple area frames, and preset selection rules, one or more ornaments corresponding to the multiple area frames are selected from a preset ornament pool. The preset selection rules include the rule that ornaments on the same tabletop are not repeated. Finally, based on the center positions of the multiple area frames, the placement positions of one or more ornaments corresponding to the multiple area frames can be determined. This achieves the ability to determine the corresponding ornament type, quantity, and position based on the tabletop layout and style, reducing the cost of manual selection and placement design, and improving the efficiency of tabletop ornament layout.

[0020] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0021] Figure 1 This is a flowchart illustrating a method for arranging countertop decorations, provided as an exemplary embodiment of this application. Figure 1 As shown, the method includes:

[0022] Step 110: Based on the tabletop coordinate data of key positions in the target tabletop to be laid out, determine the set of line segments between key positions. The set of line segments includes the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction of the target tabletop.

[0023] Key locations include the edges of the target countertop and the positions of fixtures on the target countertop. Taking a kitchen countertop as an example, fixtures on the target countertop may include a sink and a stove. Taking an office countertop as an example, fixtures on the target countertop may include a computer monitor and its host unit.

[0024] Optionally, to facilitate planning the area for placing ornaments on the target tabletop, the target tabletop can be projected based on the tabletop coordinate data of its edge positions and key locations such as fixing devices. This results in a projection frame of the target tabletop onto a plane. During this process, irregularly shaped fixing devices on the target tabletop can be projected into a rectangular frame tangent to, or fitted to, their outer edges. Specifically, based on the tabletop coordinate data of key locations on the target tabletop to be arranged, a set of line segments between the key locations is determined, including:

[0025] From the table coordinate data of key positions in the target table, determine the projection frame of the target table. The projection frame of the target table includes the edge projection frame of the target table and the projection frame of the fixing device. The projection frame of the fixing device is a rectangular frame that fits the outer edge of the fixing device.

[0026] Determine the set of line segments in the horizontal axis and the set of line segments in the vertical axis of the projection frame of the target platform. The line segments in the set of line segments in the horizontal axis and the set of line segments in the vertical axis are not within the projection frame of the fixed device.

[0027] The process of obtaining the projection frame of the fixing device may include: first, obtaining the projection of the fixing device onto the surface of the target table. This projection is usually an irregular shape. Using this projection as a reference, a rectangular frame that fits the projection is drawn, that is, a rectangular frame with the smallest area that encloses the projection, and the edges of the rectangular frame are tangent to some edges of the projection. It should be understood that since the projection frame of the fixing device is already occupied by the fixing device, when determining the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction of the projection frame of the target table, the line segments in the determined set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction are not within the projection frame of the fixing device.

[0028] As one implementation method, based on the coordinate data of key locations on the target platform to be laid out, determining the set of horizontal line segments along the horizontal axis and the set of vertical line segments along the vertical axis of the target platform may include:

[0029] Step 1: Obtain the edge position of the target platform and the coordinates of the fixing device;

[0030] Step 2: Based on the edge position of the target platform and the coordinates of the fixing device, determine the projection frame of the target platform edge and the projection frame of the fixing device;

[0031] Step 3: Add the line segments of the target table edge projection frame in the horizontal direction to the line segment set of the target table in the horizontal direction, and add the line segments of the target table edge projection frame in the vertical direction to the line segment set of the target table in the vertical direction.

[0032] Furthermore, if the extension of a line segment of the target tabletop edge projection frame in the horizontal direction lies within the target tabletop edge projection frame, then that extension is also added to the set of line segments of the target tabletop in the horizontal direction. If the extension of a line segment of the target tabletop edge projection frame in the vertical direction lies within the target tabletop edge projection frame, then that extension is also added to the set of line segments of the target tabletop in the vertical direction.

[0033] Step 4: Add the line segment of the projection frame of the fixing device in the horizontal direction and the extension line of the line segment in the horizontal direction within the projection frame area of ​​the target table edge to the line segment set of the target table in the horizontal direction; and add the line segment of the projection frame of the fixing device in the vertical direction and the extension line of the line segment in the vertical direction within the projection frame area of ​​the target table edge to the line segment set of the target table in the vertical direction.

[0034] Step 120: Based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, as well as the preset area frame composition rules, determine multiple area frames in the target table surface where ornaments can be placed.

[0035] The preset region frame composition rules can be designed by the designer or based on the rules for composing rectangles. As one implementation, the preset region frame composition rules are as follows: First, select the longest first horizontal line segment from the set of line segments along the horizontal axis. Using this first horizontal line segment as a reference, select a second horizontal line segment from the remaining line segments in the set of line segments along the horizontal axis that is closest to the first horizontal line segment and whose projection length on the first horizontal line segment is not less than a preset length (e.g., the preset length is half the length of the first horizontal line segment). Then, from the set of line segments along the vertical axis, select at least two vertical line segments whose length within the common projection range of the first and second horizontal line segments is not less than a preset distance (e.g., the preset distance is half the distance between the first and second horizontal line segments). From these at least two vertical line segments, select the two vertical line segments with the largest distance. Finally, a rectangle is formed based on the first horizontal line segment, the second horizontal line segment, and these two vertical line segments. This process continues until the number of line segments in the set of line segments along the horizontal axis and / or the set of line segments along the vertical axis is less than two.

[0036] Optionally, to rationally divide the target tabletop into multiple regions where ornaments can be placed, the line segments in the set of line segments along the horizontal axis can be sorted. Following the order of line segment length from longest to shortest, other line segments that can form region frames are selected for each line segment along the horizontal axis until all region frames where ornaments can be placed on the target tabletop are determined. Specifically, based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, as well as preset region frame composition rules, multiple region frames where ornaments can be placed on the target tabletop are determined, including:

[0037] Sort the line segments in the set along the horizontal axis in descending order of length, and select the longest first horizontal line segment from the set along the horizontal axis.

[0038] From the remaining horizontal segments, select the second horizontal segment that is closest to the first horizontal segment and whose projection length on the first horizontal segment is not less than a preset length. The remaining horizontal segments are the segments in the set of segments in the horizontal axis direction other than the first horizontal segment.

[0039] From the set of line segments along the vertical axis, select at least two vertical line segments whose length is not less than a preset distance within the common projection range of the first horizontal line segment and the second horizontal line segment, so as to select the two vertical line segments with the largest distance from the at least two vertical line segments.

[0040] A first region bounding box is determined based on the first horizontal line segment, the second horizontal line segment, and the two vertical line segments.

[0041] The horizontal and vertical line segments within the first region box are removed from the line segment sets along the horizontal axis and vertical axis, respectively, to obtain the first horizontal line segment set and the first vertical line segment set, thereby determining multiple region boxes.

[0042] The preset distance can be half the length of the distance between the first horizontal line segment and the second horizontal line segment.

[0043] As one implementation method, the process of determining multiple area frames in the target tabletop where ornaments can be placed, based on the set of line segments along the horizontal axis, the set of line segments along the vertical axis, and preset area frame composition rules, may include:

[0044] Step i: Sort the horizontal line segments in the set of line segments along the horizontal axis in descending order of length, and select the longest first horizontal line segment from the set of horizontal line segments.

[0045] Step ii: Using the first horizontal line segment as a reference, in the set of line segments along the horizontal axis other than the first horizontal line segment, find a second candidate horizontal line segment whose projected length on the first horizontal line segment is not less than half the length of the first horizontal line segment. If there is more than one second candidate horizontal line segment, select the horizontal line segment closest to the first horizontal line segment from the second candidate horizontal line segments as the second horizontal line segment.

[0046] Step iii: Select two vertical line segments from the set of line segments along the vertical axis to combine with the first horizontal line segment and the second horizontal line segment to form the first region box.

[0047] The step of selecting two perpendicular line segments from the set of line segments along the vertical axis may include:

[0048] Step a: Select at least two vertical line segments from the set of line segments along the vertical axis, whose length is not less than a preset distance within the common projection range of the first horizontal line and the second horizontal line.

[0049] Step b: Select the two vertical line segments with the largest distance from at least two vertical line segments. Specifically, select the vertical line segment closest to the left endpoint of the longest distance and the vertical line segment closest to the right endpoint of the shortest distance. The left endpoint of the longest distance is the rightmost left endpoint of the two left endpoints of the first horizontal line and the second horizontal line, and the right endpoint of the shortest distance is the leftmost left endpoint of the two right endpoints of the first horizontal line and the second horizontal line.

[0050] Step iv: Delete the horizontal and vertical line segments in the first region box from the line segment set along the horizontal axis and the line segment set along the vertical axis, respectively, to obtain the first horizontal line segment set and the first vertical line segment set.

[0051] Step v: Select the longest third horizontal line segment from the first set of horizontal line segments.

[0052] Step vi: Using the third horizontal line segment as a reference, find a fourth candidate horizontal line segment from the horizontal line segments in the first set of horizontal line segments other than the third horizontal line segment whose projection length on the third horizontal line segment is not less than half the length of the third horizontal line segment. If there is more than one fourth candidate horizontal line segment, select the horizontal line segment closest to the third horizontal line segment from the fourth candidate horizontal line segments as the fourth horizontal line segment.

[0053] Step vii, then select two vertical line segments from the first set of vertical line segments to combine with the third and fourth horizontal line segments to form the second region box.

[0054] The steps for selecting two vertical line segments from the set of vertical line segments are similar to steps a and b.

[0055] ...and so on, until the number of line segments in the set of line segments along the horizontal axis or the set of line segments along the vertical axis is less than 2. At this point, multiple areas on the target table where ornaments can be placed can be determined.

[0056] Figure 2 This is a schematic diagram illustrating the determination of multiple region boxes in a target countertop during a countertop decoration layout method provided as an exemplary embodiment of this application. Figure 2 (1) A schematic diagram of the projection frame of the target platform edge and the projection frame of the fixing device. Figure 2 (2) Based on Figure 2 (1) The set of line segments along the horizontal axis and the set of line segments along the vertical axis corresponding to the projection frame determine the multiple areas where ornaments can be placed. Figure 2 (2) It can be seen that there are five regions on the target platform.

[0057] Step 130: Based on the table style of the target table and the size of multiple area frames, as well as the preset selection rules, select one or more corresponding accessories from the preset accessory pool for multiple area frames. The preset selection rules include the rule that accessories in the same table should not be repeated.

[0058] Optionally, the preset selection rules may include: prioritizing the selection of corresponding ornaments for areas near fixed devices such as sinks and stoves; not placing ornaments in areas where the shorter side is less than a preset length; the correspondence between the length of the longer side of the area and the number of ornaments; the rule that ornaments on the same countertop are not repeated; and the rule that there is random offset between two adjacent ornaments.

[0059] Optionally, when dividing the area frames, some area frames may be too narrow to display ornaments. In this case, to avoid unnecessary product selection for such area frames, this embodiment of the application can filter the size of the area frames and then select ornaments for the filtered area frames. Specifically, based on the style of the target tabletop, the size of multiple area frames, and preset product selection rules, one or more ornaments corresponding to multiple area frames are selected from a preset ornament pool, including:

[0060] From multiple region boxes, remove region boxes whose shorter side is less than a preset length and the projection box of the fixing device to obtain at least one region box;

[0061] Based on the target tabletop style, the size of at least one area frame, and preset selection rules, select one or more corresponding accessories from the preset accessory pool for at least one area frame.

[0062] Optionally, the preset accessory pool includes a specific accessory pool and a general accessory pool. Based on the target tabletop style, the size of at least one area frame, and preset selection rules, one or more accessories are selected from the preset accessory pool for at least one area frame, including:

[0063] Based on the location of the fixing device, a specific area box near the fixing device is determined from at least one area box;

[0064] Based on the tabletop style, the size of the specific area frame, and the preset selection rules, select one or more corresponding accessories from the specific accessory pool for the specific area frame;

[0065] Based on the target tabletop style, the size of the remaining area frame, and the preset selection rules, select one or more corresponding accessories from the general accessory pool for the remaining area frame; wherein, the remaining area frame is at least one area frame other than the specific area frame.

[0066] It should be understood that for fixed installations such as sinks and stoves, the decorative items placed near them often need to meet certain specific requirements. Taking a sink as an example, the decorative items placed near it may include hand sanitizer, aromatherapy products, soap dishes, tissue boxes, etc., which need to meet the actual needs of users using the sink for washing and grooming. Based on this, the embodiments of this application can divide the preset decorative item pool into a general decorative item pool and a specific decorative item pool. The specific decorative item pool is used for selecting items in a specific area near the fixed installation, while the general decorative item pool is used for selecting items in other areas outside the specific area.

[0067] Optionally, the size of the area frames varies, and the number of ornaments placed within them also differs. Based on this, the aforementioned preset selection rules include the correspondence between the length of the long side of the area frame and the number of ornaments. Based on the target tabletop style, the size of the multiple area frames, and the preset selection rules, one or more corresponding ornaments are selected from the preset ornament pool for multiple area frames, including:

[0068] Based on the size of multiple region boxes, determine the length of the long side of each region box;

[0069] Based on the pre-defined rules for selecting products, the correspondence between the length of the long side of the area frame and the number of accessories is determined, and the number of accessories that match the length of the long side of multiple area frames is determined.

[0070] Based on the target tabletop style and preset selection rules, select one or more corresponding accessories for multiple area frames. The number of accessories corresponding to multiple area frames is consistent with the number of accessories that match the length of the long side of each area frame.

[0071] Specifically, the correspondence between the length of the long side of the area frame and the number of ornaments can be as follows: when the length of the long side of the area frame is between 250mm and 500mm, the corresponding number of ornaments is 1; when the length of the long side of the area frame is between 500mm and 900mm, the corresponding number of ornaments is 2; and when the length of the long side of the area frame is between 900mm and 2000mm, the corresponding number of ornaments is 3. The specific rules governing the correspondence between the length of the region frame's long side and the number of accessories are as follows: when the length of the region frame's long side is between 2000mm and 3500mm, the corresponding number of accessories is 4; when the length of the region frame's long side is between 3500mm and 5000mm, the corresponding number of accessories is 5; and when the length of the region frame's long side is between 5000mm and 7000mm, the corresponding number of accessories is 6.

[0072] Step 140: Based on the center positions of multiple region frames, determine the placement positions of one or more ornaments corresponding to the multiple region frames.

[0073] Optionally, to make the ornaments placed in the designated areas more natural and in line with the designer's aesthetic, this embodiment of the application can randomly determine the offset distance and offset angle of one or more ornaments corresponding to multiple designated areas relative to the center position of each designated area, and place the ornaments at these positions. Specifically, determining the placement position of one or more ornaments corresponding to multiple designated areas based on the center positions of multiple designated areas includes:

[0074] Within a preset distance range at the center of multiple region frames, randomly determine the offset distance and offset angle of one or more ornaments corresponding to the multiple region frames;

[0075] Based on the offset distance of one or more ornaments corresponding to multiple region boxes, determine the coordinates of one or more ornaments in the target table surface.

[0076] Based on the coordinates of one or more ornaments corresponding to multiple region boxes in the target table surface and the offset angle of each ornament, the placement position of one or more ornaments corresponding to multiple region boxes is determined.

[0077] Figure 3 Two schematic diagrams illustrating the positions of ornaments within multiple region frames determined in the tabletop ornament layout method provided in an exemplary embodiment of this application. Since the ornament positions are determined randomly each time, different ornament placement diagrams can be determined, as shown below. Figure 3 Options (1) and (2) are available for users to choose from. Figure 4 A flowchart illustrating the application of the tabletop decoration layout method provided in an exemplary embodiment of this application to a real-world scenario. Figure 4 The tabletop decoration layout methods shown may include:

[0078] S41, Based on the table coordinate data of key positions in the target table to be laid out, determine the set of line segments between key positions.

[0079] The line segment set includes the line segment set of the target platform in the horizontal axis direction and the line segment set in the vertical axis direction, and the key positions include the edge position of the target platform and the position of the fixing device on the target platform.

[0080] S42, sort the line segments on the target platform along the horizontal axis according to their length.

[0081] S43, taking the longest horizontal line segment in the set of line segments on the target platform in the horizontal direction as the reference, find the horizontal line segment that is closest to it from the remaining horizontal line segments and whose projection length on the horizontal line segment is not less than half the length of the horizontal line segment.

[0082] S44: Determine two vertical line segments from the set of line segments on the target platform along the vertical axis that match the two horizontal line segments in S43, and combine them to obtain the region box.

[0083] The specific implementation process of S44 can be referred to step iii above.

[0084] S45, delete the horizontal and vertical line segments within the region box from the line segment sets along the horizontal and vertical axes of the target platform, respectively.

[0085] S46, determine whether the number of line segments on the target platform in the horizontal axis direction and / or the vertical axis direction is less than 2.

[0086] If so, execute S47; otherwise, continue executing S43.

[0087] S47, remove the region box with a short side length less than the preset length and the projection box of the fixing device from the determined region box to obtain at least one region box.

[0088] S48, determine whether the target area box is a specific area box near the fixed device.

[0089] The target region box can be any one of at least one region box. If so, proceed to step S49; otherwise, proceed to step S410.

[0090] S49, invokes a specific item pool.

[0091] S410 calls the general jewelry pool.

[0092] S411, selects an accessory from the accessory pool based on the target tabletop's tabletop style and the size of the area frame.

[0093] S412, confirm whether the selected ornament has appeared on the target table.

[0094] If yes, execute S411; otherwise, execute S413.

[0095] S413, within a preset distance range at the center of the region frame, randomly determine the offset distance and offset angle of one or more ornaments corresponding to the region frame.

[0096] S414, Based on the offset distance and offset angle of one or more ornaments corresponding to the region frame, determine the placement position of one or more ornaments corresponding to the region frame.

[0097] In addition, the method provided in this embodiment can be applied to any application scenario that requires the layout of tabletop decorations, so that the corresponding decoration type, quantity and position can be determined based on the layout and style of the tabletop, reducing the cost of manual selection and design, and improving the efficiency of tabletop decoration layout.

[0098] In the tabletop decoration layout method provided in some embodiments of this application, based on the tabletop coordinate data of key positions in the target tabletop, the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction of the target tabletop can be determined. The key positions include the edge position of the target tabletop and the position of the fixing device on the target tabletop. Based on the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction, as well as the preset area frame composition rules, multiple area frames in the target tabletop that can be used to place decorations are determined. Based on the tabletop style of the target tabletop, the size of the multiple area frames, and the preset product selection rules, one or more corresponding decorations are selected from the preset decoration pool for the multiple area frames. The preset product selection rules include the rule that decorations in the same tabletop are not repeated. Finally, based on the center position of the multiple area frames, the placement position of one or more decorations corresponding to the multiple area frames can be determined. This realizes that the corresponding decoration type, quantity, and position can be determined based on the layout and style of the tabletop, reducing the cost of manual product selection and design placement, and improving the efficiency of tabletop decoration layout.

[0099] It should be noted that the execution subject of each step of the method provided in the above embodiments can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 110 to 130 can be device A; or the execution subject of steps 110 to 120 can be device A, and the execution subject of step 130 can be device B; and so on.

[0100] Furthermore, in some processes described in the above embodiments and accompanying drawings, multiple operations appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or they may be executed in parallel. The operation numbers, such as 110, 120, etc., are merely used to distinguish different operations and do not represent any execution order. Additionally, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.

[0101] Figure 5 This is a structural schematic diagram of a countertop decoration layout device provided as an exemplary embodiment of this application. Figure 5 As shown, the device includes: a line segment determination module 510, a region box determination module 520, an accessory selection module 530, and a position determination module 540, wherein:

[0102] The line segment determination module 510 is used to determine the set of line segments between key positions based on the table coordinate data of key positions in the target table to be laid out. The set of line segments includes the set of line segments of the target table in the horizontal axis direction and the set of line segments in the vertical axis direction. The key positions include the edge positions of the target table and the positions of the fixing devices on the target table.

[0103] The region frame determination module 520 is used to determine multiple region frames in the target table surface where ornaments can be placed, based on the set of line segments in the horizontal axis direction, the set of line segments in the vertical axis direction, and the preset region frame composition rules.

[0104] The accessory selection module 530 is used to select one or more accessories corresponding to the multiple area frames from a preset accessory pool based on the table style of the target table and the size of the multiple area frames and preset selection rules. The preset selection rules include the rule that accessories in the same table are not repeated.

[0105] The position determination module 540 is used to determine the placement position of one or more ornaments corresponding to the multiple area frames based on the center position of the multiple area frames.

[0106] The tabletop decoration layout device provided in this application can determine the set of line segments in the horizontal and vertical directions of the target tabletop based on the tabletop coordinate data of key positions in the target tabletop. These key positions include the edge positions of the target tabletop and the positions of the fixing devices on the target tabletop. Based on the set of line segments in the horizontal and vertical directions and the preset area frame composition rules, it determines multiple area frames in the target tabletop where decorations can be placed. Based on the tabletop style, the size of the multiple area frames, and preset selection rules, it selects one or more corresponding decorations from a preset decoration pool for the multiple area frames. The preset selection rules include the rule that decorations in the same tabletop are not repeated. Finally, based on the center position of the multiple area frames, it can determine the placement position of one or more decorations corresponding to the multiple area frames. This realizes that the corresponding decoration type, quantity, and position can be determined based on the layout and style of the tabletop, reducing the cost of manual selection and design placement, and improving the efficiency of tabletop decoration layout.

[0107] Further optionally, when the line segment determination module 510 determines the set of line segments between key positions based on the tabletop coordinate data of key positions in the target tabletop to be laid out, it is specifically used for:

[0108] From the tabletop coordinate data of key positions in the target tabletop, the projection frame of the target tabletop is determined. The projection frame of the target tabletop includes the edge projection frame of the target tabletop and the projection frame of the fixing device. The projection frame of the fixing device is a rectangular frame that fits the outer edge of the fixing device.

[0109] Determine the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction of the projection frame of the target platform, wherein the line segments in the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction are not within the projection frame of the fixed device.

[0110] Further optionally, when the region frame determination module 520 determines multiple region frames in the target tabletop where ornaments can be placed, based on the set of line segments along the horizontal axis, the set of line segments along the vertical axis, and preset region frame composition rules, it is specifically used for:

[0111] The line segments in the set along the horizontal axis are sorted in descending order of length to select the longest first horizontal line segment from the set along the horizontal axis.

[0112] From the remaining horizontal line segments, select the second horizontal line segment that is closest to the first horizontal line segment and whose projection length on the first horizontal line segment is not less than a preset length. The remaining horizontal line segments are the line segments other than the first horizontal line segment in the set of line segments in the horizontal axis direction.

[0113] From the set of line segments along the vertical axis, select at least two vertical line segments whose length is not less than a preset distance within the common projection range of the first horizontal line segment and the second horizontal line segment, so as to select the two vertical line segments with the largest distance from the at least two vertical line segments.

[0114] Based on the first horizontal line segment, the second horizontal line segment, and the two vertical line segments, a first region box is determined;

[0115] The horizontal and vertical line segments within the first region box are removed from the line segment set along the horizontal axis and the line segment set along the vertical axis, respectively, to obtain a first horizontal line segment set and a first vertical line segment set, thereby determining the plurality of region boxes.

[0116] Further optionally, when the accessory selection module 530 selects one or more accessories corresponding to the multiple area frames from the preset accessory pool based on the surface style of the target surface, the size of the multiple area frames, and preset selection rules, it is specifically used for:

[0117] From the plurality of region frames, remove the region frames whose shorter side is less than a preset length and the projection frame of the fixing device to obtain at least one region frame;

[0118] Based on the surface style of the target surface, the size of the at least one area frame, and the preset selection rules, one or more corresponding accessories are selected from the preset accessory pool for the at least one area frame.

[0119] Further optionally, the preset jewelry pool includes a specific jewelry pool and a general jewelry pool. When the jewelry selection module 530 selects one or more corresponding jewelry items for the at least one area frame from the preset jewelry pool based on the target tabletop style, the size of the at least one area frame, and the preset selection rules, it is specifically used for:

[0120] Based on the location of the fixing device, a specific area box near the fixing device is determined from the at least one area box;

[0121] Based on the style of the target tabletop, the size of the specific area frame, and the preset selection rules, select one or more corresponding accessories from the specific accessory pool for the specific area frame;

[0122] Based on the tabletop style of the target tabletop, the size of the remaining area frame, and the preset selection rules, one or more corresponding accessories are selected from the general accessory pool for the remaining area frame; wherein, the remaining area frame is the area frame other than the specific area frame in the at least one area frame.

[0123] Further optionally, the preset selection rules include a correspondence rule between the length of the long side of the area frame and the number of accessories. When the accessory selection module 530 selects one or more corresponding accessories for the multiple area frames from the preset accessory pool based on the tabletop style of the target tabletop, the size of the multiple area frames, and the preset selection rules, it is specifically used for:

[0124] Based on the size of the multiple region boxes, determine the length of the long side of the multiple region boxes;

[0125] Based on the correspondence between the length of the long side of the area frame and the number of accessories in the preset selection rules, the number of accessories that matches the length of the long side of the multiple area frames is determined.

[0126] Based on the tabletop style of the target tabletop and the preset selection rules, one or more corresponding ornaments are selected for the multiple area frames. The number of one or more ornaments corresponding to the multiple area frames is consistent with the number of ornaments that match the length of the long side of each area frame.

[0127] Further optionally, when the position determination module 540 determines the placement position of one or more ornaments corresponding to the plurality of region frames based on the center positions of the plurality of region frames, it is specifically used for:

[0128] Within a preset distance range at the center of the plurality of region frames, the offset distance and offset angle of one or more ornaments corresponding to the plurality of region frames are randomly determined;

[0129] Based on the offset distance of one or more ornaments corresponding to the multiple region boxes, determine the coordinates of one or more ornaments in the target table surface;

[0130] Based on the coordinates of one or more ornaments corresponding to the multiple area frames in the target table surface and the offset angle of each ornament, the placement position of one or more ornaments corresponding to the multiple area frames is determined.

[0131] The countertop decoration layout device can achieve Figures 1-4 For details of the method implementation examples, please refer to [link / reference]. Figures 1-4 The method for arranging tabletop decorations in the illustrated embodiment will not be described in detail here.

[0132] Figure 6 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. For example... Figure 6 As shown, the device includes a memory 61 and a processor 62.

[0133] Memory 61 is used to store computer programs and can be configured to store various other data to support operation on the computing device. Examples of this data include instructions for any application or method used to operate on the computing device, contact data, phone book data, messages, pictures, videos, etc.

[0134] Processor 62, coupled to memory 61, is configured to execute a computer program in memory 61 for: determining a set of line segments between key locations on a target tabletop, based on tabletop coordinate data of key locations, the set of line segments including a set of line segments along the horizontal axis and a set of line segments along the vertical axis of the target tabletop, the key locations including the edge locations of the target tabletop and the locations of fixing devices on the target tabletop; determining multiple regions on the target tabletop where ornaments can be placed, based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis and a preset region frame composition rule; selecting one or more ornaments corresponding to the multiple regions from a preset ornament pool, based on the tabletop style of the target tabletop, the size of the multiple regions, and a preset selection rule, the preset selection rule including the rule that ornaments on the same tabletop are not repeated; and determining the placement position of one or more ornaments corresponding to the multiple regions based on the center location of the multiple regions.

[0135] Furthermore, such as Figure 6As shown, the electronic device also includes other components such as a communication component 63, a display 64, a power supply component 65, and an audio component 66. Figure 6 The diagram only shows some components and does not mean that the electronic device includes only these components. Figure 6 The components shown. Additionally, depending on the implementation of the traffic playback device, Figure 6 The components within the dashed box are optional, not mandatory. For example, when an electronic device is implemented as a terminal device such as a smartphone, tablet, or desktop computer, it may include... Figure 6 The components within the dashed box; when the electronic device is implemented as a server-side device such as a conventional server, cloud server, data center, or server array, it may be excluded. Figure 6 The component within the dashed box.

[0136] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to implement the steps in the above-described countertop decoration layout method embodiments.

[0137] The above Figure 6 The communication component is configured to facilitate wired or wireless communication between the device containing the communication component and other devices. The device containing the communication component can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, the communication component receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component may further include a Near Field Communication (NFC) module, Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, etc.

[0138] The above Figure 6 The memory in the memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0139] The above Figure 6 The display includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe action, but also the duration and pressure associated with the touch or swipe operation.

[0140] The above Figure 6 The power supply component provides power to the various components of the device in which it resides. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which it resides.

[0141] The above Figure 6 The audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC) configured to receive external audio signals when the device containing the audio component is in an operating mode, such as call mode, recording mode, or voice recognition mode. The received audio signals can be further stored in memory or transmitted via a communication component. In some embodiments, the audio component also includes a speaker for outputting audio signals.

[0142] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0145] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0147] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0148] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0149] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0150] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.

Claims

1. A method for arranging decorative items on a tabletop, characterized in that, include: Based on the tabletop coordinate data of key positions in the target tabletop to be laid out, a set of line segments between the key positions is determined. The set of line segments includes the set of line segments of the target tabletop in the horizontal axis direction and the set of line segments in the vertical axis direction. The key positions include the edge positions of the target tabletop and the positions of the fixing devices on the target tabletop. Based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, as well as the preset rules for the composition of area frames, multiple area frames are determined in the target tabletop that can hold ornaments, including specific area frames near the fixing device and non-specific area frames not near the fixing device. Based on the style of the target tabletop, the size of the multiple area frames, and the preset selection rules, one or more corresponding accessories are selected from the preset accessory pool for the multiple area frames. The preset selection rules include the rule that accessories in the same tabletop are not repeated. Based on the center position of the multiple area frames, determine the placement position of one or more ornaments corresponding to the multiple area frames; The step of selecting one or more corresponding accessories from a preset accessory pool for the multiple area frames based on the tabletop style of the target tabletop, the size of the multiple area frames, and preset selection rules includes: determining a specific area frame closer to the fixing device from the multiple area frames based on the position of the fixing device; selecting one or more corresponding accessories for the specific area frame from a specific accessory pool based on the tabletop style of the target tabletop, the size of the specific area frame, and preset selection rules; and selecting one or more corresponding accessories for the remaining area frame from a general accessory pool based on the tabletop style of the target tabletop, the size of the remaining area frames, and the preset selection rules; wherein the remaining area frames are the area frames other than the specific area frames from the multiple area frames.

2. The method as described in claim 1, characterized in that, The determination of the set of line segments between key locations based on the tabletop coordinate data of key locations in the target tabletop to be laid out includes: From the tabletop coordinate data of key positions in the target tabletop, the projection frame of the target tabletop is determined. The projection frame of the target tabletop includes the edge projection frame of the target tabletop and the projection frame of the fixing device. The projection frame of the fixing device is a rectangular frame that fits the outer edge of the fixing device. Determine the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction of the projection frame of the target platform, wherein the line segments in the set of line segments in the horizontal axis direction and the set of line segments in the vertical axis direction are not within the projection frame of the fixed device.

3. The method as described in claim 1, characterized in that, The method, based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, and a preset region frame composition rule, determines multiple region frames in the target tabletop where ornaments can be placed, including specific region frames near the fixing device and non-specific region frames not near the fixing device, including: The line segments in the set along the horizontal axis are sorted in descending order of length to select the longest first horizontal line segment from the set along the horizontal axis. From the remaining horizontal line segments, select the second horizontal line segment that is closest to the first horizontal line segment and whose projection length on the first horizontal line segment is not less than a preset length. The remaining horizontal line segments are the line segments other than the first horizontal line segment in the set of line segments in the horizontal axis direction. From the set of line segments along the vertical axis, select at least two vertical line segments whose length is not less than a preset distance within the common projection range of the first horizontal line segment and the second horizontal line segment, so as to select the two vertical line segments with the largest distance from the at least two vertical line segments. Based on the first horizontal line segment, the second horizontal line segment, and the two vertical line segments, a first region box is determined; The horizontal and vertical line segments within the first region box are removed from the line segment set along the horizontal axis and the line segment set along the vertical axis, respectively, to obtain a first horizontal line segment set and a first vertical line segment set, thereby determining the plurality of region boxes.

4. The method as described in claim 2, characterized in that, Determining a specific region box near the fixed device from the plurality of region boxes based on the position of the fixed device includes: From the plurality of region frames, remove the region frames whose shorter side is less than a preset length and the projection frame of the fixing device to obtain at least one region frame; Based on the location of the fixing device, a specific area box near the fixing device is determined from the at least one area box; The remaining region box is the region box other than the specific region box in the at least one region box.

5. The method as described in claim 1 or 4, characterized in that, The preset selection rules include the correspondence between the length of the long side of the area frame and the number of accessories. The step of selecting one or more corresponding accessories for each of the multiple area frames from a preset accessory pool, based on the tabletop style of the target tabletop, the size of the multiple area frames, and the preset selection rules, further includes: Based on the size of the multiple region boxes, determine the length of the long side of the multiple region boxes; Based on the correspondence between the length of the long side of the area frame and the number of accessories in the preset selection rules, the number of accessories that matches the length of the long side of the multiple area frames is determined. Based on the tabletop style of the target tabletop and the preset selection rules, one or more corresponding ornaments are selected for the multiple area frames. The number of one or more ornaments corresponding to the multiple area frames is consistent with the number of ornaments that match the length of the long side of each area frame.

6. The method as described in claim 1, characterized in that, The step of determining the placement position of one or more ornaments corresponding to the multiple region frames based on their center positions includes: Within a preset distance range at the center of the plurality of region frames, the offset distance and offset angle of one or more ornaments corresponding to the plurality of region frames are randomly determined; Based on the offset distance of one or more ornaments corresponding to the multiple region boxes, determine the coordinates of one or more ornaments in the target table surface; Based on the coordinates of one or more ornaments corresponding to the multiple area frames in the target table surface and the offset angle of each ornament, the placement position of one or more ornaments corresponding to the multiple area frames is determined.

7. A tabletop decoration arrangement device, characterized in that, include: The line segment determination module is used to determine the set of line segments between key positions based on the table coordinate data of key positions in the target table to be laid out. The set of line segments includes the set of line segments of the target table in the horizontal axis direction and the set of line segments in the vertical axis direction. The key positions include the edge positions of the target table and the positions of the fixing devices on the target table. The region box determination module is used to determine multiple region boxes in the target table surface that can hold ornaments, including specific region boxes close to the fixing device and non-specific region boxes not close to the fixing device, based on the set of line segments in the horizontal axis direction, the set of line segments in the vertical axis direction, and the preset region box composition rules. The accessory selection module is used to select one or more accessories corresponding to the multiple area frames from a preset accessory pool based on the style of the target tabletop, the size of the multiple area frames, and preset selection rules. The preset selection rules include the rule that accessories in the same tabletop are not repeated. The position determination module is used to determine the placement position of one or more ornaments corresponding to the multiple area frames based on the center position of the multiple area frames; Specifically, when the accessory selection module selects one or more accessories corresponding to the multiple area frames from a preset accessory pool based on the surface style of the target surface, the size of the multiple area frames, and preset selection rules, it is used to: determine a specific area frame close to the fixed device from the multiple area frames based on the position of the fixed device; select one or more accessories corresponding to the specific area frame from a specific accessory pool based on the surface style of the target surface, the size of the specific area frame, and preset selection rules; and select one or more accessories corresponding to the remaining area frame from a general accessory pool based on the surface style of the target surface, the size of the remaining area frame, and preset selection rules; wherein the remaining area frame is the area frame other than the specific area frame from the multiple area frames.

8. An electronic device, characterized in that, include: Memory and processor; The memory is used to store computer programs; The processor, coupled to the memory, is configured to execute the computer program for: Based on the tabletop coordinate data of key positions in the target tabletop to be laid out, a set of line segments between the key positions is determined. The set of line segments includes the set of line segments of the target tabletop in the horizontal axis direction and the set of line segments in the vertical axis direction. The key positions include the edge positions of the target tabletop and the positions of the fixing devices on the target tabletop. Based on the set of line segments along the horizontal axis and the set of line segments along the vertical axis, as well as the preset rules for the composition of area frames, multiple area frames are determined in the target tabletop that can hold ornaments, including specific area frames near the fixing device and non-specific area frames not near the fixing device. Based on the style of the target tabletop, the size of the multiple area frames, and the preset selection rules, one or more corresponding accessories are selected from the preset accessory pool for the multiple area frames. The preset selection rules include the rule that accessories in the same tabletop are not repeated. Based on the center position of the multiple area frames, determine the placement position of one or more ornaments corresponding to the multiple area frames; Specifically, when the accessory selection module selects one or more accessories corresponding to the multiple area frames from a preset accessory pool based on the surface style of the target surface, the size of the multiple area frames, and preset selection rules, it is used to: determine a specific area frame close to the fixed device from the multiple area frames based on the position of the fixed device; select one or more accessories corresponding to the specific area frame from a specific accessory pool based on the surface style of the target surface, the size of the specific area frame, and preset selection rules; and select one or more accessories corresponding to the remaining area frame from a general accessory pool based on the surface style of the target surface, the size of the remaining area frame, and preset selection rules; wherein the remaining area frame is the area frame other than the specific area frame from the multiple area frames.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it causes the processor to perform the steps in the tabletop decoration layout method according to any one of claims 1 to 6.