CN111784719B - Method and device for sensing page hotspot distribution accuracy based on picture analysis situation - Google Patents
Method and device for sensing page hotspot distribution accuracy based on picture analysis situation Download PDFInfo
- Publication number
- CN111784719B CN111784719B CN202010560160.7A CN202010560160A CN111784719B CN 111784719 B CN111784719 B CN 111784719B CN 202010560160 A CN202010560160 A CN 202010560160A CN 111784719 B CN111784719 B CN 111784719B
- Authority
- CN
- China
- Prior art keywords
- picture
- target
- statistical value
- separated
- visual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000009826 distribution Methods 0.000 title claims abstract description 61
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004458 analytical method Methods 0.000 title claims abstract description 50
- 230000000007 visual effect Effects 0.000 claims abstract description 67
- 238000003860 storage Methods 0.000 claims abstract description 13
- 239000011159 matrix material Substances 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 7
- 230000000877 morphologic effect Effects 0.000 claims description 3
- 238000012360 testing method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000003086 colorant Substances 0.000 description 5
- 238000000926 separation method Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- BUGBHKTXTAQXES-UHFFFAOYSA-N Selenium Chemical compound [Se] BUGBHKTXTAQXES-UHFFFAOYSA-N 0.000 description 2
- 230000007123 defense Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002265 prevention Effects 0.000 description 2
- 229910052711 selenium Inorganic materials 0.000 description 2
- 239000011669 selenium Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003703 image analysis method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004451 qualitative analysis Methods 0.000 description 1
- 238000012502 risk assessment Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20092—Interactive image processing based on input by user
- G06T2207/20104—Interactive definition of region of interest [ROI]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Image Analysis (AREA)
Abstract
The application relates to a method, a device, computer equipment and a storage medium for sensing page hotspot distribution accuracy based on a picture analysis situation, wherein a separated picture is obtained from a visual picture according to target characteristics by grabbing the visual picture, and a first statistical value of target characteristic points in the separated picture is obtained; acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of a target feature point in the latitude and longitude range in the metadata; and determining the hotspot distribution accuracy of the situation awareness page according to the difference value of the first statistical value and the second statistical value, thereby realizing a method for efficiently and accurately acquiring the hotspot distribution accuracy of the situation awareness page.
Description
Technical Field
The application relates to the technical field of situation awareness, in particular to a method, a device, computer equipment and a storage medium for perceiving page hotspot distribution accuracy based on picture analysis.
Background
Situation awareness is an environment-based, dynamic and overall security risk awareness capability, and is a way to promote discovery, identification, understanding and analysis of security threats and response handling capability from a global perspective based on security big data. Many situation awareness platforms control the dotting position of data on a map through the longitude and latitude of the data, so that threat data and asset data are visually presented on the map through a situation awareness screen.
Under the condition of less data, a tester can judge whether the position of the data dotting on the map is correct or not through naked eyes, however, under the condition of big data, the data is obviously difficult to judge through a manual mode, and the efficiency is low and the accuracy is poor when the tester tests.
Aiming at the problems of low efficiency and poor accuracy in the situation awareness visual map dotting accuracy test in the related technology, no effective solution is proposed at present.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a method, an apparatus, a computer device and a storage medium for perceiving the distribution accuracy of page hot spots based on a picture analysis situation.
According to one aspect of the invention, a method for perceiving page hotspot distribution accuracy based on picture analysis situation is provided, and the method comprises the following steps:
capturing a visual picture, obtaining a separated picture from the visual picture according to target characteristics, and obtaining a first statistical value of target characteristic points in the separated picture;
acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of the target feature point in the latitude and longitude range in metadata;
and determining the situation awareness page hotspot distribution accuracy according to the difference value between the first statistical value and the second statistical value.
In one embodiment, the obtaining the separated picture from the visual picture according to the target feature includes:
and obtaining a separated picture from the visual picture according to the asset dotting information and the map area boundary.
In one embodiment, the obtaining the separated picture from the visual picture according to the target feature includes:
and obtaining a separated picture from the visual picture according to the threat dotting information and the map area boundary.
In one embodiment, the obtaining a separation picture from the visual picture according to the target feature, and the obtaining the first statistic of the target feature point in the separation picture includes:
acquiring color characteristics of the target characteristics in the visual picture;
and extracting target feature points according to the color features, and obtaining first statistical values of the target feature points.
In one embodiment, acquiring the color feature of the target feature in the visual picture, and extracting the target feature point according to the color feature includes:
acquiring a three-dimensional matrix of the visual picture and color features of the target features;
and extracting target feature points according to the color features of the three-dimensional matrix.
In one embodiment, the capturing the visual image includes:
acquiring a full area of a situation awareness system page, and dividing the full area into subareas;
and capturing the visualized picture of the subarea.
In one embodiment, after the obtaining the second statistical value of the target feature point in the latitude and longitude range in the metadata, the method includes:
and checking the longitude and latitude of the target feature point in the metadata to obtain an error entry under the condition that the difference value between the first statistical value and the second statistical value is larger than a preset threshold value.
According to another aspect of the invention, there is also provided a device for perceiving the distribution accuracy of page hot spots based on a picture analysis situation, the device comprising a picture module, a metadata module and a comparison module:
the image module is used for capturing a visual image, obtaining a separated image from the visual image according to target characteristics, and obtaining a first statistical value of target characteristic points in the separated image;
the metadata module is used for acquiring the latitude and longitude range of the separated picture and acquiring a second statistical value of the target feature point in the latitude and longitude range in metadata;
the comparison module is used for judging the situation awareness page hotspot distribution accuracy according to the difference value between the first statistical value and the second statistical value.
According to another aspect of the present invention, there is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the above method for perceiving the distribution accuracy of page hot spots based on the picture analysis situation when executing the computer program.
According to another aspect of the present invention, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method for sensing page hotspot distribution accuracy based on a picture analysis situation.
According to the method, the device, the computer equipment and the storage medium for sensing the page hotspot distribution accuracy based on the picture analysis situation, the visual picture is captured, the separated picture is obtained from the visual picture according to the target characteristics, and the first statistical value of the target characteristic points in the separated picture is obtained; acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of a target feature point in the latitude and longitude range in the metadata; and determining the hotspot distribution accuracy of the situation awareness page according to the difference value of the first statistical value and the second statistical value, thereby realizing a method for efficiently and accurately acquiring the hotspot distribution accuracy of the situation awareness page.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of a method for perceiving page hotspot distribution accuracy based on picture analysis situation in one embodiment of the present invention;
FIG. 2 is a flow chart of a method for analyzing situational awareness of page hotspot distribution accuracy based on color signatures in accordance with one embodiment of the present invention;
FIG. 3 is a flow chart of a method of situation aware page hotspot distribution bias statistics in accordance with one embodiment of the present invention;
FIG. 4 is a flow chart of a method for perceiving page hotspot distribution accuracy based on picture analysis situation in accordance with a preferred embodiment of the present invention;
FIG. 5 is a flow chart of picture analysis in perceived page hotspot distribution accuracy based on picture analysis situation in accordance with a preferred embodiment of the present invention;
FIG. 6 is a schematic diagram of an apparatus for sensing page hotspot distribution accuracy based on a picture analysis situation in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device for perceiving page hotspot distribution accuracy based on picture analysis situation in one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The method for sensing the page hotspot distribution accuracy based on the picture analysis situation can be applied to an application environment of a situation sensing system. The situation awareness system mainly comprises detection, analysis and response, prediction and prevention and defense functions, and finally is a floor with safety capability for decision making and action. Wherein, the detection means to provide the network security continuous monitoring capability, and discover various attack threats and anomalies in time, especially targeted attacks; the analysis and response are to establish threat visualization and analysis capability, and rapidly study and judge the influence scope, attack path, purpose and means of the threat, so as to effectively make security decisions and respond. The prediction and prevention means that a risk notification and threat early warning mechanism is established, and information such as the purpose, technical and tactics, attack tools and the like of an attacker are comprehensively mastered. Defenses means to perfect the defensive system by utilizing the information of the related purpose, technical tactics, attack tools and the like of the mastered attacker. The situation awareness is based on the collection of alarms and metadata, and needs to be detected in three aspects of flow, content and terminals by using real-time data and historical data. But visual presentation of a mere alarm is not truly "state". To present the current state, false alarm screening, qualitative analysis, understanding of the scope of influence and harm of attack, determining the method and difficulty of relieving or clearing and the like are required to be carried out aiming at alarm or abnormality. On this premise, the security event is fully rendered again to be referred to as a "state". "potential" is a future possible security event or state, and such predictions may be based on analysis of the intent, technical and tactical characteristics, etc. of known attackers.
In order to acquire the visual result, the acquired asset information, threat information, or equipment probe information, etc. need to be dotted on the map according to the position where they occur. The asset information management is a basis for grasping an intranet security situation, assets can be identified through various means, such as external import, missing scan result import or flow discovery, unknown assets, media access control (Media Access Control, MAC) addresses, services and the like are discovered, because the unknown assets can have great security risks, and meanwhile, the change of the assets is monitored, and the assets can be manually added, deleted and changed; finally, the classification and the weight assignment of the assets are performed, and automatic discovery and dynamic monitoring of the assets can be prepared for subsequent risk analysis based on the above.
In one embodiment, fig. 1 is a flowchart of a method for sensing page hotspot distribution accuracy based on picture analysis situation in one embodiment of the present invention, and as shown in fig. 1, a method for sensing page hotspot distribution accuracy based on picture analysis situation is provided, and the method is applied to a computer device deployed with a situation sensing system for illustration, and includes the following steps:
step S110, capturing a visual picture, obtaining a separated picture from the visual picture according to the target feature, and obtaining a first statistical value of the target feature point in the separated picture. And capturing a visual picture from a visual interface of the situation awareness system, wherein the capturing can be capturing a complete area in the visual interface, or selecting an interested area for capturing. Alternatively, the capture method may employ a selenium automation control for screen positioning and screen capture operations. After capturing the visual picture, a separated picture can be obtained from the visual picture according to the target characteristics. In some embodiments, different feature classifications in the visual image may adopt different dotting manners, for example, different colors of the points or different shapes of the points, and the points corresponding to the target features are separated from the visual image by using morphological characteristics of the points, so as to obtain a separated image. And then carrying out picture processing on the separated picture to obtain the number of the points in the target form in the separated picture, namely, the first statistic value of the target feature points.
In one embodiment, a separate picture is derived from the visual picture based on the asset dotting information and the map region boundaries. In this embodiment, asset dotting information and a map area boundary are selected as target features, and optionally, the asset dotting information may be further refined into an unknown MAC address, an abnormal IP address, a service, or the like, and the map boundary information may be a boundary of a whole area of the situation awareness system or a map area boundary of the region of interest. Optionally, the asset dotting information and the map area boundary are both presented in a preset form in the picture, that is, the color or shape of the dotting and the color or form of the map area boundary line are known. By these features, the asset dotting and the regional area boundary are extracted from the visualized picture by an image processing algorithm, so that the number of asset dotting in the regional area boundary can be calculated more accurately.
In one embodiment, a separate picture is derived from the visual picture based on threat dotting information and map region boundaries. In this embodiment, threat dotting information and a map area boundary are selected as target features, optionally, the threat dotting information may be further refined into information such as attack type, attack source, attack mode, hazard, treatment suggestion, and the like, and the map boundary information may be a boundary of a whole area of the situation awareness system or a map area boundary of the region of interest. Optionally, the threat dotting information and the map area boundary are presented in a preset form in the picture, namely, the color or shape of the dotting and the color or form of the map area boundary line are known. Through the characteristics, the threat dotting and the regional area boundary are extracted from the visualized picture through an image processing algorithm, so that the threat dotting number in the regional area boundary can be calculated more accurately.
Step S120, acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of the target feature point in the latitude and longitude range in the metadata. The latitude and longitude range of the separated picture is obtained, optionally, the latitude and longitude range can be consistent with the latitude and longitude range of the captured visual picture, and the visual picture can be divided into a plurality of smaller areas in the picture separation process of the target feature, so that accuracy of accuracy analysis is improved, for example, the latitude and longitude range of the separated picture can be the full area range under the condition that the separated picture corresponds to the full area of the situation sensing system page, the full area range can also be equally divided into six sub-areas, and the latitude and longitude range of each sub-area is the latitude and longitude range of the separated picture at the moment. And acquiring the number of target feature points in the latitude and longitude range of the separated picture in metadata, wherein in the metadata, each asset information or threat information item for dotting comprises feature content and the geographic position of the feature, namely a latitude value and a longitude value. Therefore, according to the latitude and longitude range and the target feature, the number of entries meeting the position and the feature of the separated picture, namely the second statistical value of the target feature point, can be screened out;
step S130, determining the distribution accuracy of the situation awareness page hot spots according to the difference value between the first statistical value and the second statistical value. The first statistical value indicates the number of dotting points on the situation awareness page, the second statistical value indicates the number of dotting points, and the difference between the first statistical value and the second statistical value is calculated, so that the smaller the difference is, the higher the accuracy of the situation awareness page hot spot distribution is. Optionally, in the case of higher accuracy requirements, the accuracy of the hotspot distribution of the situation awareness page meets the requirement only if the difference between the first statistic and the second statistic is zero.
In step S110 to step S130, obtaining a separated picture from the visualized picture according to the target feature by capturing the visualized picture, and obtaining a first statistical value of the target feature point in the separated picture; acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of a target feature point in the latitude and longitude range in the metadata; and determining the hotspot distribution accuracy of the situation awareness page according to the difference value of the first statistical value and the second statistical value, thereby realizing a method for efficiently and accurately acquiring the hotspot distribution accuracy of the situation awareness page.
In one embodiment, fig. 2 is a flowchart of a method for sensing the accuracy of the distribution of the hot spots of the page according to the situation of the color feature analysis according to one embodiment of the present invention, as shown in fig. 2, obtaining a separated picture from a visualized picture according to the target feature, and obtaining a first statistic of the target feature point in the separated picture includes the following steps:
step S210, obtaining color features of target features in a visual picture;
step S220, extracting target feature points according to the color features, and obtaining first statistical values of the target feature points.
In steps S210 to S220, picture separation is performed by the color feature of the target feature. In general, in a situation awareness system, different colors are used to distinguish between different types of dotting, i.e. the same type of dotting color is the same. By utilizing the characteristics, the visual pictures can be separated according to the color characteristics, for example, the fact that the asset dotting points are green can be obtained according to the setting of dotting colors, the detailed color number or RGB value of the green can be obtained, under the condition of carrying out image processing on the visual images, the color parameters of all the points in the visual images are extracted, whether the points are asset dotting can be judged according to the parameters, and if so, the first statistical value is counted. According to the method and the device, the number statistics is carried out through the color features of the target features, so that the accuracy of the statistics of the target features in the picture can be further improved.
In one embodiment, obtaining color features of target features in a visual picture, and extracting target feature points according to the color features includes the following steps: acquiring a three-dimensional matrix of the visual picture and color features of the target features; and extracting target feature points according to the color features of the three-dimensional matrix. Preferably, the visual picture is opened through OpenCV to obtain a three-dimensional matrix of the picture, the three-dimensional matrix can reflect the color characteristics of points in the picture, and the number of the points of various target characteristics in the visual picture can be classified and counted through extracting and counting the values reflecting the color characteristics in the matrix list. In the embodiment, the dotting classification and the number statistics are performed through the three-dimensional matrix information of the picture and the value reflecting the dotting color in the three-dimensional matrix, so that the statistical efficiency and the accuracy of the target feature points are further improved.
In one embodiment, the visual picture is grabbed by the steps of: acquiring a full area of a situation awareness system page, and dividing the full area into subareas; capturing a visual picture of the subarea. In this embodiment, in the process of capturing the visual image, the full area of the situation awareness system page is divided into sub-areas and the visual image of each sub-area is captured. According to the embodiment, the capture granularity of the visualized pictures of the situation awareness system is reduced, so that the accuracy of page hot spot distribution statistics can be further improved.
In one embodiment, fig. 3 is a flowchart of a method for situation awareness page hotspot distribution deviation statistics according to one embodiment of the present invention, as shown in fig. 3, after obtaining a second statistical value of a target feature point in a latitude and longitude range in metadata, the method includes the following steps:
step S310, checking the longitude and latitude of the target feature point in the metadata to obtain an error entry under the condition that the difference value between the first statistic value and the second statistic value is larger than a preset threshold value. And under the condition that the difference value between the first statistical value and the second statistical value is larger than a preset threshold value, indicating that the situation awareness page hot spot distribution accuracy is poor, and checking whether the entry belongs to the longitude and latitude range of the current image area by adopting the longitude and latitude of the entry to be dotted in the circulating metadata pool so as to acquire the wrong metadata entry. Optionally, a re-dotting is performed on the erroneous entry to improve the final situational awareness page hotspot distribution accuracy.
Fig. 4 is a flowchart of a method for sensing page hotspot distribution accuracy based on a picture analysis situation according to a preferred embodiment of the present invention, preferably, as shown in fig. 4, the method for sensing page hotspot distribution accuracy based on a picture analysis situation comprises the following steps:
step S410, capturing the picture. The image source is grabbed from the visual screen of the situation awareness system, optionally, the method comprises step S412, grabbing is carried out according to the position of the area, the large screen can select the area, the area is grabbed directly by the area screen, and later verification can be carried out in a circulating mode. The grabbing method can adopt a selenium automation control to carry out screen positioning and screen capturing operation;
step S420, picture analysis. The picture analysis step comprises the following steps: step S422, object classification. Three types of information are selected in this embodiment: asset dotting information, threat dotting information, and map region boundaries; in step S424, feature points are extracted. The three types of information images can be set to different characteristic values for image separation according to different colors; in step S426, feature points are counted. Obtaining latitude and longitude ranges according to the separated map region positions, and counting characteristic point values of dotting information in the image region;
step S430, checking the statistical value. Step S432, metadata pool classification. Asset data and threat data in the data pool can easily obtain dotting data pools of different areas according to longitude and latitude information carried by the asset data and the threat data; step S434, comparing the feature point value in the picture with the data value in the metadata pool. Comparing the statistical value obtained by analyzing the picture with the statistical value obtained by classifying the asset data pool in the data pool according to the longitude and latitude region; step S436, ending the flow under the condition that the comparison results are the same; in step S438, when the comparison results are different, the deviation positioning is performed. And whether the longitude and latitude to be dotted in the circulating metadata pool belong to the image area or not is judged to be in error position.
FIG. 5 is a flow chart of picture analysis in perceived page hotspot distribution accuracy based on picture analysis situation in accordance with a preferred embodiment of the present invention. As shown in fig. 5, the picture analysis includes the steps of:
step S510, capturing pictures. The situation awareness system visualizes the screen images, and then uniformly stores the screen images into jpg format images, and the jpg format images are stored under a fixed picture path and used for subsequent picture analysis;
step S520, obtaining a three-dimensional matrix of the picture. The python+opencv is used for opening the image to obtain a three-dimensional matrix, if the dotting is of the same tone, the color parameters are the same in the three-dimensional matrix, so that the classification can be carried out according to the color parameters, the dotting information of the same screen is the same kind of dot with the same color, and the characteristic points can be conveniently extracted;
in step S530, matrix classification is performed according to the color parameters. Optionally, performing data processing on the image characteristic values in the three-dimensional matrix by using nump, and performing matrix classification according to the color parameters to obtain separated pictures;
step S540, counting the number of characteristic points in the matrix list.
According to the method and the image analysis method for sensing the page hotspot distribution accuracy based on the picture analysis situation, the application of the image recognition analysis technology in testing the map position accuracy is utilized, after the image is converted into matrix data, the classified colors are used as characteristic value statistics, the dotting position on the test map of the test data set is more accurate, the characteristic value is extracted after the image is converted into the three-dimensional matrix, and the test efficiency can be improved by the method for counting the test data set.
It should be understood that, although the steps in the flowcharts of fig. 2 to 5 are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, fig. 6 is a schematic diagram of an apparatus for sensing page hotspot distribution accuracy based on a picture analysis situation according to an embodiment of the present invention, and as shown in fig. 6, an apparatus for sensing page hotspot distribution accuracy based on a picture analysis situation is provided, including a picture module 62, a metadata module 64, and a comparison module 66:
the picture module 62 is configured to capture a visual picture, obtain a separated picture from the visual picture according to the target feature, and obtain a first statistic value of the target feature point in the separated picture;
the metadata module 64 is configured to obtain a latitude and longitude range of the separated picture, and obtain a second statistical value of the target feature point in the latitude and longitude range in the metadata;
the comparison module 66 is configured to determine the accuracy of the situation awareness page hotspot distribution according to the difference between the first statistical value and the second statistical value.
For specific limitation of the device for sensing the page hotspot distribution accuracy based on the picture analysis situation, reference may be made to the limitation of the method for sensing the page hotspot distribution accuracy based on the picture analysis situation hereinabove, and the description thereof will not be repeated here. The modules in the device for sensing the page hotspot distribution accuracy based on the picture analysis situation can be fully or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, and fig. 7 is a schematic diagram of a computer device for sensing page hotspot distribution accuracy based on picture analysis situation according to one embodiment of the present invention, where the computer device may be a server, and an internal structure diagram of the computer device may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing pictures and statistical data based on picture analysis situation awareness page hotspot distribution accuracy. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for perceiving the accuracy of the distribution of page hot spots based on a picture analysis situation.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for perceiving the distribution accuracy of page hot spots based on picture analysis situation when executing the computer program.
According to the computer equipment for sensing the page hotspot distribution accuracy based on the picture analysis situation, the visual picture is captured, the separated picture is obtained from the visual picture according to the target characteristics, and the first statistical value of the target characteristic points in the separated picture is obtained; acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of a target feature point in the latitude and longitude range in the metadata; and determining the hotspot distribution accuracy of the situation awareness page according to the difference value of the first statistical value and the second statistical value, thereby realizing a method for efficiently and accurately acquiring the hotspot distribution accuracy of the situation awareness page.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the above-described method for perceiving page hotspot distribution accuracy based on picture analysis situation.
According to the computer readable storage medium based on the accuracy of the distribution of the hot spots of the picture analysis situation awareness page, the visual picture is grabbed, the separated picture is obtained from the visual picture according to the target characteristics, and the first statistical value of the target characteristic points in the separated picture is obtained; acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of a target feature point in the latitude and longitude range in the metadata; and determining the hotspot distribution accuracy of the situation awareness page according to the difference value of the first statistical value and the second statistical value, thereby realizing a method for efficiently and accurately acquiring the hotspot distribution accuracy of the situation awareness page.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (10)
1. The method for perceiving the distribution accuracy of the page hot spots based on the picture analysis situation is characterized by comprising the following steps:
capturing a visual picture, obtaining a separated picture from the visual picture according to target characteristics, and obtaining a first statistical value of target characteristic points in the separated picture, wherein the method comprises the steps of separating points corresponding to the target characteristics from the visual picture by using morphological characteristics of the target characteristic points to obtain the separated picture, and then carrying out picture processing on the separated picture to obtain the number of points in a target form in the separated picture, namely obtaining the first statistical value of the target characteristic points; the target features comprise asset dotting information, map area boundaries and threat dotting information;
acquiring a latitude and longitude range of the separated picture, and acquiring a second statistical value of the target feature point in the latitude and longitude range in metadata;
and determining the situation awareness page hotspot distribution accuracy according to the difference value between the first statistical value and the second statistical value.
2. The method of claim 1, wherein the deriving a separate picture from the visual picture based on the target feature comprises:
and obtaining a separated picture from the visual picture according to the asset dotting information and the map area boundary.
3. The method of claim 1, wherein the deriving a separate picture from the visual picture based on the target feature comprises:
and obtaining a separated picture from the visual picture according to the threat dotting information and the map area boundary.
4. A method according to any one of claims 1 to 3, wherein the obtaining a separate picture from the visual picture according to the target feature, and obtaining the first statistic of the target feature point in the separate picture comprises:
acquiring color characteristics of the target characteristics in the visual picture;
and extracting target feature points according to the color features, and obtaining first statistical values of the target feature points.
5. The method of claim 4, wherein obtaining color features of the target feature in the visual picture, and extracting target feature points according to the color features comprises:
acquiring a three-dimensional matrix of the visual picture and color features of the target features;
and extracting target feature points according to the color features of the three-dimensional matrix.
6. The method of claim 1, wherein the capturing the visual picture comprises:
acquiring a full area of a situation awareness system page, and dividing the full area into subareas;
and capturing the visualized picture of the subarea.
7. The method of claim 1, wherein after the obtaining the second statistical value of the target feature point in the latitude and longitude range in the metadata, the method comprises:
and checking the longitude and latitude of the target feature point in the metadata to obtain an error entry under the condition that the difference value between the first statistical value and the second statistical value is larger than a preset threshold value.
8. The device for sensing the page hotspot distribution accuracy based on the picture analysis situation is characterized by comprising a picture module, a metadata module and a comparison module:
the image module is used for capturing a visual image, obtaining a separated image from the visual image according to target characteristics, and obtaining a first statistical value of target characteristic points in the separated image, wherein the method comprises the steps of separating points corresponding to the target characteristics from the visual image by utilizing morphological characteristics of the target characteristic points to obtain the separated image, and then carrying out image processing on the separated image to obtain the number of the points in the target form in the separated image, namely obtaining the first statistical value of the target characteristic points; the target features comprise asset dotting information, map area boundaries and threat dotting information;
the metadata module is used for acquiring the latitude and longitude range of the separated picture and acquiring a second statistical value of the target feature point in the latitude and longitude range in metadata;
the comparison module is used for judging the situation awareness page hotspot distribution accuracy according to the difference value between the first statistical value and the second statistical value.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010560160.7A CN111784719B (en) | 2020-06-18 | 2020-06-18 | Method and device for sensing page hotspot distribution accuracy based on picture analysis situation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010560160.7A CN111784719B (en) | 2020-06-18 | 2020-06-18 | Method and device for sensing page hotspot distribution accuracy based on picture analysis situation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111784719A CN111784719A (en) | 2020-10-16 |
CN111784719B true CN111784719B (en) | 2024-03-22 |
Family
ID=72756803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010560160.7A Active CN111784719B (en) | 2020-06-18 | 2020-06-18 | Method and device for sensing page hotspot distribution accuracy based on picture analysis situation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111784719B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108039959A (en) * | 2017-11-29 | 2018-05-15 | 深信服科技股份有限公司 | Situation Awareness method, system and the relevant apparatus of a kind of data |
CN111080074A (en) * | 2019-11-21 | 2020-04-28 | 西安交通大学 | System service security situation element obtaining method based on network multi-feature association |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201227381A (en) * | 2010-12-20 | 2012-07-01 | Ind Tech Res Inst | Real-time traffic situation awareness system and method |
-
2020
- 2020-06-18 CN CN202010560160.7A patent/CN111784719B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108039959A (en) * | 2017-11-29 | 2018-05-15 | 深信服科技股份有限公司 | Situation Awareness method, system and the relevant apparatus of a kind of data |
CN111080074A (en) * | 2019-11-21 | 2020-04-28 | 西安交通大学 | System service security situation element obtaining method based on network multi-feature association |
Also Published As
Publication number | Publication date |
---|---|
CN111784719A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112560657B (en) | Method, device, computer device and storage medium for identifying smoke and fire | |
CN107888574B (en) | Method, server and storage medium for detecting database risk | |
CN110225299B (en) | Video monitoring method and device, computer equipment and storage medium | |
JP6411661B2 (en) | Vulnerability scanning method and apparatus | |
CN112001375B (en) | Flame detection method and device, electronic equipment and storage medium | |
Lockamyeir et al. | The effect of viewing distance on empirical discriminability and the confidence–accuracy relationship for eyewitness identification | |
CN109389019B (en) | Face image selection method and device and computer equipment | |
CN111783105B (en) | Penetration test method, device, equipment and storage medium | |
CN111209980A (en) | Environment detection method and device, electronic equipment and computer readable storage medium | |
US11240136B2 (en) | Determining attributes using captured network probe data in a wireless communications system | |
CN110910360B (en) | Positioning method of power grid image and training method of image positioning model | |
CN108234426B (en) | APT attack warning method and APT attack warning device | |
CN115187439A (en) | Comprehensive operation management method and system for intelligent park | |
CN111401239A (en) | Video analysis method, device, system, equipment and storage medium | |
CN111814617B (en) | Fire determination method and device based on video, computer equipment and storage medium | |
CN111784719B (en) | Method and device for sensing page hotspot distribution accuracy based on picture analysis situation | |
US11527091B2 (en) | Analyzing apparatus, control method, and program | |
CN112347874A (en) | Fire detection method, device, equipment and storage medium | |
CN116912881A (en) | Animal species identification method, computer equipment and identification system | |
CN110896475B (en) | Display terminal channel switching detection method and device | |
CN114445669A (en) | Smoke and fire alarm method and device, electronic equipment and storage medium | |
CN114119531A (en) | Fire detection method and device applied to campus smart platform and computer equipment | |
CN110991331A (en) | Detection method and device for construction site, computer equipment and storage medium | |
CN110414324A (en) | Method, apparatus, computer equipment and the storage medium of video record process monitoring | |
US11936675B2 (en) | Estimation method, estimation device, and estimation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |