Obtaining method and device of target area and computer equipment

By acquiring two-dimensional image information and processing it using the image segmentation model, it solves the problem of low efficiency of deep learning technology in single processing of point cloud data, achieves efficient target area screening and accuracy, and reduces data labeling and operation costs. .

CN118781133APending Publication Date: 2024-10-15SHANG HAI ZHANG JIANG SHU XUE YAN JIU YUAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410698739.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Point cloud segmentation technology based on deep learning requires a large amount of labeled data and high algorithm complexity when processing three-dimensional point cloud data, resulting in low single processing efficiency of point cloud data.

Method used

By acquiring two-dimensional image information, the preset image segmentation model is used for plane structure processing, feature points are selected and the target area is filtered, and then the target area is matched from the original three-dimensional point cloud data to reduce data labeling and improve processing efficiency.

Benefits of technology

It improves the efficiency of information screening in the target area, reduces manual operations and costs, and at the same time ensures the accuracy and screening efficiency of the target area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781133A_ABST
    Figure CN118781133A_ABST
Patent Text Reader

Abstract

The invention relates to a target area acquisition method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring two-dimensional image information; wherein the two-dimensional image information comprises a target area; inputting the two-dimensional image information into a preset image segmentation model, and outputting to obtain a plane structure of the two-dimensional image information; wherein the feature points in the planar structure correspond to a feature region predicted by a model; selecting feature points of a target region in the planar structure, wherein the selected feature region is a target feature point of the target region; and performing information screening on the two-dimensional image information according to the target feature point to obtain the target area. By adopting the method, the obtaining efficiency of the target area can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, computer equipment, storage medium and computer program product for acquiring a target area. Background Art

[0002] With the development of computer vision technology, three-dimensional point cloud data has emerged. Three-dimensional point cloud data is spatial data composed of a large number of discrete points, which can accurately reflect the shape and structure of an object. However, in the actual use and analysis process, due to the large volume of point cloud data, it is difficult to analyze or process the entire point cloud data, so the point cloud data needs to be processed individually.

[0003] In traditional technology, point cloud segmentation technology based on deep learning is used for individual processing. Although this method can effectively achieve the segmentation and recognition of point cloud data, point cloud segmentation technology based on deep learning requires a large amount of labeled data for training, the algorithm is highly complex, and it takes a lot of time to calculate, resulting in low efficiency in individual processing of point cloud data. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for obtaining a target area in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for acquiring a target area. The method comprises:

[0006] Acquire two-dimensional image information; wherein the two-dimensional image information includes a target area;

[0007] Inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model;

[0008] Selecting feature points of a target area in the plane structure, and selecting the feature area as a target feature point of the target area;

[0009] The two-dimensional image information is screened according to the target feature points to obtain the target area.

[0010] In one of the embodiments, the step of selecting the feature points of the target area in the plane structure and selecting the feature area as the target feature points of the target area includes:

[0011] Selecting candidate feature points of a target area in the plane structure to obtain feature areas corresponding to the candidate feature points;

[0012] When the feature area corresponding to the candidate feature point is the target area, the candidate feature point is determined to be the target feature point.

[0013] In one embodiment, the condition that the feature area corresponding to the candidate feature point is the target area includes:

[0014] The feature area corresponding to the single candidate feature point in the target area is the target area; or

[0015] The feature regions corresponding to the multiple candidate feature points in the target region are merged to obtain a feature region; the feature region is the target region.

[0016] In one embodiment, the obtaining of two-dimensional image information includes:

[0017] Obtaining original three-dimensional point cloud data containing the target area;

[0018] Using a preset data dimensionality reduction algorithm, the original three-dimensional point cloud data is processed to obtain a two-dimensional projection plane of the original three-dimensional point cloud data;

[0019] According to a preset projection angle, the original three-dimensional point cloud data is projected onto the two-dimensional projection plane to obtain two-dimensional image information.

[0020] In one embodiment, after filtering the two-dimensional image information according to the target feature points to obtain the target area, the method further includes:

[0021] According to the two-dimensional image information of the target area, matching the three-dimensional point cloud data of the target area from the original three-dimensional point cloud data;

[0022] A model is established for the three-dimensional point cloud data of the target area to obtain a three-dimensional model of the target area.

[0023] In one embodiment, the step of filtering the two-dimensional image information according to the target feature points to obtain the target area includes:

[0024] Inputting the target feature points and the two-dimensional image information into a pre-trained segmentation model to obtain boundary information of the target area in the two-dimensional image;

[0025] The two-dimensional image information is segmented using a preset convolutional neural network and boundary information of the target area in the two-dimensional image to obtain the target area.

[0026] In a second aspect, the present application also provides a device for acquiring a target area. The device comprises:

[0027] An image acquisition module, used to acquire two-dimensional image information; wherein the two-dimensional image information includes a target area;

[0028] A model prediction module, used for inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model;

[0029] A feature selection module is used to select feature points of a target area in the plane structure, and select the feature area as a target feature point of the target area;

[0030] The target screening module is used to screen the two-dimensional image information according to the target feature points to obtain the target area.

[0031] In one embodiment, the feature selection module includes:

[0032] A feature selection submodule is used to select candidate feature points of the target area in the plane structure to obtain feature areas corresponding to the candidate feature points;

[0033] The feature selection submodule is further configured to determine the candidate feature point as a target feature point when the feature area corresponding to the candidate feature point is a target area.

[0034] In one embodiment, the condition that the feature area corresponding to the candidate feature point is the target area includes:

[0035] The feature area corresponding to the single candidate feature point in the target area is the target area; or

[0036] The feature regions corresponding to the multiple candidate feature points in the target region are merged to obtain a feature region; the feature region is the target region.

[0037] In one embodiment, the image acquisition module includes:

[0038] A data acquisition submodule is used to acquire original three-dimensional point cloud data containing the target area;

[0039] A data dimension reduction submodule, used to process the original three-dimensional point cloud data using a preset data dimension reduction algorithm to obtain a two-dimensional projection plane of the original three-dimensional point cloud data;

[0040] The data projection submodule is used to project the original three-dimensional point cloud data onto the two-dimensional projection plane according to a preset projection angle to obtain two-dimensional image information.

[0041] In one embodiment, the feature selection module includes:

[0042] A data matching submodule, used for matching the three-dimensional point cloud data of the target area from the original three-dimensional point cloud data according to the two-dimensional image information of the target area;

[0043] The data modeling submodule is used to establish a model for the three-dimensional point cloud data of the target area to obtain a three-dimensional model of the target area.

[0044] In one embodiment, the, comprising:

[0045] A model prediction submodule, used to input the target feature points and the two-dimensional image information into a pre-trained segmentation model to obtain boundary information of the target area in the two-dimensional image;

[0046] The image segmentation submodule is used to segment the two-dimensional image information by using a preset convolutional neural network and boundary information of the target area in the two-dimensional image to obtain the target area.

[0047] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for acquiring a target area as described in any one of the embodiments of the present disclosure is implemented.

[0048] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for acquiring a target area as described in any one of the embodiments of the present disclosure is implemented.

[0049] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for acquiring a target area as described in any one of the embodiments of the present disclosure is implemented.

[0050] The target area acquisition method, device, computer equipment, storage medium and computer program product described above obtain the plane structure of the two-dimensional image information by using a preset image segmentation model, use the plane structure to summarize the feature areas predicted by the model corresponding to different feature points, select the target feature points corresponding to the target area, and use the target feature points to obtain the target area in the two-dimensional image information. The image segmentation model is used to establish the plane structure, and the target area is confirmed by the feature points, thereby ensuring the accuracy of the target area and improving the efficiency of the target area information screening. In the above manner, the data marking is greatly reduced, the efficiency of screening the target area information is greatly improved, and at the same time, the manual operation is reduced, and the cost of the target area information screening is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a schematic flow chart of a method for acquiring a target area in one embodiment;

[0052] Figure 2 A schematic diagram of a process for selecting target feature points in one embodiment;

[0053] Figure 3 A schematic diagram of a process of generating a two-dimensional image from a three-dimensional point cloud in one embodiment;

[0054] Figure 4 A schematic diagram of a process of mapping a two-dimensional image to obtain a three-dimensional model in one embodiment;

[0055] Figure 5 A schematic diagram of a process of obtaining a target two-dimensional image using feature points in one embodiment;

[0056] Figure 6 It is a schematic diagram of a process of realizing individual buildings by using a method for acquiring a target area in one embodiment;

[0057] Figure 7 A schematic diagram of three-dimensional point cloud data captured by a drone in one embodiment;

[0058] Figure 8 A schematic diagram of a two-dimensional image obtained by projecting three-dimensional point cloud data in one embodiment;

[0059] Fig. 9 A first schematic diagram of selecting feature points of a two-dimensional image in one embodiment;

[0060] Fig.10 A second schematic diagram of selecting feature points of a two-dimensional image in one embodiment;

[0061] Fig.11 is a schematic diagram of a two-dimensional mask image of a target area in one embodiment;

[0062] Fig.12 is a schematic diagram of a three-dimensional model of a target building in one embodiment;

[0063] Fig.13 is a structural block diagram of a device for acquiring a target area in an embodiment;

[0064] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0066] In one embodiment, Figure 1 As shown, a method for obtaining a target area is provided. This embodiment takes the method applied to a terminal as an example for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0067] Step S100, acquiring two-dimensional image information; wherein the two-dimensional image information includes a target area.

[0068] In an exemplary embodiment, the two-dimensional image information may include photographing an object from a top-down or oblique perspective, for example, using a drone to photograph a building from a top-down perspective. In another exemplary embodiment, the two-dimensional image information may include reducing the dimension of a three-dimensional image. In another exemplary embodiment, the two-dimensional image information may include converting a three-dimensional coordinate image into a two-dimensional coordinate image to obtain the two-dimensional image information.

[0069] In an exemplary embodiment, the target area may include a building area in the two-dimensional image, including the entire area of ​​the target building in the two-dimensional image; for example, the building seen from a bird's-eye view is only the top surface of the building, etc.

[0070] In an exemplary embodiment, the target area may include a covered area or an uncovered area; for example, a building in a two-dimensional image blocks part of the information of the target building, and the blocked part may be selected as the target building, or the blocked part may not be the target building.

[0071] Step S200, inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model.

[0072] In an exemplary embodiment, the image segmentation model is used to convert two-dimensional image information into a plane structure, wherein each point in the plane structure may correspond to a partial area around the point; specifically, the plane structure may include a plane model, and by selecting a point in the plane model, the area corresponding to the point may be obtained; for example, in a plane model of a fruit, when one of the points of a banana in the plane model is selected, the area corresponding to the point is the banana, and similarly, it may include a banana and other parts, or part of a banana and other parts, as well as part of a banana, etc.

[0073] In an exemplary embodiment, the feature area predicted by the model corresponding to the feature point is specifically displayed on the plane structure when the target point is selected.

[0074] In an exemplary embodiment, the feature points in the plane structure may include points in the two-dimensional image itself or feature points generated after prediction by an image segmentation model, etc. For example, the two-dimensional image is an XOY plane, in which case all coordinate points can be a feature point; or a certain pixel in the image can also be a feature point, etc.

[0075] In an exemplary embodiment, the image segmentation model may include FastSAM (used as a segmentation model for everything), etc.; specifically, it may include using the point prompt in FastSAM to annotate the two-dimensional image information to obtain feature points and feature areas corresponding to the feature points, etc.

[0076] Step S300 , selecting feature points of a target area in the plane structure, and selecting the feature area as a target feature point of the target area.

[0077] In an exemplary embodiment, the process of selecting feature points may include selecting multiple feature points, and merging feature areas corresponding to the multiple feature points to obtain a feature area, where the obtained feature area is the target area, and the set of the multiple feature points is the target feature point.

[0078] In an exemplary embodiment, the two-dimensional image information may include multiple independent target areas, and different feature points may be used to select different areas to obtain target feature points of each opposing target area. For example, different colors may be used for different target feature points to indicate the areas they represent.

[0079] Step S400: filtering the two-dimensional image information according to the target feature points to obtain the target area.

[0080] In an exemplary embodiment, the screening of the two-dimensional image information may include segmenting the two-dimensional image using the feature areas corresponding to the feature points to obtain the segmented target area. For example, segmenting the two-dimensional image to obtain a mask image of the target area.

[0081] In an exemplary embodiment, the two-dimensional image information includes information about the obscured portion; the target area is the target information corresponding to the two-dimensional image information. For example, the two-dimensional image is a plurality of buildings, the target area is one of the buildings, and the target building is obscured by other buildings, but the two-dimensional image contains information about the obscured portion, then the target information corresponding to the two-dimensional image information can be obtained. In another exemplary embodiment, the two-dimensional image information does not include information about the obscured portion, then the obscured portion of the target area can be predicted. For example, the two-dimensional image is a plurality of buildings, the target area is one of the buildings, but the building is obscured by other buildings, then the obscured portion is predicted, the image information of the obscured portion of the target area is obtained, and the complete image information of the target area is obtained.

[0082] In the above-mentioned method for acquiring the target area, the plane structure of the two-dimensional image information is obtained by using a preset image segmentation model, and the feature areas predicted by the model corresponding to different feature points are summarized by using the plane structure, and the target feature points corresponding to the target area are selected, and the target feature points are used to obtain the target area in the two-dimensional image information. The image segmentation model is used to establish a plane structure, and the target area is confirmed by the feature points, which ensures the accuracy of the target area and improves the efficiency of the target area information screening. Through the above-mentioned method, the data marking is greatly reduced, the efficiency of screening the target area information is greatly improved, and at the same time, the manual operation is reduced, and the cost of the target area information screening is reduced.

[0083] In one embodiment, Figure 2 As shown, the step of selecting the feature points of the target area in the plane structure and selecting the feature area as the target feature points of the target area includes:

[0084] Step S201 : selecting candidate feature points of a target area in the plane structure to obtain feature areas corresponding to the candidate feature points.

[0085] In an exemplary embodiment, the selection of the candidate feature points can obtain the feature regions corresponding to the candidate feature points. Specifically, the selection of the feature points includes pre-selection of the feature points, and the feature regions corresponding to the feature points are checked through the pre-selection.

[0086] In an exemplary embodiment, the feature region may include an occluded region, wherein the source of the occluded portion may include information contained in the two-dimensional image information, obtained by predicting the occluded portion using target region information, and the like.

[0087] Step S202: when the feature area corresponding to the candidate feature point is the target area, determine the candidate feature point as a target feature point.

[0088] In an exemplary embodiment, the case where the feature area corresponding to the candidate feature point is the target area includes that the feature area corresponding to the feature point coincides with the target area, or there is a certain deviation from the target area, etc. For example, the feature area can contain the feature information of all target areas, then the feature area is considered to be the target area.

[0089] In this embodiment, the feature area corresponding to the candidate feature point is checked through the candidate feature point, and the feature area is selected as the feature point of the target area. By checking the feature area corresponding to the candidate feature point, it is avoided to mark the whole feature area, and the screening efficiency of the target area is improved; at the same time, the feature area can be accurately obtained as the feature point of the target area, which increases the accuracy of the target feature point selection and the accuracy of the target area information screening.

[0090] In one embodiment, the condition that the feature area corresponding to the candidate feature point is the target area includes:

[0091] The feature area corresponding to the single candidate feature point in the target area is the target area; or

[0092] The feature regions corresponding to the multiple candidate feature points in the target region are merged to obtain a feature region; the feature region is the target region.

[0093] In an exemplary embodiment, the feature areas corresponding to the merged multiple candidate feature points may include the total area of ​​the feature areas corresponding to the multiple feature points in the two-dimensional image. For example, feature point A corresponds to the area {a, b}, and feature point B corresponds to the area {a, c}. Then, the feature area of ​​the merged feature point A and feature point B should be {a, b, c}.

[0094] In an exemplary embodiment, after a feature point is selected, the area of ​​the feature point will continue to be marked in the two-dimensional image, and when the second feature point is selected, the merged area of ​​the first feature point and the feature area of ​​the second feature point will be marked accordingly. For example, the target area is a banana, and the feature area corresponding to the first feature point is a partial area of ​​the banana. In this case, when the feature point is selected, the partial area will continue to be marked. When the second feature point is another area of ​​the banana, or a partial area of ​​another area, the second feature point is selected, and the area corresponding to the first feature point and the second feature point will be marked, and feature points will continue to be selected until the entire banana is marked.

[0095] In this embodiment, the target feature point of the feature area is determined to be a single feature point or multiple feature points. Multiple feature points are used for the target area, and different sub-areas of the target area are screened using multiple feature points, so that the target area is more accurate. At the same time, it also avoids the feature area corresponding to no single candidate feature point as the target area, thereby improving the accuracy and completeness of the target area screening.

[0096] In one embodiment, Figure 3 As shown, the obtaining of two-dimensional image information includes:

[0097] Step S101, obtaining original three-dimensional point cloud data including a target area.

[0098] In an exemplary embodiment, the three-dimensional point cloud data may be obtained by photographing the object or area. For example, when acquiring the three-dimensional point cloud data of a building, the three-dimensional point cloud data of the building may be photographed obliquely by a drone.

[0099] Step S102: Process the original three-dimensional point cloud data using a preset data dimensionality reduction algorithm to obtain a two-dimensional projection plane of the original three-dimensional point cloud data.

[0100] In an exemplary embodiment, the acquisition of the two-dimensional projection plane of the three-dimensional point cloud data may include performing XOY plane registration on the three-dimensional point cloud data, etc. For example, the three-dimensional point cloud data may be registered with the principal component analysis (PCA) method. Specifically, the three-dimensional point cloud data may be registered with the principal component analysis method as follows: performing standardization processing on the three-dimensional point cloud data, calculating the covariance matrix after the standardization processing, and obtaining the eigenvalues ​​and the eigenmatrix of the original data using the covariance matrix, selecting the eigenvectors corresponding to the largest preset number of eigenvalues ​​as the principal components according to the size of the eigenvalues, and projecting the original data onto the selected principal components to obtain the XOY plane. The three-dimensional point cloud data may be standardized using the following formula (1):

[0101] (1)

[0102] Where X represents the original 3D point cloud data; μ represents the mean of the original 3D point cloud data; σ represents the standard deviation of the original 3D point cloud data; X standardized Represents the standardized processing result of the original 3D point cloud data;

[0103] The covariance matrix after standardization is calculated using the following formula (2):

[0104] (2)

[0105] Where X represents the normalized processing result of the original 3D point cloud data; XT represents the transpose of the matrix X; n represents the number of 3D point cloud data; Cov(X) represents the covariance matrix of the matrix X;

[0106] The eigenvalue and characteristic matrix of the original data are obtained using the following formula (3):

[0107] Cov(X)v = λv(3)

[0108] Among them, λ represents the eigenvalue; v represents the eigenvector;

[0109] The original data is projected onto the selected principal component using the following formula (4) to obtain the XOY plane:

[0110] Y = XW (4)

[0111] Among them, Y represents the data after dimensionality reduction; W represents the projection matrix composed of the selected eigenvectors; and X represents the original three-dimensional point cloud data.

[0112] Step S103 , projecting the original three-dimensional point cloud data onto the two-dimensional projection plane according to a preset projection angle to obtain two-dimensional image information.

[0113] In an exemplary embodiment, the shooting angle may be a bird's-eye view. It is understandable that when screening buildings in an image, if the projection has a certain tilt angle, part of the building may be blocked, thereby causing target data to be missing. In another exemplary embodiment, the shooting angle may be an oblique angle, and the oblique angle is used to achieve the target effect.

[0114] In an exemplary embodiment, projecting the original three-dimensional point cloud data onto the two-dimensional projection plane may specifically include mapping the point cloud data onto the two-dimensional projection plane using a coordinate transformation algorithm.

[0115] In this embodiment, the dimensionality of the 3D point cloud data is reduced to obtain the corresponding 2D projection plane, and then the 3D point cloud data is mapped to the 2D projection plane to obtain 2D image information. This can significantly reduce the dimensionality and complexity of the 3D data, making the 3D point cloud data screening more efficient and more accurate.

[0116] In one embodiment, Figure 4 As shown, after filtering the two-dimensional image information according to the target feature points to obtain the target area, the method further includes:

[0117] Step S104: According to the two-dimensional image information of the target area, three-dimensional point cloud data of the target area is matched from the original three-dimensional point cloud data.

[0118] In an exemplary embodiment, after acquiring the two-dimensional image, the method may include mapping the coordinate point set of the two-dimensional image information to the original point cloud data using a mapping relationship to obtain the three-dimensional point cloud data of the target area in the original point cloud data; specifically, the original point cloud data of the target area is obtained by using the following formula (5):

[0119] L'=RL(5)

[0120] Wherein, L' represents the three-dimensional point cloud data of the target area; R represents the mapping relationship; and L represents the two-dimensional coordinate point set of the target area.

[0121] Step S105, building a model for the three-dimensional point cloud data of the target area to obtain a three-dimensional model of the target area.

[0122] In an exemplary embodiment, after obtaining the three-dimensional model of the target area, the model of the target area may be stored in a new point cloud file to facilitate subsequent analysis.

[0123] In an exemplary embodiment, when the original three-dimensional point cloud data contains multiple independent target areas, different feature points can be used to mark different target areas, thereby obtaining three-dimensional models of multiple independent areas. For example, when extracting multiple buildings, different buildings need to be extracted and saved, and different buildings can be marked with feature points of different colors, and three-dimensional point cloud data of different buildings can be obtained and stored in different point cloud files. It is understandable that the extraction of multiple target areas can also be achieved by extracting a single target area multiple times.

[0124] In this embodiment, the 2D image information is used to obtain the 3D point cloud data of the target area, and further obtain the 3D model. This method can complete the conversion from 2D graphic information to 3D point cloud data, ensure the integrity of the 3D point cloud data structure information, and greatly improve the accuracy and reliability of 3D point cloud data screening.

[0125] In one embodiment, Figure 5 As shown, the two-dimensional image information is screened according to the target feature points to obtain the target area, including:

[0126] Step S401: input the target feature points and the two-dimensional image information into a pre-trained boundary acquisition model to obtain boundary information of the target area in the two-dimensional image.

[0127] In an exemplary embodiment, the boundary acquisition model can be used to optimize the target area predicted by the image segmentation model using the target feature points and the two-dimensional image information, for example, deleting the non-target area of ​​the feature area corresponding to the feature points.

[0128] In an exemplary embodiment, the feature points input into the boundary acquisition model may include a matrix of feature points, and the boundary information of the target area is obtained by using the matrix of feature points and a two-dimensional image.

[0129] Step S402, using a preset convolutional neural network and boundary information of the target area in the two-dimensional image, segmenting the two-dimensional image information to obtain the target area.

[0130] In an exemplary embodiment, the obtained two-dimensional image information may include a mask image of the target area.

[0131] In an exemplary embodiment, the convolutional neural network is used to segment image information within boundary information based on boundary information of the two-dimensional image.

[0132] In this embodiment, the boundary of the target area is obtained by using a pre-trained segmentation acquisition model, and the two-dimensional image information of the target area is obtained by using a convolutional neural network. The boundary information is used to guide the convolutional neural network to segment the two-dimensional image, thereby ensuring the accuracy of the two-dimensional image of the target area.

[0133] In an exemplary embodiment, Figure 6 As shown, the above target area acquisition method can be used for point cloud building monomerization, including:

[0134] Step S501: Based on the three-dimensional point cloud data captured by the drone using oblique photography, the point cloud file is registered in the XOY plane using the PCA method.

[0135] Specifically, the three-dimensional point cloud data captured by the drone can be Figure 7 As shown, the cuboid is used to describe the target building, and the cylinder is used to describe the non-target building; in this embodiment, it is assumed that the XOY plane after registration is the ground.

[0136] Step S502 , performing a top-down projection on the registered point cloud file to obtain a two-dimensional plane projection of the point cloud file.

[0137] Specifically, Figure 7 The three-dimensional point cloud data shown in the figure can be projected from top to bottom to obtain the following Figure 8 As shown in the two-dimensional plane projection, the square is the target area and the circle is the non-target area.

[0138] Step S503: Use the point prompt method in FastSAM to segment and determine the target area on the two-dimensional image.

[0139] Specifically, in Figure 8When selecting feature points based on the two-dimensional plane projection of Fig. 9 As shown in FIG. 1 , white, gray, and black dots are used to represent the feature points selected for a single target area, respectively, and the corresponding two-dimensional plane projection will display the feature area corresponding to the feature point; it can be understood that at this time, the black feature points do not fully cover the target area, and can be used as shown in FIG. Fig.10 As shown, the same feature points continue to be used to cover the target area. At this time, each building is covered by the feature area corresponding to different feature points.

[0140] Step S504, recording the location information of the target building area in the two-dimensional image, and mapping it to the registered point cloud file.

[0141] Specifically, the target building location information in the two-dimensional image can be recorded as follows: Fig.11 As shown in , the mask image of the target area is obtained. Mapping the two-dimensional image to the point cloud file can be done as follows Fig.12 As shown, at this time, three monomerized cuboids, namely the target buildings, are obtained.

[0142] Step S505, rewriting the point cloud obtained after mapping, that is, the result of monomerizing the building point cloud.

[0143] Specifically, in order to facilitate the analysis and processing of point cloud files, individual buildings can be stored in different point cloud files.

[0144] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0145] Based on the same inventive concept, the embodiment of the present application also provides a device for acquiring a target area for implementing the method for acquiring a target area involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method above, so the specific definition of the device for acquiring one or more target areas provided below can refer to the definition of the method for acquiring a target area above, and will not be repeated here.

[0146] In one embodiment, Fig.13 As shown, a device 100 for acquiring a target area is provided, comprising: an image acquisition module 101, a model prediction module 102, a feature selection module 103 and a target screening module 104, wherein:

[0147] An image acquisition module, used to acquire two-dimensional image information; wherein the two-dimensional image information includes a target area;

[0148] A model prediction module, used for inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model;

[0149] A feature selection module is used to select feature points of a target area in the plane structure, and select the feature area as a target feature point of the target area;

[0150] The target screening module is used to screen the two-dimensional image information according to the target feature points to obtain the target area.

[0151] In one embodiment, the feature selection module includes:

[0152] A feature selection submodule is used to select candidate feature points of the target area in the plane structure to obtain feature areas corresponding to the candidate feature points;

[0153] The feature selection submodule is further configured to determine the candidate feature point as a target feature point when the feature area corresponding to the candidate feature point is a target area.

[0154] In one embodiment, the condition that the feature area corresponding to the candidate feature point is the target area includes:

[0155] The feature area corresponding to the single candidate feature point in the target area is the target area; or

[0156] The feature regions corresponding to the multiple candidate feature points in the target region are merged to obtain a feature region; the feature region is the target region.

[0157] In one embodiment, the image acquisition module includes:

[0158] A data acquisition submodule is used to acquire original three-dimensional point cloud data containing the target area;

[0159] A data dimension reduction submodule, used to process the original three-dimensional point cloud data using a preset data dimension reduction algorithm to obtain a two-dimensional projection plane of the original three-dimensional point cloud data;

[0160] The data projection submodule is used to project the original three-dimensional point cloud data onto the two-dimensional projection plane according to a preset projection angle to obtain two-dimensional image information.

[0161] In one embodiment, the feature selection module includes:

[0162] A data matching submodule, used for matching the three-dimensional point cloud data of the target area from the original three-dimensional point cloud data according to the two-dimensional image information of the target area;

[0163] The data modeling submodule is used to establish a model for the three-dimensional point cloud data of the target area to obtain a three-dimensional model of the target area.

[0164] In one embodiment, the, comprising:

[0165] A model prediction submodule, used to input the target feature points and the two-dimensional image information into a pre-trained segmentation model to obtain boundary information of the target area in the two-dimensional image;

[0166] The image segmentation submodule is used to segment the two-dimensional image information by using a preset convolutional neural network and boundary information of the target area in the two-dimensional image to obtain the target area.

[0167] Each module in the above-mentioned target area acquisition device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0168] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.14As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for acquiring a target area is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0169] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0172] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0173] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for acquiring a target area, characterized in that: The method comprises: Acquire two-dimensional image information; wherein the two-dimensional image information includes a target area; Inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model; Selecting feature points of a target area in the plane structure, and selecting the feature area as a target feature point of the target area; The two-dimensional image information is screened according to the target feature points to obtain the target area.

2. The method according to claim 1, characterized in that The step of selecting the feature points of the target area in the plane structure and selecting the feature area as the target feature points of the target area includes: Selecting candidate feature points of a target area in the plane structure to obtain feature areas corresponding to the candidate feature points; When the feature area corresponding to the candidate feature point is the target area, the candidate feature point is determined to be the target feature point.

3. The method according to claim 2, characterized in that The condition that the feature area corresponding to the candidate feature point is the target area includes: The feature area corresponding to the single candidate feature point in the target area is the target area; or The feature regions corresponding to the multiple candidate feature points in the target region are merged to obtain a feature region; the feature region is the target region.

4. The method according to claim 1, characterized in that The obtaining of two-dimensional image information comprises: Obtaining original three-dimensional point cloud data containing the target area; Using a preset data dimensionality reduction algorithm, the original three-dimensional point cloud data is processed to obtain a two-dimensional projection plane of the original three-dimensional point cloud data; According to a preset projection angle, the original three-dimensional point cloud data is projected onto the two-dimensional projection plane to obtain two-dimensional image information.

5. The method according to claim 4, characterized in that After filtering the two-dimensional image information according to the target feature points to obtain the target area, the method further includes: According to the two-dimensional image information of the target area, matching the three-dimensional point cloud data of the target area from the original three-dimensional point cloud data; A model is established for the three-dimensional point cloud data of the target area to obtain a three-dimensional model of the target area.

6. The method according to claim 1, characterized in that The step of filtering the two-dimensional image information according to the target feature points to obtain the target area includes: Inputting the target feature points and the two-dimensional image information into a pre-trained segmentation model to obtain boundary information of the target area in the two-dimensional image; The two-dimensional image information is segmented using a preset convolutional neural network and boundary information of the target area in the two-dimensional image to obtain the target area.

7. A device for acquiring a target area, characterized in that: The device comprises: An image acquisition module, used to acquire two-dimensional image information; wherein the two-dimensional image information includes a target area; A model prediction module, used for inputting the two-dimensional image information into a preset image segmentation model, and outputting a plane structure of the two-dimensional image information; wherein the feature points in the plane structure correspond to the feature areas predicted by the model; A feature selection module is used to select feature points of a target area in the plane structure, and select the feature area as a target feature point of the target area; The target screening module is used to screen the two-dimensional image information according to the target feature points to obtain the target area.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.