CN114037718A - Early warning rule issuing method and device, electronic equipment and computer program product - Google Patents

Early warning rule issuing method and device, electronic equipment and computer program product Download PDF

Info

Publication number
CN114037718A
CN114037718A CN202111397890.0A CN202111397890A CN114037718A CN 114037718 A CN114037718 A CN 114037718A CN 202111397890 A CN202111397890 A CN 202111397890A CN 114037718 A CN114037718 A CN 114037718A
Authority
CN
China
Prior art keywords
cutting line
radar
early warning
defense area
sub
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.)
Pending
Application number
CN202111397890.0A
Other languages
Chinese (zh)
Inventor
张文凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202111397890.0A priority Critical patent/CN114037718A/en
Publication of CN114037718A publication Critical patent/CN114037718A/en
Priority to MX2024006067A priority patent/MX2024006067A/en
Priority to PCT/CN2022/132181 priority patent/WO2023088286A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B31/00Predictive alarm systems characterised by extrapolation or other computation using updated historic data

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Emergency Management (AREA)
  • Geometry (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The embodiment of the application provides an early warning rule issuing method, an early warning rule issuing device, electronic equipment and a computer program product, and displays a background image, wherein the position of a radar and a defense area in an effective detection range of the radar are marked in the background image; acquiring a cutting line radius for a defense area; dividing a defense area into a plurality of sub defense areas in a background image according to an arc cutting line which is formed by taking the position of a radar as the center of a circle and the radius of the cutting line as the radius; setting an early warning rule for at least one of the plurality of sub-defense areas; and the position of the sub-defense area with the early warning rule and the corresponding early warning rule are issued to the radar, so that the setting of the radar early warning rule is realized.

Description

Early warning rule issuing method and device, electronic equipment and computer program product
Technical Field
The present application relates to the field of radar technologies, and in particular, to a method and an apparatus for issuing an early warning rule, an electronic device, and a computer program product.
Background
Radar is a device that detects the spatial position of a target object. In the related art, the radar may be classified into an ultrasonic radar and an electromagnetic radar, wherein the electromagnetic radar has advantages of a fast response speed, a wide detection range, and the like, and is widely used in production and life. After a target object is detected by the radar, early warning can be performed, and how to realize the setting of radar early warning rules becomes a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the application aims to provide an early warning rule issuing method, an early warning rule issuing device, electronic equipment and a computer program product so as to realize the setting of a radar early warning rule. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for issuing an early warning rule, where the method includes:
displaying a background image, wherein the background image is marked with the position of a radar and a defense area within the effective detection range of the radar;
obtaining a cutting line radius for the defence area;
dividing the defense area into a plurality of sub defense areas in the background image according to an arc cutting line which is formed by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius;
setting an early warning rule for at least one of the plurality of sub-defense areas;
and issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
In a possible embodiment, the background image is also marked with the effective detection range of the radar.
In one possible embodiment, the background image is an electronic map of the detection scene of the radar.
In one possible embodiment, the method further comprises:
and displaying an arc cutting line within the effective detection range of the radar of the background image or displaying the arc cutting line within the defense area of the background image by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius.
In a possible embodiment, the setting of the early warning rule for at least one of the plurality of sub-defense areas includes: and respectively setting early warning rules for each sub-defense area.
In a possible embodiment, the dividing the defense area into a plurality of sub-defense areas in the background image according to an arc cutting line which is formed by taking the position of the radar as a center and taking the radius of the cutting line as a radius comprises:
determining an arc line within the effective detection range of the radar of the background image by taking the position of the radar as a circle center and the radius of the line as a radius;
for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; and if the defense area comprises the arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line.
In one possible embodiment, the method further comprises:
displaying arc cutting lines inside the defense area in a first display mode, and displaying arc cutting lines outside the defense area in a second display mode, wherein the first display mode is different from the second display mode;
and after a cutting execution instruction is obtained, filtering out arc cutting lines outside the defense area.
In a possible embodiment, the setting of the early warning rule for at least one of the plurality of sub-defense areas includes:
under the condition that the radius of one cutting line is obtained, setting a first early warning rule for a sub-defense area at the inner side of the arc cutting line, and setting a second early warning rule for a sub-defense area at the outer side of the arc cutting line; or
Under the condition that N cutting line radiuses are obtained, a first early warning rule is set for a sub-defense area on the inner side of a first arc cutting line, an N-i +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line and on the inner side of an N-i +1 th arc cutting line, and an N +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line, wherein N is an integer larger than 1, and i is {1,2, …, N-1}, and in arc cutting lines formed by the cutting line radiuses, the first arc cutting line, the second arc cutting line, … and the N-th arc cutting line are arranged in the order from near to far away from the position of a radar.
In one possible embodiment, the obtaining the radius of the cutting line for the defence area comprises:
after a cutting preparation instruction is received, determining the radius of a cutting line by taking the position of the radar as an origin and the position of the focus as another end point of the radius in the background image according to the position of the current focus;
in one possible embodiment, the method further comprises: and displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
In a second aspect, an embodiment of the present application provides an early warning rule issuing device, where the device includes:
the background image acquisition module is used for displaying a background image, wherein the background image is marked with the position of a radar and a defense area within the effective detection range of the radar;
the cutting line radius acquisition module is used for acquiring the cutting line radius of the defense area;
the defense area division module is used for dividing the defense area into a plurality of defense areas in the background image according to an arc cutting line which takes the position of the radar as the center of a circle and the radius of the cutting line as the radius;
the early warning rule setting module is used for setting an early warning rule for at least one of the plurality of sub-defense areas;
and the early warning rule issuing module is used for issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
In a possible embodiment, the background image is also marked with the effective detection range of the radar.
In one possible embodiment, the background image is an electronic map of the detection scene of the radar.
In a possible implementation manner, the apparatus further includes a cutting line display module, configured to display an arc cutting line within an effective detection range of the radar of the background image or within a defense area of the background image, with a position of the radar as a center of a circle and a radius of the cutting line as a radius.
In a possible implementation manner, the early warning rule setting module is specifically configured to set an early warning rule for each of the sub-defense areas.
In a possible implementation manner, the sub-defense area dividing module is specifically configured to determine an arc cutting line within an effective detection range of the radar of the background image, with a position of the radar as a center of a circle and a radius of the cutting line as a radius; for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; and if the defense area comprises the arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line.
In a possible embodiment, the device further comprises a cutting line display module, configured to display the arc cutting line inside the defense area in a first display manner and display the arc cutting line outside the defense area in a second display manner, where the first display manner is different from the second display manner; and after a cutting execution instruction is obtained, filtering out arc cutting lines outside the defense area.
In a possible implementation manner, the early warning rule setting module is specifically configured to set a first early warning rule for a sub-defense area located inside the arc cutting line and set a second early warning rule for a sub-defense area located outside the arc cutting line under the condition that a radius of the cutting line is obtained; or
Under the condition that N cutting line radiuses are obtained, setting a first early warning rule for a sub-defense area on the inner side of a first arc cutting line, setting an N-i +1 th early warning rule for a sub-defense area on the outer side of an N-i arc cutting line and on the inner side of an N-i +1 th arc cutting line, and setting an N +1 th early warning rule for a sub-defense area on the outer side of an N arc cutting line, wherein N is an integer larger than 1, and i is {1,2, …, N-1}, and in the arc cutting lines formed by the cutting line radiuses, according to the sequence from near to far away from the position of a radar, the first arc cutting line, a second arc cutting line, … and the N arc cutting line are respectively;
in a possible implementation manner, the cutting line radius obtaining module is specifically configured to determine, after receiving a cutting preparation instruction, a cutting line radius according to a position of a current focus, in the background image, with a position of the radar as an origin and a position of the focus as another end point of the radius;
in a possible embodiment, the apparatus further comprises: and the length display module is used for displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement any one of the warning rule issuing methods in the present application when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the warning rule issuing methods in the present application.
In a fifth aspect, an embodiment of the present application provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the warning rule issuing methods described in the present application.
The embodiment of the application has the following beneficial effects:
the early warning rule issuing method, the early warning rule issuing device, the electronic equipment and the computer program product show a background image, wherein the background image is marked with the position of a radar and a defense area in an effective detection range of the radar; acquiring a cutting line radius for a defense area; dividing a defense area into a plurality of sub defense areas in a background image according to an arc cutting line which is formed by taking the position of a radar as the center of a circle and the radius of the cutting line as the radius; setting an early warning rule for at least one of the plurality of sub-defense areas; and issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar. In the embodiment of the application, the setting of the radar early warning rule is realized. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a first schematic diagram of an early warning rule issuing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an effective detection area in an embodiment of the present application;
FIG. 3 is a schematic view of a defence area according to an embodiment of the present application;
fig. 4 is a first schematic diagram of an early warning rule setting in an embodiment of the present application;
fig. 5 is a second schematic diagram of an early warning rule setting in the embodiment of the present application;
fig. 6 is a second schematic diagram of an early warning rule issuing method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a possible implementation manner of step S103 in the embodiment of the present application;
FIG. 8 is a schematic view of a defense area in an embodiment of the present application;
fig. 9 is a schematic diagram of an early warning rule issuing device according to an embodiment of the present application;
fig. 10 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
In order to implement the setting of the radar early warning rule, the embodiment of the application provides an early warning rule issuing method, which comprises the following steps: displaying a background image, wherein the background image is marked with the position of a radar and a defense area within the effective detection range of the radar; obtaining a cutting line radius for the defence area; dividing the defense area into a plurality of sub defense areas in the background image according to an arc cutting line which is formed by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius; setting an early warning rule for at least one of the plurality of sub-defense areas; and issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar. In the embodiment of the application, the position of each sub-defense area and the early warning rule of each sub-defense area are issued to the radar, so that the setting of the radar early warning rule is realized.
Specifically, referring to fig. 1, fig. 1 is a first schematic diagram of an early warning rule issuing method according to an embodiment of the present application, and includes:
s101, displaying a background image, wherein the background image is marked with the position of the radar and a defense area in an effective detection range of the radar.
The early warning rule issuing method in the embodiment of the application can be realized through electronic equipment, and in one example, the electronic equipment can be a smart phone, a computer or the like. The background image is marked with the position of the radar and the defense area within the effective detection range of the radar, and in a possible implementation mode, the background image can also be marked with the effective detection range of the radar. The effective detection range of the radar refers to the range detectable by the radar, and in one example, the effective detection range of the radar can be as shown in fig. 2. The defense area is a polygonal area needing radar monitoring in the effective detection range of the radar and is used for defense arrangement of the radar area, and the defense area can be defined and set according to the actual situation. For example, if the radar needs to monitor the area where the airport a is located, the area where the airport a is located may be set as a defense area. In one example, the defense area within the effective detection range may be as shown in FIG. 3. The background image is marked with the effective detection range of the radar, so that a user can observe the effective detection range of the radar conveniently and visually, and the sub-defense area division operation of the user is facilitated.
The background image may be any image, such as a solid image or an image provided with a prescribed pattern. In one possible embodiment, the background image is an electronic map of the detection scene of the radar. The detection scene is a real world scene to be detected by the radar, the electronic map of the detection scene may directly adopt an existing electronic map, or may also be a special electronic map established for the detection scene, and the establishment mode of the electronic map may refer to a related electronic map establishment method, which is not specifically limited in the present application. In one example, the electronic map of the detection scene may be a GIS (Geographic Information System) map.
In one example, the electronic map is marked with the position of the radar, the effective detection range of the radar, and the defense area within the effective detection range of the radar. The method comprises the following steps of acquiring an electronic map of a detection scene:
the method comprises the steps of firstly, obtaining the position of a radar in a detection scene, the effective detection range of the radar and the position of a defense area in the effective detection range of the radar.
And secondly, marking the position of the radar in the electronic map of the detection scene according to the position of the radar in the detection scene.
And step three, marking the position of the effective detection range of the radar in the electronic map according to the effective detection range of the radar in the detection scene and the position of the radar in the electronic map.
And fourthly, marking the position of the defense area in the electronic map according to the position of the defense area in the effective detection range of the radar in the detection scene and the position of the effective detection range of the radar in the electronic map.
In the embodiment of the application, the electronic map of the detection scene is used as the background image, so that a user can visually acquire the radar, the effective detection range of the radar and the position of the defense area in the effective detection range of the radar in the detection scene conveniently, the user can visually observe the position of each sub-defense area corresponding to the detection scene conveniently, and the sub-defense areas can be divided conveniently.
S102, obtaining the cutting line radius of the defense area.
And acquiring the cutting line radius output by the user according to the displayed background image. In one example, the user may directly input the length of the cut-line radius to obtain the cut-line radius, and in one example, the cut-line radius may be obtained by the user's position of the focus of the touch screen or mouse relative to the radar.
In one possible embodiment, the obtaining the radius of the cutting line for the defence area comprises: and after receiving a cutting preparation instruction, determining the radius of the cutting line by taking the position of the radar as an origin and the position of the focus as the other end point of the radius in the background image according to the position of the current focus.
In one example, the background image can be displayed and the function buttons can be displayed at the same time, wherein the function buttons include a cutting button, a user clicks the cutting button through a touch screen or a mouse, namely, a cutting preparation instruction of the user is received, a cutting state of a defense area is entered, and the position of a focus is converted into a cut icon. Wherein, the cutting line radius is the line segment from the radar to the focus.
In one possible embodiment, the method further comprises: and displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
The scale of the background image is similar to that of the electronic map, and is used for representing the size ratio of the effective detection range of the radar in the background image to the effective detection range of the radar in the real detection scene, and can also be understood as the size ratio of the defense area in the background image to the defense area in the real detection scene. In one example, after the focus enters the effective detection range of the radar, a corresponding arc line may be displayed according to the current focus position, where the arc line is an arc made with the radar as a center of a circle and the distance from the focus to the radar as a radius (i.e., a radius of the line). In the process of focus movement, the real length of the cutting line radius in the real monitoring scene, namely the real distance from the cutting line to the radar in the real monitoring scene, can be calculated and displayed according to the real-time scale in the background image. The display position of the real length can be set according to practical conditions in a customized mode, for example, the real length can be displayed near a focus in the background image, or the real length can be displayed near an arc cutting line in the background image, and the like.
In the embodiment of the application, the real length of the radius of the cutting line in a detection scene is displayed, the length of the arc cutting line from a radar can be accurately known, and the cutting accuracy of the sub-defense area can be improved.
S103, dividing the defense area into a plurality of sub defense areas in the background image according to an arc cutting line which takes the position of the radar as the center of a circle and the radius of the cutting line as the radius.
Only one defense area or a plurality of defense areas can be arranged in the effective detection range of the radar; in a possible embodiment, the dividing the defense area into a plurality of sub-defense areas in the background image according to an arc cutting line which is formed by taking the position of the radar as a center and taking the radius of the cutting line as a radius comprises: determining an arc line within the effective detection range of the radar of the background image by taking the position of the radar as a circle center and the radius of the line as a radius; for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; and if the defense area comprises the arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line.
The arc cutting line which is formed by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius penetrates through at least one defense area, the passing defense area is divided into a plurality of sub-defense areas by the arc cutting line, and for convenience of description, the defense area which does not need to be divided and is not penetrated by the arc is also called as the sub-defense area, so that a plurality of sub-defense areas are obtained. In one example, as shown in FIG. 8, the defense area A does not include an arc cutting line, and the defense area A is directly used as a sub-defense area; the defense area B comprises an arc cutting line which is divided into two sub defense areas; the defense area C comprises an arc cutting line which is divided into two sub defense areas.
In the process of displaying the background image, the complete arc cutting line can be displayed, or only the arc cutting line in the defense area can be displayed, and in one possible embodiment, the method further comprises the following steps: and displaying an arc cutting line within the effective detection range of the radar of the background image or displaying the arc cutting line within the defense area of the background image by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius.
S104, setting early warning rules for at least one of the plurality of sub-defense areas.
And setting an early warning rule for at least one sub-defense area in the plurality of sub-defense areas by the user according to the actual setting requirement. In some scenarios, although there are multiple sub-defense areas, the early warning rules only need to be set for some specific sub-defense areas, so that the early warning rules may be set for some sub-defense areas of the multiple sub-defense areas, and the early warning rules may not be set for other sub-defense areas. In an example, as shown in fig. 8, for example, the defense area a is a sub-defense area, the defense area B is divided into 2 sub-defense areas by the arc cutting line, and the defense area C is divided into 2 sub-defense areas by the arc cutting line, and the early warning rule may be set only for one of the five sub-defense areas according to an actual setting requirement, or may be set for each of a plurality of sub-defense areas in the five sub-defense areas.
In a possible embodiment, the setting of the early warning rule for at least one of the plurality of sub-defense areas includes: and respectively setting early warning rules for each sub-defense area. In one example, an early warning rule may be set for each sub-defense area separately. In one example, the early warning rules may be set for sub-areas within different radius ranges, respectively, with the radar as a center. In the embodiment of the application, the early warning rules of the sub-defense areas are respectively set, so that the diversity setting of the early warning rules is realized, and the diversity of the radar early warning modes is increased.
And S105, issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
The position of the sub-defense area provided with the early warning rules and the corresponding early warning rules are issued to the radar, so that the radar can monitor the sub-defense area according to the position of the sub-defense area and perform early warning according to the early warning rules of the sub-defense area.
In a possible embodiment, the step of issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar includes: step one, determining the position of the sub-defense area with the early warning rule in the detection scene according to the position of the sub-defense area with the early warning rule in the background image. And step two, issuing the position of the sub-defense area provided with the early warning rule in the detection scene and the corresponding early warning rule to the radar. In one example, the location of the child defense area in the detection scene may be determined based on the scale of the background image. In one example, the position of the child defense area in the detection scene may be determined based on the correspondence of the background image coordinate system and the detection scene coordinate system.
In the embodiment of the application, the early warning rule is issued to the radar, so that the setting of the radar early warning rule is realized. The sub-defense areas are cut through the arc cutting lines obtained by the cutting line radius, and compared with manual line drawing cutting of a plurality of defense areas, the distance from the sub-defense areas to the radar after cutting is inconsistent and inaccurate.
In one example, the length of the cutting line radius can be obtained by inputting a length value, so as to obtain the cutting line radius; in one example, a line segment between the focus of the touch screen or mouse and the radar position may be displayed, and after the cutting execution instruction is obtained, for example, after the user clicks a left mouse button, the current line segment is used as the finally input cutting line radius.
In a possible embodiment, in the case that only one cutting line radius is obtained, the setting of the early warning rule for at least one of the plurality of sub-zones includes: and under the condition that the radius of one cutting line is obtained, setting a first early warning rule for the sub-defense area at the inner side of the arc cutting line, and setting a second early warning rule for the sub-defense area at the outer side of the arc cutting line.
Under the condition that only one cutting line radius is obtained, the sub-defense areas can be divided into sub-defense areas on the inner side of the arc cutting line and sub-defense areas on the outer side of the arc cutting line, a first early warning rule is set for at least one sub-defense area on the inner side of the arc cutting line, and a second early warning rule is set for at least one sub-defense area on the outer side of the arc cutting line. In one example, such as shown in FIG. 4, a first pre-warning rule is set for sub-zones of defense that are inside the arc and a second pre-warning rule is set for sub-zones of defense that are outside the arc. The first early warning rule and the second early warning rule can be set according to actual conditions in a self-defined mode, for example, common early warning, warning early warning or warning early warning and the like can be achieved, and the first early warning rule and the second early warning rule are different early warning rules.
In a possible embodiment, in the case that a plurality of cutting line radii are obtained, the setting of the early warning rule for at least one of the plurality of sub-zones of defense includes:
under the condition that N cutting line radiuses are obtained, a first early warning rule is set for a sub-defense area on the inner side of a first arc cutting line, an N-i +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line and on the inner side of an N-i +1 th arc cutting line, and an N +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line, wherein N is an integer larger than 1, and i is {1,2, …, N-1}, and in arc cutting lines formed by the cutting line radiuses, the first arc cutting line, the second arc cutting line, … and the N-th arc cutting line are arranged in the order from near to far away from the position of a radar.
Under the condition that only N cutting line radiuses are obtained, an effective detection range is divided into N +1 areas by the N cutting line radiuses, a first early warning rule is set for at least one sub-defense area located on the inner side of a first arc line, an N-i +1 early warning rule is set for at least one sub-defense area located on the outer side of an N-i arc line and located on the inner side of an N-i +1 arc line, and an N +1 early warning rule is set for at least one sub-defense area located on the outer side of an N-i arc line. In an example, taking N as 3 as an example, for example, as shown in fig. 5, according to the order from near to far from the position of the radar, the first arc line, the second arc line, and the third arc line are respectively provided, the first warning rule is set for the sub-defense area located inside the first arc line, the second warning rule is set for the sub-defense area located outside the first arc line and inside the second arc line, the third warning rule is set for the sub-defense area located outside the second arc line and inside the third arc line, and the fourth warning rule is set for the sub-defense area located outside the third arc line. The first early warning rule, the second early warning rule, the third early warning rule and the fourth early warning rule can be set in a user-defined mode according to actual conditions, and each early warning rule is different.
In one possible embodiment, referring to fig. 6, the method further comprises:
and S106, when the radar detects that the early warning object appears in the sub-defense area, executing corresponding early warning operation according to the early warning rule of the sub-defense area in which the early warning object appears.
For example, if the radar monitors that an early warning object appears in the sub-defense area a, corresponding early warning operation is executed according to the early warning rule of the sub-defense area a.
In the embodiment of the application, when the radar detects that the early warning object appears in the sub-defense area, corresponding early warning operation is executed according to the early warning rule of the sub-defense area where the early warning object appears, early warning operation can be performed by using the independent early warning unit of the sub-defense area, and diversity of radar early warning modes is increased.
In one possible embodiment, referring to fig. 7, the method further comprises:
s107, displaying the arc cutting lines in the defense area in a first display mode, displaying the arc cutting lines outside the defense area in a second display mode, wherein the first display mode is different from the second display mode.
And S108, after the cutting execution instruction is obtained, filtering out arc cutting lines outside the defense area.
The first display mode and the second display mode can be set in a user-defined mode according to actual conditions, for example, the first display mode is display by using a solid line, the second display mode is display by using a dotted line, and the like. In one example, as shown in fig. 8, the arc cutting line indicated by the dashed line is the arc cutting line outside the defense area, and needs to be filtered after the cutting execution instruction is obtained, and the arc cutting line indicated by the solid line is the arc cutting line inside the defense area.
For example, after the focus enters the effective detection range of the radar, a corresponding arc line may be displayed according to the current focus position, where the arc line is an arc line made with the radar as the center of a circle and the distance from the focus to the radar as the radius (i.e., the radius of the line). Wherein, the inside pitch arc line of cutting of defence area adopts first show mode show, and the outside pitch arc line of cutting of defence area adopts the show of second show mode. After the cutting execution instruction is obtained, for example, after the user clicks a left mouse button, arc cutting lines outside the defense area are filtered out, and arc cutting lines inside the defense area are displayed and reserved.
In the embodiment of the application, the arc cutting lines inside and outside the defense area are displayed in different display modes, so that the arc cutting lines inside and outside the defense area can be conveniently distinguished; the arc cutting lines outside the defense area are filtered after the cutting execution instruction is obtained, useless arc cutting lines can be filtered, and the visual influence of the useless arc cutting lines on the division of the defense area is reduced.
The embodiment of the present application further provides an early warning rule issuing device, referring to fig. 9, the device includes:
the background image acquisition module 11 is configured to display a background image, where a position of a radar and a defense area within an effective detection range of the radar are marked in the background image;
a cutting line radius obtaining module 12, configured to obtain a cutting line radius for the defense area;
a defense area division module 13, configured to divide the defense area into a plurality of defense areas in the background image according to an arc cutting line formed by taking a position of the radar as a center of a circle and a radius of the cutting line as a radius;
the early warning rule setting module 14 is configured to set an early warning rule for at least one of the plurality of sub-defense areas;
and the early warning rule issuing module 15 is configured to issue the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
In a possible embodiment, the background image is also marked with the effective detection range of the radar.
In one possible embodiment, the background image is an electronic map of the detection scene of the radar.
In a possible implementation manner, the apparatus further includes a cutting line display module, configured to display an arc cutting line within an effective detection range of the radar of the background image or within a defense area of the background image, with a position of the radar as a center of a circle and a radius of the cutting line as a radius.
In a possible implementation manner, the early warning rule setting module is specifically configured to set an early warning rule for each of the sub-defense areas.
In a possible implementation manner, the sub-defense area dividing module is specifically configured to determine an arc cutting line within an effective detection range of the radar of the background image, with a position of the radar as a center of a circle and a radius of the cutting line as a radius; for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; and if the defense area comprises the arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line.
In a possible embodiment, the device further comprises a cutting line display module, configured to display the arc cutting line inside the defense area in a first display manner and display the arc cutting line outside the defense area in a second display manner, where the first display manner is different from the second display manner; and after a cutting execution instruction is obtained, filtering out arc cutting lines outside the defense area.
In a possible implementation manner, the early warning rule setting module is specifically configured to set a first early warning rule for a sub-defense area located inside the arc cutting line and set a second early warning rule for a sub-defense area located outside the arc cutting line under the condition that a radius of the cutting line is obtained; or under the condition of obtaining N cutting line radiuses, setting a first early warning rule for a sub-defense area at the inner side of the first arc cutting line, setting an N-i +1 th early warning rule for a sub-defense area at the outer side of the N-i arc cutting line and at the inner side of the N-i +1 th arc cutting line, and setting an N +1 th early warning rule for a sub-defense area at the outer side of the N arc cutting line, wherein N is an integer greater than 1, and i is {1,2, …, N-1}, and in the arc cutting lines formed by the cutting line radiuses, according to the sequence from near to far from the position of the radar, the first arc cutting line, the second arc cutting line, … and the N cutting line arc line are respectively.
In a possible implementation manner, the cutting line radius obtaining module is specifically configured to determine, after receiving a cutting preparation instruction, a cutting line radius according to a position of a current focus, in the background image, with a position of the radar as an origin and a position of the focus as another end point of the radius;
in a possible embodiment, the apparatus further comprises: and the length display module is used for displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
An embodiment of the present application further provides an electronic device, including: a processor and a memory;
the memory is used for storing computer programs;
the processor is configured to implement any one of the warning rule issuing methods described in the present application when executing the computer program stored in the memory.
In a possible implementation manner, referring to fig. 10, the electronic device of the embodiment of the present application further includes a communication interface 22 and a communication bus 24, where the processor 21, the communication interface 22, and the memory 23 complete communication with each other through the communication bus 24.
The communication bus mentioned in the electronic device may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for issuing an early warning rule according to any of the present application is implemented.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the warning rule issuing method described in any of the present applications.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, the technical features in the various alternatives can be combined to form the scheme as long as the technical features are not contradictory, and the scheme is within the scope of the disclosure of the present application. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, the computer program product and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An early warning rule issuing method is characterized by comprising the following steps:
displaying a background image, wherein the background image is marked with the position of a radar and a defense area within the effective detection range of the radar;
obtaining a cutting line radius for the defence area;
dividing the defense area into a plurality of sub defense areas in the background image according to an arc cutting line which is formed by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius;
setting an early warning rule for at least one of the plurality of sub-defense areas;
and issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
2. The method of claim 1, wherein the background image is further marked with a valid detection range of radar; the background image is an electronic map of a detection scene of the radar;
the method further comprises the following steps:
displaying an arc cutting line in an effective detection range of the radar of the background image by taking the position of the radar as a circle center and the radius of the cutting line as a radius, or displaying the arc cutting line in a defense area of the background image;
the setting of early warning rules for at least one of the plurality of sub-defense areas comprises:
and respectively setting early warning rules for each sub-defense area.
3. The method of claim 1, wherein the dividing the defense area into a plurality of sub-defense areas in the background image according to an arc cutting line with a position of the radar as a center and a radius of the cutting line as a radius comprises:
determining an arc line within the effective detection range of the radar of the background image by taking the position of the radar as a circle center and the radius of the line as a radius;
for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; and if the defense area comprises the arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line.
4. The method of claim 1, further comprising:
displaying arc cutting lines inside the defense area in a first display mode, and displaying arc cutting lines outside the defense area in a second display mode, wherein the first display mode is different from the second display mode;
and after a cutting execution instruction is obtained, filtering out arc cutting lines outside the defense area.
5. The method of claim 1, wherein setting pre-warning rules for at least one of the plurality of sub-zones of defense comprises:
under the condition that the radius of one cutting line is obtained, setting a first early warning rule for a sub-defense area at the inner side of the arc cutting line, and setting a second early warning rule for a sub-defense area at the outer side of the arc cutting line; or
Under the condition that N cutting line radiuses are obtained, a first early warning rule is set for a sub-defense area on the inner side of a first arc cutting line, an N-i +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line and on the inner side of an N-i +1 th arc cutting line, and an N +1 th early warning rule is set for a sub-defense area on the outer side of an N-i arc cutting line, wherein N is an integer larger than 1, and i is {1,2, …, N-1}, and in arc cutting lines formed by the cutting line radiuses, the first arc cutting line, the second arc cutting line, … and the N-th arc cutting line are arranged in the order from near to far away from the position of a radar.
6. The method of claim 1, wherein the obtaining a cut line radius for the defence area comprises:
after a cutting preparation instruction is received, determining the radius of a cutting line by taking the position of the radar as an origin and the position of the focus as another end point of the radius in the background image according to the position of the current focus;
the method further comprises the following steps:
and displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
7. An early warning rule issuing device is characterized by comprising:
the background image acquisition module is used for displaying a background image, wherein the background image is marked with the position of a radar and a defense area within the effective detection range of the radar;
the cutting line radius acquisition module is used for acquiring the cutting line radius of the defense area;
the defense area division module is used for dividing the defense area into a plurality of defense areas in the background image according to an arc cutting line which takes the position of the radar as the center of a circle and the radius of the cutting line as the radius;
the early warning rule setting module is used for setting an early warning rule for at least one of the plurality of sub-defense areas;
and the early warning rule issuing module is used for issuing the position of the sub-defense area with the early warning rule and the corresponding early warning rule to the radar.
8. The apparatus of claim 7, wherein the background image is further marked with a valid detection range of radar; the background image is an electronic map of a detection scene of the radar;
the device also comprises a cutting line display module, which is used for displaying an arc cutting line in the effective detection range of the radar of the background image or displaying the arc cutting line in the defense area of the background image by taking the position of the radar as the center of a circle and the radius of the cutting line as the radius;
the early warning rule setting module is specifically used for setting early warning rules for each sub-defense area respectively;
the sub-defense area dividing module is specifically used for determining an arc line within the effective detection range of the radar of the background image by taking the position of the radar as a circle center and the radius of the line of cut as a radius; for each defense area, if the interior of the defense area does not comprise an arc cutting line, directly taking the defense area as a sub-defense area; if the defense area comprises an arc cutting line, dividing the defense area into a plurality of sub-defense areas through the arc cutting line;
the cutting line display module is specifically used for displaying arc cutting lines inside the defense area in a first display mode and displaying arc cutting lines outside the defense area in a second display mode, wherein the first display mode is different from the second display mode; filtering out arc cutting lines outside the defense area after a cutting execution instruction is obtained;
the early warning rule setting module is specifically used for setting a first early warning rule for a sub-defense area at the inner side of the arc cutting line and setting a second early warning rule for a sub-defense area at the outer side of the arc cutting line under the condition that the radius of one cutting line is obtained; or
Under the condition that N cutting line radiuses are obtained, setting a first early warning rule for a sub-defense area on the inner side of a first arc cutting line, setting an N-i +1 th early warning rule for a sub-defense area on the outer side of an N-i arc cutting line and on the inner side of an N-i +1 th arc cutting line, and setting an N +1 th early warning rule for a sub-defense area on the outer side of an N arc cutting line, wherein N is an integer larger than 1, and i is {1,2, …, N-1}, and in the arc cutting lines formed by the cutting line radiuses, according to the sequence from near to far away from the position of a radar, the first arc cutting line, a second arc cutting line, … and the N arc cutting line are respectively;
the cutting line radius obtaining module is specifically configured to determine, after receiving a cutting preparation instruction, a cutting line radius according to a position of a current focus, in the background image, with a position of the radar as an origin and with the position of the focus as another end point of the radius;
the device further comprises: and the length display module is used for displaying the real length of the cutting line radius in the detection scene based on the scale of the background image.
9. An electronic device comprising a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the warning rule issuing method according to any one of claims 1 to 6 when executing the program stored in the memory.
10. A computer program product, which when run on a computer causes the computer to perform the warning rule issuing method of any one of claims 1 to 6.
CN202111397890.0A 2021-11-19 2021-11-19 Early warning rule issuing method and device, electronic equipment and computer program product Pending CN114037718A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202111397890.0A CN114037718A (en) 2021-11-19 2021-11-19 Early warning rule issuing method and device, electronic equipment and computer program product
MX2024006067A MX2024006067A (en) 2021-11-19 2022-11-16 Early-warning rule issuing method and apparatus, and electronic device and computer program product.
PCT/CN2022/132181 WO2023088286A1 (en) 2021-11-19 2022-11-16 Early-warning rule issuing method and apparatus, and electronic device and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111397890.0A CN114037718A (en) 2021-11-19 2021-11-19 Early warning rule issuing method and device, electronic equipment and computer program product

Publications (1)

Publication Number Publication Date
CN114037718A true CN114037718A (en) 2022-02-11

Family

ID=80138516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111397890.0A Pending CN114037718A (en) 2021-11-19 2021-11-19 Early warning rule issuing method and device, electronic equipment and computer program product

Country Status (3)

Country Link
CN (1) CN114037718A (en)
MX (1) MX2024006067A (en)
WO (1) WO2023088286A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023088286A1 (en) * 2021-11-19 2023-05-25 杭州海康威视数字技术股份有限公司 Early-warning rule issuing method and apparatus, and electronic device and computer program product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108152808A (en) * 2017-11-23 2018-06-12 安徽四创电子股份有限公司 A kind of circumference intelligent predicting method for early warning based on millimetre-wave radar
CN111383294B (en) * 2018-12-27 2023-10-17 杭州海康威视数字技术股份有限公司 Drawing method and device for defense area in safety and lightning protection system
CN110599740B (en) * 2019-10-16 2021-08-06 深圳震有科技股份有限公司 Multidimensional electronic fence early warning monitoring method and device, computer equipment and medium
CN112527009A (en) * 2020-04-10 2021-03-19 广州极飞科技有限公司 Radar data processing method and device and operation equipment
CN112068079A (en) * 2020-08-28 2020-12-11 森思泰克河北科技有限公司 Defense area dividing method and device for security radar, terminal and storage medium
CN112954271B (en) * 2021-01-28 2023-04-21 浙江大华技术股份有限公司 Video monitoring and defense deployment method and system, storable medium and computer equipment
CN113433946A (en) * 2021-07-14 2021-09-24 北京华科软通科技有限公司 Anti-collision early warning method, device and system, electronic equipment and storage medium
CN114037718A (en) * 2021-11-19 2022-02-11 杭州海康威视数字技术股份有限公司 Early warning rule issuing method and device, electronic equipment and computer program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023088286A1 (en) * 2021-11-19 2023-05-25 杭州海康威视数字技术股份有限公司 Early-warning rule issuing method and apparatus, and electronic device and computer program product

Also Published As

Publication number Publication date
MX2024006067A (en) 2024-06-21
WO2023088286A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
US7705861B2 (en) Snap to element analytical tool
CN108553894B (en) Display control method and device, electronic equipment and storage medium
WO2011152149A1 (en) Region recommendation device, region recommendation method, and recording medium
CN107506073B (en) Touch screen detection method and device, mobile terminal and computer readable storage medium
CN107844348B (en) Data display method and device based on configuration graph and computer storage medium
CN110619027B (en) House source information recommendation method and device, terminal equipment and medium
JP2018530833A (en) Providing notifications based on geofencing search results
KR20110044204A (en) Presenting dynamic grids
CN111310840A (en) Data fusion processing method, device, equipment and storage medium
CN114037718A (en) Early warning rule issuing method and device, electronic equipment and computer program product
CN112182813A (en) Power distribution network line path generation method, device, equipment and storage medium
CN104598228A (en) Measuring method of size of object
CN111461098B (en) Method, device and system for processing modeling data of instrument panel
CN112860961A (en) Visual data processing method and device and electronic equipment
CN108830674A (en) Trip order production method, device and terminal device
US11402983B2 (en) Display for an electronic measurement device and method to change a numerical value of an electronic measurement device
CN108694245B (en) Multi-dimensional data display method and device, readable storage medium and electronic equipment
CN113413588B (en) Game task processing method and device, electronic equipment and storage medium
CN109889977A (en) A kind of bluetooth localization method, device, equipment and system returned based on Gauss
CN111934905A (en) Management method, client and system of network equipment in level protection
CN105306680A (en) Terminal temperature measurement method and terminal
CN111736748A (en) Data processing method and device based on map information and electronic equipment
US10042515B2 (en) Using genture direction to input data into multiple spin dial list boxes
JP2015118432A (en) Submission information management system, method and program
CN112199418B (en) State identification method, device and equipment for industrial object

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