Micro-grid optical exchange planning method, device, equipment and medium

CN117474970BActive Publication Date: 2026-09-08CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210851529.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2026-09-08
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

[0004]本发明提供一种微网格的光交规划方法、装置、设备及介质,用以解决现有技术中微网格光交建设的规划效果差的缺陷,实现提升微网格光交建设的规划效果

Benefits of technology

[0037] The microgrid optical cross-connection planning method, apparatus, device, and medium provided by this invention obtain the effective coverage area of ​​the optical cross-connections in the microgrid to be constructed based on the number of pixels in the microgrid to be constructed, and the effective coverage area accounts for a proportion of the total area of ​​the microgrid greater than a certain threshold. Based on the effective coverage area and the total area of ​​the microgrid to be constructed, the number of optical cross-connections to be constructed in the microgrid to be constructed is determined, and finally, based on the optical cross-connection construction data, the optical cross-connection construction points of the microgrid to be constructed are planned. Through the above steps, more scientific and accurate optical cross-connection planning is achieved, improving the planning effect of microgrid optical cross-connection construction and meeting the needs of planning construction and rapid service activation, thus enabling precise planning of microgrid optical cross-connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117474970B_ABST
    Figure CN117474970B_ABST
Patent Text Reader

Abstract

The application provides a micro-grid optical exchange planning method, device, equipment and medium, and the method comprises the following steps: acquiring a to-be-constructed micro-grid of a micro-grid resource map; determining an effective coverage area of the to-be-constructed micro-grid based on the number of pixel points of the to-be-constructed micro-grid; if the proportion of the effective coverage area in the total area of the micro-grid is less than a preset proportion threshold, determining the number of optical exchange constructions of the to-be-constructed micro-grid based on the effective coverage area and the total area of the micro-grid; and determining the optical exchange construction point of the to-be-constructed micro-grid based on the number of optical exchange constructions. The application realizes more scientific and accurate optical exchange planning and improves the planning effect of micro-grid optical exchange construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a microgrid optical intersection planning method, apparatus, device, and medium. Background Technology

[0002] "Microgrids" aim to achieve deep network coverage and refined resource management, further shorten the access distance at the service endpoint, improve service access efficiency, and reduce redundant construction. Based on the distribution of optical distribution boxes, base stations / industrial / home broadband services within the integrated service access area, the area is divided into smaller grid management units, establishing an effective connection point between the network and the market. Conventional microgrid optical distribution box planning methods primarily start from the service requirements, combining the service needs with the optical distribution box resources within the microgrid to plan the necessary secondary optical distribution boxes. This process requires resource assessment for each grid and determining the number of optical distribution boxes to be built based on planning principles. Typically, a first-tier city may have thousands of microgrids, requiring a significant investment of manpower for planning.

[0003] Microgrids, as the basic management unit for service access, play a crucial role in service access. However, a mismatch exists between microgrid resources and services. Optimizing the optical cross-connect resource configuration of each microgrid and performing efficient optical cross-connect planning are key challenges for microgrids. Summary of the Invention

[0004] This invention provides a microgrid optical intersection planning method, apparatus, equipment, and medium to address the shortcomings of poor planning effects in existing microgrid optical intersection construction, thereby improving the planning effect of microgrid optical intersection construction.

[0005] This invention provides a microgrid optical intersection planning method, comprising:

[0006] Obtain the microgrid to be constructed from the microgrid resource map;

[0007] The effective coverage area of ​​the microgrid to be constructed is determined based on the number of pixels in the microgrid to be constructed.

[0008] If the effective coverage area accounts for less than a preset percentage threshold of the total microgrid area, then the number of optical cross-connectors to be constructed for the microgrid to be constructed is determined based on the effective coverage area and the total microgrid area.

[0009] Based on the number of optical cross-connectors constructed, the optical cross-connector construction points of the microgrid to be constructed are determined.

[0010] According to a microgrid optical distribution planning method provided by the present invention, the number of optical distribution points to be constructed in the microgrid to be constructed is determined based on the effective coverage area and the total area of ​​the microgrid, including:

[0011] Obtain the service area of ​​the microgrid to be constructed;

[0012] Based on the business area of ​​the microgrid to be constructed and the total area of ​​the microgrid, determine the proportion of the business area of ​​the microgrid to be constructed;

[0013] Based on the coverable area of ​​the optical distribution box, the proportion of the service area, the effective coverage area, and the total area of ​​the microgrid, the number of optical distribution boxes to be constructed for the microgrid to be constructed is determined.

[0014] According to the present invention, a microgrid optical intersection planning method determines the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed, including:

[0015] Establish a mapping relationship between pixel RGB values ​​and the number of times they are covered;

[0016] Based on the mapping relationship, the number of pixels in the microgrid to be constructed is determined;

[0017] The effective coverage area of ​​the microgrid to be constructed is determined based on the number of pixels in the microgrid to be constructed.

[0018] According to a microgrid optical intersection planning method provided by the present invention, the optical intersection construction points of the microgrid to be constructed are determined based on the number of optical intersection constructions, including:

[0019] Based on the number of pixels in the microgrid to be constructed, the covered and uncovered areas of the microgrid to be constructed are determined;

[0020] Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area;

[0021] Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, the optical cross-connection points of the microgrid to be constructed are determined.

[0022] According to a microgrid optical intersection planning method provided by the present invention, the optical intersection construction points of the microgrid to be constructed are determined based on the number of optical intersection constructions and the centroid coordinates of the uncovered connected regions, including:

[0023] If the number of optical cross-connection constructions is less than or equal to the number of uncovered connected regions, then the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates of the first target uncovered connected region whose area is greater than a preset area threshold.

[0024] If the number of optical cross-connection constructions is greater than the number of uncovered connected regions, then based on the smallest bounding rectangle of the second target uncovered connected region with an area greater than a preset area threshold, the long side of the rectangle is divided to determine the centroid coordinates corresponding to the second target uncovered connected region, and the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates corresponding to the second target uncovered connected region.

[0025] According to a microgrid optical intersection planning method provided by the present invention, based on the covered area and the uncovered area, the method determines the uncovered connected region within the uncovered area, including:

[0026] The covered areas in the microgrid to be constructed are converted to pure white, and the uncovered areas in the microgrid to be constructed are converted to pure black;

[0027] The microgrid to be constructed is subjected to opening and denoising operations in sequence to obtain the microgrid image of the selected points;

[0028] Based on the microgrid image of the candidate points, the uncovered connected regions in the microgrid image of the candidate points are determined.

[0029] The present invention also provides a microgrid optical intersection planning device, comprising:

[0030] The acquisition module is used to acquire the microgrids to be built in the microgrid resource map;

[0031] The effective coverage area determination module is used to determine the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed.

[0032] The optical cross-connection construction quantity determination module is used to determine the number of optical cross-connections to be constructed for the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold.

[0033] The optical junction construction point determination module is used to determine the optical junction construction points of the microgrid to be constructed based on the number of optical junction constructions.

[0034] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the optical intersection planning method of the microgrid as described above.

[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the optical intersection planning method for microgrids as described above.

[0036] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the optical intersection planning method for microgrids as described above.

[0037] The microgrid optical cross-connection planning method, apparatus, device, and medium provided by this invention obtain the effective coverage area of ​​the optical cross-connections in the microgrid to be constructed based on the number of pixels in the microgrid to be constructed, and the effective coverage area accounts for a proportion of the total area of ​​the microgrid greater than a certain threshold. Based on the effective coverage area and the total area of ​​the microgrid to be constructed, the number of optical cross-connections to be constructed in the microgrid to be constructed is determined, and finally, based on the optical cross-connection construction data, the optical cross-connection construction points of the microgrid to be constructed are planned. Through the above steps, more scientific and accurate optical cross-connection planning is achieved, improving the planning effect of microgrid optical cross-connection construction and meeting the needs of planning construction and rapid service activation, thus enabling precise planning of microgrid optical cross-connections. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0039] Figure 1 This is one of the flowcharts illustrating the microgrid optical intersection planning method provided by the present invention;

[0040] Figure 2 This is the second flowchart illustrating the microgrid optical intersection planning method provided by the present invention;

[0041] Figure 3 This is the third flowchart illustrating the microgrid optical intersection planning method provided by the present invention;

[0042] Figure 4 This is the fourth flowchart illustrating the microgrid optical intersection planning method provided by the present invention;

[0043] Figure 5 This is the fifth flowchart illustrating the microgrid optical intersection planning method provided by the present invention;

[0044] Figure 6 This is the sixth flowchart illustrating the microgrid optical intersection planning method provided by the present invention;

[0045] Figure 7 This is a schematic diagram of the structure of the microgrid optical intersection planning device provided by the present invention;

[0046] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0048] The following is combined Figures 1-6 The present invention describes the microgrid optical intersection planning method.

[0049] Please refer to Figure 1 The microgrid optical intersection planning method proposed in this invention includes:

[0050] Step 10: Obtain the microgrids to be constructed from the microgrid resource map;

[0051] It should be noted that the microgrid resource map is the microgrid resource map corresponding to the area to be constructed after dividing it into microgrids. Each microgrid is the smallest subdivided area or the smallest construction area in the microgrid resource map. The microgrid resource map includes the microgrid name, area outline latitude and longitude, and the optical intersection latitude and longitude within the grid. Specifically, the microgrid resource map of the area to be constructed can be generated by importing the basic resource data of the area to be constructed from the integrated resource system. The basic resource data includes the microgrid name, area outline latitude and longitude, and the optical intersection latitude and longitude within the grid.

[0052] Step 20: Determine the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed;

[0053] In this context, the number of pixels at each location in the microgrid to be constructed corresponds to the number of times the optical crossover is covered, and the effective coverage area is the area of ​​the effective coverage range in the microgrid to be constructed that is effectively covered by the optical crossover signal.

[0054] In this embodiment, it should be noted that the number of pixels at each location in the microgrid to be constructed corresponds to the number of optical crossover coverage times. The higher the number of optical crossover coverage times, the more pixels there are. Therefore, obtaining the number of pixels in the microgrid to be constructed allows for determining the effective coverage area of ​​the grid based on the number of pixels. Furthermore, areas where the number of pixels in the microgrid to be constructed exceeds a preset threshold can be considered as effective coverage areas covered by optical crossover. This is because when the number of pixels in the microgrid area exceeds a certain threshold, it indicates that the optical crossover signal in that area is already sufficiently covered, and there is no need to continue covering that area with optical crossover signals. Conversely, when the number of pixels in the microgrid area is less than a certain threshold, the optical crossover signal in that area can be considered not effectively covered, and areas not effectively covered need to be planned for optical crossover signal coverage. After obtaining the effective coverage areas in the microgrid to be constructed, the effective coverage area of ​​the microgrid to be constructed is calculated based on these effective coverage areas.

[0055] Step 30: If the proportion of the effective coverage area to the total area of ​​the microgrid is greater than a preset proportion threshold, then the number of optical cross-connectors to be constructed for the microgrid to be constructed is determined based on the effective coverage area and the total area of ​​the microgrid.

[0056] In this embodiment, after obtaining the effective coverage area corresponding to the effective coverage region of the optical distribution network (ODN) in the microgrid to be constructed, the total area of ​​the microgrid to be constructed is obtained, and the proportion of the effective coverage area to the total area of ​​the microgrid is calculated. The calculated proportion is then compared with a preset proportion threshold to determine whether optical distribution network (ODN) planning is required for the microgrid to be constructed. It should be noted that if the proportion of the effective coverage area to the total area of ​​the microgrid is small compared to the preset proportion threshold, the effective coverage area of ​​the ODN in the microgrid to be constructed does not meet the standard, and ODN planning is required for the microgrid to be constructed. If the proportion is large compared to the preset proportion threshold, the effective coverage area of ​​the ODN in the microgrid to be constructed has met the standard, and ODN planning is not required for the microgrid to be constructed. If the proportion is greater than the preset proportion threshold, the number of ODN installations required within the microgrid to be constructed is calculated based on the effective coverage area and the total area of ​​the microgrid. The number of ODN installations refers to the number of ODN boxes required in the microgrid to be constructed.

[0057] Furthermore, based on the effective coverage area and the total area of ​​the microgrid, the area of ​​ineffective coverage corresponding to the optical crossover signals in the microgrid to be constructed can be calculated; then, based on the area of ​​ineffective coverage corresponding to the optical crossover signals in the microgrid to be constructed, the number of optical crossover points to be constructed in the microgrid to be constructed can be calculated.

[0058] Step 40: Based on the number of optical cross-connection constructions, determine the optical cross-connection construction points of the microgrid to be constructed.

[0059] In this embodiment, after calculating the number of optical distribution boxes to be built in the microgrid to be constructed, the optical distribution points in the microgrid area to be constructed are planned according to the required number of optical distribution boxes. It should be noted that in this step, the optical distribution points in the microgrid to be constructed are planned in areas not effectively covered by optical distribution signals based on the scientifically calculated number of optical distribution boxes, so as to achieve more scientific and accurate optical distribution planning, improve the planning effect of microgrid optical distribution construction, and improve the scientificity and accuracy of microgrid optical distribution construction planning.

[0060] Further, in one possible embodiment, the uncovered areas in the microgrid to be constructed are first divided according to their uncovered regions, and the center of each uncovered region is used as the optical intersection point. Alternatively, in another possible embodiment, the uncovered areas in the microgrid to be constructed are divided according to whether the uncovered regions are connected, and the center or centroid of each uncovered region is used as the optical intersection point.

[0061] The microgrid optical cross-connection planning method provided by this invention obtains the effective coverage area of ​​the optical cross-connections in the microgrid to be constructed based on the number of pixels in the microgrid to be constructed, and the effective coverage area accounts for a proportion of the total area of ​​the microgrid that is greater than a certain threshold. Based on the effective coverage area and the total area of ​​the microgrid to be constructed, the number of optical cross-connections to be constructed in the microgrid to be constructed is determined, and finally, based on the optical cross-connection construction data, the optical cross-connection construction points of the microgrid to be constructed are planned. Through the above steps, more scientific and accurate optical cross-connection planning is achieved, improving the planning effect of microgrid optical cross-connection construction and meeting the needs of planning construction and rapid service activation, thus enabling precise planning of microgrid optical cross-connections.

[0062] In one possible embodiment, please refer to Figure 2 Step 30: Based on the effective coverage area and the total area of ​​the microgrid, determine the number of optical cross-connectors to be constructed in the microgrid to be built, including:

[0063] Step 31: Obtain the service area of ​​the microgrid to be constructed;

[0064] Step 32: Based on the service area of ​​the microgrid to be constructed and the total area of ​​the microgrid, determine the service area ratio of the microgrid to be constructed;

[0065] Step 33: Based on the coverable area of ​​the optical distribution box, the proportion of the service area, the effective coverage area, and the total area of ​​the microgrid, determine the number of optical distribution boxes to be constructed for the microgrid to be constructed.

[0066] In this embodiment, 100% coverage is not necessary when considering service coverage within the microgrid, because roads also occupy a certain area within the microgrid, and road coverage alone cannot solve the service access needs within the grid. Based on the proportion of microgrids with different service attributes in the network, samples are taken from each type of microgrid to analyze the proportion of road and service areas. For example, an exemplary analysis result is shown in the table below:

[0067]

[0068]

[0069] Based on the sampling results above, the average road area ratio of these microgrid types is 24.98%, and the service area ratio is 75.02%. Therefore, we set the effective coverage area ratio of a microgrid to 75%. The construction of an optical distribution box will only be initiated when the sum of the uncovered areas of the microgrids exceeds the effective coverage area of ​​an optical distribution box and the covered area within the grid is less than 75%.

[0070]

[0071] Where r is the coverage radius of the optical distribution frame (ODF), S is the total area of ​​a single microgrid, and s' is the already covered area. Based on the already covered area of ​​each microgrid as assessed in the previous step, and combined with the standards for new ODF construction, the number of ODFs to be built for each microgrid is determined. This reduces investment in microgrid construction while ensuring the end-point access distance for services.

[0072] In one possible embodiment, please refer to Figure 3 Step 20: Based on the number of pixels in the microgrid to be constructed, determine the effective coverage area of ​​the microgrid to be constructed, including:

[0073] Step 21: Establish the mapping relationship between pixel RGB values ​​and coverage counts;

[0074] Step 22: Based on the mapping relationship, determine the number of pixels in the microgrid to be constructed;

[0075] Step 23: Determine the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed.

[0076] In this embodiment, due to the irregularity of the coverage area of ​​each microgrid, a brute-force Monte Carlo method is used to solve the problem. First, a mapping table is established between pixel RGB values ​​and the number of coverage times. Then, the `hist` method provided by OpenCV is used to count the number of pixels of different color levels in each microgrid. Since the microgrid pixel mapping process is more dependent on computer computing performance, multi-threading technology is used to count the pixel proportions.

[0077] In the mapping relationship between pixel RGB values ​​and coverage counts, the number of pixels at each position in the microgrid corresponds to the number of light intersection coverage counts. A higher light intersection coverage count corresponds to a larger number of pixels. Therefore, by determining the number of pixels in the microgrid and the mapping relationship between pixel RGB values ​​and coverage counts, the coverage count of the grid region can be determined, and thus the effective coverage area can be determined based on the coverage count. An exemplary pixel mapping relationship table is shown below:

[0078] 0 times (0,0,255) 1 time (25,0,229) 2 times (48,0,205) 3 times (69,0,183) 4 times (87,0,163) 5 times (104,0,145) 6 times (119,0,129) 7 times (132,0,115) ….. ……

[0079] In this embodiment, by using the pre-constructed mapping relationship between pixel RGB values ​​and coverage times in the microgrid resource map, the effective coverage area of ​​the microgrid to be constructed can be determined based on the mapping relationship between pixel RGB values ​​and coverage times and the number of pixels in the microgrid to be constructed. This makes it more convenient to identify the effective coverage area of ​​the grid's optical intersection. By using image processing methods for the optical intersection planning of the microgrid, the limitations of inconsistent standards for manually selecting optical intersection points and the pseudo-depth coverage problem in traditional microgrids are solved, while also addressing the matching problem between services and grid resources.

[0080] In one possible embodiment, please refer to Figure 4 Step 40: Based on the number of optical cross-connectors, determine the optical cross-connection points of the microgrid to be constructed, including:

[0081] Step 41: Based on the number of pixels in the microgrid to be constructed, determine the covered and uncovered areas of the microgrid to be constructed;

[0082] Step 42: Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area;

[0083] Step 43: Based on the number of optical cross-connection constructions and the centroid coordinates of the uncovered connected regions, determine the optical cross-connection construction points of the microgrid to be constructed.

[0084] Uncovered areas typically consist of multiple uncovered fragmented regions, making the selection of secondary optical distribution boxes a key challenge in optical distribution point selection. Based on the principle of optimal coverage area, this paper outputs a list of secondary optical distribution box locations with latitude and longitude coordinates for each microgrid. Specific steps are as follows:

[0085] For uncovered areas within the microgrid to be constructed, the uncovered areas are divided based on connectivity. The center or centroid of each uncovered area is then used as the optical intersection point. Specifically, the covered and uncovered areas of the microgrid are identified in the image based on the number of pixels. Areas with more than a preset threshold of pixels are marked as covered areas, while areas with fewer than the preset threshold are marked as uncovered areas. Then, based on the identified covered and uncovered areas, the covered areas are removed, leaving the uncovered areas. Connectivity within these uncovered areas is then identified, determining the uncovered connected regions within the uncovered areas. This step involves dividing the uncovered areas of the microgrid to be constructed into optical intersection point setting areas to select the optical intersection point.

[0086] This embodiment proposes to divide the optical intersection point setting area by the connected area of ​​the uncovered area of ​​the microgrid to be planned, so as to select the optical intersection construction point, achieve more scientific and accurate optical intersection planning, and improve the planning effect of microgrid optical intersection construction.

[0087] In one possible embodiment, please refer to Figure 5 Step 43: Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, determine the optical cross-connection points of the microgrid to be constructed, including:

[0088] Step 431: If the number of optical cross-connection constructions is less than or equal to the number of uncovered connected regions, then the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates of the first target uncovered connected region whose area is greater than a preset area threshold.

[0089] Step 432: If the number of optical intersection constructions is greater than the number of uncovered connected regions, then based on the smallest bounding rectangle of the second target uncovered connected region with an area greater than a preset area threshold, the long side of the rectangle is divided to determine the centroid coordinates corresponding to the second target uncovered connected region, and the optical intersection construction points of the microgrid to be constructed are determined based on the centroid coordinates corresponding to the second target uncovered connected region.

[0090] In this embodiment, when the number of uncovered connected regions to be constructed is less than or equal to the number of uncovered connected regions, the centroid of the connected region with the largest uncovered area is selected for construction. When the number of uncovered connected regions to be constructed exceeds the number of uncovered connected regions, the selection of optical intersection points is achieved by fitting a minimum bounding rectangle around the larger connected regions and then dividing the longer side. By calculating the image centroid coordinates of a single connected region, a conversion relationship between image centroid coordinates and latitude / longitude coordinates is established, and a construction list is output, thus completing the selection of optical intersection coordinates.

[0091] This embodiment proposes a selection scheme for optical cross-connection construction points based on the number of optical cross-connection construction points and the number of uncovered connected areas, so as to achieve a more scientific selection of optical cross-connection construction points, thereby achieving a more scientific and accurate optical cross-connection planning and improving the planning effect of microgrid optical cross-connection construction.

[0092] In one possible embodiment, please refer to Figure 6 Step 42: Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area, including:

[0093] Step 421: Convert the covered area in the microgrid to be constructed to pure white, and convert the uncovered area in the microgrid to be constructed to pure black;

[0094] Step 422: Perform opening and denoising operations sequentially on the microgrid to be constructed to obtain the microgrid image of the selected points;

[0095] Step 423: Based on the microgrid image of the candidate points, determine the uncovered connected regions in the microgrid image of the candidate points.

[0096] Each microgrid image is converted to grayscale, resulting in a grayscale image where all RGB color components are equal. Then, the image is binarized based on the values ​​of different regions in the grayscale image; a threshold is set to convert covered areas to pure white and uncovered areas to pure black. Since it's not recommended to construct optical crossover boxes in small uncovered areas during actual optical crossover point selection, the binary image obtained in the previous step is denoised using an image opening operation (erosion followed by dilation), and this area is not considered during optical crossover point selection. Using the image obtained after the previous image opening operation, and considering the number of optical crossover boxes required for this microgrid, optical crossover point selection is performed. OpenCV's findContours tool is used to identify all connected regions of the image to be constructed in the microgrid image.

[0097] In this embodiment, image opening operation (first erosion, then dilation) is used for noise reduction to remove areas with excessively small areas from the image. These areas are not considered when selecting optical intersection points. The image obtained after the previous image opening operation is then used in conjunction with the number of optical intersections to be constructed in this microgrid to select optical intersection points, thereby improving the accuracy of optical intersection point selection and further enhancing the effect of optical intersection planning.

[0098] The optical intersection planning device for microgrids provided by the present invention is described below. The optical intersection planning device for microgrids described below can be referred to in correspondence with the optical intersection planning method for microgrids described above.

[0099] Please refer to Figure 7 The microgrid optical intersection planning device proposed in this invention includes:

[0100] The acquisition module is used to acquire the microgrids to be built in the microgrid resource map;

[0101] The effective coverage area determination module is used to determine the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed.

[0102] The optical cross-connection construction quantity determination module is used to determine the number of optical cross-connections to be constructed for the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold.

[0103] The optical junction construction point determination module is used to determine the optical junction construction points of the microgrid to be constructed based on the number of optical junction constructions.

[0104] Furthermore, the optical cross-connection construction quantity determination module is also used for:

[0105] Obtain the service area of ​​the microgrid to be constructed;

[0106] Based on the business area of ​​the microgrid to be constructed and the total area of ​​the microgrid, determine the proportion of the business area of ​​the microgrid to be constructed;

[0107] Based on the coverable area of ​​the optical distribution box, the proportion of the service area, the effective coverage area, and the total area of ​​the microgrid, the number of optical distribution boxes to be constructed for the microgrid to be constructed is determined.

[0108] Furthermore, the effective coverage area determination module is also used for:

[0109] Establish a mapping relationship between pixel RGB values ​​and the number of times they are covered;

[0110] Based on the mapping relationship, the number of pixels in the microgrid to be constructed is determined;

[0111] The effective coverage area of ​​the microgrid to be constructed is determined based on the number of pixels in the microgrid to be constructed.

[0112] Furthermore, the optical junction construction point determination module is also used for:

[0113] Based on the number of pixels in the microgrid to be constructed, the covered and uncovered areas of the microgrid to be constructed are determined;

[0114] Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area;

[0115] Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, the optical cross-connection points of the microgrid to be constructed are determined.

[0116] Furthermore, the optical junction construction point determination module is also used for:

[0117] If the number of optical cross-connection constructions is less than or equal to the number of uncovered connected regions, then the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates of the first target uncovered connected region whose area is greater than a preset area threshold.

[0118] If the number of optical cross-connection constructions is greater than the number of uncovered connected regions, then based on the smallest bounding rectangle of the second target uncovered connected region with an area greater than a preset area threshold, the long side of the rectangle is divided to determine the centroid coordinates corresponding to the second target uncovered connected region, and the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates corresponding to the second target uncovered connected region.

[0119] Furthermore, the optical junction construction point determination module is also used for:

[0120] The covered areas in the microgrid to be constructed are converted to pure white, and the uncovered areas in the microgrid to be constructed are converted to pure black;

[0121] The microgrid to be constructed is subjected to opening and denoising operations in sequence to obtain the microgrid image of the selected points;

[0122] Based on the microgrid image of the candidate points, the uncovered connected regions in the microgrid image of the candidate points are determined.

[0123] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a microgrid optical intersection planning method, which includes: acquiring the microgrid to be constructed from the microgrid resource map; determining the effective coverage area of ​​the microgrid to be constructed based on the number of pixels of the microgrid to be constructed; if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold, then determining the number of optical intersections to be constructed for the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid; and determining the optical intersection construction points of the microgrid to be constructed based on the number of optical intersections.

[0124] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0125] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the microgrid optical intersection planning method provided by the above methods. The method includes: obtaining a microgrid to be constructed from a microgrid resource map; determining the effective coverage area of ​​the microgrid to be constructed based on the number of pixels of the microgrid to be constructed; if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold, then determining the number of optical intersections to be constructed for the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid; and determining the optical intersection construction points of the microgrid to be constructed based on the number of optical intersections.

[0126] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a microgrid optical intersection planning method provided by the above methods. The method includes: acquiring a microgrid to be constructed from a microgrid resource map; determining the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed; if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold, determining the number of optical intersections to be constructed in the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid; and determining the optical intersection construction points of the microgrid to be constructed based on the number of optical intersections.

[0127] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A microgrid optical intersection planning method, characterized in that, include: Obtain the microgrid to be constructed from the microgrid resource map; The effective coverage area of ​​the microgrid to be constructed is determined based on the number of pixels in the microgrid to be constructed. If the effective coverage area accounts for less than a preset percentage threshold of the total microgrid area, then the number of optical cross-connectors to be constructed for the microgrid to be constructed is determined based on the effective coverage area and the total microgrid area. Based on the number of pixels in the microgrid to be constructed, the covered and uncovered areas of the microgrid to be constructed are determined; Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area; Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, the optical cross-connection points of the microgrid to be constructed are determined.

2. The microgrid optical intersection planning method according to claim 1, characterized in that, Based on the effective coverage area and the total area of ​​the microgrid, the number of optical cross-connectors to be constructed in the microgrid to be built is determined, including: Obtain the service area of ​​the microgrid to be constructed; Based on the business area of ​​the microgrid to be constructed and the total area of ​​the microgrid, determine the proportion of the business area of ​​the microgrid to be constructed; Based on the coverable area of ​​the optical distribution box, the proportion of the service area, the effective coverage area, and the total area of ​​the microgrid, the number of optical distribution boxes to be constructed for the microgrid to be constructed is determined.

3. The microgrid optical intersection planning method according to claim 1, characterized in that, Based on the number of pixels in the microgrid to be constructed, the effective coverage area of ​​the microgrid to be constructed is determined, including: Establish a mapping relationship between pixel RGB values ​​and the number of times they are covered; Based on the mapping relationship, the number of pixels in the microgrid to be constructed is determined; The effective coverage area of ​​the microgrid to be constructed is determined based on the number of pixels in the microgrid to be constructed.

4. The microgrid optical intersection planning method according to claim 1, characterized in that, Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, the optical cross-connection points of the microgrid to be constructed are determined, including: If the number of optical cross-connection constructions is less than or equal to the number of uncovered connected regions, then the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates of the first target uncovered connected region whose area is greater than a preset area threshold. If the number of optical cross-connection constructions is greater than the number of uncovered connected regions, then based on the smallest bounding rectangle of the second target uncovered connected region with an area greater than a preset area threshold, the long side of the rectangle is divided to determine the centroid coordinates corresponding to the second target uncovered connected region, and the optical cross-connection construction points of the microgrid to be constructed are determined based on the centroid coordinates corresponding to the second target uncovered connected region.

5. The microgrid optical intersection planning method according to claim 1, characterized in that, Based on the covered area and the uncovered area, determining the uncovered connected area within the uncovered area includes: The covered areas in the microgrid to be constructed are converted to pure white, and the uncovered areas in the microgrid to be constructed are converted to pure black; The microgrid to be constructed is subjected to opening and denoising operations in sequence to obtain the microgrid image of the selected points; Based on the microgrid image of the candidate points, the uncovered connected regions in the microgrid image of the candidate points are determined.

6. A microgrid optical intersection planning device, characterized in that, include: The acquisition module is used to acquire the microgrids to be built in the microgrid resource map; The effective coverage area determination module is used to determine the effective coverage area of ​​the microgrid to be constructed based on the number of pixels in the microgrid to be constructed. The optical cross-connection construction quantity determination module is used to determine the number of optical cross-connections to be constructed for the microgrid to be constructed based on the effective coverage area and the total area of ​​the microgrid if the proportion of the effective coverage area to the total area of ​​the microgrid is less than a preset proportion threshold. The optical intersection construction point determination module is used to determine the covered and uncovered areas of the microgrid to be constructed based on the number of pixels in the microgrid to be constructed. Based on the covered area and the uncovered area, determine the uncovered connected area within the uncovered area; Based on the number of optical cross-connection points and the centroid coordinates of the uncovered connected regions, the optical cross-connection points of the microgrid to be constructed are determined.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the optical intersection planning method for the microgrid as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the optical intersection planning method for the microgrid as described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the optical intersection planning method for the microgrid as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Path planning method, device and mobile device

    CN109541634A

  • Base station equipment planarization optimization layout method based on gridding small area principle and genetic algorithm

    CN110650482A