Method, device, equipment and medium for detecting overlapping shadow areas of objects to be detected
Through the preset semantic segmentation processing and shadow area overlap determination of remote sensing images, the problem of shadows being blocked in crude oil reserve monitoring is solved, the shadow area is accurately extracted, and the reliability of the data is improved.
Patent Information
- Application Number
- CN202010262597.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-03
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-04-03
AI Technical Summary
In the field of financial technology, especially in crude oil reserve monitoring, due to different incident angles of the sun, the shadow area extraction of the object to be detected is inaccurate, causing the shadow to be blocked by other objects, affecting the accuracy of crude oil reserve data.
By receiving remote sensing images and performing preset semantic segmentation processing, the target shadow image of the object to be detected is obtained, and the determination point for shadow area overlap is determined to determine whether the shadow overlaps with other shadow images, thereby accurately extracting the shadow area.
It improves the extraction accuracy of the shadow area of the object to be detected, avoids inaccurate extraction caused by shadow obstruction, and enhances the reliability of crude oil reserve data.
Smart Images

Figure CN111462098B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology in financial technology (Fintech), and in particular to a detection method, device, equipment and medium for detecting overlapping shadow areas of objects to be detected. Background Art
[0002] With the continuous development of financial technology, especially Internet technology finance, more and more technologies are applied in the financial field, but the financial industry also puts forward higher requirements on technology. For example, the financial industry also has higher requirements for the extraction of shadow area of detected objects.
[0003] That is, today is the era of crude oil. Real-time understanding of crude oil reserve data of various countries is directly related to national security. At present, crude oil reserve estimation or forecast is usually carried out by monitoring crude oil ports of various countries through satellites to obtain remote sensing images to calculate the capacity of each large object to be detected in the port, such as a large object to be detected. In the process of calculating the capacity of each large object to be detected in the port, shadow area extraction is the most important link. At present, due to different solar incidence angles, the shadow thickness of the object to be detected is different. Therefore, in the process of extracting the shadow of the object to be detected, the shadow of the object to be detected A is often blocked by the object to be detected B, resulting in inaccurate technical problems in the extraction of the shadow area of the object to be detected. Summary of the invention
[0004] The main purpose of the present application is to provide a detection method, device, equipment and medium for overlapping shadow areas of objects to be detected, aiming to solve the technical problem in the prior art that the shadows of objects to be detected are easily blocked, resulting in inaccurate extraction of the shadow areas of objects to be detected.
[0005] To achieve the above object, the present application provides a method for detecting overlapping shadow areas of objects to be detected, the method comprising:
[0006] Receiving a remote sensing image and obtaining a target extension image of an object to be detected in the remote sensing image;
[0007] Performing preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0008] An overlap determination point for judging whether shadow areas in the target shadow image overlap or not is determined, and whether the target shadow image overlaps with other shadow images is determined according to the overlap determination point.
[0009] Optionally, the step of performing preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected includes:
[0010] Inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0011] The preset semantic segmentation network model is a model for accurately predicting shadow images based on preset image data of objects to be detected with preset shadow labels, obtained by training a preset basic model to be trained.
[0012] Optionally, the step of determining an overlap determination point for judging whether shadow areas in the target shadow image overlap or not comprises:
[0013] Acquire the solar incident angle corresponding to the object to be detected when collecting the port remote sensing image, and determine the azimuth angle of the target shadow image based on the solar incident angle;
[0014] Acquire the center point of the object to be detected, and determine the first pixel point farthest from the center point of the object to be detected in the target shadow image according to the center point of the object to be detected and the preset extension direction of the azimuth;
[0015] A second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction is obtained, and the second pixel point is set as the overlap determination point.
[0016] Optionally, the step of determining whether the target shadow image overlaps with other shadow images according to the overlap determination point includes:
[0017] Extracting the first boundary point coordinates of all other external extension images in the port remote sensing image except the target external extension image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates;
[0018] Acquire the overlap determination point coordinates of the overlap determination point, and compare the overlap determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result;
[0019] It is determined whether the target shadow image overlaps with other shadow images according to the comparison result.
[0020] Optionally, the step of determining whether the target shadow image overlaps with other shadow images according to the comparison result includes:
[0021] If the comparison result is that the overlap determination point coordinates are greater than the first boundary point coordinates, and the overlap determination point coordinates are correspondingly smaller than the second boundary point coordinates, it is determined that the target shadow image overlaps with other shadow images;
[0022] If the comparison result is that the overlap determination point coordinates are smaller than the first boundary point coordinates, or the overlap determination point coordinates are correspondingly larger than the second boundary point coordinates, it is determined that the target shadow image does not overlap with other shadow images.
[0023] Optionally, before the step of inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected, the method includes:
[0024] Acquire preset image data of the object to be detected, and iteratively train the preset basic model to be trained based on the preset image data of the object to be detected to obtain the basic model after iterative training;
[0025] It is determined whether the basic model after the iterative training meets the preset training completion condition. If the basic model after the iterative training meets the preset training completion condition, the preset semantic segmentation network model is obtained.
[0026] Optionally, the step of inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected includes:
[0027] Inputting the target extension image into a preset semantic segmentation network model to obtain a target shadow image, determining an intersecting image in the target shadow image that intersects with the extension rectangular frame of the target extension image, and removing the intersecting image to obtain a first processed image;
[0028] Obtaining a first preset shadow area threshold, extracting an image whose area is larger than the first preset shadow area threshold from the first processed image, and obtaining a second processed image;
[0029] A second preset shadow area threshold is obtained, an image having an area greater than the second preset shadow area threshold is extracted from the second processed image to obtain a third processed image, an image intersecting with the bounding box of the bounding box image is extracted from the third processed image, and a shadow area of each object to be detected is obtained.
[0030] Optionally, after the step of determining an overlap determination point for judging whether shadow areas in the target shadow image overlap or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point, the method comprises:
[0031] If the target shadow image overlaps with other shadow images, obtaining the overlapping shadow image;
[0032] The shadow area thickness of the object to be detected is determined according to the overlapping shadow images.
[0033] The present application also provides a detection device for detecting overlapping shadow areas of objects to be detected, the detection device for detecting overlapping shadow areas of objects to be detected comprising:
[0034] A receiving module, used for receiving a remote sensing image and obtaining a target extension image of an object to be detected in the remote sensing image;
[0035] A first acquisition module is used to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0036] The determination module is used to determine an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determine whether the target shadow image overlaps with other shadow images according to the overlap determination point.
[0037] Optionally, the first acquisition module includes:
[0038] A semantic segmentation processing unit, used for inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0039] The preset semantic segmentation network model is a model for accurately predicting shadow images based on preset image data of objects to be detected with preset shadow labels, obtained by training a preset basic model to be trained.
[0040] Optionally, the determining module includes:
[0041] A first acquisition unit is used to acquire the solar incident angle corresponding to the object to be detected when collecting the port remote sensing image, and determine the azimuth angle of the target shadow image based on the solar incident angle;
[0042] A second acquisition unit is used to acquire a center point of the object to be detected, and determine a first pixel point in the target shadow image that is farthest from the center point of the object to be detected according to the center point of the object to be detected and a preset extension direction of the azimuth;
[0043] The third acquisition unit is used to acquire a second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction, and set the second pixel point as the overlap determination point.
[0044] Optionally, the determining module further includes:
[0045] An extraction unit, used for extracting the first boundary point coordinates of all other external extension images except the target external extension image in the port remote sensing image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates;
[0046] A fourth acquisition unit is used to acquire the overlap determination point coordinates of the overlap determination point, and compare the overlap determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result;
[0047] A determination unit is used to determine whether the target shadow image overlaps with other shadow images according to the comparison result.
[0048] Optionally, the determining unit includes:
[0049] A first determining subunit is configured to determine that the target shadow image overlaps with other shadow images if the comparison result shows that the overlap determination point coordinates are greater than the first boundary point coordinates and the overlap determination point coordinates are correspondingly smaller than the second boundary point coordinates;
[0050] The second determining subunit is used to determine that the target shadow image does not overlap with other shadow images if the comparison result is that the overlap determination point coordinates are smaller than the first boundary point coordinates, or the overlap determination point coordinates are correspondingly larger than the second boundary point coordinates.
[0051] Optionally, the detection device for overlapping shadow areas of objects to be detected further comprises:
[0052] A second acquisition module is used to acquire preset image data of the object to be detected, and iteratively train the preset basic model to be trained based on the preset image data of the object to be detected to obtain the basic model after iterative training;
[0053] The judgment module is used to judge whether the basic model after the iterative training meets the preset training completion conditions. If the basic model after the iterative training meets the preset training completion conditions, the preset semantic segmentation network model is obtained.
[0054] Optionally, the first acquisition module includes:
[0055] An input unit is used to input the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image, determine an intersecting image in the target shadow image that intersects with the extension rectangular frame of the target extension image, and remove the intersecting image to obtain a first processed image;
[0056] A fifth acquisition unit, configured to acquire a first preset shadow area threshold, extract an image having an area greater than the first preset shadow area threshold from the first processed image, and obtain a second processed image;
[0057] The sixth acquisition unit is used to obtain a second preset shadow area threshold, extract an image whose area is greater than the second preset shadow area threshold from the second processed image to obtain a third processed image, extract an image that intersects with the external frame of the external frame image from the third processed image, and obtain the shadow area of each object to be detected.
[0058] Optionally, the detection device for overlapping shadow areas of objects to be detected further comprises:
[0059] An overlapping shadow image acquisition module, used for acquiring an overlapping shadow image if the target shadow image overlaps with other shadow images;
[0060] The thickness acquisition module is used to determine the thickness of the shadow area of the object to be detected according to the overlapping shadow image.
[0061] The present application also provides a detection device for overlapping shadow areas of objects to be detected. The detection device for overlapping shadow areas of objects to be detected is a physical device. The detection device for overlapping shadow areas of objects to be detected includes: a memory, a processor, and a program of a detection method for overlapping shadow areas of objects to be detected stored in the memory and executable on the processor. When the program of the detection method for overlapping shadow areas of objects to be detected is executed by the processor, the steps of the detection method for overlapping shadow areas of objects to be detected as described above can be implemented.
[0062] The present application also provides a medium, on which is stored a program for implementing the above-mentioned method for detecting overlapping shadow areas of objects to be detected. When the program for the method for detecting overlapping shadow areas of objects to be detected is executed by a processor, the steps of the above-mentioned method for detecting overlapping shadow areas of objects to be detected are implemented.
[0063] The present application receives a remote sensing image to obtain a target extension image of an object to be detected in the remote sensing image; performs a preset semantic segmentation process on the target extension image to obtain a target shadow image of the object to be detected; determines an overlap determination point for determining whether the shadow areas in the target shadow image overlap or not, and determines whether the target shadow image overlaps with other shadow images according to the overlap determination point. In the present application, after receiving a remote sensing image and obtaining a target extension image, the target shadow image of the object to be detected is obtained by performing a preset semantic segmentation process on the target extension image (since the preset semantic segmentation process is not affected by natural factors, the extraction accuracy of the target shadow image of the object to be detected is improved). Then, after accurately obtaining the target shadow image, the overlap determination point for determining whether the shadow areas in the target shadow image overlap or not is accurately determined, and determines whether the target shadow image overlaps with other shadow images according to the overlap determination point. That is, in the present embodiment, the shadow area of the detected object with possible shadow overlap is accurately extracted by accurately determining the overlap determination point, thereby avoiding the phenomenon of inaccurate extraction of the shadow area of the object to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0066] Figure 1 A schematic diagram of the flow chart of a first embodiment of a method for detecting overlapping shadow areas of objects to be detected in the present application;
[0067] Figure 2 A schematic flow chart of the detailed steps of determining the overlap determination points for judging whether the shadow areas in the target shadow image overlap or not in the first embodiment of the detection method for the overlapped shadow areas of the object to be detected of the present application;
[0068] Figure 3 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;
[0069] Figure 4 A schematic diagram of a first scenario of a method for detecting overlapping shadow areas of objects to be detected in the present application;
[0070] Figure 5 A schematic diagram of a second scenario of the method for detecting overlapping shadow areas of objects to be detected in the present application;
[0071] Figure 6 A schematic diagram of a third scenario of the method for detecting overlapping shadow areas of objects to be detected in the present application;
[0072] Figure 7 A schematic diagram of a fourth scenario of the method for detecting overlapping shadow areas of objects to be detected in the present application;
[0073] Figure 8 A fifth scene schematic diagram of the method for detecting overlapping shadow areas of objects to be detected in the present application;
[0074] Fig. 9 A sixth scene schematic diagram of the method for detecting overlapping shadow areas of objects to be detected in the present application;
[0075] Fig.10 This is a schematic diagram of the seventh scenario of the method for detecting overlapping shadow areas of objects to be detected in this application.
[0076] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0077] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0078] The present application provides a method for detecting overlapping shadow areas of objects to be detected. In the first embodiment of the method for detecting overlapping shadow areas of objects to be detected, referring to Figure 1 , the detection method of overlapping shadow areas of objects to be detected includes:
[0079] Step S10, receiving a remote sensing image, and obtaining a target extension image of the object to be detected in the remote sensing image;
[0080] Step S20, performing preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0081] Step S30, determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point.
[0082] The specific steps are as follows:
[0083] Step S10, receiving a remote sensing image, and obtaining a target extension image of the object to be detected in the remote sensing image;
[0084] In today's era, real-time understanding of various data reserves of other countries, such as data reserves of objects to be detected, is directly related to the national economy and people's livelihood, and real-time understanding of crude oil reserve data of various countries is even more directly related to national security. That is, in this implementation, the object to be detected is an oil tank, especially a large oil tank, for example (but not limited to oil tanks, for example, the object to be detected can also be a container, etc.). At present, crude oil reserve estimation or forecasting is usually carried out by monitoring crude oil ports of various countries through satellites to obtain remote sensing images, and the capacity of each large oil tank in the port is calculated based on the remote sensing images. In the process of calculating the capacity of each large oil tank in the port, shadow area extraction is the most important link, that is, calculating the capacity of each large oil tank in the port can generally be divided into three steps: Oil tank detection and positioning, oil tank shadow area extraction, oil tank volume calculation, among which oil tank shadow area extraction is a very important link. At present, the shadow area of the oil tank is often extracted by color threshold segmentation in RGB (three primary colors, red, green and blue, Red, Green, Blue) color space. The color threshold segmentation method in the RGB color space causes the oil tank shadow extraction to be greatly affected by the lighting when the image was previously collected, and the extraction effect is unstable. In addition, the oil tank volume processing is not only related to the extraction method, but also to the solar incident angle. At some solar incident angles, the shadow of oil tank A is often blocked by oil tank B, which leads to inaccurate extraction of the oil tank shadow, thereby affecting the calculation of the oil tank volume.
[0085] In this embodiment, by performing preset semantic segmentation processing on the target extension image to determine and overlap judgment points, it is possible to accurately determine whether the shadow area of the object to be detected overlaps, thereby laying the foundation for accurately determining the shadow area of the oil tank and accurately determining the shadow thickness of the oil tank, thereby laying the foundation for accurately calculating the volume of the oil tank.
[0086] In this embodiment, firstly, the port remote sensing image sent by the satellite is received, and the outer frame image of each object to be detected is determined based on the port remote sensing image to obtain the position information of each outer frame image. Specifically, if the object to be detected is a circular oil tank, the outer rectangular frame image of each object to be detected is determined based on the port remote sensing image to obtain the position information of each outer frame image. If the object to be detected is a container, the outer container image of each object to be detected is determined based on the port remote sensing image to obtain the position information of each outer container image. It should be noted that in this embodiment, if the object to be detected is a circular oil tank, then based on the port remote sensing image, the outer container image of each object to be detected is determined to obtain the position information of each outer container image. The port remote sensing image is used to determine the circumscribed rectangular frame image of each object to be detected, so as to obtain the position information of each of the circumscribed frame images. Specifically, the port remote sensing image is analyzed by a preset Rotated-Faster-R-CNN model (a model that has been trained to accurately locate the position information of the circumscribed frame image of the oil tank in the port remote sensing image), and the circumscribed frame image of each object to be detected is determined (the small frame in Figure 7 is the circumscribed frame, and the image in the small frame is the circumscribed frame image) to obtain the position information of each of the circumscribed frame images. It should be noted that the position information of each of the circumscribed frame images can be represented by (c_x, c_y, w, h), wherein (c_x, c_y) represents the center coordinate point of each circumscribed frame image, (w) represents the width of each circumscribed frame, and (h) represents the height of each circumscribed frame.
[0087] Obtaining a target extension image of each object to be detected including a shadow of the object to be detected according to the position information of the external frame image of each object to be detected;
[0088] In this embodiment, it is necessary to obtain a target extension image of each object to be detected including the shadow of the object to be detected. Specifically, according to the position information of the external frame image, a target extension image of the object to be detected including the shadow of the object to be detected is obtained (the target extension image is the entire Figure 7 In the image, the bounding box of the target extension image is Figure 7 The middle and large frame, or the frame of the target image extension is Figure 6 The outermost black border in the image). Among them, Figure 7 The large box in may include images of other objects to be detected.
[0089] According to the position information of the circumscribed rectangular frame image, an image including the circumscribed rectangular frame image and having a size that is a preset multiple of the circumscribed rectangular frame image is cropped from the remote sensing image with the circumscribed rectangular frame image as the center: specifically, according to the position information of each circumscribed rectangular frame image, an image of each object to be detected in each remote sensing image is expanded outward, and there are multiple objects to be detected in each remote sensing image. Therefore, when a certain object to be detected is expanded outward (taking the circumscribed rectangular frame image as the center, an image including the circumscribed rectangular frame image and having a size that is a preset multiple of the circumscribed rectangular frame image is cropped from the remote sensing image), it may include images or shadow images of other objects to be detected, and the image including the circumscribed rectangular frame image and having a size that is a preset multiple of the circumscribed rectangular frame image is set as the expanded image.
[0090] In this embodiment, an image including the circumscribed rectangular frame image is cropped from the remote sensing image with the circumscribed rectangular frame image as the center, and the image whose size is a preset multiple of the circumscribed rectangular frame image, and the preset multiple can be 1-2. In particular, the preset expansion ratio can be 1.8. The purpose of setting the preset multiple is to obtain an image including the shadow of the object to be detected (i.e., to avoid incomplete shadow) while not processing redundant images too much to avoid increasing the processing burden. After obtaining the external extension image, specifically, the external extension rectangular frame width width = (1 + rates) * w, the external extension rectangular frame height height = (1 + rates) * h, the new rectangular frame can be expressed as (new_x, new_y, new_w, new_h), and rates represents the difference between the preset multiple and 1.
[0091] Each of the extended images is cropped to obtain a target extended image of each object to be detected including a shadow of the object to be detected.
[0092] After the target extension image is obtained, the target extension image is cropped to avoid the reduction of processing efficiency caused by subsequent processing of too many images, and the target extension image of the object to be detected including the shadow of the object to be detected is obtained.
[0093] Step S20, performing preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0094] In this embodiment, the outward extension image that currently needs to be processed is used as the target outward extension image, or the outward extension image that needs to be processed most recently is used as the target outward extension image. After obtaining the target outward extension image, preset semantic segmentation processing is performed on the target outward extension image, wherein semantics in the field of image processing may refer to the content of the image, and performing preset semantic segmentation processing on the target outward extension image may refer to segmenting pixels in the target outward extension image by preset label features or preset coding features, wherein the pixels in the target outward extension image may be segmented specifically by machine learning or neural networks.
[0095] The step of performing preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected includes:
[0096] Step S21, inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0097] The preset semantic segmentation network model is a model for accurately predicting shadow images based on preset image data of objects to be detected with preset shadow labels, obtained by training a preset basic model to be trained.
[0098] In this embodiment, it should be noted that the preset semantic segmentation network model is a model for accurately predicting shadow images obtained by training the preset basic model to be trained based on the preset image data of the object to be detected with the preset shadow label. Since the preset semantic segmentation network model is a model that can accurately predict shadow images after training, the target shadow image of each object to be detected can be accurately obtained after the target extension image of the object to be detected is input into the preset semantic segmentation network model. It should be noted that since the object to be detected can be both an oil tank and a container, in this embodiment, the preset semantic segmentation network model has multiple sub-models, such as a preset oil tank semantic segmentation network sub-model and a preset container semantic segmentation network sub-model. Therefore, after the target extension image is input into the preset semantic segmentation network model, it is necessary to obtain the category of the target extension image, and then, according to the category of the target extension image, the target extension image is input into the corresponding sub-model such as the preset oil tank semantic segmentation network sub-model. In this embodiment, since the preset semantic segmentation network model includes multiple sub-models, the convenience of detecting the object to be detected can be improved.
[0099] In this embodiment, it should be noted that after the target extension image of the object to be detected is input into the preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image, and the target shadow of the object to be detected is obtained, it is necessary to perform noise shadow removal. In the process of noise removal, it is necessary to depict the shadow contour (such as Figure 6 As shown in FIG. 1 , the target extension image includes multiple shadow contours of other non-detected objects, but only one or two are of the target oil tank. If there are similar shadow contours (possibly intersecting), the shadows of other oil tanks may overlap with the shadow of the target oil tank, such as Figure 5 Or Figure 6 As shown, at this point, noise shadow removal may not be accurate.
[0100] The step of inputting the target extension image of the object to be detected into a preset semantic segmentation network model to obtain the target shadow image of the object to be detected includes:
[0101] Preprocessing the target extension image to obtain a target preprocessed image;
[0102] It should be noted that due to the different outward extension ratios (preset multiples) of different images, such as the outward extension ratio of the current target outward extension image is 1.8, and the outward extension ratio (preset multiples) of another target outward extension image is 1.5, that is, the target outward extension image sizes obtained by the two are different, and the preset semantic segmentation network model processes images of a certain size or a certain brightness, etc. In order to improve the convenience of model processing, in this embodiment, after obtaining the target outward extension image, before inputting the target outward extension image into the preset semantic segmentation network model, the target outward extension image is preprocessed (that is, the target outward extension image is stretched to a preset size or the brightness of the target outward extension image is adjusted, etc.) to obtain a preprocessed image.
[0103] The target preprocessed image is input into a preset semantic segmentation network model to obtain a target shadow image of each object to be detected.
[0104] Specifically, after obtaining the target preprocessed image, the target preprocessed image is input into a preset semantic segmentation network model to obtain a target shadow image.
[0105] Wherein, before the step of inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected, the method includes:
[0106] Step a1, obtaining preset image data of the object to be detected, and iteratively training the preset basic model to be trained based on the preset image data of the object to be detected to obtain the basic model after iterative training;
[0107] In this embodiment, in order to accurately obtain the preset semantic segmentation network model, specifically, first obtain the preset image data of the object to be detected, the preset image data of the object to be detected includes both each preset image of the object to be detected and the preset shadow label corresponding to each preset image of the object to be detected, that is, in this embodiment, first obtain the corresponding mask map (including the preset shadow label) based on the original image of the preset image of the object to be detected, in which the shadow area is marked as "1" and the background area is marked as "0". After obtaining the preset image data of the object to be detected, the preset basic model to be trained is iteratively trained based on each preset image of the object to be detected in the preset image data of the object to be detected, and the preset prediction model to be trained is updated by iterative training. Specifically, the training result (or predicted probability image data) of the iterative training is compared with the expected result of the preset shadow label in the corresponding mask map, and the preset prediction model to be trained is updated by iterative training, wherein the network weight variable in the preset prediction model to be trained can be updated by iterative training to obtain the basic model after iterative training.
[0108] It should be noted that the preset prediction model to be trained includes a feature extraction part and an upsampling part, etc., wherein the feature extraction part includes a convolution layer, a pooling layer, etc., and the upsampling part includes a deconvolution layer, etc. In this embodiment, the feature extraction part in the preset basic model to be trained includes a skip connection layer. Specifically, in the preset basic model to be trained, if the feature extraction part includes a Unet network coding stage or a Unet network architecture (excluding a skip connection layer), it is changed to a ResNet network coding stage or a ResNet network architecture (including a skip connection layer). The role of the skip connection layer is: after the preset number of convolutions, the information discarded before the preset number of convolutions is processed and added to the data of the preset number of convolutions to avoid information loss caused by the convolution of the image data. In this embodiment, in the network decoding process or in the upsampling part, the Unet decoding network stage is still used to obtain a probability map of size (C, W, H), where C is the number of prediction categories (C = target category number N + background category, such as C = 2, only the shadow area is predicted).
[0109] Step a2, determining whether the basic model after the iterative training meets the preset training completion conditions. If the basic model after the iterative training meets the preset training completion conditions, the preset semantic segmentation network model is obtained.
[0110] Determine whether the preset prediction model to be trained after iterative training meets the preset training completion conditions. If the preset training completion conditions are met, obtain the preset semantic segmentation network model. Specifically, the preset training completion conditions may be that the iterations reach a preset number of times, or that the preset loss function converges. It should be noted that, for each iterative training, the result of the iterative training is compared with the expected result of the preset shadow label in the corresponding mask image to determine the difference data, and adjust the preset prediction model to be trained in a directional manner according to the difference data, in particular, adjust the network weight variables to finally obtain the preset semantic segmentation network model.
[0111] Step S30, determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point.
[0112] In this embodiment, after obtaining the target shadow image, an overlap determination point for determining whether the shadow areas in the target shadow image overlap or not is determined. To determine the overlap determination point for determining whether the shadow areas in the target shadow image overlap or not, the following steps need to be performed:
[0113] The step of determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not comprises:
[0114] Step S31, obtaining the solar incident angle corresponding to the object to be detected when collecting the port remote sensing image, and determining the azimuth angle of the target shadow image based on the solar incident angle;
[0115] In this embodiment, it is necessary to obtain the solar incident angle to determine the azimuth of the target shadow image, and then determine the overlap determination point. Specifically, the solar incident angle is the first angle when the sun's rays hit the target oil tank when acquiring the remote sensing image, and the first angle is determined after performing a preset coordinate conversion. If the time of acquiring the remote sensing image is determined, the first angle is also determined. Figure 4 As shown, OM' is the projection of OM on the ground plane, and the angle formed by the combination of OM' is called the solar incidence angle. After obtaining OM', the angle between OM' and OS is determined, and the angle between OM' and OS is called the azimuth.
[0116] Step S32, obtaining the center point of the object to be detected, and determining the first pixel point in the target shadow image that is farthest from the center point of the object to be detected according to the center point of the object to be detected and the preset extension direction of the azimuth;
[0117] In this embodiment, the center point of the object to be detected corresponding to the target shadow image is also obtained, and according to the center point of the object to be detected and the preset extension direction of the azimuth angle, the first pixel point farthest from the center point of the object to be detected in the target shadow image is determined. Specifically, all the pixel points at the edge of the preset extension direction of the azimuth angle are obtained, and the distances between all the pixel points and the center point of the object to be detected are obtained to obtain the farthest first pixel point, such as Figure 5 As shown, point A is the first pixel point.
[0118] Step S33, obtaining a second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction, and setting the second pixel point as the overlap determination point.
[0119] Acquire a second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction, and set the second pixel point as the overlap determination point. Specifically, Figure 5 As shown, through the center of the oil tank, extend in the azimuth direction to obtain point A which is the farthest from the center point, through point A, continue to extend the distance from the first pixel point by a preset number of pixels in the azimuth direction, such as continue to extend the distance by 2 pixels or 3 pixels, to obtain point B, which is the second pixel point, and set the second pixel point as the overlap determination point.
[0120] The step of determining whether the target shadow image overlaps with other shadow images according to the overlap determination point comprises:
[0121] Step S34, extracting the first boundary point coordinates of all other external extension images in the port remote sensing image except the target external extension image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates;
[0122] In this embodiment, after obtaining the overlap determination point, the first boundary point coordinates of all other target extension images in the port remote sensing image and the corresponding second boundary point coordinates farthest from the first boundary point coordinates are extracted. Specifically, Figure 8 As shown in , the external frames of multiple oil tanks are included, and the position information of the external frame image of each oil tank can be represented by (x_min, y_min, x_max, y_max), where (x_min, y_min) can represent the upper left corner coordinate point of each external rectangular frame, that is, the first boundary point coordinate, and (x_max, y_max) represents the lower right corner coordinate point of each external rectangular frame, that is, the corresponding second boundary point coordinate. Of course, the first boundary point coordinate can also be the upper right corner coordinate point, and the first boundary point coordinate can also be the lower left corner coordinate point, which is not specifically limited here.
[0123] Step S35: Obtain the overlapping determination point coordinates of the overlapping determination point, and compare the overlapping determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result;
[0124] In this embodiment, the overlapping determination point coordinates of the overlapping determination point are also obtained. For example, the coordinates of point B are (b_x, b_y). The overlapping determination point coordinates are compared with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result. Specifically, let the position information of the circumscribed rectangle frames of all other oil tanks outside the target oil tanks or the set of circumscribed frames be C. Traverse all the position information of the circumscribed rectangle frames and compare them with (b_x, b_y) to obtain a comparison result.
[0125] Step S36: Determine whether the target shadow image overlaps with other shadow images according to the comparison result.
[0126] In this embodiment, it is determined whether the target shadow image overlaps with other shadow images according to the comparison result. The comparison result can be x_min < b_x, y_min < b_y and x_max > b_x, y_max > b_y, or x_max < b_x, y_max < b_y, or x_min > b_x, y_min > b_y, etc.
[0127] The step of determining whether the target shadow image overlaps with other shadow images according to the comparison result includes:
[0128] Step S361: If the comparison result is that the overlapping determination point coordinates are greater than the first boundary point coordinates and the overlapping determination point coordinates are correspondingly less than the second boundary point coordinates, determine that the target shadow image overlaps with other shadow images;
[0129] In this embodiment, if the comparison result is that the overlapping determination point coordinates are greater than the first boundary point coordinates and the overlapping determination point coordinates are correspondingly less than the second boundary point coordinates, that is, when x_min < b_x, y_min < b_y and x_max > b_x, y_max > b_y, determine that the target shadow image overlaps with other shadow images.
[0130] Step S362: If the comparison result is that the overlapping determination point coordinates are less than the first boundary point coordinates, or the overlapping determination point coordinates are correspondingly greater than the second boundary point coordinates, determine that the target shadow image does not overlap with other shadow images.
[0131] If the comparison result shows that the overlapping determination point coordinates are less than the first boundary point coordinates, or the overlapping determination point coordinates are correspondingly greater than the second boundary point coordinates, that is, when x_max < b_x, y_max < b_y, or x_min > b_x, y_min > b_y, it is determined that the target shadow image does not overlap with other shadow images.
[0132] In this application, by receiving a remote sensing image, the target extended image of the object to be detected in the remote sensing image is obtained; the target extended image is subjected to a preset semantic segmentation process to obtain the target shadow image of the object to be detected; the overlapping determination points for determining whether the shadow areas in the target shadow image overlap are determined, and based on the overlapping determination points, it is determined whether the target shadow image overlaps with other shadow images. In this application, after receiving the remote sensing image and obtaining the target extended image, by performing a preset semantic segmentation process on the target extended image, the target shadow image of the object to be detected is obtained (since the preset semantic segmentation process is not affected by natural factors, the extraction accuracy of the target shadow image of the object to be detected is improved). Furthermore, after accurately obtaining the target shadow image, the overlapping determination points for determining whether the shadow areas in the target shadow image overlap are accurately determined, and based on the overlapping determination points, it is determined whether the target shadow image overlaps with other shadow images. That is, in this embodiment, by accurately determining the overlapping determination points, the accurate extraction of the shadow area of the detected object with possible shadow overlap is realized, and the phenomenon of inaccurate extraction of the shadow area of the object to be detected is avoided.
[0133] Further, referring to Figure 2 , based on the first embodiment of this application, in another embodiment of this application, the step of inputting the target extended image into a preset semantic segmentation network model to perform a preset semantic segmentation process on the target extended image to obtain the target shadow image of the object to be detected includes:
[0134] Step b1, input the target extended image into a preset semantic segmentation network model to obtain a target shadow image, determine the intersecting image in the target shadow image that intersects with the outer extended rectangular frame of the target extended image, and perform a removal process on the intersecting image to obtain a first processed image;
[0135] Input the target extended image into a preset semantic segmentation network model to obtain a target shadow image (as shown in Fig. 9 ), determine the intersecting image in the target shadow image that intersects with the outer extended rectangular frame. In particular, the outer extended rectangular frame image refers to the boundary or border of the target extended image. Perform a removal process on the intersecting image to obtain a first processed image, as shown in Fig. 9The intersection image is removed to obtain a first processed image. The first processed image is as follows: Fig.10 The image in .
[0136] It should be noted that the first processed image may also have other noise shadow areas that do not intersect with the outer extended rectangular frame image.
[0137] Step b2, obtaining a first preset shadow area threshold, extracting images whose areas are larger than the first preset shadow area threshold from the first processed image, and obtaining a second processed image;
[0138] Step b3, obtaining a second preset shadow area threshold, extracting an image whose area is greater than the second preset shadow area threshold from the second processed image to obtain a third processed image, extracting an image that intersects with the bounding box of the bounding box image from the third processed image, and obtaining the shadow area of each object to be detected.
[0139] It should be noted that the first processed image may also have other noise shadow areas that do not intersect with the target extension image. Therefore, after obtaining the first processed image, the first preset shadow area threshold is obtained, and images with an area larger than the first preset shadow area threshold are extracted from the first processed image to obtain the second processed image. Specifically, through the preset morphological opening and closing operation (only used for small spot processing), images with an area larger than the first preset shadow area threshold are extracted from the first processed image to achieve the removal of small noise shadows or small spots in the image (small noise shadows or small spots refer to those smaller than the first preset shadow area threshold). For example, first, based on the area of all shadow contours in the target shadow image, those smaller than the preset specified threshold, i.e., the first preset shadow area threshold (t3), are eliminated. Small spots (shadow contour area) are finally obtained, and the second processed image is finally obtained. After the first denoising process, most of the noise is removed, but there are still other large noises. Therefore, after obtaining the second processed image, the area of a single shadow contour is counted, and the area of the shadow contour whose area is greater than the specified threshold (t4), that is, the second preset shadow area threshold, is extracted. It should be noted that in this embodiment, the noise shadow removal is performed in batches, which can improve the efficiency of noise shadow removal (avoiding the removal jam caused by one-time processing or avoiding the inability to use morphological opening and closing operations, etc.), and the third processed image is obtained, and the embedded coordinate frame corresponding to the target extension image, that is, the external frame (such as Figure 7 ), determine the shadow image in the third processed image that intersects with the embedded coordinate frame, and set the shadow image in the third processed image that intersects with the embedded coordinate frame as the absolute shadow image of the object to be detected. That is, in this embodiment, it should be emphasized that the absolute shadow image intersects with the embedded coordinate frame.
[0140] This embodiment obtains a target shadow image by inputting the target external extension image into a preset semantic segmentation network model, determines the intersecting image in the target shadow image that intersects with the external extension rectangular frame of the target external extension image, removes the intersecting image, and obtains a first processed image; obtains a first preset shadow area threshold, extracts images with an area greater than the first preset shadow area threshold from the first processed image, and obtains a second processed image; obtains a second preset shadow area threshold, extracts images with an area greater than the second preset shadow area threshold from the second processed image, and obtains a third processed image, extracts images that intersect with the external frame of the external frame image from the third processed image, and obtains the shadow area of each object to be detected. In this application, the shadow area of the object to be detected is obtained efficiently and accurately.
[0141] Further, based on the first embodiment and the second embodiment of the present application, after the step of determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point, the method includes:
[0142] Step c1, if the target shadow image overlaps with other shadow images, obtaining the overlapping shadow image;
[0143] Step c2: determining the shadow area thickness of the object to be detected according to the overlapping shadow image.
[0144] In this embodiment, if the target shadow image overlaps with other shadow images, a prompt message is generated, that is, since the target shadow image overlaps with other shadow images, the shadow area extraction may be inaccurate, and therefore, a prompt message is generated to extract the shadow area again (under other solar incident angles). In addition, after the step of determining an overlap determination point for judging whether the shadow area in the target shadow image overlaps or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point, the method further includes: if the target shadow image overlaps with other shadow images, obtaining an overlapping shadow image; determining the shadow area thickness of the object to be detected according to the overlapping shadow image. It should be noted that after obtaining the overlapping shadow image, the shadow area thickness is calculated by a preset unconventional calculation method based on the overlapping shadow image. In the preset unconventional calculation method, a first radius of a non-overlapping crescent shadow image corresponding to the target shadow image of the object to be detected is obtained, and a second radius of other non-overlapping crescent sub-images corresponding to all other objects to be detected is obtained; according to the first radius and all second radii, the thickness corresponding to the overlapping shadow image is determined, and according to the shadow thickness, the height of the object to be detected is determined, and then the volume of the object to be detected is determined.
[0145] This embodiment generates prompt information if the target shadow image overlaps with other shadow images, thereby laying a foundation for each of the first devices to train a model with better effect.
[0146] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0147] like Figure 3 As shown, the detection device for detecting overlapping shadow areas of objects to be detected may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0148] Optionally, the detection device for overlapping shadow areas of the object to be detected may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0149] Those skilled in the art will understand that Figure 3 The structure of the detection device for detecting overlapping shadow areas of objects to be detected shown in the figure does not constitute a limitation on the detection device for detecting overlapping shadow areas of objects to be detected, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0150] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, and a detection program for overlapping shadow areas of objects to be detected. The operating system is a program for managing and controlling the hardware and software resources of the detection equipment for overlapping shadow areas of objects to be detected, and supports the operation of the detection program for overlapping shadow areas of objects to be detected and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication between other hardware and software in the detection system for overlapping shadow areas of objects to be detected.
[0151] exist Figure 3In the detection device for detecting overlapping shadow areas of objects to be detected shown, the processor 1001 is used to execute the detection program for overlapping shadow areas of objects to be detected stored in the memory 1005 to implement the steps of any of the above-mentioned methods for detecting overlapping shadow areas of objects to be detected.
[0152] The specific implementation of the detection device for detecting overlapping shadow areas of objects to be detected in the present application is basically the same as the various embodiments of the detection method for detecting overlapping shadow areas of objects to be detected mentioned above, and will not be repeated here.
[0153] The present application also provides a detection device for detecting overlapping shadow areas of objects to be detected, the detection device for detecting overlapping shadow areas of objects to be detected comprising:
[0154] A receiving module, used for receiving a remote sensing image and obtaining a target extension image of an object to be detected in the remote sensing image;
[0155] A first acquisition module is used to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0156] The determination module is used to determine an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determine whether the target shadow image overlaps with other shadow images according to the overlap determination point.
[0157] Optionally, the first acquisition module includes:
[0158] A semantic segmentation processing unit, used for inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected;
[0159] The preset semantic segmentation network model is a model for accurately predicting shadow images based on preset image data of objects to be detected with preset shadow labels, obtained by training a preset basic model to be trained.
[0160] Optionally, the determining module includes:
[0161] A first acquisition unit is used to acquire the solar incident angle corresponding to the object to be detected when collecting the port remote sensing image, and determine the azimuth angle of the target shadow image based on the solar incident angle;
[0162] A second acquisition unit is used to acquire a center point of the object to be detected, and determine a first pixel point in the target shadow image that is farthest from the center point of the object to be detected according to the center point of the object to be detected and a preset extension direction of the azimuth;
[0163] The third acquisition unit is used to acquire a second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction, and set the second pixel point as the overlap determination point.
[0164] Optionally, the determining module further includes:
[0165] An extraction unit, used for extracting the first boundary point coordinates of all other external extension images except the target external extension image in the port remote sensing image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates;
[0166] A fourth acquisition unit is used to acquire the overlap determination point coordinates of the overlap determination point, and compare the overlap determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result;
[0167] A determination unit is used to determine whether the target shadow image overlaps with other shadow images according to the comparison result.
[0168] Optionally, the determining unit includes:
[0169] A first determining subunit is configured to determine that the target shadow image overlaps with other shadow images if the comparison result shows that the overlap determination point coordinates are greater than the first boundary point coordinates and the overlap determination point coordinates are correspondingly smaller than the second boundary point coordinates;
[0170] The second determining subunit is used to determine that the target shadow image does not overlap with other shadow images if the comparison result is that the overlap determination point coordinates are smaller than the first boundary point coordinates, or the overlap determination point coordinates are correspondingly larger than the second boundary point coordinates.
[0171] Optionally, the detection device for overlapping shadow areas of objects to be detected further comprises:
[0172] A second acquisition module is used to acquire preset image data of the object to be detected, and iteratively train the preset basic model to be trained based on the preset image data of the object to be detected to obtain the basic model after iterative training;
[0173] The judgment module is used to judge whether the basic model after the iterative training meets the preset training completion conditions. If the basic model after the iterative training meets the preset training completion conditions, the preset semantic segmentation network model is obtained.
[0174] Optionally, the first acquisition module includes:
[0175] An input unit is used to input the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image, determine an intersecting image in the target shadow image that intersects with the extension rectangular frame of the target extension image, and remove the intersecting image to obtain a first processed image;
[0176] A fifth acquisition unit, configured to acquire a first preset shadow area threshold, extract an image having an area greater than the first preset shadow area threshold from the first processed image, and obtain a second processed image;
[0177] The sixth acquisition unit is used to obtain a second preset shadow area threshold, extract an image whose area is greater than the second preset shadow area threshold from the second processed image to obtain a third processed image, extract an image that intersects with the external frame of the external frame image from the third processed image, and obtain the shadow area of each object to be detected.
[0178] Optionally, the detection device for overlapping shadow areas of objects to be detected further comprises:
[0179] An overlapping shadow image acquisition module, used for acquiring an overlapping shadow image if the target shadow image overlaps with other shadow images;
[0180] The thickness acquisition module is used to determine the thickness of the shadow area of the object to be detected according to the overlapping shadow image.
[0181] The specific implementation of the detection device for detecting overlapping shadow areas of objects to be detected in the present application is basically the same as the various embodiments of the detection method for detecting overlapping shadow areas of objects to be detected mentioned above, and will not be repeated here.
[0182] To achieve the above-mentioned purpose, the present application further provides a detection device for overlapping shadow areas of objects to be detected, the detection device for overlapping shadow areas of objects to be detected is applied to a second device or a detection device corresponding to overlapping shadow areas of objects to be detected, and the detection device for overlapping shadow areas of objects to be detected includes:
[0183] A sending module, used for generating a key corresponding to a preset vertical federation process, and sending the key to a plurality of first devices associated with the second device, so that each of the first devices encrypts its own initial user feature representation variable based on the key;
[0184] a receiving module, configured to receive the initial user characteristic representation variables encrypted and sent by each of the first devices, and aggregate the initial user characteristic representation variables to obtain an aggregated user characteristic representation variable;
[0185] A feedback module is used to feed back the aggregated user feature representation variable to each of the first devices, so that each of the first devices can iteratively train its own preset prediction model to be trained.
[0186] The specific implementation of the detection device for detecting overlapping shadow areas of objects to be detected in the present application is basically the same as the various embodiments of the detection method for detecting overlapping shadow areas of objects to be detected mentioned above, and will not be repeated here.
[0187] An embodiment of the present application provides a medium, and the medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of the detection method for overlapping shadow areas of objects to be detected as described in any of the above.
[0188] The specific implementation of the medium of the present application is basically the same as the above-mentioned embodiments of the detection method of overlapping shadow areas of objects to be detected, and will not be repeated here.
[0189] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for detecting overlapping shadow areas of an object to be detected, characterized in that: The method for detecting overlapping shadow areas of objects to be detected comprises: Receiving a remote sensing image, and acquiring a target extension image of an object to be detected in the remote sensing image, wherein the target extension image is an image of a circumscribed rectangular frame including the object to be detected, and the size of the image is a preset multiple of the circumscribed rectangular frame image; Performing preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected; Determine an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, the overlap determination point being a second pixel point at a preset number of pixel distances from a first pixel point in a preset extension direction of the azimuth angle of the target shadow image relative to the sun's incident angle, the first pixel point being a pixel point in the target shadow image that is farthest from a center point of the object to be detected; Extracting the first boundary point coordinates of all other external extension images except the target external extension image in the port remote sensing image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates; Acquire the overlap determination point coordinates of the overlap determination point, and compare the overlap determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result; Determining whether the target shadow image overlaps with other shadow images according to the comparison result; If the target shadow image overlaps with other shadow images, determining an intersecting image in the target shadow image that intersects with the outer extension rectangular frame of the target outer extension image, and performing removal processing on the intersecting image to obtain a first processed image; Obtaining a first preset shadow area threshold, extracting an image whose area is larger than the first preset shadow area threshold from the first processed image, and obtaining a second processed image; A second preset shadow area threshold is obtained, an image whose area is greater than the second preset shadow area threshold is extracted from the second processed image to obtain a third processed image, an image intersecting with the bounding box of the bounding box image is extracted from the third processed image, and a shadow area of each object to be detected is obtained, wherein the bounding box image is an image within an embedded coordinate frame corresponding to the target external extension image.
2. The method for detecting overlapping shadow areas of objects to be detected as claimed in claim 1, characterized in that: The step of performing preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected includes: Inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected; The preset semantic segmentation network model is a model for accurately predicting shadow images based on preset image data of objects to be detected with preset shadow labels, obtained by training a preset basic model to be trained.
3. The method for detecting overlapping shadow areas of objects to be detected as claimed in claim 1, characterized in that: The step of determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not comprises: Acquire the solar incident angle corresponding to the object to be detected when collecting the port remote sensing image, and determine the azimuth angle of the target shadow image based on the solar incident angle; Acquire the center point of the object to be detected, and determine the first pixel point farthest from the center point of the object to be detected in the target shadow image according to the center point of the object to be detected and the preset extension direction of the azimuth; A second pixel point that is a preset number of pixel points away from the first pixel point in the preset extension direction is obtained, and the second pixel point is set as the overlap determination point.
4. The method for detecting overlapping shadow areas of objects to be detected as claimed in claim 1, characterized in that: The step of determining whether the target shadow image overlaps with other shadow images according to the comparison result comprises: If the comparison result is that the overlap determination point coordinates are greater than the first boundary point coordinates, and the overlap determination point coordinates are correspondingly smaller than the second boundary point coordinates, it is determined that the target shadow image overlaps with other shadow images; If the comparison result is that the overlap determination point coordinates are smaller than the first boundary point coordinates, or the overlap determination point coordinates are correspondingly larger than the second boundary point coordinates, it is determined that the target shadow image does not overlap with other shadow images.
5. The method for detecting overlapping shadow areas of objects to be detected as claimed in claim 2, characterized in that: Before the step of inputting the target extension image into a preset semantic segmentation network model to perform preset semantic segmentation processing on the target extension image to obtain the target shadow image of the object to be detected, the method includes: Acquire preset image data of the object to be detected, and iteratively train the preset basic model to be trained based on the preset image data of the object to be detected to obtain the basic model after iterative training; It is determined whether the basic model after the iterative training meets the preset training completion condition. If the basic model after the iterative training meets the preset training completion condition, the preset semantic segmentation network model is obtained.
6. The method for detecting overlapping shadow areas of objects to be detected as claimed in claim 1, characterized in that: After the steps of determining an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, and determining whether the target shadow image overlaps with other shadow images according to the overlap determination point, the method comprises: If the target shadow image overlaps with other shadow images, obtaining the overlapping shadow image; The shadow area thickness of the object to be detected is determined according to the overlapping shadow images.
7. A detection device for detecting overlapping shadow areas of objects to be detected, characterized in that: The detection device for overlapping shadow areas of objects to be detected comprises: A receiving module, used for receiving a remote sensing image, and obtaining a target extension image of an object to be detected in the remote sensing image, wherein the target extension image is an image of a circumscribed rectangular frame including the object to be detected, and the size of the image is a preset multiple of the circumscribed rectangular frame image; A first acquisition module is used to perform preset semantic segmentation processing on the target extension image to obtain a target shadow image of the object to be detected; a determination module, used to determine an overlap determination point for judging whether the shadow areas in the target shadow image overlap or not, wherein the overlap determination point is a second pixel point at a preset number of pixel distances from a first pixel point in a preset extension direction of an azimuth angle of the target shadow image relative to the sun's incident angle, wherein the first pixel point is a pixel point in the target shadow image that is farthest from a center point of the object to be detected; The determination module also includes: An extraction unit, used to extract the first boundary point coordinates of all other external extension images except the target external extension image in the port remote sensing image, and all corresponding second boundary point coordinates farthest from the first boundary point coordinates; A fourth acquisition unit is used to acquire the overlap determination point coordinates of the overlap determination point, and compare the overlap determination point coordinates with the first boundary point coordinates and the second boundary point coordinates respectively to obtain a comparison result; a determining unit, configured to determine whether the target shadow image overlaps with other shadow images according to the comparison result; The first acquisition module includes: An input unit, configured to determine, if the target shadow image overlaps with other shadow images, an intersecting image in the target shadow image that intersects with an outward extension rectangular frame of the target outward extension image, and remove the intersecting image to obtain a first processed image; A fifth acquisition unit, configured to acquire a first preset shadow area threshold, extract an image having an area greater than the first preset shadow area threshold from the first processed image, and obtain a second processed image; The sixth acquisition unit is used to obtain a second preset shadow area threshold, extract an image whose area is greater than the second preset shadow area threshold from the second processed image to obtain a third processed image, extract an image that intersects with the external frame of the external frame image from the third processed image, and obtain the shadow area of each object to be detected, wherein the external frame image is an image within the embedded coordinate frame corresponding to the target external extension image.
8. A detection device for detecting overlapping shadow areas of objects to be detected, characterized in that: The detection device for detecting overlapping shadow areas of objects to be detected comprises: a memory, a processor, and a program stored in the memory for implementing the detection method for overlapping shadow areas of objects to be detected, The memory is used to store a program for implementing a detection method for overlapping shadow areas of objects to be detected; The processor is used to execute a program for implementing the detection method for overlapping shadow areas of objects to be detected, so as to implement the steps of the detection method for overlapping shadow areas of objects to be detected as claimed in any one of claims 1 to 6.
9. A medium, characterized in that The medium stores a program for implementing a detection method for overlapping shadow areas of objects to be detected, and the program for implementing a detection method for overlapping shadow areas of objects to be detected is executed by a processor to implement the steps of the detection method for overlapping shadow areas of objects to be detected as described in any one of claims 1 to 6.
