Method, device, terminal equipment and storage medium for identifying design drawings of overseas Chinese hometowns

Through the trained style recognition and scoring model, the design drawings of the hometown of overseas Chinese can be automatically identified, which solves the problems of large errors and time-consuming and labor-intensive manual judgment, and realizes efficient and accurate recognition of the design drawings of the hometown of overseas Chinese.

CN119418362BActive Publication Date: 2025-09-26JINAN UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411488863.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-09-26
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

In the existing technology, the recognition of overseas Chinese hometown landscape design drawings relies on manual judgment, which has the problems of large errors and is time-consuming and labor-intensive.

Method used

Using the trained style recognition and scoring model, by extracting the basic components and spatial design elements in the design drawing, calculating the similarity and score, the style type and similarity of the design drawing are automatically identified, and combined with the preset scoring threshold, it is determined whether the design drawing is a design drawing with the style of an overseas Chinese hometown.

Benefits of technology

It realizes the automatic recognition of the design drawings of the hometown of overseas Chinese, reduces human errors, improves recognition efficiency and accuracy, and saves human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119418362B_ABST
    Figure CN119418362B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, terminal device and storage medium for identifying design drawings of hometown style, wherein the method comprises: predicting the style type and style score of the design drawing through a style recognition and scoring model, further calculating the basic component score and the space design element score of the design drawing according to the predicted style type and with reference to preset reference basic components and reference space design elements, calculating the comprehensive score of the design drawing according to the style score, basic component score and space design element score, judging whether the design drawing conforms to the hometown style design and determining the corresponding style type according to the comprehensive score. The present invention can automatically identify whether a design drawing is a hometown style design drawing and can identify the specific hometown style type, solving the technical problems of large errors and time-consuming and labor-intensive caused by the existing technology relying on manual identification of design drawings, saving manpower, and improving efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and in particular to a method, device, terminal equipment and storage medium for recognizing a design drawing of an overseas Chinese hometown. Background Art

[0002] Currently, in the construction industry, research into the culture of overseas Chinese hometowns requires verifying whether architectural designs adhere to the local design style. This is typically done manually, comparing individual architectural structures and decorative elements to determine if the designs are consistent with the local design style. This manual evaluation process is subject to subjective errors and is time-consuming and labor-intensive. Summary of the Invention

[0003] The present invention provides a method, device, terminal equipment and storage medium for identifying design drawings of overseas Chinese hometowns, so as to solve the technical problems of large errors and time-consuming and labor-intensive nature caused by relying on manual recognition of design drawings in the existing technology.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for identifying a design drawing of an overseas Chinese hometown, including:

[0005] Obtaining a design drawing to be identified;

[0006] Inputting the design drawing into a trained style recognition and scoring model so that the style recognition and scoring model outputs a style type of the design drawing and a corresponding style score; the style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type;

[0007] Extracting a number of basic components and spatial design elements based on the design drawing; wherein the types of basic components include: doors, windows, columns, patios and roofs; and the spatial design elements include: building form, building orientation and landscape;

[0008] Selecting a corresponding reference basic component from a preset basic component library according to the style type; calculating, for each basic component, a basic component similarity between the basic component and the reference basic component; and calculating a basic component score for the design drawing based on all basic component similarities and a preset weight value for each basic component;

[0009] According to the style type, a corresponding reference spatial design element is selected from a preset spatial design element library; for each spatial design element, a spatial design element similarity between the spatial design element and the reference spatial design element is calculated; and based on the similarities of all spatial design elements and a preset weight value of each spatial design element, a spatial design element score of the design drawing is calculated;

[0010] The comprehensive score of the design drawing is calculated based on the style score, the basic component score, the spatial design element score and the preset weight values ​​of each score; it is determined whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, it is determined that the design drawing is a design drawing with the style of an overseas Chinese hometown, and the design drawing is determined to be a design drawing of the style type. If not, it is determined that the design drawing is not a design drawing with the style of an overseas Chinese hometown.

[0011] As a preferred solution, the training process of the style recognition and scoring model includes:

[0012] Obtaining a number of sample design drawings and the style type and corresponding style score of each sample design drawing;

[0013] Set labels for sample design drawings according to their style type and style score;

[0014] An initial style recognition and scoring model is constructed, with the sample design drawing as input and the predicted style type and corresponding style score of the sample design drawing as output, and the style recognition and scoring model is trained to obtain a trained style recognition and scoring model.

[0015] As a preferred solution, the style recognition and scoring model is a VGG convolutional neural network; all convolution layers of the VGG convolutional neural network use a small-size convolution kernel of 3×3.

[0016] As a preferred solution, when training the style recognition and scoring model, the sample design drawing is input into the style recognition and scoring model to obtain a predicted style type and a corresponding style score as a prediction result;

[0017] According to the preset loss function, calculate the loss function value of the prediction result and the corresponding label;

[0018] The style scoring model is optimized according to the loss function value so that the loss function value converges.

[0019] As a preferred solution, the loss function is a cross entropy loss function.

[0020] As a preferred solution, the calculating the basic component similarity between the basic component and the reference basic component includes:

[0021] Extracting the pattern, decoration type and shape of the basic component;

[0022] calculating a pattern similarity between the pattern and the pattern of the reference base component;

[0023] calculating a decoration type similarity between the decoration type and the decoration type of the reference base component;

[0024] Calculating the shape similarity between the shape and the shape of the reference basic component;

[0025] The basic component similarity is calculated according to the pattern similarity, the decoration type similarity, the shape similarity, a preset pattern similarity weight value, a preset decoration type similarity weight value, and a shape similarity weight value.

[0026] As a preferred solution, the calculating of the spatial design element similarity between the spatial design element and the reference spatial design element includes:

[0027] Calculating the architectural form similarity between the architectural form of the spatial design element and the architectural form of the reference spatial design element;

[0028] Calculating the architectural orientation similarity between the architectural orientation of the spatial design element and the architectural orientation of the reference spatial design element;

[0029] Calculating the landscape similarity between the landscape of the spatial design element and the landscape of the reference spatial design element;

[0030] The spatial design element similarity is calculated based on the building form similarity, the building orientation similarity, the landscape similarity, a preset building form similarity weight value, a preset building orientation similarity weight value, and a preset landscape similarity weight value.

[0031] Based on the above embodiment, another embodiment of the present invention provides a device for recognizing design drawings of overseas Chinese hometowns, comprising: a design drawing acquisition module, a style recognition and scoring module, a preprocessing module, a basic component scoring module, a spatial design element scoring module, and a recognition result output module;

[0032] The design drawing acquisition module is used to acquire the design drawing to be identified;

[0033] The style recognition and scoring module is used to input the design drawing into a trained style recognition and scoring model, so that the style recognition and scoring model outputs the style type of the design drawing and the corresponding style score; the style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type;

[0034] The pre-processing module is used to extract a number of basic components and spatial design elements based on the design drawing; wherein the types of basic components include: doors, windows, columns, patios and roofs; the spatial design elements include: building form, building orientation and landscape;

[0035] The basic component scoring module is configured to select a corresponding reference basic component from a preset basic component library according to the style type; calculate, for each basic component, the basic component similarity between the basic component and the reference basic component; and calculate the basic component score of the design drawing based on all basic component similarities and a preset weight value for each basic component;

[0036] The spatial design element scoring module is configured to select corresponding reference spatial design elements from a preset spatial design element library according to the style type; calculate, for each spatial design element, the spatial design element similarity between the spatial design element and the reference spatial design element; and calculate the spatial design element score of the design drawing based on the similarities of all spatial design elements and a preset weight value for each spatial design element;

[0037] The recognition result output module is used to calculate the comprehensive score of the design drawing based on the style score, the basic component score, the spatial design element score and the preset weight values ​​of each score; determine whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, determine that the design drawing is a design drawing with the style of an overseas Chinese hometown, and determine that the design drawing is a design drawing of the style type; if not, determine that the design drawing is not a design drawing with the style of an overseas Chinese hometown.

[0038] Based on the above embodiments, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the method for identifying the design drawings of the overseas Chinese hometown style described in the above embodiments of the invention.

[0039] Based on the above embodiments, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for identifying the design drawings of the overseas Chinese hometown landscape described in the above embodiment of the invention.

[0040] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0041] The present invention obtains a design drawing to be identified; inputs the design drawing into a trained style recognition and scoring model, so that the style recognition and scoring model outputs a style type and a corresponding style score of the design drawing; extracts a number of basic components and spatial design elements based on the design drawing; selects a corresponding reference basic component from a preset basic component library based on the style type; calculates, for each basic component, a basic component similarity between the basic component and the reference basic component; calculates a basic component score of the design drawing based on all basic component similarities and a preset weight value of each basic component; selects a corresponding reference spatial design element from a preset spatial design element library based on the style type; For each spatial design element, calculate the spatial design element similarity between the spatial design element and the reference spatial design element; calculate the spatial design element score of the design drawing based on the similarities of all spatial design elements and the preset weight value of each spatial design element; calculate the comprehensive score of the design drawing based on the style score, the basic component score, the spatial design element score and the preset weight value of each score; judge whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type, if so, determine that the design drawing is an overseas Chinese hometown style design drawing, and determine that the design drawing is a design drawing of the style type, if not, determine that the design drawing is not an overseas Chinese hometown style design drawing. The present invention can automatically identify whether a design drawing is an overseas Chinese hometown style design drawing and can identify the specific overseas Chinese hometown style type, solving the technical problems of large errors and time-consuming and labor-intensive caused by the existing technology relying on manual identification of design drawings, saving manpower, and improving efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of a method for identifying a design drawing of an overseas Chinese hometown provided by one embodiment of the present invention;

[0043] Figure 2 It is a structural schematic diagram of a device for identifying a design drawing of an overseas Chinese hometown provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0044] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0046] In the description of the embodiments of the present application, “several” means two or more than two, unless otherwise clearly and specifically defined.

[0047] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0049] Example 1

[0050] Please refer to Figure 1 , which is a flow chart of a method for identifying a design drawing of an overseas Chinese hometown provided by one embodiment of the present invention, including:

[0051] S1. Obtain a design drawing to be identified.

[0052] S2. Input the design drawing into a trained style recognition and scoring model so that the style recognition and scoring model outputs the style type of the design drawing and the corresponding style score; the style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type.

[0053] It should be noted that the method for identifying design drawings of overseas Chinese hometowns provided in this invention is primarily used to identify designs of overseas Chinese hometowns in Guangdong. Overseas Chinese hometown architecture in Guangdong is primarily divided into three categories: Cantonese, Chaoshan, and Hakka. Therefore, the style recognition and scoring model may output the following styles: Cantonese, Chaoshan, and Hakka.

[0054] In this example, a design drawing is fed into a trained style recognition and scoring model, which then performs two prediction tasks: first, predicting the design drawing's style type; and second, scoring the similarity between the design drawing's actual style type and the predicted style type. The model outputs the predicted style type and a style score.

[0055] In a preferred embodiment, the training process of the style recognition and scoring model includes:

[0056] Obtaining a number of sample design drawings and the style type and corresponding style score of each sample design drawing;

[0057] Set labels for sample design drawings according to their style type and style score;

[0058] An initial style recognition and scoring model is constructed, with the sample design drawing as input and the predicted style type and corresponding style score of the sample design drawing as output, and the style recognition and scoring model is trained to obtain a trained style recognition and scoring model.

[0059] It should be noted that the value range of the style score is [0,1].

[0060] In this embodiment, the sample design drawings include several Cantonese-style architectural sample design drawings, several Chaoshan-style architectural sample design drawings, several Hakka-style architectural sample design drawings, and several other style architectural sample design drawings. Among them, the Cantonese-style architectural sample design drawings have a Cantonese style and a style score of 1; the Chaoshan-style architectural sample design drawings have a Chaoshan style and a style score of 1; the Hakka-style architectural sample design drawings have a Hakka style and a style score of 1; and the other style architectural sample design drawings have a Cantonese, Chaoshan, or Hakka style and a style score of 0.

[0061] In a preferred embodiment, the style recognition and scoring model is a VGG convolutional neural network; all convolutional layers of the VGG convolutional neural network use a small-size convolution kernel of 3×3.

[0062] In this embodiment, the VGG convolutional neural network used in the present invention consists of multiple convolutional and pooling layers stacked alternately, followed by several fully connected layers and an output layer. All convolutional layers use small 3×3 convolution kernels, making the model easier to understand and implement, and effectively extracting feature information from images.

[0063] In a preferred embodiment, when training the style recognition and scoring model, the sample design drawing is input into the style recognition and scoring model to obtain a predicted style type and a corresponding style score as a prediction result;

[0064] According to the preset loss function, calculate the loss function value of the prediction result and the corresponding label;

[0065] The style scoring model is optimized according to the loss function value so that the loss function value converges.

[0066] In a preferred embodiment, the loss function is a cross entropy loss function.

[0067] In this embodiment, the expression of the cross entropy loss function is:

[0068]

[0069] Where Loss represents the loss function value; N represents the number of sample design drawings; c represents the number of style types; y ij represents the true label of the i-th sample design drawing, which is 1 if the sample design drawing belongs to the j-th style type, otherwise it is 0; ij It represents the probability that the model predicts the i-th sample design drawing to be of the j-th style type. If the model does not predict the probability of a certain style type, the default value is 0.

[0070] It should be noted that the goal of the cross-entropy loss function is to minimize the difference between the model's predicted probability and the true label, that is, to make the model's prediction as close to the true label as possible. Based on the loss function, an optimization algorithm is selected to adjust the model to ensure stable convergence during training.

[0071] S3. Extract a number of basic components and spatial design elements based on the design drawing; wherein the types of the basic components include: doors, windows, columns, patios and roofs; the spatial design elements include: building form, building orientation and landscape.

[0072] In step S3, semantic segmentation technology is used to extract basic components from the design drawings. Basic components include doors, windows, columns, patios, and roofs. Image recognition technology is used to extract spatial design elements from the design drawings. Spatial design elements include architectural form, building orientation, and landscape. Architectural form refers to the spatial form of a building. For example, the spatial forms of Hakka architecture include the dragon-enclosed house, courtyard house, horse-drawn building, and stilt house. Landscape includes natural landscape and man-made landscape. Natural landscape depends on the specific local environment, while man-made landscape needs to be considered based on human factors such as local customs, history, and religious beliefs.

[0073] S4. Select corresponding reference basic components from a preset basic component library according to the style type; calculate the basic component similarity between each basic component and the reference basic component; and calculate the basic component score of the design drawing according to all basic component similarities and a preset weight value of each basic component.

[0074] It should be noted that the basic component library contains reference basic components of various styles, including door, window, column, patio, and roof types. For example, in Hakka architecture, door reference basic components include arches, rectangular doors, moon gates, and double doors. Window reference basic components include wooden windows, stone windows, stained glass windows, paper windows, lattice windows, sliding windows, screen windows, moon doors and windows, and lattice windows. Column reference basic components include load-bearing columns, decorative columns, corridor columns, bracket columns, corner columns, and sacred columns. Patio reference basic components include courtyard-style patios, wall-type patios, corner patios, corridor-style patios, atrium-style patios, well-shaped patios, skylight patios, circular patios, and open patios. Roof reference basic components include hipped roofs, five-phoenix roofs, gable roofs, hipped roofs, gable roofs, rounded roofs, gabled roofs, and gabled roofs. The infrastructure score is used to quantify the similarity between the infrastructure of the design and the infrastructure of the predicted style type.

[0075] In step S4, the basic component similarity between each basic component and the corresponding reference basic component of the same style type is calculated, and then a basic component score is calculated according to the weight value of each basic component.

[0076] In a preferred embodiment, the calculating the basic component similarity between the basic component and the reference basic component includes:

[0077] Extracting the pattern, decoration type and shape of the basic component;

[0078] calculating a pattern similarity between the pattern and the pattern of the reference base component;

[0079] calculating a decoration type similarity between the decoration type and the decoration type of the reference base component;

[0080] Calculating the shape similarity between the shape and the shape of the reference basic component;

[0081] The basic component similarity is calculated according to the pattern similarity, the decoration type similarity, the shape similarity, a preset pattern similarity weight value, a preset decoration type similarity weight value, and a shape similarity weight value.

[0082] It's important to note that the basic component library also stores details such as the pattern, decoration type, and shape of each reference basic component. Decoration types can be categorized based on material, craftsmanship, decorative theme, and application location. For example, by material, decoration types include wood, masonry, plaster, ceramic, glass, and metal; by application location, decoration types include roof decoration, wall decoration, door and window decoration, and platform decoration. Shape refers to the main outline of the basic component.

[0083] In this embodiment, the pattern, decoration type and shape are extracted from the basic component through image recognition technology, and the similarity is calculated with the pattern, decoration type and shape of the reference basic component respectively to obtain the pattern similarity, decoration type similarity and shape similarity, and then the basic component similarity is calculated according to the preset weight value.

[0084] S5. According to the style type, select corresponding reference spatial design elements from a preset spatial design element library; for each spatial design element, calculate the spatial design element similarity between the spatial design element and the reference spatial design element; according to the similarities of all spatial design elements and the preset weight value of each spatial design element, calculate the spatial design element score of the design drawing.

[0085] It should be noted that the spatial design element library contains reference spatial design elements for various styles, including architectural forms, building orientations, and landscapes. The spatial design element score quantifies the similarity between the spatial design elements of the design drawing and the spatial design elements of the predicted style.

[0086] In step S5 , the spatial design element similarity between each spatial design element and the corresponding spatial design element of the same style type is calculated, and then the spatial design element score is calculated according to each spatial design element similarity.

[0087] In a preferred embodiment, the calculating the spatial design element similarity between the spatial design element and the reference spatial design element includes:

[0088] Calculating the architectural form similarity between the architectural form of the spatial design element and the architectural form of the reference spatial design element;

[0089] Calculating the architectural orientation similarity between the architectural orientation of the spatial design element and the architectural orientation of the reference spatial design element;

[0090] Calculating the landscape similarity between the landscape of the spatial design element and the landscape of the reference spatial design element;

[0091] The spatial design element similarity is calculated based on the building form similarity, the building orientation similarity, the landscape similarity, a preset building form similarity weight value, a preset building orientation similarity weight value, and a preset landscape similarity weight value.

[0092] In this embodiment, the architectural form similarity, architectural orientation similarity and landscape similarity between the spatial design elements of the design drawing and the reference spatial design elements are calculated respectively, and then the spatial design element similarity is calculated according to the preset weight value.

[0093] S6. Calculate the comprehensive score of the design drawing based on the style score, the basic component score, the space design element score and the preset weight values ​​of each score; determine whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, determine that the design drawing is a design drawing of the style of an overseas Chinese hometown, and determine that the design drawing is a design drawing of the style type. If not, determine that the design drawing is not a design drawing of the style of an overseas Chinese hometown.

[0094] In step S6, a comprehensive score of the design drawing is calculated based on the style score, the basic component score, the spatial design element score, the weighted value of the style score, the weighted value of the basic component score, and the weighted value of the spatial design element score. Based on the predicted style type, a comprehensive score threshold corresponding to the style type is determined, and it is determined whether the calculated comprehensive score reaches the comprehensive score threshold. If so, the design drawing is determined to be a design drawing with the style of an overseas Chinese hometown, specifically a design drawing with the predicted style type. If not, the design drawing is determined not to be a design drawing with the style of an overseas Chinese hometown.

[0095] Example 2

[0096] Please refer to Figure 2 , which is a schematic diagram of the structure of a device for recognizing design drawings of overseas Chinese hometowns provided by one embodiment of the present invention, comprising: a design drawing acquisition module, a style recognition and scoring module, a preprocessing module, a basic component scoring module, a spatial design element scoring module, and a recognition result output module;

[0097] The design drawing acquisition module is used to acquire the design drawing to be identified;

[0098] The style recognition and scoring module is used to input the design drawing into a trained style recognition and scoring model, so that the style recognition and scoring model outputs the style type of the design drawing and the corresponding style score; the style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type;

[0099] The pre-processing module is used to extract a number of basic components and spatial design elements based on the design drawing; wherein the types of basic components include: doors, windows, columns, patios and roofs; the spatial design elements include: building form, building orientation and landscape;

[0100] The basic component scoring module is configured to select a corresponding reference basic component from a preset basic component library according to the style type; calculate, for each basic component, the basic component similarity between the basic component and the reference basic component; and calculate the basic component score of the design drawing based on all basic component similarities and a preset weight value for each basic component;

[0101] The spatial design element scoring module is configured to select corresponding reference spatial design elements from a preset spatial design element library according to the style type; calculate, for each spatial design element, the spatial design element similarity between the spatial design element and the reference spatial design element; and calculate the spatial design element score of the design drawing based on the similarities of all spatial design elements and a preset weight value for each spatial design element;

[0102] The recognition result output module is used to calculate the comprehensive score of the design drawing based on the style score, the basic component score, the spatial design element score and the preset weight values ​​of each score; determine whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, determine that the design drawing is a design drawing with the style of an overseas Chinese hometown, and determine that the design drawing is a design drawing of the style type; if not, determine that the design drawing is not a design drawing with the style of an overseas Chinese hometown.

[0103] Example 3

[0104] Accordingly, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the method for identifying the design drawings of the overseas Chinese hometown landscape described in the above-mentioned embodiment of the invention.

[0105] Example 4

[0106] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for identifying the design drawings of the overseas Chinese hometown landscape described in the above-mentioned embodiment of the invention.

[0107] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement the present invention without inventive work.

[0108] Those skilled in the art will clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0109] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0110] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, connecting various parts of the entire device using various interfaces and lines.

[0111] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0112] The storage medium is a storage medium, and the computer program is stored in the storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned method embodiments. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0113] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for identifying design drawings of overseas Chinese hometowns, characterized in that: include: Obtaining a design drawing to be identified; Inputting the design drawing into a trained style recognition and scoring model so that the style recognition and scoring model outputs a predicted style type and a corresponding style score of the design drawing; The style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type; The styles of the overseas Chinese hometown architecture include: Cantonese architecture, Chaoshan architecture and Hakka architecture; Extracting a number of basic components and spatial design elements based on the design drawing; wherein the types of basic components include: doors, windows, columns, patios and roofs; and the spatial design elements include: building form, building orientation and landscape; According to the predicted style type, a corresponding reference basic component is selected from a preset basic component library; for each basic component, a basic component similarity between the basic component and the reference basic component is calculated; based on all basic component similarities and a preset weight value of each basic component, a basic component score of the design drawing is calculated; According to the predicted style type, a corresponding reference spatial design element is selected from a preset spatial design element library; for each spatial design element, a spatial design element similarity between the spatial design element and the reference spatial design element is calculated; based on all spatial design element similarities and a preset weight value of each spatial design element, a spatial design element score of the design drawing is calculated; The comprehensive score of the design drawing is calculated based on the style score, the basic component score, the spatial design element score and the preset weight values ​​of each score; it is determined whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, it is determined that the design drawing is a design drawing with the style of an overseas Chinese hometown, and the design drawing is determined to be a design drawing of the style type. If not, it is determined that the design drawing is not a design drawing with the style of an overseas Chinese hometown.

2. The method for recognizing the design drawings of hometowns of overseas Chinese as claimed in claim 1, characterized in that: The training process of the style recognition and scoring model includes: Obtaining a number of sample design drawings and the style type and corresponding style score of each sample design drawing; Set labels for sample design drawings according to their style type and style score; An initial style recognition and scoring model is constructed, with the sample design drawing as input and the predicted style type and corresponding style score of the sample design drawing as output, and the style recognition and scoring model is trained to obtain a trained style recognition and scoring model.

3. The method for recognizing the design drawings of hometowns of overseas Chinese as claimed in claim 2, characterized in that: The style recognition and scoring model is a VGG convolutional neural network; all convolutional layers of the VGG convolutional neural network use a small-size convolution kernel of 3×3.

4. The method for recognizing the design drawing of the hometown of overseas Chinese as claimed in claim 3, characterized in that: When training the style recognition and scoring model, the sample design drawing is input into the style recognition and scoring model to obtain a predicted style type and a corresponding style score as a prediction result; According to the preset loss function, calculate the loss function value of the prediction result and the corresponding label; The style recognition and scoring model is optimized according to the loss function value so that the loss function value converges.

5. The method for recognizing the design drawing of the hometown of overseas Chinese as claimed in claim 4, characterized in that: The loss function is a cross entropy loss function.

6. The method for recognizing the design drawings of hometowns of overseas Chinese as claimed in claim 1, characterized in that: The calculating the basic component similarity between the basic component and the reference basic component includes: Extracting the pattern, decoration type and shape of the basic component; calculating a pattern similarity between the pattern and the pattern of the reference base component; calculating a decoration type similarity between the decoration type and the decoration type of the reference base component; Calculating the shape similarity between the shape and the shape of the reference basic component; The basic component similarity is calculated according to the pattern similarity, the decoration type similarity, the shape similarity, a preset pattern similarity weight value, a preset decoration type similarity weight value, and a shape similarity weight value.

7. The method for recognizing the design drawings of hometowns of overseas Chinese as claimed in claim 1, characterized in that: The calculating the spatial design element similarity between the spatial design element and the reference spatial design element includes: Calculating the architectural form similarity between the architectural form of the spatial design element and the architectural form of the reference spatial design element; Calculating the architectural orientation similarity between the architectural orientation of the spatial design element and the architectural orientation of the reference spatial design element; Calculating the landscape similarity between the landscape of the spatial design element and the landscape of the reference spatial design element; The spatial design element similarity is calculated based on the building form similarity, the building orientation similarity, the landscape similarity, a preset building form similarity weight value, a preset building orientation similarity weight value, and a preset landscape similarity weight value.

8. A device for recognizing design drawings of hometowns of overseas Chinese, characterized in that: include: Design drawing acquisition module, style recognition and scoring module, preprocessing module, basic component scoring module, spatial design element scoring module and recognition result output module; The design drawing acquisition module is used to acquire the design drawing to be identified; The style recognition and scoring module is used to input the design drawing into a trained style recognition and scoring model, so that the style recognition and scoring model outputs a predicted style type and a corresponding style score of the design drawing; The style score is used to quantify the similarity between the actual style type of the design drawing and the predicted style type; The styles of the overseas Chinese hometown architecture include: Cantonese architecture, Chaoshan architecture and Hakka architecture; The pre-processing module is used to extract a number of basic components and spatial design elements based on the design drawing; wherein the types of basic components include: doors, windows, columns, patios and roofs; the spatial design elements include: building form, building orientation and landscape; The basic component scoring module is configured to select a corresponding reference basic component from a preset basic component library according to the predicted style type; calculate, for each basic component, the basic component similarity between the basic component and the reference basic component; and calculate a basic component score for the design drawing based on all basic component similarities and a preset weight value for each basic component; The spatial design element scoring module is configured to select corresponding reference spatial design elements from a preset spatial design element library based on the predicted style type; calculate, for each spatial design element, the spatial design element similarity between the spatial design element and the reference spatial design element; and calculate the spatial design element score of the design drawing based on the similarities of all spatial design elements and a preset weight value for each spatial design element; The recognition result output module is used to calculate the comprehensive score of the design drawing based on the style score, the basic component score, the spatial design element score and the preset weight values ​​of each score; determine whether the comprehensive score reaches the preset comprehensive score threshold corresponding to the style type. If so, determine that the design drawing is a design drawing with the style of an overseas Chinese hometown, and determine that the design drawing is a design drawing of the style type; if not, determine that the design drawing is not a design drawing with the style of an overseas Chinese hometown.

9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method for identifying the design drawings of the overseas Chinese hometown landscape is implemented as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for identifying the design drawings of the hometown of overseas Chinese as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Building component detection and identification method and device, computer equipment and storage medium

    CN116189220A

  • Historical architectural style identification method and device, equipment and medium

    CN118072164A