Method for determining object space contour, method, device and equipment for training target model

By establishing an image-space mapping relationship in the three-dimensional building modeling, the image-space features are converted into object-space features, which solves the problem of low efficiency and accuracy of roof contour recognition in traditional technology, and achieves efficient and accurate object-space mapping. Contour recognition improves the accuracy and automation of 3D modeling.

CN118628757APending Publication Date: 2024-09-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310284701.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult for the existing technology to automatically, efficiently and accurately obtain the building roof outline in three-dimensional building modeling. The traditional solution relies on manual work and semi-automation, and lacks a modeling solution with high efficiency, high precision and high degree of automation.

Method used

By creating an image-space mapping relationship for each image-space image, the features of multiple image-space images are converted into object-space features to achieve the fusion of object-space features, thereby determining the object-space contour. This method uses convolutional neural networks and collinear equations to eliminate errors caused by insufficient accuracy of point cloud data and requires only meter-level accuracy of point cloud data.

Benefits of technology

It achieves a more efficient and accurate determination of the object contour of the observation object, improves the accuracy and user experience of three-dimensional modeling, and reduces the accuracy requirements for point cloud data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628757A
    Figure CN118628757A
Patent Text Reader

Abstract

The embodiment of the invention provides a method for determining an object space contour, a method and device for training a target model, electronic equipment, a computer readable storage medium and a computer program product, and relates to the field of artificial intelligence. For example, the present disclosure provides a method for determining an object space profile. The method comprises the following steps: at least determining a plurality of corresponding image space contours of an observation object in a plurality of image space images based on a plurality of received image space images; determining a plurality of image space-object space mapping relations for the plurality of image space images based on the plurality of image space contours; and based on the plurality of image space-object space mapping relationships, determining the object space contour for the object space where the observation object is located. Through the scheme, the object space contour of the observation object can be determined more efficiently and accurately, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure mainly relate to the field of artificial intelligence. More specifically, the embodiments of the present disclosure relate to a method for determining an object space contour, a method for training a target model, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] As artificial intelligence technologies such as convolutional neural network (CNN) algorithms are applied to image processing fields such as 3D reconstruction, it has become possible to perform real-scene reconstruction based on detected 3D coordinate point clouds. 3D reconstruction refers to the establishment of a mathematical model suitable for computer representation and processing of 3D objects. Real-scene 3D modeling is a bridge connecting the virtual world and the real world. It plays an important role in various fields and has broad application prospects: such as metaverse, unmanned driving, positioning navigation, AR / VR, 5G simulation, etc. As an important ground object element in urban scenes, building reconstruction is a key component in real-scene 3D modeling. Real-scene modeling of buildings has important value in digital cities, urban planning, disaster management and other fields. Building modeling is also a key investment and research direction in academia and industry. In the field of building 3D modeling, due to the inability to automatically obtain the high-precision building roof outline that is relied on in building reconstruction, traditional solutions are mainly based on pure manual and semi-automatic reconstruction methods, lacking high-efficiency, high-precision and high-automation modeling solutions. Summary of the invention

[0003] In order to obtain the object space contour of the observed object more efficiently and accurately, an embodiment of the present disclosure provides a new data processing solution.

[0004] In a first aspect of the present disclosure, a method for determining an object space contour is provided. The method may include: based on a plurality of received image space images, at least determining a plurality of corresponding image space contours of an observed object in the plurality of image space images; based on the plurality of image space contours, respectively determining a plurality of image space-object space mapping relationships for the plurality of image space images; and based on the plurality of image space-object space mapping relationships, determining the object space contour for the object space where the observed object is located.

[0005] The present disclosure can fuse multiple image space images by utilizing the image space-object space mapping relationship for each image space image, and then determine the object space contour. Since the present disclosure can fuse image space images of multiple shooting angles into the object space dimension, the object space contour of the observed object can be determined more efficiently and accurately. Therefore, the contour automatic recognition solution of the present disclosure has the ability to determine the roof contour of the building and other information with high precision, so the three-dimensional modeling result can be made more accurate, thereby improving the user experience.

[0006] In an implementation of the first aspect, determining at least the multiple image space contours based on the multiple image space images may include: inputting the multiple image space images into a predetermined object space contour determination model; and respectively acquiring from the multiple image space images a corresponding multiple image space features and a corresponding multiple image space contours of the observed object in the multiple image space images.

[0007] In an implementation of the first aspect, determining the object space contour may include: determining a plurality of object space features corresponding to the plurality of image space features respectively based on the plurality of image space-object space mapping relationships; acquiring a fused object space feature by fusing the plurality of object space features; and determining the object space contour based on the fused object space feature. Object space feature fusion may be achieved by converting image space features into object space features using the image space-object space mapping relationship. The fused object space features may contain more accurate feature information, thereby optimizing the recognition result of the object space contour.

[0008] In an implementation of the first aspect, determining the multiple image-space-object-space mapping relationships may include: determining an image-space point from a first image-space image corresponding to the first image-space contour among the multiple image-space contours; determining an object-space point corresponding to the image-space point; and determining a first image-space-object-space mapping relationship for the first image-space image among the multiple image-space mapping relationships based on the image-space point and the object-space point.

[0009] In an implementation of the first aspect, determining the first image-space-object-space mapping relationship may include: determining a transformation function based on the position information of the object point except the height and the position information of the image point; and determining the first image-space-object-space mapping relationship based on the transformation function. Since the determined image-space-object-space mapping relationship only includes the longitude information and dimension information of the object and the mapping relationship between the horizontal coordinate and the vertical coordinate of the image, the error of the object point caused by the insufficient precision of the point cloud data can be eliminated, thereby significantly improving the recognition accuracy of the object contour.

[0010] In an implementation of the first aspect, the object space contour determination model may include a convolutional neural network, and obtaining the multiple image space features may include: inputting a first image space image among the multiple image space images into the convolutional neural network to extract a first image space feature map from the first image space image; and inputting a second image space image among the multiple image space images into the convolutional neural network to extract a second image space feature map from the second image space image, wherein the first image space feature map and the second image space feature map are at least part of the multiple image space features.

[0011] In an implementation of the first aspect, obtaining the fused object-space feature may include: based on a first image-space-object-space mapping relationship for the first image-space image among the multiple image-space-object-space mapping relationships, converting the first image-space feature map into a first object-space feature map; based on a second image-space-object-space mapping relationship for the second image-space image among the multiple image-space-object-space mapping relationships, converting the second image-space feature map into a second object-space feature map; and determining the fused object-space feature based on the first object-space feature map and the second object-space feature map. In this way, multiple image-space features can achieve object-space feature fusion through conversion.

[0012] In an implementation manner of the first aspect, the observed object may be a roof of a building.

[0013] In a second aspect of the present disclosure, a method for training a target model is provided. The method may include: by inputting a plurality of image space images into the target model, obtaining a plurality of corresponding image space features and a plurality of corresponding image space contours of the observed object in the plurality of image space images, determining a first loss function of the target model based on the plurality of image space contours and a plurality of true value image space contours respectively corresponding to the plurality of image space contours, the plurality of true value image space contours being respectively determined based on the positions of the true value object space contours of the observed object in the plurality of image space images; determining a plurality of image space-object space mapping relationships for the plurality of image space images respectively based on the true value object space contours; determining an object space contour based on the plurality of image space-object space mapping relationships and the plurality of image space features, determining a second loss function of the target model based on the object space contour and the true value object space contour; and optimizing the first loss function and the second loss function to determine the target model.

[0014] Similar to the method for determining the object space contour above, the second aspect of the present disclosure can fuse multiple image space images by utilizing the image space-object space mapping relationship for each image space image, thereby training the target model. Since the present disclosure can unify the image space images used for training at multiple shooting angles into the object space dimension, the object space contour of the observed object can be determined more efficiently and accurately, thereby improving the training effect.

[0015] In an implementation of the second aspect, determining the object space contour includes: determining a plurality of object space features corresponding to the plurality of image space features respectively based on the plurality of image space-object space mapping relationships; obtaining a fused object space feature by fusing the plurality of object space features; and determining the object space contour based on the fused object space feature.

[0016] In an implementation of the second aspect, the true object space contour is true value data manually annotated on an object space image generated from point cloud data, and determining the multiple image space-object space mapping relationships includes: determining associated object space points from the point cloud data based on the true object space contour; determining the image space point of a first image space image among the multiple image space images projected from the object space point; and determining a first image space-object space mapping relationship for the first image space image in the image space-object space mapping relationship based on the object space point and the image space point.

[0017] In an implementation of the second aspect, determining the first image space-object space mapping relationship includes: determining a transformation function based on the position information of the object space point except the height and the position information of the image space point; and determining the first image space-object space mapping relationship based on the transformation function.

[0018] In an implementation manner of the second aspect, determining the object space point position includes: determining point cloud data adjacent to the true value object space contour in the point cloud data as the object space point position.

[0019] In an implementation of the second aspect, the target model includes a convolutional neural network, and obtaining the multiple image-side features includes: inputting a first image-side image among the multiple image-side images into the convolutional neural network to extract a first image-side feature map from the first image-side image; and inputting a second image-side image among the multiple image-side images into the convolutional neural network to extract a second image-side feature map from the second image-side image, wherein the first image-side feature map and the second image-side feature map are at least part of the multiple image-side features.

[0020] In an implementation manner of the second aspect, obtaining the fused object-space feature includes: based on a first image-space-object mapping relationship for the first image-space image among the multiple image-space-object mapping relationships, converting the first image-space feature map into a first object-space feature map; based on a second image-space-object mapping relationship for the second image-space image among the multiple image-space-object mapping relationships, converting the second image-space feature map into a second object-space feature map; and determining the fused object-space feature based on the first object-space feature map and the second object-space feature map.

[0021] In a third aspect of the present disclosure, a device for determining an object space contour is provided, wherein the device comprises a functional module for implementing the first aspect or any one implementation manner of the first aspect.

[0022] In a fourth aspect of the present disclosure, a device for training a target model is provided, wherein the device comprises a functional module for implementing the second aspect or any one implementation of the second aspect.

[0023] In a fifth aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one computing unit; at least one memory, the at least one memory is coupled to the at least one computing unit and stores instructions for execution by the at least one computing unit, and when the instructions are executed by the at least one computing unit, the device executes the method in the first or second aspect or any one of the implementations of the first or second aspect.

[0024] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method in the first or second aspect or any one of the implementations of the first or second aspect.

[0025] In a seventh aspect of the present disclosure, a computer program product is provided, which includes computer executable instructions, which, when executed by a processor, cause a computer to execute some or all steps of the method in the first or second aspect or any one of the implementations of the first or second aspect.

[0026] It can be understood that the method for training the target model of the second aspect provided above, the device for determining the object space contour of the third aspect, the device for training the target model of the fourth aspect, the electronic device of the fifth aspect, the computer storage medium of the sixth aspect, or the computer program product of the seventh aspect are all used to implement the method provided by the first aspect. Therefore, the explanation or description of the first aspect and the second aspect also applies to the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the seventh aspect. In addition, the beneficial effects that can be achieved by the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the seventh aspect can refer to the beneficial effects in the corresponding method, which will not be repeated here.

[0027] These and other aspects of the invention will become apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0029] Figure 1 A schematic diagram illustrating an example system in which various embodiments of the present disclosure can be implemented;

[0030] Figure 2 A schematic diagram showing the internal principles of an example system according to an embodiment of the present disclosure;

[0031] Figure 3A flowchart of a process for training a target model according to an embodiment of the present disclosure is shown;

[0032] Figure 4 A schematic diagram of an example system for training a target model according to an embodiment of the present disclosure is shown;

[0033] Figure 5 A flowchart of a process for determining an image-space-object-space mapping relationship during a model training phase according to an embodiment of the present disclosure is shown;

[0034] Figure 6 A flowchart of a process for determining an object space contour according to an embodiment of the present disclosure is shown;

[0035] Figure 7 A schematic diagram showing an example system for determining object space contours according to an embodiment of the present disclosure is shown;

[0036] Figure 8 A flowchart showing a process of determining an image-space-object-space mapping relationship in a model application phase according to an embodiment of the present disclosure is shown;

[0037] Fig. 9 A schematic block diagram of an apparatus for training a target model according to some embodiments of the present disclosure is shown;

[0038] Fig.10 A schematic block diagram showing an apparatus for determining an object space contour according to some embodiments of the present disclosure; and

[0039] Fig.11 A block diagram of a computing unit capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0041] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or identical objects. The following may also include other explicit and implicit definitions. In addition, in this article, "and / or" is used to represent at least one object among multiple objects. For example, "A and / or B" means one of the three cases of "A", "B" and "A and B". The term "object space" is used to describe the real physical space position of the ground point, and the term "image space" is used to describe the position of the image point in the image plane. The term "object space contour" is used to represent the contour information of an object or an observed object in the space of the real world, and the term "image space contour" is used to represent the contour information of an object or an observed object in the image plane. In addition, in this article, all specific numerical values ​​are for illustrative purposes and are not used to limit the scope of protection of the present disclosure.

[0042] As discussed above, in order to achieve 3D modeling, it is necessary to obtain the object space contour of the observed object, especially the vectorized information of the object space contour of its top surface. In order to determine the object space contour of the observed object, there are mainly two traditional methods.

[0043] The first type of method can be, for example, manual stereo mapping based on multi-view. Manual mapping mainly includes two key steps: multi-view image input and manual contour drawing. Multi-view image input is to import the multi-view images obtained by the optical device into professional software for pre-processing; manual drawing refers to professionals wearing special glasses and using a mouse on a computer to draw contour key points to obtain contour data. Manual stereo mapping mainly relies on manual experience to manually mark the contours of the observed objects. It has a high degree of dependence on manual experience. There are differences in the drawing results of different people for the same building, and there are problems such as low efficiency and high cost.

[0044] The second method, for example, can be to use a trained neural network model to determine the object space contour of the observed object. This method mainly includes two stages: training and prediction. Training stage: construct a neural network model and a classification discriminator, input the TDOM image (true orthogonal image) and calculate the predicted contour through the model, optimize the model parameters according to the loss calculation based on the predicted contour and the true value of the manually marked contour, and save the model structure and weights for prediction. Prediction stage: load the trained neural network model and parameters, input the TDOM image, and output the predicted contour. However, the object space contour determined by the neural network model is distorted at the edge of the roof and cannot fit the actual edge position of the roof well. After research, the inventor found that the deep-seated reason is that the DSM point cloud that the TDOM production process relies on is meter-level accuracy, which is not enough to support the accurate acquisition of the object space contour of the above method.

[0045] It can be seen that traditional object contour recognition technology has limitations in both efficiency and accuracy.

[0046] In order to solve the above problems, the present disclosure provides a new object space contour recognition solution. As an example, the present disclosure realizes the fusion of object space features by creating an image space-object space mapping relationship for each image space image to convert the features of multiple image space images into object space features. Specifically, the acquired object space DSM (digital surface model) point cloud data can be projected to the image space according to the collinearity equation to obtain the image space DSM points; load the trained model, input multi-view images to the model, that is, image space images acquired from multiple shooting angles, and the image space branch of the model can generate image space features and image space contours based on the image space image; project the image space contour to the object space based on the collinearity equation, determine the DSM point pairs on the image and object space of the observed object, so that a radiation conversion function can be established to construct an image space-object space mapping relationship; based on the image space-object space mapping relationship for each image space image, the object space features corresponding to each image space feature can be obtained, so that the fused object space features can be determined by, for example, a mean operation; the fused object space features are input into the object space branch of the model to determine the object space contour. Due to the fusion of object space features, the object space contour of the observed object can be determined more efficiently and accurately.

[0047] Furthermore, the object point in the image-object mapping relationship does not contain height information, so the object contour recognition solution disclosed in the present invention only requires the current point cloud data to have meter-level accuracy, and there is no need to further improve the accuracy requirements of the point cloud data. On this basis, the object contour recognition solution disclosed in the present invention can more accurately determine the object contour of the observed object, thereby improving system performance.

[0048] In order to more accurately describe the concept of the present disclosure, Figure 1 An example system according to an embodiment of the present disclosure is described in detail.

[0049] Figure 1 A schematic diagram of an example system 100 is shown in which various embodiments of the present disclosure can be implemented.

[0050] exist Figure 1 In FIG. 1 , system 100 includes input data 110, computing device 120, and output result 130. Figure 1As shown, the input data 110 may generally include multiple image space images 111 and object space point cloud data 112. It should be understood that the multiple image space images 111 may be multi-view images, that is, images of the same observed object or scene obtained from multiple different viewing angles using an optical device. The object space point cloud data 112 may be an object space DSM point cloud. The object space DSM refers to a DSM three-dimensional coordinate point, which corresponds to an actual physical space position. Accordingly, the image space DSM represents the 2D coordinate of the object space DSM projected onto the corresponding image plane according to the collinear equation.

[0051] It should also be understood that the input data 110 is usually stored in a storage device after being acquired. The storage device includes a register for storing data. In addition, the storage device can also be (multiple) storage disks. The storage disk can be various types of devices with storage functions, including but not limited to hard disks (HDDs), solid state disks (SSDs), removable disks, any other magnetic storage devices, and any other optical storage devices, or any combination thereof.

[0052] In addition, a trained machine learning model or convolutional neural network may be arranged in the computing device 120. The computing device 120 may be any device with computing capabilities. As a non-limiting example, the computing device 120 may be any type of fixed computing device, mobile computing device, or portable computing device, including but not limited to a server, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a smart phone, etc. All or part of the components of the computing device 120 may be distributed in the cloud. The computing device 120 may also adopt a cloud-edge architecture.

[0053] in addition, Figure 1 The output result 130 in may be the object-space contour of the observed object. Figure 1 As shown, when the computing device 120 receives a plurality of image space images 111 and object space point cloud data 112, the computing device 120 may use the object space contour determination model arranged thereon to process the plurality of image space images 111 and the object space point cloud data 112. For example, the computing device 120 may determine the object space contour of the observed object based on the plurality of image space images 111 and the object space point cloud data 112 in the manner described above, and provide an output result 130.

[0054] The following will combine Figure 2 The principles of the embodiments of the present disclosure are described in detail.

[0055] Figure 2 FIG. 2 is a schematic diagram showing the internal principles of an exemplary system 200 according to an embodiment of the present disclosure. Figure 2 As shown, the image space image 211 is input to the object space contour determination model 220 loaded in the computing device 120. Figure 2In the embodiment, the object-space contour determination model 220 may include multiple parts, for example, an image-space branch 221 and an object-space branch 222.

[0056] A convolutional neural network 223 is arranged in the image-side branch 221, which receives the input image-side image 211 and performs a convolution operation on the image-side image 211, so that image-side features can be extracted from the image-side image 211. It should be understood that the extracted image-side features can be feature maps. It should be understood that convolutional neural networks of any structure (such as vgg, renset, densenet, mobilenet, etc.) and some operators that can be used to improve network effects (deformconv, se, dilationconv, inception, etc.) can be applied here. Thus, the computing device 120 can extract feature maps from the image-side image 211. It should also be understood that the feature map can be represented by three tensors of height H, width W, and number of channels C. In addition, the feature map can be regarded as a set of feature vectors composed of H×W feature vectors, and the dimension of each feature vector is equal to the number of channels C of the feature map. For example, when H is equal to 3, W is equal to 3, and C is equal to 4, the feature map is composed of 9 feature vectors, and the dimension of each feature vector is equal to 4. It should be understood that the numerical values ​​in the present embodiment are exemplary and are not intended to limit the scope of the present disclosure.

[0057] It should be understood that, since the input computing device 120 is a multi-view image, in addition to the image space image 211, one or more image space images can be input to the convolutional neural network 223, thereby obtaining a set 212 of image space features corresponding to each image space image in the multi-view image. In addition, a classifier 224 is arranged in the image space branch 221 for classifying each point feature in each image space feature to determine whether a certain point in the corresponding image space image is within the contour of the observed object, or whether the point belongs to the top surface area of ​​the observed object. Thus, the image space contour 213 in the image space image 211 can be determined. Of course, although not shown, the classifier 224 can also determine the image space contours of other image space images based on the set 212 of image space features.

[0058] In addition, the object-space contour determination model 220 can process the image-space feature set 212 to obtain the fused object-space feature 216. Figure 2As shown, the set 212 of image-space features can be input into the image-object-space conversion unit 225. The image-object-space conversion unit 225 can determine the object-space feature corresponding to each image-space feature based on the image-object-space mapping relationship 214, thereby forming the set 215 of object-space features. It should be understood that the image-object-space mapping relationship 214 will change with different image-space images, so each image-object-space mapping relationship 214 corresponds to one image-space image in multiple image-space images. Or the detailed process of the image-object-space mapping relationship 214 will be described later.

[0059] By fusing the set 215 of object-space features, a fused object-space feature 216 can be obtained. The fused object-space feature 216 is further input into the classifier 226 in the object-space branch 222, that is, the object-space contour 230 of the observable object is determined in the object-space space where the observable object is located. In this way, the object-space features converted from multiple image-space features are fused in the model, so that the predicted object-space contour is more accurate.

[0060] It should be understood that the architecture and functions in the example system 200 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Embodiments of the present disclosure may also be applied to other environments with different structures and / or functions.

[0061] The following will combine Figure 1 and Figure 2 The process of model training and application of the embodiment of the present disclosure is described in detail. For ease of understanding, the specific data mentioned in the following description are exemplary and are not intended to limit the scope of protection of the present disclosure. It is understood that the embodiments described below may also include additional actions not shown and / or the actions shown may be omitted, and the scope of the present disclosure is not limited in this respect.

[0062] Figure 3 A flowchart of a process 300 for training a target model according to an embodiment of the present disclosure is shown. Figure 4 Schematic diagram of an example system 400 for training a target model according to an embodiment of the present disclosure is shown. In some embodiments, process 300 may be performed in Figure 1 Implementation in the computing device 120. Figure 1 and Figure 4 The process 300 of model training according to an embodiment of the present disclosure is described. For ease of understanding, the specific examples mentioned in the following description are exemplary and are not intended to limit the scope of protection of the present disclosure.

[0063] like Figure 3As shown, at 302, the computing device 120 can obtain corresponding multiple image space features 405 and corresponding multiple image space contours 406 of the observed object in the multiple image space images 401 by inputting multiple image space images 401 into the convolutional neural network 420 in the target model to be trained, so as to determine the first loss function of the target model based on the multiple image space contours 406 and multiple true value image space contours corresponding to the multiple image space contours. It should be understood that the multiple true value image space contours are determined based on the positions of the true value object space contours 402 of the observed object in the multiple image space images. In addition, in some embodiments, especially in the three-dimensional reconstruction scene, the observed object can be a building or its roof.

[0064] In certain embodiments, such as Figure 4 As shown, the input image space image (multi-view image) 401 is extracted by the convolutional neural network 420 to obtain the image space feature 405, and further undergoes a convolution operation to construct a classifier for each point feature, so as to determine whether each point feature belongs to the roof area, thereby obtaining a predicted image space contour 406. In order to calculate the first loss function of the image space branch constructed by the convolutional neural network 420 and the above classifier, the binary cross entropy loss can be calculated based on the predicted image space contour 406 and the true image space contour (obtained by converting the manually labeled true object space contour 402 to the image space according to the collinear equation):

[0065]

[0066] In equation (1), y c It represents the probability value of belonging to the contour area of ​​the observed object, and its value is (0,1). is the manually annotated true category, with a value of 0 or 1, and β1 and β2 are the weights of the loss of the contour area and the non-contour area, respectively. The collinear equation represents the calculation of the mutual conversion between the real physical space position and the two-dimensional image plane coordinates using the internal and external parameters of the camera in multi-view stereo geometry.

[0067] At 304, the computing device 120 may determine a plurality of image-space-object-space mapping relationships 404 for the plurality of image-space images 401 based on the true object-space contour 402. Specifically, Figure 5 FIG. 5 is a flowchart showing a process 500 for determining an image-object mapping relationship during a model training phase according to an embodiment of the present disclosure. Figure 4 A process 500 is described according to an embodiment of the present disclosure.

[0068] As described above, the true value object space contour 402 is the true value data manually annotated on the object space image generated by the point cloud data 403. In order to determine multiple image space-object space mapping relationships 404, such as Figure 5As shown, at 502, the computing device 120 can determine the associated object space points from the point cloud data 403 based on the true value object space contour 402. At 504, the computing device 120 can determine the image space points of the first image space image projected to the multiple image space images 401. It should be understood that the computing device 120 can determine the image space points of other or all object space points projected to the input other image space images in parallel or sequentially. Thus, the image space points and object space points with a projection relationship can be paired. At 506, the computing device 120 can determine the first image space-object space mapping relationship for the first image space image in the image space-object space mapping relationship 404 based on the paired object space points and image space points. In other words, for each image space image, the computing device 120 can determine the corresponding image space-object space mapping relationship. In some embodiments, the point cloud data adjacent to the true value object space contour 402 in the point cloud data 403 can be determined as the object space point.

[0069] In some embodiments, the point cloud data 403 may be, for example, DSM point cloud coordinates, which are used to represent actual position points in a physical space. The spatial coordinates may be expressed as (D X ,D Y ,D Z ). Accordingly, the image side image 401 may be one of the multi-view images, and the image size is (C height ,C width ). The DSM point cloud coordinates are (D X ,D Y ,D Z )'s coordinates on the image plane after transformation are (C X ,C Y ). Specifically, the corresponding camera external parameter matrix [R|t] is a 3*4 matrix, where R is a 3*3 matrix representing the camera rotation matrix, t is a 3*1 matrix representing the spatial position of the camera during imaging, and the camera fixed internal parameter Cam is a 3*3 matrix, which is the camera intrinsic parameter. The conversion relationship from the spatial physical coordinate system to the two-dimensional image coordinate system is as follows:

[0070]

[0071]

[0072]

[0073] The DSM coordinates are (D X ,D Y ,D Z )'s spatial point is transformed into the image plane coordinate (C X ,C Y ).

[0074] Since the external parameter matrix of each image plane is different, the DSM points that can be "observed" are also different. X ,C Y ) is valid only if it is within the image, that is, it satisfies the following inequality:

[0075] C X >0 and C X <C width

[0076] C Y >0 and C Y <C height

[0077] Therefore, the correspondence between the DSM point cloud coordinates and the two-dimensional pixel coordinates on the image plane is as follows:

[0078]

[0079] In equation (2) The 3D coordinates of the jth DSM point in the DSM point cloud, is the 2D coordinate of the point on the image plane where the multi-view image i is located.

[0080] As mentioned above, during the model training phase, the object image has manually annotated true value object contours Cour W According to the collinear equation, the 3D coordinates of the DSM points within the outline of each building in the object space and the 2D coordinates of the image plane on the multi-view image space can be calculated to obtain the following corresponding relationship:

[0081]

[0082] In equation (3) Cour is the jth object contour marked manually W The 3D coordinates of the DSM points, is the 2D coordinate of the corresponding image i on the image plane.

[0083] Further, in order to determine at least one image-object mapping relationship in the image-object mapping relationship 404, the computing device 120 may determine a transformation function based on the position information of the object point except the height and the position information of the image point, and determine the at least one image-object mapping relationship based on the transformation function. Specifically, only the longitude information and dimensional information of the object point may be taken, and the object point with the height information filtered out and the image point with the horizontal coordinate and the vertical coordinate are used to determine the parameters of the affine transformation function. Affine transformation refers to a transformation method in which a vector space is transformed into another vector space through a linear transformation and a translation. As an example, the geometric relationship between the XY coordinate point pairs of the image and object DSM points in a single roof outline is expressed according to the affine transformation as follows:

[0084]

[0085] In equation (4), (C X ,C Y ) and (D X ,D Y ) are the XY coordinates of the DSM points within the roof outline of a single building in the image space and object space, respectively, is the affine transformation parameter from the image / object space applicable to the point in the current roof outline. By using the object and image space XY coordinates of the DSM point in a single roof outline, a solution such as least squares fitting is adopted, and n sets of affine transformation parameters can be obtained for each object-side building outline, where n depends on how many image-side images the object-side building appears in. Since the above affine projection estimation strategy only uses the projection point coordinates (D X ,D Y ), and no elevation information is used, so the reliance on DSM elevation accuracy can be reduced.

[0086] As mentioned above, the object-space DSM image size is (D height ,D width ), for each multi-view image, construct a matrix Mat with the same size as the object space, with a size of [D height ,D width ,2], the initial value is set to 0. In order to obtain the object space contour, the manually annotated object space contour in the training phase or the image space contour predicted by the image space branch in the prediction phase can be projected onto the object space region according to the collinear equation to obtain the object space contour. Then, traverse the matrix position from the first and second dimensions of the matrix, and assume that the object space region corresponding to the matrix (x, y) is within the contour j, and the corresponding object space coordinate point According to the affine transformation parameters calculated for the contour j in the previous text, the coordinates of the corresponding image on the image plane are calculated. Will Stored at [x,y] in the mapping table matrix.

[0087]

[0088]

[0089] Thus, by using the determined affine transformation parameters, an image-object space mapping table or transformation formula can be directly constructed, so that the image-object space data can be converted to each other at any time. It should be understood that the size of the mapping table is consistent with the size of the object space image, and the number of mapping tables is consistent with the number of image space images. In other words, each multi-view image will correspond to a mapping table that is consistent with the size of the object space.

[0090] Back to Figure 3 At 306, the computing device 120 may determine an object space contour 407 in the image space-object space conversion unit 430 based on the multiple image space-object space mapping relationships 404 and the multiple image space features 405, so as to determine a second loss function of the target model based on the object space contour 407 and the true value object space contour 402. In some embodiments, in order to determine the object space contour 408, the computing device 120 may determine a plurality of object space features 407 corresponding to the plurality of image space features 405 respectively based on the plurality of image space-object space mapping relationships 404, and then obtain a fused object space feature by fusing these object space features. Finally, the classifier 440 may determine the object space contour 408 based on the fused object space feature.

[0091] In some embodiments, in order to obtain the above-mentioned multiple image-space features 405, the computing device 120 may input a first image-space image from the multiple image-space images 401 into the convolutional neural network 420 to extract a first image-space feature map from the first image-space image. Similarly, the computing device 120 may input a second image-space image from the multiple image-space images 401 into the convolutional neural network 420 to extract a second image-space feature map from the second image-space image. It should be understood that the first image-space feature map and the second image-space feature map may be at least a part of the multiple image-space features 405.

[0092] Furthermore, the computing device 120 may convert the first image-space feature map into a first object-space feature map based on a first image-space-object-space mapping relationship for the first image-space image in the plurality of image-space-object-space mapping relationships 404. Similarly, the computing device 120 may convert the second image-space feature map into a second object-space feature map based on a second image-space-object-space mapping relationship for the second image-space image in the plurality of image-space-object-space mapping relationships 404. Furthermore, the fused object-space feature may be determined based on the first object-space feature map and the second object-space feature map, for example, by averaging.

[0093] For each of the above image-space feature maps, an object-space feature map can be first constructed, with a resolution consistent with the size of the mapping table, for example, it can be (Dheight ,D width ), and the number of channels can be related to the image-space features Figure 1 Initialize to 0. Traverse each position of the object feature map According to the corresponding mapping table, The value of the position Then the feature map The feature vector of the position is written into the object feature map Position, get the converted object feature map. For these object feature maps, the mean can be calculated in the channel dimension to get the fused object feature map.

[0094] The obtained fused object space feature map can be input into the convolutional neural network (not shown) in the object space branch for further optimization, and a classifier is constructed for each point feature to determine whether it belongs to the roof area, thereby obtaining a predicted object space contour 408. In order to calculate the second loss function of the object space branch constructed by the convolutional neural network and the classifier 440, a binary classification cross entropy loss can be calculated based on the predicted object space contour 408 and the true value object space contour 402.

[0095]

[0096] In equation (1), y d It represents the probability value of belonging to the contour area of ​​the observed object, and its value is (0,1). is the true category manually annotated, with a value of 0 or 1, and β3 and β4 are the weights of the loss of contour area and non-contour area, respectively.

[0097] At 308, the computing device 120 may optimize the first loss function and the second loss function to determine the parameters of the target model. In the training phase, the convolutional neural network model parameters of the image-space feature extraction part are shared by the image / object-space branches, and the image-object-space loss joint optimization loss function is as follows:

[0098] Loss = α1loss c +α2loss d Equation (6): where α1 and α2 are the weights of the image and object losses.

[0099] It should be understood that the image segmentation module takes the multi-view original image as input, and uses ResNet as the feature encoder and the Feature Pyramid Network (FPN) structure as the feature decoder to construct a network for predicting the image segmentation result. The training truth value is the binary label image of the stereo vector projected to the image vector. The object prediction module fuses the feature map generated by each image of the image and projected to the object (average value is calculated element by element), and further uses the decoder to predict the object segmentation result. The truth value is the two-dimensional label image of the object vector. In addition, the model training can be completed by back propagation and gradient descent.

[0100] In addition, in some embodiments, the geographic range corresponding to the training data can be cut into slices of size w×h in the object space, and a multi-view data set can be constructed for each object space slice. And all the generated image space slices can be used to first train the image space branch of the learning framework. In this process, the network parameters of the image space branch are shared for different image space slices. After the image space branch training converges, the object space branch is connected to the model for end-to-end network training until the object space branch training loss tends to converge.

[0101] Through the above embodiments, the present disclosure can convert the image space features of multiple image space images into object space features and realize feature fusion by constructing an image space-object space mapping relationship. The fused object space features can carry more accurate information, which is beneficial to the training effect of the model. In addition, since the object space points in the image space-object space mapping relationship do not contain height information, the model training scheme of the present disclosure only requires the point cloud data used for training to have meter-level accuracy, so there is no need to further improve the accuracy requirements of the point cloud data while ensuring the training effect.

[0102] In addition to the model training process described above, the model application process will be described as follows.

[0103] Figure 6 A flow chart of a process 600 for determining an object-space contour according to an embodiment of the present disclosure is shown. Figure 7 FIG. 6 is a schematic diagram of an example system 700 for determining an object space contour according to an embodiment of the present disclosure. In some embodiments, the process 600 may be performed as follows: Figure 1 Implementation in the computing device 120. Figure 1 and Figure 7 The process 600 of model application according to the embodiment of the present disclosure is described. For ease of understanding, the specific examples mentioned in the following description are exemplary and are not intended to limit the protection scope of the present disclosure.

[0104] like Figure 6As shown, at 602, the computing device 120 may determine at least a plurality of corresponding image space contours 706 of the observed object in the plurality of image space images 701 based on the received plurality of image space images 701. In some embodiments, especially in a 3D reconstruction scene, the observed object may be a building or its roof.

[0105] In certain embodiments, such as Figure 7 As shown, a plurality of image space images 701 are first input into a convolutional neural network 720 in a trained object space contour determination model. Thus, a plurality of corresponding image space features 705 and a plurality of corresponding image space contours 706 of the observed object in the plurality of image space images 701 can be obtained from the plurality of image space images 701, respectively.

[0106] Then, at 604, the computing device 120 may determine a plurality of image-space-object-space mapping relationships 704 for the plurality of image-space images 701 based on the plurality of image-space profiles 706. Specifically, Figure 8 FIG. 8 is a flowchart showing a process 800 of determining an image-object space mapping relationship during a model application phase according to an embodiment of the present disclosure. Figure 7 A process 800 is described according to an embodiment of the present disclosure.

[0107] In order to determine multiple image-space-object-space mapping relationships 704, such as Figure 8 As shown, at 802, the computing device 120 can determine the image point from the first image image corresponding to the first image profile in the multiple image images 701 based on the first image profile in the multiple image profile profiles 706. At 804, the computing device 120 can determine the object point corresponding to the image point. It should be understood that the computing device 120 can determine the image point of other or all object points projected to the input other image images in parallel or sequentially. Thus, the image point and object point with a projection relationship can be paired. At 806, the computing device 120 can determine the first image-object mapping relationship for the first image image in the multiple image-object mapping relationships 704 based on the image point and the object point. In other words, for each image image, the computing device 120 can determine the corresponding image-object mapping relationship, and the specific process is similar to the training stage, which will not be repeated herein.

[0108] Further, in order to determine at least one of the image-space-object-space mapping relationships 704, the computing device 120 may determine a transformation function based on the position information of the object-space point except the height and the position information of the image-space point, and determine the at least one image-space-object-space mapping relationship based on the transformation function. Specifically, in the prediction stage, according to the image-space contour 706 predicted by the image-space branch, for each image plane DSM point within the contour of the building The corresponding DSM point cloud 3D coordinates can be determined

[0109]

[0110] In equation (7) Cour is the image contour predicted by the image branch C The 2D coordinates of the DSM points within, is the 3D coordinate of the corresponding DSM point. For each building outline, multiple DSM images / object-space DSM points (X, Y) coordinate pairs can be obtained:

[0111]

[0112] Furthermore, as described above, the affine transformation parameters may be determined by a method such as least square fitting, and then an image-space-object-space mapping table or transformation formula may be constructed.

[0113] At 606, the computing device 120 may determine an object space contour 708 for the object space where the observed object is located based on the multiple image space-object space mapping relationships 704. In some embodiments, in order to determine the object space contour 708, the computing device 120 may determine multiple object space features 707 corresponding to the multiple image space features 705 in the image space-object space conversion unit 730 based on the multiple image space-object space mapping relationships 704, and then obtain a fused object space feature by fusing these object space features. Finally, the classifier 740 may determine the object space contour 708 based on the fused object space feature.

[0114] In some embodiments, in order to obtain the above-mentioned multiple image-space features 705, the computing device 120 may input a first image-space image from the multiple image-space images 701 into the convolutional neural network 720 to extract a first image-space feature map from the first image-space image. Similarly, the computing device 120 may input a second image-space image from the multiple image-space images 701 into the convolutional neural network 720 to extract a second image-space feature map from the second image-space image. It should be understood that the first image-space feature map and the second image-space feature map may be at least a part of the multiple image-space features 705.

[0115] Furthermore, the computing device 120 may convert the first image-space feature map into a first object-space feature map based on a first image-space-object-space mapping relationship for the first image-space image in the plurality of image-space-object-space mapping relationships 704. Similarly, the computing device 120 may convert the second image-space feature map into a second object-space feature map based on a second image-space-object-space mapping relationship for the second image-space image in the plurality of image-space-object-space mapping relationships 704. Furthermore, the fused object-space feature may be determined based on the first object-space feature map and the second object-space feature map, for example, by averaging. The fused object-space feature carries more comprehensive information, which is beneficial to improving the accuracy of model prediction.

[0116] Through the above embodiments, the present disclosure can convert the image space features of multiple image space images into object space features and realize feature fusion by constructing an image space-object space mapping relationship. The fused object space features can carry more accurate information, which is conducive to more accurate results in model prediction. In addition, since the object space points in the image space-object space mapping relationship do not contain height information, the solution for determining the object space contour of the present disclosure only requires the point cloud data to have meter-level accuracy, so there is no need to further improve the accuracy requirements of the point cloud data while ensuring the recognition accuracy.

[0117] Fig. 9 FIG. 9 is a schematic block diagram of an apparatus 900 for training a target model according to some embodiments of the present disclosure. Fig. 9 As shown, the device 900 may include a first loss function determination module 902, which is used to obtain a corresponding plurality of image space features and a corresponding plurality of image space contours of the observed object in the plurality of image space images by inputting a plurality of image space images into the target model, so as to determine the first loss function of the target model based on the plurality of image space contours and a plurality of true value image space contours respectively corresponding to the plurality of image space contours, wherein the plurality of true value image space contours are respectively determined based on the positions of the true value object space contours of the observed object in the plurality of image space images. The device 900 may also include a mapping relationship determination module 904, which is used to respectively determine a plurality of image space-object space mapping relationships for the plurality of image space images based on the true value object space contours. The device 900 may also include a second loss function determination module 906, which is used to determine the object space contour based on the plurality of image space-object space mapping relationships and the plurality of image space features, so as to determine the second loss function of the target model based on the object space contour and the true value object space contour. The device 900 may also include an optimization module, which is used to optimize the first loss function and the second loss function to determine the target model.

[0118] In some embodiments, the second loss function determination module 906 can also be configured to: determine a plurality of object space features corresponding to the plurality of image space features respectively based on the plurality of image space-object space mapping relationships; obtain a fused object space feature by fusing the plurality of object space features; and determine the object space contour based on the fused object space feature.

[0119] In some embodiments, the true object space contour may be true value data manually annotated on an object space image generated from point cloud data, and the mapping relationship determination module 904 may be configured to: determine the associated object space point from the point cloud data based on the true object space contour; determine the image space point of a first image space image among the multiple image space images projected from the object space point; and determine a first image space-object space mapping relationship for the first image space image in the image space-object space mapping relationship based on the object space point and the image space point.

[0120] In some embodiments, determining the first image-space-object-space mapping relationship may include: determining a transformation function based on position information of the object-space point except for its height and the position information of the image-space point; and determining the first image-space-object-space mapping relationship based on the transformation function.

[0121] In some embodiments, determining the object space point may include: determining point cloud data in the point cloud data that is adjacent to the true value object space contour as the object space point.

[0122] In some embodiments, the target model may include a convolutional neural network, and the first loss function determination module 902 may be configured to: input a first image of the multiple image-side images into the convolutional neural network to extract a first image-side feature map from the first image-side image; and input a second image of the multiple image-side images into the convolutional neural network to extract a second image-side feature map from the second image-side image, wherein the first image-side feature map and the second image-side feature map are at least part of the multiple image-side features.

[0123] In some embodiments, obtaining the fused object-space feature may include: converting the first image-space feature map into a first object-space feature map based on a first image-space-object mapping relationship for the first image-space image among the multiple image-space-object mapping relationships; converting the second image-space feature map into a second object-space feature map based on a second image-space-object mapping relationship for the second image-space image among the multiple image-space-object mapping relationships; and determining the fused object-space feature based on the first object-space feature map and the second object-space feature map.

[0124] Fig.10 FIG. 1 is a schematic block diagram of an apparatus 1000 for determining an object space contour according to some embodiments of the present disclosure. Fig.10As shown, the apparatus 1000 may include an image space contour determination module 1002, which is used to determine at least a plurality of corresponding image space contours of the observed object in the plurality of image space images based on the received plurality of image space images. The apparatus 1000 may include a mapping relationship determination module 1004, which is used to respectively determine a plurality of image space-object space mapping relationships for the plurality of image space images based on the plurality of image space contours. The apparatus 1000 may include an object space contour determination module 1006, which is used to determine the object space contour for the object space where the observed object is located based on the plurality of image space-object space mapping relationships.

[0125] In some embodiments, the image space contour determination module 1002 can be configured to: input the multiple image space images into a predetermined object space contour determination model; and respectively obtain a corresponding multiple image space features and a corresponding multiple image space contours of the observed object in the multiple image space images from the multiple image space images.

[0126] In some embodiments, the object space contour determination module 1006 can be configured to: determine a plurality of object space features corresponding to the plurality of image space features respectively based on the plurality of image space-object space mapping relationships; obtain a fused object space feature by fusing the plurality of object space features; and determine the object space contour based on the fused object space feature.

[0127] In some embodiments, the mapping relationship determination module 1004 can be configured to: determine an image space point from a first image space image corresponding to the first image space contour among the multiple image space images based on a first image space contour among the multiple image space images; determine an object space point corresponding to the image space point; and determine a first image space-object space mapping relationship for the first image space image among the multiple image space-object space mapping relationships based on the image space point and the object space point.

[0128] In some embodiments, determining the first image-space-object-space mapping relationship may include: determining a transformation function based on position information of the object-space point except for its height and the position information of the image-space point; and determining the first image-space-object-space mapping relationship based on the transformation function.

[0129] In some embodiments, the object space contour determination model may include a convolutional neural network, and obtaining the multiple image space features may include: inputting a first image space image among the multiple image space images into the convolutional neural network to extract a first image space feature map from the first image space image; and inputting a second image space image among the multiple image space images into the convolutional neural network to extract a second image space feature map from the second image space image, wherein the first image space feature map and the second image space feature map are at least part of the multiple image space features.

[0130] In some embodiments, obtaining the fused object-space feature may include: converting the first image-space feature map into a first object-space feature map based on a first image-space-object mapping relationship for the first image-space image among the multiple image-space-object mapping relationships; converting the second image-space feature map into a second object-space feature map based on a second image-space-object mapping relationship for the second image-space image among the multiple image-space-object mapping relationships; and determining the fused object-space feature based on the first object-space feature map and the second object-space feature map.

[0131] In some embodiments, the observed object may be a roof of a building.

[0132] Fig.11 1 shows a schematic block diagram of an example device 1100 that can be used to implement embodiments of the present disclosure. Fig.11 As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to computer program instructions stored in a random access memory (RAM) 1103 and / or a read-only memory (ROM) 1102 or computer program instructions loaded from a storage unit 1108 into the RAM 1103 and / or ROM 1102. Various programs and data required for the operation of the device 1100 can also be stored in the RAM 1103 and / or ROM 1102. The computing unit 1101 and the RAM 1103 and / or ROM 1102 are connected to each other via a bus 904. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0133] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0134] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as processes 300, 500, 600, 800. For example, in some embodiments, the processes 300, 500, 600, 800 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via the RAM 1103 and / or the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and / or the ROM 1102 and executed by the computing unit 1101, one or more steps of the processes 300, 500, 600, and 800 described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the processes 300, 500, 600, and 800 in any other appropriate manner (e.g., by means of firmware).

[0135] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0136] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0138] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for determining an object space contour, characterized in that: The method comprises: Based on the received multiple image space images, at least determine multiple corresponding image space contours of the observed object in the multiple image space images; Determining a plurality of image-space-object-space mapping relationships for the plurality of image-space images respectively based on the plurality of image-space profiles; and Based on the multiple image space-object space mapping relationships, the object space contour is determined for the object space where the observed object is located.

2. The method according to claim 1, characterized in that Determining at least the plurality of image space contours based on the plurality of image space images comprises: inputting the plurality of image-space images into a predetermined object-space contour determination model; and A corresponding plurality of image-space features and a corresponding plurality of image-space contours of the observed object in the plurality of image-space images are respectively acquired from the plurality of image-space images.

3. The method according to claim 2, characterized in that Determining the object space contour includes: Based on the multiple image-space-object-space mapping relationships, determining a plurality of object-space features respectively corresponding to the plurality of image-space features; Obtaining a fused object feature by fusing the multiple object features; and Based on the fused object features, the object contour is determined.

4. The method according to claim 1, characterized in that Determining the multiple image-space-object-space mapping relationships includes: Based on a first image space profile among the plurality of image space profiles, determining an image space point position from a first image space image among the plurality of image space images corresponding to the first image space profile; Determining the object-space point corresponding to the image-space point; and A first image-space-object-space mapping relationship for the first image-space image among the plurality of image-space-object-space mapping relationships is determined based on the image-space point position and the object-space point position.

5. The method according to claim 4, characterized in that Determining the first image space-object space mapping relationship includes: Determining a transformation function based on the position information of the object-side point except the height and the position information of the image-side point; and The first image space-object space mapping relationship is determined based on the transformation function.

6. The method according to claim 3, characterized in that The object space contour determination model includes a convolutional neural network, and obtaining the plurality of image space features includes: Inputting a first image-space image from the plurality of image-space images into the convolutional neural network to extract a first image-space feature map from the first image-space image; and A second image space image among the multiple image space images is input into the convolutional neural network to extract a second image space feature map from the second image space image, wherein the first image space feature map and the second image space feature map are at least part of the multiple image space features.

7. The method according to claim 6, characterized in that Acquiring the fusion object feature includes: Based on a first image-space-object-space mapping relationship for the first image-space image among the multiple image-space-object-space mapping relationships, converting the first image-space feature map into a first object-space feature map; Based on a second image-space-object-space mapping relationship for the second image-space image among the plurality of image-space-object-space mapping relationships, converting the second image-space feature map into a second object-space feature map; and The fused object-side feature is determined based on the first object-side feature map and the second object-side feature map.

8. The method according to any one of claims 1 to 7, characterized in that The observed object is the roof of a building.

9. A method for training a target model, characterized in that: The method comprises: By inputting a plurality of image-space images into the target model, obtaining a corresponding plurality of image-space features and a corresponding plurality of image-space contours of the observed object in the plurality of image-space images, so as to determine a first loss function of the target model based on the plurality of image-space contours and a plurality of true-value image-space contours respectively corresponding to the plurality of image-space contours, wherein the plurality of true-value image-space contours are respectively determined based on positions of the true-value object-space contours of the observed object in the plurality of image-space images; Determine a plurality of image-space-object-space mapping relationships for the plurality of image-space images respectively based on the true object-space contour; Determine an object space contour based on the multiple image space-object space mapping relationships and the multiple image space features, and determine a second loss function of the target model based on the object space contour and the true object space contour; and The first loss function and the second loss function are optimized to determine the target model.

10. The method according to claim 9, characterized in that Determining the object space contour includes: Based on the multiple image-space-object-space mapping relationships, determining multiple object-space features respectively corresponding to the multiple image-space features; Obtaining a fused object feature by fusing the multiple object features; and Based on the fused object features, the object contour is determined.

11. The method according to claim 9, characterized in that The true value object space contour is true value data manually annotated on an object space image generated from point cloud data, and determining the multiple image space-object space mapping relationships includes: Based on the true object space contour, determining the associated object space point position from the point cloud data; Determining an image-space point position of a first image-space image among the plurality of image-space images projected from the object-space point position; and A first image-space-object-space mapping relationship for the first image-space image in the image-space-object-space mapping relationship is determined based on the object-space point position and the image-space point position.

12. The method according to claim 11, characterized in that Determining the first image space-object space mapping relationship includes: Determining a transformation function based on the position information of the object-side point except the height and the position information of the image-side point; and The first image space-object space mapping relationship is determined based on the transformation function.

13. The method according to claim 11, characterized in that Determining the object point position includes: The point cloud data adjacent to the true value object space contour in the point cloud data is determined as the object space point position.

14. The method according to claim 10, characterized in that The target model includes a convolutional neural network, and obtaining the plurality of image-space features includes: Inputting a first image-space image from the plurality of image-space images into the convolutional neural network to extract a first image-space feature map from the first image-space image; and A second image space image among the multiple image space images is input into the convolutional neural network to extract a second image space feature map from the second image space image, wherein the first image space feature map and the second image space feature map are at least part of the multiple image space features.

15. The method according to claim 14, characterized in that Acquiring the fusion object feature includes: Based on a first image-space-object-space mapping relationship for the first image-space image among the multiple image-space-object-space mapping relationships, converting the first image-space feature map into a first object-space feature map; Based on a second image-space-object-space mapping relationship for the second image-space image among the plurality of image-space-object-space mapping relationships, converting the second image-space feature map into a second object-space feature map; and The fused object-side feature is determined based on the first object-side feature map and the second object-side feature map.

16. A device for determining an object space contour, characterized in that: include: An image space contour determination module is configured to determine at least a plurality of corresponding image space contours of the observed object in the plurality of image space images based on the received plurality of image space images; A mapping relationship determination module, configured to respectively determine a plurality of image space-object space mapping relationships for the plurality of image space images based on the plurality of image space contours; as well as The object space contour determination module is configured to determine the object space contour for the object space where the observed object is located based on the multiple image space-object space mapping relationships.

17. A device for training a target model, characterized in that: include: A first loss function determination module is configured to obtain a corresponding plurality of image space features and a corresponding plurality of image space contours of the observed object in the plurality of image space images by inputting a plurality of image space images into the target model, so as to determine a first loss function of the target model based on the plurality of image space contours and a plurality of true value image space contours respectively corresponding to the plurality of image space contours, wherein the plurality of true value image space contours are respectively determined based on positions of the true value object space contours of the observed object in the plurality of image space images; A mapping relationship determination module, configured to respectively determine a plurality of image-space-object-space mapping relationships for the plurality of image-space images based on the true object-space contour; A second loss function determination module is configured to determine an object space contour based on the multiple image space-object space mapping relationships and the multiple image space features, so as to determine a second loss function of the target model based on the object space contour and the true value object space contour; as well as An optimization module is configured to optimize the first loss function and the second loss function to determine the target model.

18. An electronic device, characterized in that: include: at least one computing unit; At least one memory, the at least one memory being coupled to the at least one computing unit and storing instructions for execution by the at least one computing unit, the instructions, when executed by the at least one computing unit, causing the device to perform the method according to any one of claims 1-15.

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

20. A computer program product comprising computer executable instructions, characterized in that: The computer executable instructions implement the method according to any one of claims 1-15 when executed by a processor.