Target unit boundary discovery method based on image color block connected region analysis

文档序号:7870 发布日期:2021-09-17 浏览:53次 中文

1. A target unit boundary finding method based on image color block connected region analysis is characterized in that: comprises that

Step 1, searching a target unit based on an online map, acquiring the central longitude and latitude of the target unit, and storing a map content screenshot;

step 2, determining and storing boundary information of a target unit in the screenshot by using a computer vision technology;

and 3, converting the boundary information of the target unit in the screenshot into the boundary information in the real map, and realizing the boundary discovery of the target unit.

2. The method for discovering the target unit boundary based on the image color block connected region analysis according to claim 1, wherein: in the step 1, firstly, searching a target unit based on an online map, and acquiring the central longitude and latitude of the target unit; secondly, on-line map software level, screenshot is carried out on map contents at least comprising center longitude and latitude, map scale and map level of a currently displayed target unit, and the screenshot is stored.

3. The method for discovering the target unit boundary based on the image color block connected region analysis according to claim 1, wherein: in step 2, based on the characteristic that the pixel gray values and the edge colors of different areas are discontinuous, the color block connected area of the target unit in the screenshot is divided by using the computer vision related technology, and the boundary information of the target unit in the screenshot is determined and stored.

4. The method for discovering the target unit boundary based on the image color block connected region analysis according to claim 1, wherein: and 3, converting the boundary information of the target unit in the screenshot into longitude and latitude information in a real map by combining information such as a map scale, the center longitude and latitude of the target unit, the length and the width of the screenshot and the like, and realizing the boundary discovery of the target unit.

Background

With the development of the internet, the number of network penetration attacks developed for the key information infrastructure is increasing, and how to determine the IP used by the key information infrastructure becomes an urgent problem to be solved. At present, the research at home and abroad mainly utilizes an asset discovery technology based on domain name identification to discover the assets of the key infrastructure and improve the defense capability of the website surface of the key infrastructure. However, the website plane is only one defense plane against critical infrastructure network attacks. How to find and determine the boundary information of the key infrastructure and describe the boundary information in the form of latitude and longitude is also important for providing data support for determining the IP used by the key infrastructure.

Disclosure of Invention

In order to solve the problems in the background art, the invention provides a target unit boundary discovery method based on image color block connected region analysis.

A target unit boundary finding method based on image color block connected region analysis comprises

Step 1, searching a target unit based on an online map, acquiring the central longitude and latitude of the target unit, and storing a map content screenshot;

step 2, determining and storing boundary information of a target unit in the screenshot by using a computer vision technology;

and 3, converting the boundary information of the target unit in the screenshot into the boundary information in the real map, and realizing the boundary discovery of the target unit.

Based on the above, in step 1, firstly, searching a target unit based on an online map, and acquiring the central longitude and latitude of the target unit; secondly, on-line map software level, screenshot is carried out on map contents at least comprising center longitude and latitude, map scale and map level of a currently displayed target unit, and the screenshot is stored.

Based on the above, in step 2, based on the characteristics of discontinuous pixel gray values and edge colors of different regions, the color block connected region of the target unit in the screenshot is divided by using the computer vision correlation technique, and the boundary information of the target unit in the screenshot is determined and stored.

Based on the above, in step 3, the boundary information of the target unit in the screenshot is converted into longitude and latitude information in the real map by combining the map scale, the center longitude and latitude of the target unit, the length and the width of the screenshot and other information, so as to realize the boundary discovery of the target unit.

Compared with the prior art, the method has outstanding substantive characteristics and remarkable progress, and particularly, the method utilizes the computer vision related technology to divide the connected area of the screenshot color block, and converts the coordinate information of the target unit in the screenshot into the longitude and latitude information in the map by combining the map scale, the central longitude and latitude of the target unit, the length and the width of the screenshot and other information, thereby realizing the boundary discovery of the target unit and providing data support for determining the IP used by the key infrastructure.

Drawings

Fig. 1 is a view showing location information of the zheng state city citizen government obtained by searching the zheng state city citizen government based on an open hectometre map service, including information of the longitude and latitude of the center of the unit and the map level. The dotted line frame in the figure is the border area of the zheng state citizen government.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.

The invention relates to a target unit boundary finding method based on image color block connected region analysis, which is further explained by taking the example of obtaining the boundary information of the people government of Zheng State city by combining a real data set.

Step 1, searching a target unit based on an online map, acquiring the central longitude and latitude of the target unit, and storing a map content screenshot.

The geographical position information of the people government of Zheng State city, including the central longitude and latitude information of the unit and the map contents such as the map hierarchy and the like, is obtained through a public map platform (such as a Baidu map), and the map screenshot shown in figure 1 is obtained through screenshot and storage.

And 2, determining and storing the boundary information of the target unit in the screenshot by using a computer vision correlation technique.

By using computer vision related technology (such as map ground color distinguishing technology, OpenCV image analysis technology, example separation technology and the like), color block connected regions in the screenshot are divided, and boundary information of Zheng state and citizen government as indicated by a dotted frame in FIG. 1 is obtained.

And 3, converting the boundary information of the target unit in the screenshot into the boundary information in the real map, and realizing the boundary discovery of the target unit. By combining information such as the scale of the map, the central longitude and latitude of a target unit, the length and the width of the screenshot and the like, boundary information of a target position (Zheng State citizen government) is extracted on the map with the same scale by using a map dotting technology, so that the boundary information of the Zheng State citizen government in screenshot is converted into boundary information of a real map expressed by the longitude and latitude, and boundary discovery of the Zheng State citizen government is realized.

It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:信标标注方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!