Method, device, electronic device and storage medium for identifying table top contour shape

By identifying the countertop models in the decoration plan and cutting and comparing shapes, identifying the outline shapes of the U-shaped or L-shaped countertop models, the problems of production and installation complexity and resource waste are solved, and a more efficient production and installation process is achieved.

CN114202507BActive Publication Date: 2025-03-28GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111300676.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2025-03-28
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

When producing and installing non-rectangular contoured tabletops such as U-shaped or L-shaped, the process is complex and resources are wasted, resulting in high labor costs.

Method used

By identifying the countertop model in the decoration plan, filtering the target countertop model, determining the minimum rectangular bounding box surrounding the target countertop model, cropping it, obtaining the cropped contour results, and comparing it with the outline of the target countertop model, identifying its contour shape and triggering a prompt.

Benefits of technology

Quickly identify U-shaped or L-shaped countertop models that are difficult to meet the requirements of the production process, avoid the generation of complex design data, reduce waste of resource and labor costs, and simplify the production and installation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202507B_ABST
    Figure CN114202507B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, electronic device and storage medium for identifying the contour shape of a countertop. The method includes: obtaining the countertop models involved in the decoration plan, and determining the countertop models to be identified in the countertop models; screening the target countertop model from the countertop models to be identified, and determining the minimum rectangular bounding box surrounding the target countertop model; using the minimum rectangular bounding box to crop the target countertop model to obtain the contour result after cropping, and compare it with the contour of the target countertop model; identifying the contour shape of the target countertop model according to the comparison result, and triggering a prompt according to the contour shape. In this way, the contour shape of the countertop model is identified, and a prompt is triggered according to the contour shape, so as to avoid the generation of design data that is too complex and difficult to achieve the production process, and avoid the waste of resources and manpower costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of home decoration design technology, and in particular to a method, device, electronic device and storage medium for recognizing the contour shape of a countertop. Background Art

[0002] At present, with the vigorous development of the decoration industry, different developers have developed a variety of home design software, which has gradually been widely used by designers. Home design software helps designers to display design plans intuitively.

[0003] At present, with the help of home design software, the height, size and shape of the countertop can be customized, so that the countertop model can be created and displayed. Among them, the freedom of the countertop contour shape in the countertop design is relatively high, and it is very likely to design a non-rectangular countertop contour such as a U-shape or an L-shape.

[0004] Since the production and installation process of countertops is based on ordinary rectangles, if countertops with non-rectangular contours such as U-shaped or L-shaped contours are produced, the production process is relatively complicated. In addition, the on-site installation of countertops with non-rectangular contours such as U-shaped or L-shaped contours is relatively complicated, wasting more resources and labor costs. Summary of the invention

[0005] In order to solve the above-mentioned technical problems that if a countertop with a non-rectangular contour such as a U-shaped or L-shaped contour is produced, the production process is relatively complicated, and the on-site installation of the countertop with a non-rectangular contour such as a U-shaped or L-shaped contour is relatively complicated, which wastes a lot of resources and labor costs, the embodiments of the present invention provide a method, device, electronic device and storage medium for recognizing the contour shape of a countertop.

[0006] In a first aspect of an embodiment of the present invention, a method for identifying a table top contour shape is first provided, the method comprising:

[0007] Obtaining countertop models involved in the decoration plan, and determining a countertop model to be identified in the countertop models;

[0008] Selecting a target tabletop model from the tabletop models to be identified, and determining a minimum rectangular bounding box surrounding the target tabletop model;

[0009] Using the minimum rectangular bounding box to clip the target table model to obtain a clipped contour result, and compare it with the target table model contour;

[0010] The contour shape of the target tabletop model is identified according to the comparison result, and a prompt is triggered according to the contour shape.

[0011] In an optional implementation, the determining the table top model to be identified in the table top model includes:

[0012] Determine whether the table model is segmented;

[0013] If the tabletop model is segmented, obtaining a sub-tabletop model after the tabletop model is segmented, and determining the sub-tabletop model as the tabletop model to be identified;

[0014] If the tabletop model is not segmented, the tabletop model is determined to be a tabletop model to be identified.

[0015] In an optional implementation, the determining whether the table model is segmented includes:

[0016] Acquire table data corresponding to the table model, and determine whether the table data includes a segmentation point array;

[0017] If the table data includes the segmentation point array, determining that the table model has segmentation;

[0018] If the table data does not include the segmentation point array, it is determined that the table model has no segmentation.

[0019] In an optional implementation, the step of selecting a target tabletop model from the tabletop models to be identified includes:

[0020] Obtaining the number of contour points corresponding to the table model to be identified, and determining whether the number of contour points is greater than or equal to a preset number threshold;

[0021] If the number of the contour points is greater than or equal to the preset number threshold, determining that the table model to be identified is a target table model;

[0022] If the number of the contour points is less than the preset number threshold, the table top model to be identified is eliminated.

[0023] In an optional implementation, the using the minimum rectangular bounding box to clip the target tabletop model to obtain a clipped contour result includes:

[0024] The minimum rectangular bounding box is used to perform a Boolean operation on the target tabletop model to obtain a difference set, so as to obtain a clipped contour result.

[0025] In an optional embodiment, the comparing with the target table model profile includes:

[0026] The contour result is detected to be overlapped edge-to-edge with the contour of the target table model.

[0027] In an optional implementation, the step of identifying the contour shape of the target tabletop model according to the comparison result includes:

[0028] Determine the edges where the contour result overlaps with the contour of the target table model, and obtain the number of the overlapping edges;

[0029] Determining whether the number of the overlapping edges is greater than or equal to a preset edge threshold;

[0030] If the number of the overlapping edges is greater than or equal to the preset edge threshold, determining that the contour shape of the target table model is U-shaped or L-shaped;

[0031] If the number of the overlapping edges is less than the preset edge threshold, determining that the contour shape of the target table model is non-U-shaped or non-L-shaped;

[0032] The triggering of the prompt according to the contour shape includes: triggering the prompt when the contour shape of the target table top model is U-shaped or L-shaped.

[0033] In a second aspect of an embodiment of the present invention, a device for identifying a table top contour shape is provided, the device comprising:

[0034] A model acquisition module is used to obtain the countertop model involved in the decoration plan;

[0035] A model determination module, used to determine a countertop model to be identified in the countertop model;

[0036] A model screening module, used for screening a target countertop model from the countertop models to be identified;

[0037] A bounding box determination module, used to determine a minimum rectangular bounding box that encloses the target table model;

[0038] A model clipping module, used to clip the target table model using the minimum rectangular bounding box to obtain a clipped contour result;

[0039] A contour comparison module, used for comparing the contour result with the target table model contour;

[0040] The shape recognition module is used to recognize the contour shape of the target table model according to the comparison result, and trigger a prompt according to the contour shape.

[0041] In a third aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0042] Memory, used to store computer programs;

[0043] The processor is used to implement the method for recognizing the contour shape of the table top described in the first aspect when executing the program stored in the memory.

[0044] In a fourth aspect of the embodiments of the present invention, a storage medium is further provided, wherein instructions are stored in the storage medium, and when the instructions are executed on a computer, the computer executes the method for recognizing the contour shape of a table top described in the first aspect.

[0045] In a fifth aspect of the embodiments of the present invention, a computer program product comprising instructions is further provided. When the computer program product is run on a computer, the computer is enabled to execute the method for recognizing the contour shape of a table top described in the first aspect.

[0046] The technical solution provided by the embodiment of the present invention obtains the countertop models involved in the decoration plan, determines the countertop models to be identified in the countertop models, screens the target countertop model from the countertop models to be identified, and determines the minimum rectangular bounding box surrounding the target countertop model, uses the minimum rectangular bounding box to crop the target countertop model to obtain the cropped contour result, and compares it with the target countertop model contour, identifies the contour shape of the target countertop model according to the comparison result, and triggers a prompt according to the contour shape. In this way, the contour shape of the countertop model is identified, and a prompt is triggered according to the contour shape, so as to avoid the generation of design data that is too complex and difficult to achieve production technology, and avoid waste of resources and manpower costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0049] Figure 1 It is a schematic diagram of an implementation process of a method for identifying a table top contour shape shown in an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of a table model outline shape shown in an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of table model segmentation shown in an embodiment of the present invention;

[0052] Figure 4is a schematic diagram of the intersection of a dividing line and a table model shown in an embodiment of the present invention;

[0053] Figure 5 is a schematic diagram of a minimum rectangular bounding box enclosing a target table model shown in an embodiment of the present invention;

[0054] Figure 6 is a schematic diagram of a contour result after clipping shown in an embodiment of the present invention;

[0055] Figure 7 It is a structural schematic diagram of a device for identifying the contour shape of a tabletop shown in an embodiment of the present invention;

[0056] Figure 8 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0059] like Figure 1 FIG. 1 is a schematic diagram of an implementation flow of a method for recognizing a table top contour shape provided by an embodiment of the present invention. The method is applied to a processor and may specifically include the following steps:

[0060] S101, obtaining countertop models involved in a decoration plan, and determining a countertop model to be identified in the countertop models.

[0061] In an embodiment of the present invention, a user (eg, a designer) can use home design software to perform home decoration design, thereby generating a certain decoration plan. Before generating the design data of the production process, a countertop model involved in the decoration plan can be obtained.

[0062] It should be noted that the countertop model involved in the decoration plan can have various shapes, such as rectangular, L-shaped or U-shaped. Figure 2 As shown, the embodiments of the present invention are not limited to this.

[0063] For the countertop models involved in the decoration plan, the embodiment of the present invention needs to determine the countertop models to be identified in the countertop models. For example, for the countertop models involved in the kitchen decoration plan, the countertop models to be identified in the countertop models are determined.

[0064] Specifically, the embodiments of the present invention can determine the table top model to be identified in the table top model in the following manner: determine whether the table top model is segmented; if the table top model is segmented, obtain (several) sub-table top models after the table top model is segmented, and determine (several) sub-table top models as the table top model to be identified; if the table top model is not segmented, determine the table top model as the table top model to be identified.

[0065] For example, for a countertop model involved in a kitchen decoration plan, the embodiment of the present invention determines whether the countertop model is segmented, such as Figure 3 As shown, assuming that the tabletop model is segmented, it means that the tabletop model is segmented, and four sub-tabletop models after the tabletop model is segmented are obtained, and the four sub-tabletop models are determined to be the tabletop models to be identified.

[0066] In addition, assuming that the tabletop model has not been segmented, it means that the tabletop model has not been segmented. In this case, the entire tabletop model can be identified as a whole, that is, the tabletop model is determined to be the tabletop model to be identified.

[0067] In the embodiment of the present invention, after the table top model is segmented, the segmentation line and the table top model outline have intersection points, and these intersection points can form a segmentation point array. For example, if a rectangular table top model is cut in the middle, the segmentation line and the rectangular table top model have two intersection points, such as Figure 4 As shown, the segmentation point array is formed.

[0068] Based on this, the embodiment of the present invention can obtain the table top data corresponding to the table top model and determine whether the table top data includes a segmentation point array. If the table top data includes a segmentation point array, it can be determined that the table top model is segmented. If the table top data does not include a segmentation point array, it is determined that the table top model is not segmented.

[0069] S102, selecting a target tabletop model from the tabletop models to be identified, and determining a minimum rectangular bounding box surrounding the target tabletop model.

[0070] For the table top models to be identified, some table top models may not need to be identified, such as rectangular table top models. Therefore, in the embodiment of the present invention, it is necessary to filter the target table top model from the table top models to be identified in order to identify the contour shape.

[0071] It should be noted that, in the embodiment of the present invention, the number of countertop models to be identified can be multiple, such as the several sub-countertop models mentioned above, so that the target countertop model can be screened from the multiple countertop models to be identified, and the embodiment of the present invention is not limited to this.

[0072] Among them, for a rectangular table top model, there are generally 4 contour points, that is, 4 vertices correspond to 4 contour points. The number of contour points is relatively small, and it does not belong to an anisotropic (i.e. U-shaped or L-shaped) table top model. For a table top model with a large number of contour points, it is highly likely to belong to an anisotropic (i.e. U-shaped or L-shaped) table top model. Based on this, the target table top model can be screened from the table top models to be identified.

[0073] Specifically, for a tabletop model to be identified, in the embodiment of the present invention, the number of contour points corresponding to the tabletop model to be identified is obtained, and it is determined whether the number of contour points is greater than or equal to a preset number threshold.

[0074] If the number of contour points corresponding to the table model to be identified is greater than or equal to a preset number threshold, the table model to be identified can be determined as a target table model, which means that subsequent processes can be executed on it.

[0075] If the number of contour points corresponding to the countertop model to be identified is less than the preset threshold, the countertop model to be identified can be eliminated, which means that there is no need to execute subsequent processes on it, and only the countertop models to be identified whose number of contour points is greater than or equal to the preset threshold need to be screened out.

[0076] For example, the countertop model to be identified is a rectangular countertop model. The embodiment of the present invention obtains the number of contour points corresponding to the countertop model to be identified (4) and presets the number threshold (5). It can be seen that the number of contour points corresponding to the countertop model to be identified is less than the preset number threshold. At this time, the countertop model to be identified can be eliminated, which means that there is no need to execute subsequent processes on it, and it is only necessary to screen out the countertop models to be identified whose number of contour points is greater than or equal to 5.

[0077] For example, the countertop model to be identified is an L-shaped countertop model. The embodiment of the present invention obtains the number of contour points corresponding to the countertop model to be identified (6) and the preset number threshold (5). It can be seen that the number of contour points corresponding to the countertop model to be identified is greater than the preset number threshold. At this time, the countertop model to be identified is determined to be the target countertop model, which means that the subsequent process can be executed on it.

[0078] In addition, in the embodiment of the present invention, for the target table model, the minimum rectangular bounding box surrounding the target table model is determined. A minimum rectangular bounding box that can completely surround the target table model can be created, so that the minimum rectangular bounding box surrounding the target table model can be determined.

[0079] For example, for the target table model, that is, the L-shaped table model, create a minimum rectangular bounding box that can completely surround the target table model, such as Figure 5 As shown, the minimum rectangular bounding box surrounding the target table model can be determined.

[0080] S103, using the minimum rectangular bounding box to crop the target table model to obtain a cropped contour result, and compare it with the target table model contour.

[0081] In the embodiment of the present invention, for the target table model, the target table model can be clipped using a minimum rectangular bounding box to obtain a clipped contour result. The clipping method here can be a Boolean operation, which is not limited in the embodiment of the present invention.

[0082] Specifically, for the target table model, the minimum rectangular bounding box can be used to perform Boolean operations on the target table model to obtain a difference set to obtain a clipped contour result. The specific processing of the Boolean operation can refer to the processing flow on the market, and the embodiment of the present invention will not be repeated here.

[0083] For example, for the target table model, i.e., the L-shaped table model, the minimum rectangular bounding box is used to perform Boolean operations on the target table model to obtain the difference set to obtain the contour result after clipping. The contour result here can be as follows: Figure 6 Dotted line shown.

[0084] In addition, for the cropped contour result, the embodiment of the present invention compares the cropped contour result with the target table model. The comparison here specifically performs edge-to-edge coincidence detection, that is, the cropped contour result and the target table model perform edge-to-edge coincidence detection, where the edge refers to the contour edge.

[0085] S104: Identify the contour shape of the target tabletop model according to the comparison result, and trigger a prompt according to the contour shape.

[0086] Regarding the comparison result between the cropped contour result and the target table top model, the embodiment of the present invention can identify the contour shape of the target table top model according to the comparison result, and trigger a corresponding prompt according to the contour shape.

[0087] In this embodiment of the present invention, the (contour) edges that overlap the cropped contour result and the target table model contour are determined, and the number of the overlapping edges is obtained, and then it is determined whether the number of the overlapping edges is greater than or equal to a preset edge threshold.

[0088] If the number of overlapping edges is greater than or equal to the preset edge threshold, it means that the contour shape of the target table model is heterogeneous, that is, the contour shape of the target table model is U-shaped or L-shaped; if the number of overlapping edges is less than the preset edge threshold, it is determined that the contour shape of the target table model is non-U-shaped or non-L-shaped.

[0089] For example, for the clipped contour result, such as Figure 6 The dotted line shown in FIG. 1 is used to perform an edge-to-edge coincidence detection on the contour result after cropping and the target table model, thereby determining the (contour) edge where the contour result after cropping coincides with the contour of the target table model, that is, Figure 6 The dotted line shown means that the number of the overlapping edges is 2. The number of the overlapping edges is obtained, and then it is determined whether the number of the overlapping edges is greater than or equal to the preset edge threshold. Here, it is assumed that the preset edge threshold is 2, indicating that the number of the overlapping edges is equal to the preset edge threshold, which means that the contour shape of the target table model is heterogeneous, that is, the contour shape of the target table model is L-shaped.

[0090] In addition, when the contour shape of the target countertop model is U-shaped or L-shaped, a prompt is triggered to remind the user that this situation requires further cutting, that is, the target countertop model needs to be further cut to meet the needs of automated production process without manual review; otherwise, when actual production begins, it will be discovered that the data does not meet production needs, and the wrong countertop will be produced or no production will be performed, resulting in an erroneous production order; ultimately, the user can only return to the design stage for modification, which will seriously affect automated production without manual review.

[0091] Through the above description of the technical solution provided by the embodiment of the present invention, the countertop model involved in the decoration plan is obtained, and the countertop model to be identified in the countertop model is determined, the target countertop model is screened from the countertop model to be identified, and the minimum rectangular bounding box surrounding the target countertop model is determined, the target countertop model is cropped using the minimum rectangular bounding box to obtain the cropped contour result, and the contour result is compared with the target countertop model contour, the contour shape of the target countertop model is identified according to the comparison result, and a prompt is triggered according to the contour shape.

[0092] By identifying the contour shape of the countertop model in this way, the U-shaped or L-shaped countertop model that is difficult to meet the production process requirements can be quickly identified, and prompts can be triggered based on the contour shape to perform accurate detection before generating actual production data, so as to achieve the purpose of allowing users to improve the design again, avoid generating overly complex design data that is difficult to meet the production process, and avoid wasting resources and labor costs. The subsequent on-site splicing and installation of the countertop with a U-shaped or L-shaped contour is relatively simple and convenient.

[0093] Corresponding to the above method embodiment, the embodiment of the present invention also provides a device for identifying the contour shape of a table top, such as Figure 7 As shown, the apparatus may include: a model acquisition module 710 , a model determination module 720 , a model screening module 730 , a bounding box determination module 740 , a model clipping module 750 , a contour comparison module 760 , and a shape recognition module 770 .

[0094] Model acquisition module 710, used to acquire the countertop model involved in the decoration plan;

[0095] A model determination module 720, used to determine a tabletop model to be identified in the tabletop model;

[0096] A model screening module 730 is used to screen a target countertop model from the countertop models to be identified;

[0097] A bounding box determination module 740 is used to determine a minimum rectangular bounding box that encloses the target table model;

[0098] A model clipping module 750 is used to clip the target table model using the minimum rectangular bounding box to obtain a clipped contour result;

[0099] A contour comparison module 760, for comparing the contour result with the target table model contour;

[0100] The shape recognition module 770 is used to recognize the contour shape of the target table model according to the comparison result, and trigger a prompt according to the contour shape.

[0101] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, it includes a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82, and the memory 83 communicate with each other through the communication bus 84.

[0102] A memory 83, for storing computer programs;

[0103] The processor 81 is used to execute the program stored in the memory 83 to implement the following steps:

[0104] Acquire countertop models involved in the decoration plan, and determine the countertop model to be identified in the countertop model; filter the target countertop model from the countertop model to be identified, and determine the minimum rectangular bounding box surrounding the target countertop model; use the minimum rectangular bounding box to crop the target countertop model to obtain the cropped contour result, and compare it with the target countertop model contour; identify the contour shape of the target countertop model according to the comparison result, and trigger a prompt according to the contour shape.

[0105] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0106] The communication interface is used for communication between the above electronic device and other devices.

[0107] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0108] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0109] In another embodiment of the present invention, a storage medium is provided. The storage medium stores instructions. When the instructions are executed on a computer, the computer executes the method for recognizing the contour shape of a table top described in any of the above embodiments.

[0110] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the method for recognizing the contour shape of a table top described in any one of the above embodiments.

[0111] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium, or transmitted from one storage medium to another storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0112] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0113] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0114] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for identifying a table top contour shape, characterized in that: The method comprises: Obtaining countertop models involved in the decoration plan, and determining a countertop model to be identified in the countertop models; Selecting a target tabletop model from the tabletop models to be identified, and determining a minimum rectangular bounding box surrounding the target tabletop model; Using the minimum rectangular bounding box to clip the target table model to obtain a clipped contour result, and compare it with the target table model contour; Identify the contour shape of the target table model according to the comparison result, and trigger a prompt according to the contour shape; The step of identifying the contour shape of the target table model according to the comparison result includes: Determine the edges where the contour result overlaps with the contour of the target table model, and obtain the number of the overlapping edges; Determining whether the number of the overlapping edges is greater than or equal to a preset edge threshold; If the number of the overlapping edges is greater than or equal to the preset edge threshold, determining that the contour shape of the target table model is U-shaped or L-shaped; If the number of the overlapping edges is less than the preset edge threshold, determining that the contour shape of the target table model is non-U-shaped or non-L-shaped; The triggering of the prompt according to the contour shape includes: triggering the prompt when the contour shape of the target table top model is U-shaped or L-shaped.

2. The method according to claim 1, characterized in that The step of determining a tabletop model to be identified in the tabletop models comprises: Determine whether the table model is segmented; If the table top model is segmented, obtaining a sub-table top model after the table top model is segmented, and determining the sub-table top model as the table top model to be identified; If the tabletop model is not segmented, the tabletop model is determined to be a tabletop model to be identified.

3. The method according to claim 2, characterized in that The determining whether the table model is segmented includes: Acquire table data corresponding to the table model, and determine whether the table data includes a segmentation point array; If the table data includes the segmentation point array, determining that the table model has segmentation; If the table data does not include the segmentation point array, it is determined that the table model has no segmentation.

4. The method according to claim 1, characterized in that: The step of selecting a target table top model from the table top models to be identified includes: Obtaining the number of contour points corresponding to the table model to be identified, and determining whether the number of contour points is greater than or equal to a preset number threshold; If the number of the contour points is greater than or equal to the preset number threshold, determining that the tabletop model to be identified is a target tabletop model; If the number of the contour points is less than the preset number threshold, the tabletop model to be identified is eliminated.

5. The method according to claim 1, characterized in that The step of clipping the target tabletop model using the minimum rectangular bounding box to obtain a clipped contour result includes: The minimum rectangular bounding box is used to perform a Boolean operation on the target table model to obtain a difference set, so as to obtain a clipped contour result.

6. The method according to claim 1, characterized in that The comparing with the target table top model profile comprises: The contour result is detected to be overlapped edge-to-edge with the contour of the target table model.

7. A device for identifying the contour shape of a table top, characterized in that: The device comprises: A model acquisition module is used to obtain the countertop model involved in the decoration plan; A model determination module, used to determine a countertop model to be identified in the countertop model; A model screening module, used for screening a target countertop model from the countertop models to be identified; A bounding box determination module, used to determine a minimum rectangular bounding box that encloses the target table model; A model clipping module, used to clip the target table model using the minimum rectangular bounding box to obtain a clipped contour result; A contour comparison module, used for comparing the contour result with the target table model contour; A shape recognition module, used to recognize the contour shape of the target table model according to the comparison result, and trigger a prompt according to the contour shape; The step of identifying the contour shape of the target table model according to the comparison result includes: Determine the edges where the contour result overlaps with the contour of the target table model, and obtain the number of the overlapping edges; Determining whether the number of the overlapping edges is greater than or equal to a preset edge threshold; If the number of the overlapping edges is greater than or equal to the preset edge threshold, determining that the contour shape of the target table model is U-shaped or L-shaped; If the number of the overlapping edges is less than the preset edge threshold, determining that the contour shape of the target table model is non-U-shaped or non-L-shaped; The triggering of the prompt according to the contour shape includes: triggering the prompt when the contour shape of the target table top model is U-shaped or L-shaped.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Part contour shape detection method and device based on image processing and affine transformation

    CN110322395A