Logistics distribution method and device based on remote sensing image

By annotating the building roof outline and base offset on the remote sensing image data, and using the image semantic segmentation and offset prediction model to calculate the building base coordinates, the problem of inability to accurately obtain the base coordinates in the existing technology is solved. , achieving improved accuracy and efficiency in logistics distribution.

CN118691983APending Publication Date: 2024-09-24BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310280467.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology cannot accurately obtain the coordinate position of the building base, making it difficult for logistics and distribution to achieve accurate delivery.

Method used

By acquiring remote sensing image data, the outline of the building roof area and the line segment of the base offset distance are marked, and the coordinate position of the building base is calculated by combining the image semantic segmentation model and the offset prediction network model.

Benefits of technology

It achieves the accurate determination of building base coordinates from the building roof segmentation results and offset prediction results in remote sensing images, improves the accuracy and efficiency of logistics distribution, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691983A
    Figure CN118691983A
Patent Text Reader

Abstract

The invention discloses a logistics distribution method and device based on a remote sensing image, and relates to the technical field of logistics. A specific embodiment of the method comprises the steps of obtaining remote sensing image data of a to-be-delivered area, performing contour labeling on a building roof area in the remote sensing image data, performing line segment labeling on an offset distance of a building roof relative to a building base, and obtaining a labeling file; inputting the annotation file into an image semantic segmentation model for first processing to obtain a coordinate position of a building roof in the remote sensing image data; the annotation file is input into the offset prediction network model for second processing, and the building roof offset is obtained; and calculating the coordinate position of the building base according to the coordinate position of the building roof and the offset of the building roof, and carrying out corresponding logistics distribution according to the coordinate position of the building base. According to the embodiment of the invention, accurate logistics distribution can be realized, the distribution efficiency is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics technology, and in particular to a logistics distribution method and device based on remote sensing images. Background Art

[0002] The logistics field relies on high-precision maps for accurate delivery, but current maps are not accurate to the level of individual buildings. The lack of this information can be compensated by remote sensing image semantic segmentation technology.

[0003] Buildings are important man-made objects in remote sensing images and play a very important role in optical remote sensing image analysis. Since remote sensing images are not taken completely perpendicular to the ground, the buildings have a certain tilt angle in the image, and as the height of the building increases, the offset distance between the roof and the base becomes larger. The relevant technology mainly performs semantic segmentation on the roof of the building based on FCN (Fully Convolutional Network) to determine the coordinate position of the roof of the building. However, since it is impossible to accurately obtain the coordinate position of the base of the building, further research is needed to achieve precise logistics distribution. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a logistics distribution method and device based on remote sensing images, which can determine the coordinate position of the building base based on the building roof segmentation results and offset prediction results in the remote sensing image, so as to achieve accurate logistics distribution, improve distribution efficiency, and enhance user experience.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a logistics distribution method based on remote sensing images is provided, comprising:

[0006] Acquire remote sensing image data of the area to be delivered, mark the outline of the building roof area in the remote sensing image data, and mark the offset distance of the building roof relative to the building base by line segments to obtain a marking file;

[0007] The annotated file is input into the image semantic segmentation model for a first process to obtain the coordinate position of the roof of the building in the remote sensing image data; the annotated file is input into the offset prediction network model for a second process to obtain the offset of the roof of the building;

[0008] The coordinate position of the building base is calculated based on the coordinate position of the building roof and the building roof offset, and corresponding logistics distribution is performed based on the coordinate position of the building base.

[0009] Furthermore, the method also includes a model training step:

[0010] Acquire remote sensing image sample data, perform annotation processing on the remote sensing image sample data, and obtain a sample annotation file; determine the annotated segmented image of the building base in the remote sensing image sample data according to the sample annotation file;

[0011] The sample annotation file is input into the image semantic segmentation model to perform building roof segmentation processing, and the building roof segmentation processing results are deeply supervised through the contour annotations in the sample annotation file to realize the training of the image semantic segmentation model.

[0012] Furthermore, the method further comprises:

[0013] The sample annotation file is input into the offset prediction network model for roof offset prediction processing, and the roof offset prediction processing results are deeply supervised through the line segment annotations in the sample annotation file to realize the training of the offset prediction network model.

[0014] Furthermore, the method further comprises:

[0015] The segmentation position result of the building base is determined according to the building roof segmentation processing results and the roof offset prediction processing results. The segmentation position result of the building base is supervised and trained through the labeled segmented image of the building base to achieve optimized training of the image semantic segmentation model and the offset prediction network model.

[0016] Further, after the step of determining the segmentation position result of the building base according to the building roof segmentation processing result and the offset prediction processing result, the method further includes:

[0017] Calculate the total loss function of the network model; the total loss function includes the loss function of the building roof segmentation processing, the loss function of the roof offset prediction processing, and the loss function of the building base segmentation processing.

[0018] Furthermore, the step of determining the labeled segmented image of the building base in the remote sensing image sample data according to the sample annotation file includes:

[0019] Generate a labeled segmented image of the building roof outline according to the outline annotations in the sample annotation file;

[0020] Construct a remote sensing image coordinate system, and determine the roof offset of pixels in the building roof area in the remote sensing image coordinate system according to the line segment annotations in the sample annotation file;

[0021] According to the labeled segmented image of the building roof outline and the roof offset, a labeled segmented image of the building base in the remote sensing image sample data is generated.

[0022] Furthermore, the image semantic segmentation model and the offset prediction network model are both built based on UNet3+, and the image semantic segmentation model and the offset prediction network model share the encoding layer.

[0023] According to another aspect of an embodiment of the present invention, a logistics distribution device based on remote sensing images is provided, comprising:

[0024] A labeling module is used to obtain remote sensing image data of the area to be delivered, to label the outline of the building roof area in the remote sensing image data, to label the offset distance of the building roof relative to the building base, and to obtain a labeling file;

[0025] A processing module is used to input the annotation file into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; input the annotation file into the offset prediction network model for a second processing to obtain the building roof offset;

[0026] The distribution module is used to calculate the coordinate position of the building base according to the coordinate position of the building roof and the building roof offset, and perform corresponding logistics distribution according to the coordinate position of the building base.

[0027] According to another aspect of an embodiment of the present invention, there is provided an electronic device for logistics distribution based on remote sensing images, comprising:

[0028] one or more processors;

[0029] a storage device for storing one or more programs,

[0030] When one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned remote sensing image-based logistics distribution methods.

[0031] According to another aspect of the embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, any of the above-mentioned remote sensing image-based logistics distribution methods is implemented.

[0032] An embodiment of the above invention has the following advantages or beneficial effects: because remote sensing image data of the area to be delivered is obtained, the outline of the building roof area in the remote sensing image data is marked, and the offset distance of the building roof relative to the building base is marked by line segments to obtain a marking file; the marking file is input into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; the marking file is input into the offset prediction network model for a second processing to obtain the offset of the building roof; the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and the corresponding logistics distribution is performed according to the coordinate position of the building base. Therefore, the technical means overcomes the technical problem that semantic segmentation of the building roof in the related technology can only determine the coordinate position of the building roof, and cannot accurately obtain the coordinate position of the building base, which makes it difficult to achieve precise logistics distribution, and thus achieves the technical effect of being able to determine the coordinate position of the building base based on the building roof segmentation result and the offset prediction result in the remote sensing image, so as to achieve precise logistics distribution, improve distribution efficiency, and enhance user experience.

[0033] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0035] Figure 1 is a schematic diagram of the main process of a logistics distribution method based on remote sensing images provided according to an embodiment of the present invention;

[0036] Figure 2a is a schematic diagram of the main process of a logistics distribution method based on remote sensing images provided according to another embodiment of the present invention;

[0037] Figure 2b yes Figure 2a A schematic diagram of a model for determining the coordinate position of a building base according to an image semantic segmentation model and an offset prediction network model in the method shown;

[0038] Figure 3 is a schematic diagram of main modules of a logistics distribution device based on remote sensing images provided according to an embodiment of the present invention;

[0039] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0040] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0042] Figure 1 is a schematic diagram of the main process of a logistics distribution method based on remote sensing images according to an embodiment of the present invention; Figure 1 As shown, the remote sensing image-based logistics distribution method provided by the embodiment of the present invention mainly includes:

[0043] Step S101, obtaining remote sensing image data of the area to be delivered, annotating the outline of the building roof area in the remote sensing image data, and annotating the offset distance of the building roof relative to the building base by line segments to obtain an annotation file.

[0044] Specifically, remote sensing image data can be obtained from a public remote sensing data set. Existing image annotation tools can be used to annotate the roof area of ​​the building and the offset distance between the roof of the building and the base of the building in the remote sensing image data. According to a specific implementation of an embodiment of the present invention, VIA (VGG Image Annotator, an open source deep learning image annotation tool developed by the Visual Geometry Group, can be used online and offline, and can annotate rectangles, circles, ellipses, polygons, points and lines) is used to annotate the polygonal outline of the roof area of ​​the building, and the offset distance of the roof of the building relative to the base of the building is annotated by line segments. In actual processing, for relatively short buildings (for example, less than 10 meters in height), since the offset distance between the roof of the building and the base of the building in the remote sensing image is small, only the roof of the building can be marked; for buildings with a certain height (for example, higher than 10 meters in height), since there is a certain tilt angle in the remote sensing image shooting, the side of the building can be clearly seen. Therefore, for such buildings, in addition to marking the outline of the roof area of ​​the building, the offset distance between the roof and the base is also marked by line segments. The default building base outline is consistent with the building roof outline. A point on the building roof outline is used as the starting point, and a point on the building base outline corresponding to the roof outline is used as the end point to obtain the marked offset distance. Through the above settings, by marking the outline of the building roof area in the remote sensing image data and marking the offset distance of the building roof relative to the building base, the annotation file is obtained as the input for subsequent model processing, which can quickly and accurately determine the coordinate position of the building base and provide corresponding distribution information for logistics precision distribution.

[0045] Step S102, input the annotated file into the image semantic segmentation model for first processing to obtain the coordinate position of the building roof in the remote sensing image data; input the annotated file into the offset prediction network model for second processing to obtain the building roof offset.

[0046] Through the above settings, the coordinate position of the building roof is determined by the image semantic segmentation model, and then the roof offset corresponding to the building roof and the building base is determined according to the offset prediction network model. Subsequently, the precise coordinate position of the building base can be directly determined based on this, thereby improving the delivery accuracy and efficiency.

[0047] Specifically, according to an embodiment of the present invention, the method further includes a model training step:

[0048] Acquire remote sensing image sample data, perform annotation processing on the remote sensing image sample data, and obtain a sample annotation file; determine the annotated segmented image of the building base in the remote sensing image sample data according to the sample annotation file;

[0049] The sample annotation file is input into the image semantic segmentation model to perform building roof segmentation processing, and the building roof segmentation processing results are deeply supervised through the contour annotations in the sample annotation file to realize the training of the image semantic segmentation model.

[0050] The sample annotation file is used as the input of the image semantic segmentation model, and the contour annotation results are used to perform deep supervision on the building roof segmentation processing results to realize the training of the image semantic segmentation model.

[0051] Furthermore, according to an embodiment of the present invention, the method further includes:

[0052] The sample annotation file is input into the offset prediction network model for roof offset prediction processing, and the roof offset prediction processing results are deeply supervised through the line segment annotations in the sample annotation file to realize the training of the offset prediction network model.

[0053] The sample annotation file is used as the input of the offset prediction network model, and the line segment annotation results are used to perform deep supervision on the roof offset prediction processing results to realize the training of the offset prediction network model.

[0054] Preferably, according to an embodiment of the present invention, the method further includes:

[0055] The segmentation position result of the building base is determined according to the building roof segmentation processing results and the roof offset prediction processing results. The segmentation position result of the building base is supervised and trained through the labeled segmented image of the building base to achieve optimized training of the image semantic segmentation model and the offset prediction network model.

[0056] During the training process of the above-mentioned image semantic segmentation model and the offset prediction network model, the segmentation position result of the building base can also be determined according to the input results (the building roof segmentation processing results and the roof offset prediction processing results), and the segmentation position result can be supervised and trained with the labeled segmentation image of the building base to achieve the optimization processing of the image semantic segmentation model and the offset prediction network model, improve the accuracy of the model processing, so as to facilitate the subsequent determination of a more accurate coordinate position of the building base.

[0057] Further, according to an embodiment of the present invention, after the step of determining the segmentation position result of the building base according to the building roof segmentation processing result and the offset prediction processing result, the method further includes:

[0058] Calculate the total loss function of the network model; the total loss function includes the loss function of the building roof segmentation processing, the loss function of the roof offset prediction processing, and the loss function of the building base segmentation processing.

[0059] Optionally, according to an embodiment of the present invention, the step of determining the labeled segmented image of the building base in the remote sensing image sample data according to the sample annotation file includes:

[0060] Generate a labeled segmented image of the building roof outline according to the outline annotations in the sample annotation file;

[0061] Construct a remote sensing image coordinate system, and determine the roof offset of pixels in the building roof area in the remote sensing image coordinate system according to the line segment annotations in the sample annotation file;

[0062] According to the labeled segmented image of the building roof outline and the roof offset, a labeled segmented image of the building base in the remote sensing image sample data is generated.

[0063] In the process of generating the annotated segmented image of the building base in the remote sensing image sample data, the offset based on the x-axis and y-axis directions of the remote sensing image coordinate system is annotated in each pixel of the building roof area according to the roof offset, thereby generating the annotated segmented image of the building base in the remote sensing image sample data.

[0064] Exemplarily, according to an embodiment of the present invention, the above-mentioned image semantic segmentation model and the offset prediction network model are both constructed based on UNet3+, and the above-mentioned image semantic segmentation model and the offset prediction network model share a coding layer.

[0065] Among them, UNet3+ (an image semantic segmentation network model, UNet is a convolutional neural network with an encoder-decoder structure, commonly used in medical image segmentation; UNet++ is a convolutional neural network with nested and dense skip connections added to UNet; UNet3+ utilizes full-scale skip connections and deep supervision. Full-scale skip connections directly combine high-level semantics with low-level semantics from feature maps of different scales (necessary upsampling operations are required); deep supervision learns hierarchical representations from multi-scale aggregated feature maps, so UNet3+ includes three parts: encoder (Down-sampling), decoder (Up-sampling) and full-scale skip connection (Full-Scale Skip Connection). In an embodiment of the present invention, UNet3+ is used as the basic model of the image semantic segmentation model and the offset prediction network model. The encoders of the two share the same shared coding layer, which reduces the number of parameters while improving the feature extraction capability of the coding network. Among them, the decoding structure of the offset prediction network model is also consistent with the image semantic segmentation model for roof segmentation, except that the line segment annotation of the offset distance is used to supervise the training of the roof offset separately.

[0066] In the specific implementation, the maximum and minimum values ​​of the absolute values ​​of the marked roof offsets can be counted first, and the absolute value of the roof offset output by the offset prediction network model can be limited between the maximum and minimum values ​​to reduce the oscillation of the network training process and speed up the convergence speed.

[0067] Furthermore, when determining the coordinate position of the building base, the building roof segmentation processing result (i.e., the coordinate position of the building roof output by the image semantic segmentation model) is moved in the corresponding direction according to the roof offset prediction processing result (i.e., the roof offset output by the offset prediction network model). If the offset position exceeds the image boundary, it is limited to the image boundary to obtain the segmentation result of the building base, and supervised training is performed through the segmentation position result of the building base in the labeled segmented image of the building base to achieve further optimization of the model.

[0068] Step S103, the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and corresponding logistics distribution is performed according to the coordinate position of the building base.

[0069] According to an embodiment of the present invention, when determining the offset of the building roof, the offset values ​​of all pixels in the building roof area can be counted first, and then the average of all the offset values ​​is calculated to serve as the roof offset of the building roof. The coordinate position of the building base is calculated based on the coordinate position of the building roof and the building roof offset.

[0070] According to a specific embodiment of the present invention, through the above-mentioned settings, the segmentation IOU (Intersection Over Union, an indicator for measuring algorithm performance in semantic segmentation) of the building base is significantly improved, further meeting the needs of precise logistics distribution, and also improving distribution efficiency and user experience.

[0071] According to the technical solution of the embodiment of the present invention, the remote sensing image data of the area to be delivered is obtained, the contour of the building roof area in the remote sensing image data is marked, and the offset distance of the building roof relative to the building base is marked by line segments to obtain a marking file; the marking file is input into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; the marking file is input into the offset prediction network model for a second processing to obtain the offset of the building roof; the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and the corresponding logistics distribution is performed according to the coordinate position of the building base. Therefore, the technical problem that semantic segmentation of the building roof in the related art can only determine the coordinate position of the building roof, but cannot accurately obtain the coordinate position of the building base, resulting in difficulty in realizing precise logistics distribution, is overcome, and the coordinate position of the building base can be determined based on the building roof segmentation result and the offset prediction result in the remote sensing image, so as to realize precise logistics distribution, improve distribution efficiency, and enhance user experience.

[0072] Figure 2a is a schematic diagram of the main process of a logistics distribution method based on remote sensing images according to another embodiment of the present invention; Figure 2a As shown, the remote sensing image-based logistics distribution method provided by the embodiment of the present invention mainly includes:

[0073] Step S201, acquiring remote sensing image sample data, and performing annotation processing on the remote sensing image sample data to obtain a sample annotation file.

[0074] Specifically, the above-mentioned step of labeling the remote sensing image sample data mainly includes: labeling the outline of the building roof area, and labeling the offset distance of the building roof relative to the building base with line segments.

[0075] According to an embodiment of the present invention, the polygonal outline of the building roof area can be annotated by VGG Image Annotator (an open source deep learning image annotation tool), and the offset distance of the building roof relative to the building base can be annotated by line segments. For relatively short buildings, since the offset distance between the building roof and the building base in the remote sensing image is small, only the building roof can be annotated; and for buildings of a certain height, since the remote sensing image is shot at a certain tilt angle, the side of the building can be clearly seen. Therefore, for such buildings, in addition to annotating the outline of the building roof area, the offset distance between the roof and the base is also annotated by line segments. It is assumed that the outline of the building base is consistent with the outline of the building roof. A point on the building outline is used as the starting point, and a point on the building base outline corresponding to the roof outline is used as the end point to obtain the annotated offset distance.

[0076] Step S202, generating a labeled segmented image of the building roof outline according to the outline annotations in the sample annotation file; constructing a remote sensing image coordinate system, and determining the roof offset of the building roof area pixels in the remote sensing image coordinate system according to the line segment annotations in the sample annotation file; generating a labeled segmented image of the building base in the remote sensing image sample data according to the labeled segmented image of the building roof outline and the roof offset.

[0077] In the process of generating the annotated segmented image of the building base in the remote sensing image sample data, the offset in the x and y directions (the x and y directions determined based on the remote sensing image coordinate system) is annotated in each pixel in the roof area of ​​the building according to the roof offset. For the roof without an offset, the default offset is (0,0), and the default offset for each pixel in the non-roof area is also (0,0), thereby generating the annotated segmented image of the building base in the remote sensing image sample data.

[0078] Step S203, input the sample annotation file into the image semantic segmentation model to perform building roof segmentation processing, and perform deep supervision on the building roof segmentation processing result through the contour annotation in the sample annotation file to realize the training of the image semantic segmentation model.

[0079] The image semantic segmentation model is built on UNet3+ (an image semantic segmentation network model), which uses full-scale skip connections and deep supervision. Full-scale skip connections directly combine high-level semantics from feature maps of different scales with low-level semantics (necessary upsampling operations are required); deep supervision learns hierarchical representations from multi-scale aggregated feature maps.

[0080] Step S204, input the sample annotation file into the offset prediction network model to perform roof offset prediction processing, and perform deep supervision on the roof offset prediction processing result through the line segment annotation in the sample annotation file to realize the training of the offset prediction network model.

[0081] Specifically, the offset prediction network model is also built on the basis of UNet3+, which shares the same encoding layer with the image semantic segmentation model, which reduces the number of parameters while improving the feature extraction capability of the encoding network. On the other hand, the decoding structure of the offset prediction network model is also consistent with the image semantic segmentation model for roof segmentation, the difference being that the roof offset is supervised and trained separately using line segment annotations of the offset distance.

[0082] In the specific implementation, the maximum and minimum values ​​of the absolute values ​​of the marked roof offsets can be counted first, and the absolute value of the roof offset output by the offset prediction network model can be limited between the maximum and minimum values ​​to reduce the oscillation of the network training process and speed up the convergence speed.

[0083] Step S205, determining the segmentation position result of the building base according to the building roof segmentation processing result and the roof offset prediction processing result, and performing supervised training on the segmentation position result of the building base through the labeled segmented image of the building base to achieve optimized training of the image semantic segmentation model and the offset prediction network model.

[0084] Furthermore, according to an embodiment of the present invention, when determining the coordinate position of the building base, the building roof segmentation processing result (i.e., the coordinate position of the building roof output by the image semantic segmentation model) is moved in the corresponding direction according to the roof offset prediction processing result (i.e., the roof offset output by the offset prediction network model). If the offset position exceeds the image boundary, it is limited to the image boundary to obtain the segmentation result of the building base, and supervised training is performed through the segmentation position result of the building base in the labeled segmented image of the building base to achieve further optimization of the model.

[0085] Preferably, according to an embodiment of the present invention, after the step of determining the segmentation position result of the building base according to the building roof segmentation processing result and the offset prediction processing result, the method further comprises:

[0086] Calculate the total loss function of the network model; the total loss function includes the loss function of the building roof segmentation processing, the loss function of the roof offset prediction processing, and the loss function of the building base segmentation processing.

[0087] Specifically, the total loss function is the joint loss function of the entire network model, and the formula is as follows:

[0088] L all =αL roof +βL offset +γL foundation

[0089] Among them, α, β, and γ are tuning parameters used to control the weights of the three losses, and the initial default is 1; L roof is the loss function for building roof segmentation, L offset is the loss function of the roof offset prediction process, L foundation is the loss function for the building base segmentation process.

[0090] Furthermore, the loss function L for building roof segmentation is roof and the loss function L for building base segmentation foundation Using cross entropy loss, the function is expressed as follows:

[0091] L roof / L foundation=-y*log(p)-(1-y)log(1-p)

[0092] Among them, p represents the probability that the current pixel belongs to class 1 (foreground image, roof or base), and 1-p represents the probability that the pixel belongs to class 0 (background image). Y represents the label of the roof or base. If the current pixel is a roof or base, the corresponding value of y is 1, otherwise, the corresponding value of y is 0.

[0093] Furthermore, the loss function L for the roof offset prediction process is offset Using Smooth L1Loss (regression loss function in target detection),

[0094]

[0095] Where x is the difference between the predicted value and the true value. If the absolute value of x is less than 1, the result is 0.5x. 2 If not, the result is |x|-0.5. Specifically, the predicted value is the output of the model predicting how far the pixel needs to move to reach the position of the base (roof offset), and the true value is the actual distance that needs to be moved, which is determined by the previously labeled offset distance.

[0096] Exemplarily, according to an embodiment of the present invention, Figure 2b A schematic diagram of a model for determining the coordinate position of a building base according to an image semantic segmentation model and an offset prediction network model in a logistics distribution method based on remote sensing images is shown, as shown in FIG. Figure 2b As shown, the above-mentioned annotation file is first processed by the image semantic segmentation model (because the model is used to segment the building roof and determine the building roof offset, that is, the roof label, also known as the roof segmentation network) to obtain the building roof offset. At the same time, since the roof segmentation network and the offset network (that is, the offset prediction network model) share the coding layer, the annotation file is secondly processed by the offset network to obtain the building roof offset. Accordingly, the segmentation result of the building base is achieved based on the roof segmentation network and the offset network, and the coordinate position of the building base (that is, the base label) is calculated according to the coordinate position of the building roof and the building roof offset.

[0097] Step S206, obtaining remote sensing image data of the area to be delivered, annotating the outline of the building roof area in the remote sensing image data, and annotating the offset distance of the building roof relative to the building base by line segments to obtain an annotation file.

[0098] Through the above settings, by marking the outline of the building roof area in the remote sensing image data and marking the offset distance of the building roof relative to the building base with line segments, the annotation file is obtained as the input for subsequent model processing. The coordinate position of the building base can be determined quickly and accurately, providing corresponding distribution information for precise logistics distribution.

[0099] Step S207, input the annotated file into the optimized image semantic segmentation model for first processing to obtain the coordinate position of the building roof in the remote sensing image data; input the annotated file into the optimized offset prediction network model for second processing to obtain the building roof offset.

[0100] Through the above settings, the coordinate position of the building roof is determined by the image semantic segmentation model, and then the roof offset corresponding to the building roof and the building base is determined according to the offset prediction network model. Subsequently, the precise coordinate position of the building base can be directly determined based on this, thereby improving the delivery accuracy and efficiency.

[0101] Step S208, the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and corresponding logistics distribution is performed according to the coordinate position of the building base.

[0102] According to an embodiment of the present invention, when determining the offset of the building roof, the offset values ​​of all pixels in the building roof area can be counted first, and then the average of all the offset values ​​is calculated to serve as the roof offset of the building roof. The coordinate position of the building base is calculated based on the coordinate position of the building roof and the building roof offset.

[0103] According to a specific embodiment of the present invention, through the above-mentioned settings, the segmentation intersection-union ratio of the building base (an indicator for measuring algorithm performance in semantic segmentation) is significantly improved, further meeting the needs of precise logistics distribution, and also improving distribution efficiency and user experience.

[0104] According to the technical solution of the embodiment of the present invention, the remote sensing image data of the area to be delivered is obtained, the contour of the building roof area in the remote sensing image data is marked, and the offset distance of the building roof relative to the building base is marked by line segments to obtain a marking file; the marking file is input into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; the marking file is input into the offset prediction network model for a second processing to obtain the offset of the building roof; the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and the corresponding logistics distribution is performed according to the coordinate position of the building base. Therefore, the technical problem that semantic segmentation of the building roof in the related art can only determine the coordinate position of the building roof, but cannot accurately obtain the coordinate position of the building base, resulting in difficulty in realizing precise logistics distribution, is overcome, and the coordinate position of the building base can be determined based on the building roof segmentation result and the offset prediction result in the remote sensing image, so as to realize precise logistics distribution, improve distribution efficiency, and enhance user experience.

[0105] Figure 3 is a schematic diagram of the main modules of a logistics distribution device based on remote sensing images provided according to an embodiment of the present invention; Figure 3 As shown, the remote sensing image-based logistics distribution device 300 provided in the embodiment of the present invention mainly includes:

[0106] The annotation module 301 is used to obtain remote sensing image data of the area to be delivered, annotate the outline of the building roof area in the remote sensing image data, and annotate the offset distance of the building roof relative to the building base to obtain an annotation file.

[0107] Specifically, remote sensing image data can be obtained from a public remote sensing data set. Existing image annotation tools can be used to annotate the roof area of ​​a building and the offset distance between the roof of the building and the base of the building in the remote sensing image data. According to a specific implementation of an embodiment of the present invention, VIA (VGG Image Annotator, an open source deep learning image annotation tool) is used to annotate the polygonal contour of the roof area of ​​the building, and the offset distance of the roof of the building relative to the base of the building is annotated by line segments.

[0108] Through the above settings, by marking the outline of the building roof area in the remote sensing image data and marking the offset distance of the building roof relative to the building base with line segments, the annotation file is obtained as the input for subsequent model processing. The coordinate position of the building base can be determined quickly and accurately, providing corresponding distribution information for precise logistics distribution.

[0109] The processing module 302 is used to input the annotation file into the image semantic segmentation model for the first processing to obtain the coordinate position of the building roof in the remote sensing image data; and input the annotation file into the offset prediction network model for the second processing to obtain the building roof offset.

[0110] Through the above settings, the coordinate position of the building roof is determined by the image semantic segmentation model, and then the roof offset corresponding to the building roof and the building base is determined according to the offset prediction network model. Subsequently, the precise coordinate position of the building base can be directly determined based on this, thereby improving the delivery accuracy and efficiency.

[0111] Specifically, according to an embodiment of the present invention, the remote sensing image-based logistics distribution device 300 further includes a model training module for:

[0112] Acquire remote sensing image sample data, perform annotation processing on the remote sensing image sample data, and obtain a sample annotation file; determine the annotated segmented image of the building base in the remote sensing image sample data according to the sample annotation file;

[0113] The sample annotation file is input into the image semantic segmentation model to perform building roof segmentation processing, and the building roof segmentation processing results are deeply supervised through the contour annotations in the sample annotation file to realize the training of the image semantic segmentation model.

[0114] The sample annotation file is used as the input of the image semantic segmentation model, and the contour annotation results are used to perform deep supervision on the building roof segmentation processing results to realize the training of the image semantic segmentation model.

[0115] Further, according to an embodiment of the present invention, the above-mentioned model training module is also used for:

[0116] The sample annotation file is input into the offset prediction network model for roof offset prediction processing, and the roof offset prediction processing results are deeply supervised through the line segment annotations in the sample annotation file to realize the training of the offset prediction network model.

[0117] The sample annotation file is used as the input of the offset prediction network model, and the line segment annotation results are used to perform deep supervision on the roof offset prediction processing results to realize the training of the offset prediction network model.

[0118] Preferably, according to an embodiment of the present invention, the above-mentioned model training module is also used for:

[0119] The segmentation position result of the building base is determined according to the building roof segmentation processing results and the roof offset prediction processing results. The segmentation position result of the building base is supervised and trained through the labeled segmented image of the building base to achieve optimized training of the image semantic segmentation model and the offset prediction network model.

[0120] During the training process of the above-mentioned image semantic segmentation model and the offset prediction network model, the segmentation position result of the building base can also be determined according to the input results (the building roof segmentation processing results and the roof offset prediction processing results), and the segmentation position result can be supervised and trained with the labeled segmentation image of the building base to achieve the optimization processing of the image semantic segmentation model and the offset prediction network model, improve the accuracy of the model processing, so as to facilitate the subsequent determination of a more accurate coordinate position of the building base.

[0121] Further, according to an embodiment of the present invention, the remote sensing image-based logistics distribution device 300 further includes a loss function calculation module. After the step of determining the segmentation position result of the building base according to the building roof segmentation processing result and the offset prediction processing result, the loss function calculation module is used to:

[0122] Calculate the total loss function of the network model; the total loss function includes the loss function of the building roof segmentation processing, the loss function of the roof offset prediction processing, and the loss function of the building base segmentation processing.

[0123] Optionally, according to an embodiment of the present invention, the above-mentioned model training module is also used for:

[0124] Generate a labeled segmented image of the building roof outline according to the outline annotations in the sample annotation file;

[0125] Construct a remote sensing image coordinate system, and determine the roof offset of pixels in the building roof area in the remote sensing image coordinate system according to the line segment annotations in the sample annotation file;

[0126] According to the labeled segmented image of the building roof outline and the roof offset, a labeled segmented image of the building base in the remote sensing image sample data is generated.

[0127] In the process of generating the annotated segmented image of the building base in the remote sensing image sample data, the offset in the x and y directions (the x and y directions determined based on the remote sensing image coordinate system) is annotated in each pixel in the roof area of ​​the building according to the roof offset, so as to generate the annotated segmented image of the building base in the remote sensing image sample data.

[0128] Exemplarily, according to an embodiment of the present invention, the above-mentioned image semantic segmentation model and the offset prediction network model are both constructed based on UNet3+, and the above-mentioned image semantic segmentation model and the offset prediction network model share a coding layer.

[0129] Among them, UNet3+ (an image semantic segmentation network model includes three parts: encoder, decoder and full-size skip connection). The embodiment of the present invention uses UNet3+ as the basic model of the image semantic segmentation model and the offset prediction network model. The encoders of the two share the same shared coding layer, which reduces the number of parameters and improves the feature extraction ability of the coding network. Among them, the decoding structure of the offset prediction network model is also consistent with the image semantic segmentation model for roof segmentation. The difference is that the roof offset is supervised and trained separately using line segment annotations of the offset distance.

[0130] In the specific implementation, the maximum and minimum values ​​of the absolute values ​​of the marked roof offsets can be counted first, and the absolute value of the roof offset output by the offset prediction network model can be limited between the maximum and minimum values ​​to reduce the oscillation of the network training process and speed up the convergence speed.

[0131] Furthermore, when determining the coordinate position of the building base, the building roof segmentation processing result (i.e., the coordinate position of the building roof output by the image semantic segmentation model) is moved accordingly according to the roof offset prediction processing result (i.e., the roof offset output by the offset prediction network model). If the offset position exceeds the image boundary, it is limited to the image boundary to obtain the segmentation result of the building base, and supervised training is performed through the segmentation position result of the building base in the labeled segmented image of the building base to achieve further optimization of the model.

[0132] The distribution module 303 is used to calculate the coordinate position of the building base according to the coordinate position of the building roof and the building roof offset, and perform corresponding logistics distribution according to the coordinate position of the building base.

[0133] According to an embodiment of the present invention, when determining the offset of the building roof, the offset values ​​of all pixels in the building roof area can be counted first, and then the average of all the offset values ​​is calculated to serve as the roof offset of the building roof. The coordinate position of the building base is calculated based on the coordinate position of the building roof and the building roof offset.

[0134] According to a specific embodiment of the present invention, through the above-mentioned settings, the segmentation intersection ratio of the building base is significantly improved, further meeting the needs of precise logistics distribution, and also improving the distribution efficiency and user experience.

[0135] According to the technical solution of the embodiment of the present invention, the remote sensing image data of the area to be delivered is obtained, the contour of the building roof area in the remote sensing image data is marked, and the offset distance of the building roof relative to the building base is marked by line segments to obtain a marking file; the marking file is input into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; the marking file is input into the offset prediction network model for a second processing to obtain the offset of the building roof; the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and the corresponding logistics distribution is performed according to the coordinate position of the building base. Therefore, the technical problem that semantic segmentation of the building roof in the related art can only determine the coordinate position of the building roof, but cannot accurately obtain the coordinate position of the building base, resulting in difficulty in realizing precise logistics distribution, is overcome, and the coordinate position of the building base can be determined based on the building roof segmentation result and the offset prediction result in the remote sensing image, so as to realize precise logistics distribution, improve distribution efficiency, and enhance user experience.

[0136] Figure 4 An exemplary system architecture 400 is shown to which the remote sensing image-based logistics distribution method or remote sensing image-based logistics distribution device according to an embodiment of the present invention can be applied.

[0137] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0138] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, map navigation software, etc. (only for example).

[0139] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0140] The server 405 may be a server that provides various services, such as a server that processes data for users using the terminal devices 401, 402, and 403 (for example only). The server may analyze and process the received remote sensing image data of the delivery area and other data, and feed back the processing results (such as the coordinate position of the building base - for example only) to the terminal device.

[0141] It should be noted that the remote sensing image-based logistics distribution method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the remote sensing image-based logistics distribution device is generally set in the server 405 .

[0142] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0143] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 5 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0144] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0145] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0146] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0147] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0148] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor including a labeling module, a processing module, and a distribution module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the labeling module may also be described as "a module for acquiring remote sensing image data of the area to be distributed, contour labeling of the roof area of ​​the building in the remote sensing image data, and line segment labeling of the offset distance of the roof of the building relative to the base of the building to obtain a labeling file."

[0150] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: obtaining remote sensing image data of the area to be delivered, contouring the building roof area in the remote sensing image data, and marking the offset distance of the building roof relative to the building base by line segments to obtain a labeling file; inputting the labeling file into the image semantic segmentation model for first processing to obtain the coordinate position of the building roof in the remote sensing image data; inputting the labeling file into the offset prediction network model for second processing to obtain the building roof offset; calculating the coordinate position of the building base according to the coordinate position of the building roof and the building roof offset, and performing corresponding logistics distribution according to the coordinate position of the building base.

[0151] According to the technical solution of the embodiment of the present invention, the remote sensing image data of the area to be delivered is obtained, the contour of the building roof area in the remote sensing image data is marked, and the offset distance of the building roof relative to the building base is marked by line segments to obtain a marking file; the marking file is input into the image semantic segmentation model for a first processing to obtain the coordinate position of the building roof in the remote sensing image data; the marking file is input into the offset prediction network model for a second processing to obtain the offset of the building roof; the coordinate position of the building base is calculated according to the coordinate position of the building roof and the building roof offset, and the corresponding logistics distribution is performed according to the coordinate position of the building base. Therefore, the technical problem that semantic segmentation of the building roof in the related art can only determine the coordinate position of the building roof, but cannot accurately obtain the coordinate position of the building base, resulting in difficulty in realizing precise logistics distribution, is overcome, and the coordinate position of the building base can be determined based on the building roof segmentation result and the offset prediction result in the remote sensing image, so as to realize precise logistics distribution, improve distribution efficiency, and enhance user experience.

[0152] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A logistics distribution method based on remote sensing images, characterized in that: include: Acquire remote sensing image data of the area to be delivered, mark the outline of the building roof area in the remote sensing image data, and mark the offset distance of the building roof relative to the building base by line segments to obtain a marking file; Inputting the annotation file into an image semantic segmentation model for first processing to obtain the coordinate position of the roof of the building in the remote sensing image data; Inputting the labeled file into the offset prediction network model for second processing to obtain the building roof offset; The coordinate position of the building base is calculated based on the coordinate position of the building roof and the offset of the building roof, and corresponding logistics distribution is performed based on the coordinate position of the building base.

2. The logistics distribution method based on remote sensing images according to claim 1 is characterized in that: The method also includes a model training step: Acquire remote sensing image sample data, perform annotation processing on the remote sensing image sample data, and obtain a sample annotation file; determine the annotated segmented image of the building base in the remote sensing image sample data according to the sample annotation file; The sample annotation file is input into the image semantic segmentation model to perform building roof segmentation processing, and the building roof segmentation processing result is deeply supervised by the contour annotation in the sample annotation file to realize the training of the image semantic segmentation model.

3. The logistics distribution method based on remote sensing images according to claim 2 is characterized in that: The method further comprises: The sample annotation file is input into the offset prediction network model to perform roof offset prediction processing, and the roof offset prediction processing result is deeply supervised by the line segment annotation in the sample annotation file to realize the training of the offset prediction network model.

4. The remote sensing image-based logistics distribution method according to claim 3, characterized in that: The method further comprises: The segmentation position result of the building base is determined according to the building roof segmentation processing result and the roof offset prediction processing result, and the segmentation position result of the building base is supervised and trained through the labeled segmented image of the building base to achieve optimized training of the image semantic segmentation model and the offset prediction network model.

5. The remote sensing image-based logistics distribution method according to claim 4, characterized in that: After the step of determining the segmentation position result of the building base according to the building roof segmentation processing result and the offset prediction processing result, the method further includes: Calculate the total loss function of the network model; the total loss function includes the loss function of the building roof segmentation processing, the loss function of the roof offset prediction processing and the loss function of the building base segmentation processing.

6. The remote sensing image-based logistics distribution method according to claim 2, characterized in that: The step of determining the labeled segmented image of the building base in the remote sensing image sample data according to the sample annotation file comprises: Generate a labeled segmented image of the building roof outline according to the outline annotations in the sample annotation file; Constructing a remote sensing image coordinate system, and determining the roof offset of the pixels in the roof area of ​​the building in the remote sensing image coordinate system according to the line segment annotations in the sample annotation file; A labeled segmented image of the building base in the remote sensing image sample data is generated according to the labeled segmented image of the building roof outline and the roof offset.

7. The logistics distribution method based on remote sensing images according to claim 1 is characterized in that: The image semantic segmentation model and the offset prediction network model are both constructed based on UNet3+, and the image semantic segmentation model and the offset prediction network model share a coding layer.

8. A logistics distribution device based on remote sensing images, characterized in that: include: A labeling module is used to obtain remote sensing image data of the area to be delivered, to label the outline of the building roof area in the remote sensing image data, to label the offset distance of the building roof relative to the building base, and to obtain a labeling file; A processing module, used for inputting the annotation file into an image semantic segmentation model for first processing to obtain the coordinate position of the building roof in the remote sensing image data; Inputting the labeled file into the offset prediction network model for second processing to obtain the building roof offset; The distribution module is used to calculate the coordinate position of the building base according to the coordinate position of the building roof and the offset of the building roof, and perform corresponding logistics distribution according to the coordinate position of the building base.

9. An electronic device for logistics distribution based on remote sensing images, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable 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 7 is implemented.

Citation Information

Patent Citations

  • Image processing method and device, equipment and storage medium

    CN112149585A

  • Network training and image processing method and device, equipment and storage medium

    CN113344195A

  • Remote sensing image processing method and device, equipment and storage medium

    CN114359120A

  • Complex chromosome region segmentation method and device based on auxiliary information

    CN115049686A

  • Semantic segmentation-based aerial image rapid positioning method

    CN115527128A