Warning rule issuing method, device, electronic device and computer program product
By displaying background images in the radar system, obtaining the radius of the cutting line and demarcating molecular defense zones, setting and issuing early warning rules, the problem of difficulty in setting radar early warning rules in the existing technology is solved, and a more flexible and efficient radar early warning function is achieved.
Patent Information
- Application Number
- CN202111397890.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-11-19
AI Technical Summary
It is difficult for the existing technology to effectively set and issue radar warning rules, resulting in the radar being unable to provide timely warnings when detecting target objects.
By displaying the background image, the cutting line radius is obtained, and the arc cutting line with the radar position as the center of the circle and the cutting line radius is divided into multiple sub-defense areas, setting early warning rules for the sub-defense areas, and issuing the rules to the radar.
It realizes the effective setting and issuance of radar warning rules, and improves the radar's early warning ability and flexibility when detecting target objects.
Smart Images

Figure CN114037718B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of radar technology, and in particular to a method, device, electronic device and computer program product for issuing warning rules. Background Art
[0002] Radar is a device that detects the spatial position of a target object. In related technologies, radar can be divided into ultrasonic radar and electromagnetic wave radar. Among them, electromagnetic wave radar is widely used in production and life due to its advantages such as fast response speed and wide detection range. After detecting the target object, the radar can issue an early warning. How to set the radar early warning rules has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, electronic device and computer program product for issuing warning rules to implement the setting of radar warning rules. The specific technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for issuing warning rules, the method comprising:
[0005] Displaying a background image, wherein the background image is marked with the location of the radar and the defense zone within the effective detection range of the radar;
[0006] Obtaining a cutting line radius for the defense zone;
[0007] Dividing the defense zone into a plurality of sub-defense zones in the background image according to an arc cutting line formed by taking the position of the radar as the center and taking the cutting line radius as the radius;
[0008] Setting an early warning rule for at least one of the plurality of sub-defense zones;
[0009] The location of the sub-defense zone with the early warning rule and the corresponding early warning rule are sent to the radar.
[0010] In a possible implementation manner, the background image is also marked with an effective detection range of the radar.
[0011] In a possible implementation manner, the background image is an electronic map of the detection scene of the radar.
[0012] In a possible implementation, the method further includes:
[0013] With the position of the radar as the center and the cutting line radius as the radius, an arc cutting line is displayed within the effective detection range of the radar of the background image, or an arc cutting line is displayed within the defense zone of the background image.
[0014] In a possible implementation manner, setting a warning rule for at least one of the multiple sub-defense zones includes: setting a warning rule for each of the sub-defense zones respectively.
[0015] In a possible implementation manner, the defense zone is divided into a plurality of sub-defense zones in the background image according to an arc cutting line formed with the position of the radar as the center and the cutting line radius as the radius, including:
[0016] Taking the position of the radar as the center of the circle and the radius of the cutting line as the radius, determine an arc cutting line within the effective detection range of the radar in the background image;
[0017] For each defense zone, if the defense zone does not include an arc cutting line, the defense zone is directly used as a sub-defense zone; if the defense zone includes an arc cutting line, the defense zone is divided into multiple sub-defense zones by the arc cutting line.
[0018] In a possible implementation, the method further includes:
[0019] The arc cutting line inside the defense zone is displayed in a first display mode, and the arc cutting line outside the defense zone is displayed in a second display mode, wherein the first display mode is different from the second display mode;
[0020] After the cutting execution instruction is obtained, the arc cutting line outside the defense zone is filtered out.
[0021] In a possible implementation manner, setting an early warning rule for at least one of the multiple sub-defense zones includes:
[0022] When a cutting line radius is obtained, a first warning rule is set for a sub-defense zone inside the arc cutting line, and a second warning rule is set for a sub-defense zone outside the arc cutting line; or
[0023] When N cutting line radii are obtained, the first warning rule is set for the sub-defense zone inside the first arc cutting line, the N-i+1 warning rule is set for the sub-defense zone outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and the N+1 warning rule is set for the sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the N arc cutting line.
[0024] In a possible implementation manner, obtaining the cutting line radius for the defense zone includes:
[0025] After receiving the cutting preparation instruction, according to the current focus position, in the background image, the cutting line radius is determined with the position of the radar as the origin and the position of the focus as the other end point of the radius;
[0026] In a possible implementation, the method further includes: displaying a real length of the cutting line radius in the detection scene based on a scale of the background image.
[0027] In a second aspect, an embodiment of the present application provides a warning rule issuing device, the device comprising:
[0028] A background image acquisition module, used to display a background image, wherein the background image is marked with the position of the radar and the defense zone within the effective detection range of the radar;
[0029] A cutting line radius acquisition module, used to acquire the cutting line radius for the defense zone;
[0030] A sub-defense zone division module, used for dividing the defense zone into a plurality of sub-defense zones in the background image according to an arc cutting line formed by taking the position of the radar as the center and taking the cutting line radius as the radius;
[0031] An early warning rule setting module, used for setting an early warning rule for at least one sub-defense zone among the multiple sub-defense zones;
[0032] The warning rule sending module is used to send the location of the sub-defense zone with the warning rule and the corresponding warning rule to the radar.
[0033] In a possible implementation manner, the background image is also marked with an effective detection range of the radar.
[0034] In a possible implementation manner, the background image is an electronic map of the detection scene of the radar.
[0035] In a possible implementation, the device further includes a cutting line display module, which is used to display an arc cutting line within the effective detection range of the radar of the background image, or to display an arc cutting line within the defense zone of the background image, with the position of the radar as the center and the cutting line radius as the radius.
[0036] In a possible implementation manner, the warning rule setting module is specifically configured to set warning rules for each of the sub-defense zones respectively.
[0037] In a possible implementation, the sub-defense zone division module is specifically used to determine an arc cutting line within the effective detection range of the radar of the background image with the position of the radar as the center and the cutting line radius as the radius; for each defense zone, if the defense zone does not include the arc cutting line, the defense zone is directly used as a sub-defense zone; if the defense zone includes the arc cutting line, the defense zone is divided into multiple sub-defense zones through the arc cutting line.
[0038] In a possible embodiment, the device also includes a cutting line display module, which is used to display the arc cutting line inside the defense zone in a first display method, and display the arc cutting line outside the defense zone in a second display method, wherein the first display method is different from the second display method; after obtaining the cutting execution instruction, the arc cutting line outside the defense zone is filtered out.
[0039] In a possible implementation, the warning rule setting module is specifically used to set a first warning rule for the sub-defense zone inside the arc cutting line and set a second warning rule for the sub-defense zone outside the arc cutting line when a cutting line radius is obtained; or
[0040] When N cutting line radii are obtained, a first warning rule is set for a sub-defense zone inside the first arc cutting line, an N-i+1 warning rule is set for a sub-defense zone outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and an N+1 warning rule is set for a sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the N arc cutting line;
[0041] In a possible implementation manner, the cutting line radius acquisition module is specifically used to determine the cutting line radius after receiving the cutting preparation instruction, according to the position of the current focus, in the background image, with the position of the radar as the origin and the position of the focus as the other end point of the radius;
[0042] In a possible implementation manner, the device further includes: a length display module, configured to display a real length of the cutting line radius in the detection scene based on a scale of the background image.
[0043] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
[0044] The memory is used to store computer programs;
[0045] The processor is used to implement any of the warning rule issuing methods described in the present application when executing the program stored in the memory.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, it implements any of the warning rule issuance methods described in the present application.
[0047] In a fifth aspect, an embodiment of the present application provides an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the warning rule issuing methods described in the present application.
[0048] Beneficial effects of the embodiments of the present application:
[0049] The method, device, electronic device and computer program product for issuing warning rules provided in the embodiments of the present application display a background image, wherein the position of the radar and the defense zone within the effective detection range of the radar are marked in the background image; the cutting line radius for the defense zone is obtained; the defense zone is divided into multiple sub-defense zones in the background image according to an arc cutting line formed with the position of the radar as the center and the cutting line radius as the radius; a warning rule is set for at least one of the multiple sub-defense zones; the position of the sub-defense zone with the warning rule set and the corresponding warning rule are issued to the radar. In the embodiments of the present application, the setting of radar warning rules is realized. Of course, it is not necessary to achieve all the advantages described above at the same time to implement any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0051] Figure 1 This is a first schematic diagram of the method for issuing warning rules in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of an effective detection area in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of a defense zone in an embodiment of the present application;
[0054] Figure 4 A first schematic diagram of the warning rule setting in the embodiment of the present application;
[0055] Figure 5A second schematic diagram of the warning rule setting in the embodiment of the present application;
[0056] Figure 6 This is a second schematic diagram of the method for issuing warning rules in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of a possible implementation of step S103 in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of a neutron defense zone in an embodiment of the present application;
[0059] Fig. 9 A schematic diagram of a warning rule issuing device according to an embodiment of the present application;
[0060] Fig.10 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0062] In order to realize the setting of radar warning rules, an embodiment of the present application provides a method for issuing warning rules, the method comprising: displaying a background image, wherein the position of the radar and the defense zone within the effective detection range of the radar are marked in the background image; obtaining the cutting line radius for the defense zone; dividing the defense zone into multiple sub-defense zones in the background image according to an arc cutting line formed with the position of the radar as the center and the cutting line radius as the radius; setting a warning rule for at least one of the multiple sub-defense zones; issuing the position of the sub-defense zone with the warning rule and the corresponding warning rule to the radar. In the embodiment of the present application, the position of each sub-defense zone and the warning rule of each sub-defense zone are issued to the radar, thereby realizing the setting of the radar warning rule.
[0063] The following is a detailed description, see Figure 1 , Figure 1 The first schematic diagram of the method for issuing warning rules according to an embodiment of the present application includes:
[0064] S101, displaying a background image, wherein the background image is marked with a position of a radar and a defense zone within an effective detection range of the radar.
[0065] The method for issuing warning rules in the embodiment of the present application can be implemented by an electronic device. In one example, the electronic device can be a smart phone or a computer. The background image is marked with the location of the radar and the defense area within the effective detection range of the radar. In one possible implementation, 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 that the radar can detect. In one example, the effective detection range of the radar can be as follows: Figure 2 As shown in the figure. A defense zone refers to a polygonal area within the effective detection range of the radar that needs to be monitored by the radar. It is used for the deployment of the radar area. The defense zone can be defined and set according to the actual situation. For example, if the radar needs to monitor the area where Airport A is located, the area where Airport A is located can be set as the defense zone. In an example, the defense zone within the effective detection range can be as follows Figure 3 The background image is marked with the effective detection range of the radar, which allows users to intuitively observe the effective detection range of the radar and facilitate the user's sub-zone division operation.
[0066] The background image can be any image, such as a solid color image or an image with a specified pattern. In a possible implementation, the background image is an electronic map of the detection scene of the radar. The detection scene is a real-world scene that needs to be detected by the radar. The electronic map of the detection scene can directly use an existing electronic map, or a special electronic map can be established for the detection scene. The establishment method of the electronic map can refer to the relevant electronic map establishment method, which is not specifically limited in this application. In one example, the electronic map of the detection scene can use a GIS (Geographic Information System) map.
[0067] In one example, the electronic map is marked with the location of the radar, the effective detection range of the radar, and the defense zone within the effective detection range of the radar. The steps of obtaining the electronic map of the detection scene include:
[0068] Step 1: Obtain the position of the radar in the detection scene, the effective detection range of the radar, and the position of the defense zone within the effective detection range of the radar.
[0069] Step 2: Mark the position of the radar in the electronic map of the detection scene according to the position of the radar in the detection scene.
[0070] Step three: marking the location of the effective detection range of the radar in the detection scene and the location of the radar in the electronic map.
[0071] Step 4: Mark the position of the defense zone in the electronic map according to the position of the defense zone within 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.
[0072] In an embodiment of the present application, an electronic map of the detection scene is used as a background image, which makes it convenient for users to intuitively obtain the radar, the effective detection range of the radar, and the position of the defense zone within the effective detection range of the radar in the detection scene, and facilitates users to intuitively observe the corresponding position of each sub-defense zone in the detection scene, thereby facilitating the division of sub-defense zones.
[0073] S102: Obtain a cutting line radius for the defense zone.
[0074] Get the cutting line radius input by the user according to the displayed background image. In one example, the user can directly input the length of the cutting line radius to obtain the cutting line radius. In one example, the cutting line radius can be obtained by the position of the user's touch screen or mouse focus relative to the radar.
[0075] In a possible implementation, obtaining the cutting line radius for the defense zone includes: after receiving a cutting preparation instruction, determining the cutting line radius according to the current focus position in the background image with the position of the radar as the origin and the position of the focus as the other end point of the radius.
[0076] In one example, function buttons can be displayed while displaying the background image, wherein the function buttons include a cutting button. When the user clicks the cutting button by touching the screen or using the mouse, the user's cutting preparation instruction is received, the defense zone cutting state is entered, and the focus position is transformed into a cutting icon. The radius of the cutting line is the line segment from the radar to the focus.
[0077] In a possible implementation, the method further includes: displaying a real length of the cutting line radius in the detection scene based on a scale of the background image.
[0078] The scale of the background image is similar to that of an electronic map, and is used to indicate the 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. It can also be understood as the ratio of the defense zone in the background image to the defense zone in the real detection scene. In one example, after the focus enters the effective detection range of the radar, the corresponding arc cutting line can be displayed according to the current focus position. The arc cutting line is an arc with the radar as the center and the distance from the focus to the radar as the radius (i.e., the cutting line radius). During the movement of the focus, the background image can also calculate and display the actual length of the cutting line radius in the real monitoring scene according to the real-time scale, that is, the actual distance from the cutting line to the radar in the real monitoring scene. The display position of the actual length can be customized according to the actual situation. For example, the actual length can be displayed near the focus in the background image, or the actual length can be displayed near the arc cutting line in the background image, etc.
[0079] In the embodiment of the present application, the actual length of the cutting line radius in the detection scene is displayed, so that the length of the arc cutting line from the radar can be accurately known, which can improve the accuracy of sub-defense zone cutting.
[0080] S103, dividing the defense zone into a plurality of sub-defense zones in the background image according to an arc cutting line formed by taking the position of the radar as the center and the cutting line radius as the radius.
[0081] There may be only one defense zone or multiple defense zones within the effective detection range of the radar; in a possible implementation, the defense zone is divided into multiple sub-defense zones in the background image based on an arc cutting line formed with the position of the radar as the center and the cutting line radius as the radius, including: determining an arc cutting line within the effective detection range of the radar in the background image with the position of the radar as the center and the cutting line radius as the radius; for each defense zone, if the defense zone does not include the arc cutting line, the defense zone is directly used as a sub-defense zone; if the defense zone includes the arc cutting line, the defense zone is divided into multiple sub-defense zones by the arc cutting line.
[0082] The arc cutting line formed by the radar position as the center and the cutting line radius as the radius passes through at least one defense zone. The arc cutting line divides the defense zone it passes through into multiple sub-defense zones. For the convenience of description, the defense zone that does not need to be divided and is not passed through by the arc is also called a sub-defense zone, thereby obtaining multiple sub-defense zones. In an example, Figure 8 As shown, defense zone A does not include the arc cutting line, and defense zone A is directly used as a sub-defense zone; defense zone B includes the arc cutting line and is divided into two sub-defense zones by the arc cutting line; defense zone C includes the arc cutting line and is divided into two sub-defense zones by the arc cutting line.
[0083] In the process of displaying the background image, the complete arc cutting line can be displayed, or only the arc cutting line within the defense zone can be displayed. In a possible implementation, the method also includes: taking the position of the radar as the center of the circle and the radius of the cutting line as the radius, displaying the arc cutting line within the effective detection range of the radar of the background image, or displaying the arc cutting line within the defense zone of the background image.
[0084] S104: Setting an early warning rule for at least one of the multiple sub-defense zones.
[0085] The user sets an early warning rule for at least one of the multiple sub-defense zones according to actual setting requirements. In some scenarios, although there are multiple sub-defense zones, early warning rules only need to be set for some specific sub-defense zones. Therefore, early warning rules can be set for some of the multiple sub-defense zones, while other sub-defense zones may not be set. In an example, for example Figure 8 As shown, zone A is a sub-zone, zone B is divided into two sub-zones by an arc cutting line, and zone C is divided into two sub-zones by an arc cutting line. According to actual setting requirements, warning rules can be set for only one of the five sub-zones, or warning rules can be set for multiple sub-zones among the five sub-zones separately.
[0086] In a possible implementation, the setting of early warning rules for at least one of the multiple sub-defense zones includes: setting early warning rules for each of the sub-defense zones respectively. In one example, an early warning rule may be set separately for each sub-defense zone. In one example, early warning rules may be set for sub-areas within different radii with the radar as the center. In an embodiment of the present application, early warning rules for each sub-defense zone are set separately, thereby achieving a diverse setting of early warning rules, thereby increasing the diversity of radar early warning methods.
[0087] S105, sending the location of the sub-defense zone with the warning rule and the corresponding warning rule to the radar.
[0088] The location of the sub-defense zone with warning rules and the corresponding warning rules are sent to the radar, so that the radar can monitor the sub-defense zone according to the location of the sub-defense zone and issue a warning according to the warning rules of the sub-defense zone.
[0089] A position conversion is required from the background image to the actual detection scene. In a possible implementation, the position of the sub-defense zone with the warning rule and the corresponding warning rule are sent to the radar, including: step one, according to the position of the sub-defense zone with the warning rule in the background image, determine the position of the sub-defense zone with the warning rule in the detection scene. Step two, send the position of the sub-defense zone with the warning rule in the detection scene and the corresponding warning rule to the radar. In one example, the position of the sub-defense zone in the detection scene can be determined based on the scale of the background image. In one example, the position of the sub-defense zone in the detection scene can be determined based on the correspondence between the background image coordinate system and the detection scene coordinate system.
[0090] In the embodiment of the present application, the warning rules are sent to the radar, and the setting of the radar warning rules is realized. The sub-defense zone is cut by the arc cutting line obtained by the cutting line radius, which can reduce the inconsistency and inaccuracy of the distance from the sub-defense zone to the radar after cutting, compared with manually drawing lines to cut multiple defense zones separately.
[0091] In one example, the length of the cutting line radius can be obtained by inputting a length value, thereby obtaining the cutting line radius; in one example, the line segment between the focus of the touch screen or mouse and the position of the radar can be displayed. After obtaining the cutting execution instruction, for example, after the user clicks the left mouse button, the current line segment is used as the final input cutting line radius.
[0092] In the case where only one cutting line radius is obtained, in a possible implementation, setting an early warning rule for at least one of the multiple sub-defense zones includes: in the case where only one cutting line radius is obtained, setting a first early warning rule for the sub-defense zone on the inner side of the arc cutting line, and setting a second early warning rule for the sub-defense zone on the outer side of the arc cutting line.
[0093] In the case of obtaining only one cutting line radius, the sub-defense zone can be divided into a sub-defense zone inside the arc cutting line and a sub-defense zone outside the arc cutting line. A first warning rule is set for at least one sub-defense zone inside the arc cutting line, and a second warning rule is set for at least one sub-defense zone outside the arc cutting line. In an example, for example Figure 4 As shown, the first warning rule is set for the sub-defense zone inside the arc, and the second warning rule is set for the sub-defense zone outside the arc. The first warning rule and the second warning rule can be customized according to actual conditions, for example, they can be ordinary warning, alert warning or alarm warning, etc. The first warning rule and the second warning rule should be different warning rules.
[0094] In the case where multiple cutting line radii are obtained, in a possible implementation manner, setting an early warning rule for at least one of the multiple sub-defense areas includes:
[0095] When N cutting line radii are obtained, the first warning rule is set for the sub-defense zone inside the first arc cutting line, the N-i+1 warning rule is set for the sub-defense zone outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and the N+1 warning rule is set for the sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the N arc cutting line.
[0096] In the case where only N cutting line radii are obtained, the effective detection range is divided into N+1 areas by the N cutting line radii, and the first warning rule is set for at least one sub-defense area inside the first arc cutting line, the N-i+1 warning rule is set for at least one sub-defense area outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and the N+1 warning rule is set for at least one sub-defense area outside the N arc cutting line. In an example, taking N as 3, for example Figure 5 As shown, in the order of the distance from the radar from near to far, they are the first arc, the second arc and the third arc, respectively. The first warning rule is set for the sub-defense zone inside the first arc, the second warning rule is set for the sub-defense zone outside the first arc and inside the second arc, the third warning rule is set for the sub-defense zone outside the second arc and inside the third arc, and the fourth warning rule is set for the sub-defense zone outside the third arc. The first warning rule, the second warning rule, the third warning rule and the fourth warning rule can be customized according to actual conditions, and each warning rule should be a different warning rule.
[0097] In one possible implementation, see Figure 6 , the method further comprises:
[0098] S106, when the radar detects the presence of a warning object in a sub-defense zone, a corresponding warning operation is performed according to the warning rule of the sub-defense zone where the warning object appears.
[0099] For example, if the radar detects the presence of a warning object in sub-defense zone A, the corresponding warning operation will be performed according to the warning rules of sub-defense zone A.
[0100] In an embodiment of the present application, when the radar detects the presence of a warning object in a sub-defense zone, the corresponding warning operation is performed according to the warning rules of the sub-defense zone where the warning object appears, so that the warning operation can be performed with independent warning units of the sub-defense zone, and the diversity of radar warning methods is increased.
[0101] In one possible implementation, see Figure 7 , the method further comprises:
[0102] S107, using a first display method to display the arc cutting line inside the defense zone, and using a second display method to display the arc cutting line outside the defense zone, wherein the first display method is different from the second display method.
[0103] S108, after obtaining the cutting execution instruction, filtering out the arc cutting line outside the defense area.
[0104] The first display mode and the second display mode can be customized according to actual conditions. For example, the first display mode is to use solid lines, and the second display mode is to use dotted lines. Figure 8 As shown, the arc cutting line represented by the dotted line is the arc cutting line outside the defense zone, which needs to be filtered out after the cutting execution instruction is obtained, and the arc cutting line represented by the solid line is the arc cutting line inside the defense zone.
[0105] For example, after the focus enters the effective detection range of the radar, the corresponding arc cutting line can be displayed according to the current focus position. The arc cutting line is an arc with the radar as the center and the distance from the focus to the radar as the radius (i.e., the cutting line radius). Among them, the arc cutting line inside the defense zone is displayed in the first display method, and the arc cutting line outside the defense zone is displayed in the second display method. After obtaining the cutting execution instruction, for example, after the user clicks the left mouse button, the arc cutting line outside the defense zone is filtered out, and the arc cutting line inside the defense zone is displayed and retained.
[0106] In the embodiment of the present application, the arc cutting lines inside and outside the defense zone are displayed in different ways, which can facilitate the distinction between the arc cutting lines inside and outside the defense zone; after obtaining the cutting execution instruction, the arc cutting lines outside the defense zone are filtered out, and useless arc cutting lines can be filtered out, thereby reducing the visual impact of useless arc cutting lines on the sub-defense zone division.
[0107] The present application also provides a warning rule issuing device, see Fig. 9 , the device comprises:
[0108] A background image acquisition module 11 is used to display a background image, wherein the background image is marked with the position of the radar and the defense zone within the effective detection range of the radar;
[0109] A cutting line radius acquisition module 12, used to acquire a cutting line radius for the defense zone;
[0110] A sub-defense zone division module 13, used to divide the defense zone into a plurality of sub-defense zones in the background image according to an arc cutting line formed by taking the position of the radar as the center and taking the cutting line radius as the radius;
[0111] An early warning rule setting module 14 is used to set an early warning rule for at least one of the multiple sub-defense zones;
[0112] The warning rule sending module 15 is used to send the location of the sub-defense zone with the warning rule and the corresponding warning rule to the radar.
[0113] In a possible implementation manner, the background image is also marked with an effective detection range of the radar.
[0114] In a possible implementation manner, the background image is an electronic map of the detection scene of the radar.
[0115] In a possible implementation, the device further includes a cutting line display module, which is used to display an arc cutting line within the effective detection range of the radar of the background image, or to display an arc cutting line within the defense zone of the background image, with the position of the radar as the center and the cutting line radius as the radius.
[0116] In a possible implementation manner, the warning rule setting module is specifically configured to set warning rules for each of the sub-defense zones respectively.
[0117] In a possible implementation, the sub-defense zone division module is specifically used to determine an arc cutting line within the effective detection range of the radar of the background image with the position of the radar as the center and the cutting line radius as the radius; for each defense zone, if the defense zone does not include the arc cutting line, the defense zone is directly used as a sub-defense zone; if the defense zone includes the arc cutting line, the defense zone is divided into multiple sub-defense zones through the arc cutting line.
[0118] In a possible embodiment, the device also includes a cutting line display module, which is used to display the arc cutting line inside the defense zone in a first display method, and display the arc cutting line outside the defense zone in a second display method, wherein the first display method is different from the second display method; after obtaining the cutting execution instruction, the arc cutting line outside the defense zone is filtered out.
[0119] In a possible implementation, the warning rule setting module is specifically used to, when a cutting line radius is obtained, set a first warning rule for the sub-defense zone inside the arc cutting line, and set a second warning rule for the sub-defense zone outside the arc cutting line; or when N cutting line radii are obtained, set the first warning rule for the sub-defense zone inside the first arc cutting line, set the N-i+1th warning rule for the sub-defense zone outside the Ni arc cutting line and inside the N-i+1th arc cutting line, and set the N+1th warning rule for the sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the Nth arc cutting line.
[0120] In a possible implementation manner, the cutting line radius acquisition module is specifically used to determine the cutting line radius after receiving the cutting preparation instruction, according to the position of the current focus, in the background image, with the position of the radar as the origin and the position of the focus as the other end point of the radius;
[0121] In a possible implementation manner, the device further includes: a length display module, configured to display a real length of the cutting line radius in the detection scene based on a scale of the background image.
[0122] The embodiment of the present application also provides an electronic device, including: a processor and a memory;
[0123] The memory is used to store computer programs;
[0124] When the above-mentioned processor is used to execute the computer program stored in the above-mentioned memory, it implements any of the warning rule issuing methods described in the present application.
[0125] In one possible implementation, see Fig.10 The electronic device of the embodiment of the present application further includes a communication interface 22 and a communication bus 24 , wherein the processor 21 , the communication interface 22 , and the memory 23 communicate with each other via the communication bus 24 .
[0126] The communication bus mentioned in the above electronic device may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0127] The communication interface is used for communication between the above electronic device and other devices.
[0128] The memory may include RAM (Random Access Memory) or NVM (Non-Volatile Memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0129] The above-mentioned processor can be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it can also be a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0130] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any of the warning rule issuing methods described in the present application is implemented.
[0131] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the warning rule issuing methods described in the present application.
[0132] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, 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 computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk (SSD)), etc.
[0133] It should be noted that, in this article, the technical features in each optional solution can be combined to form a solution as long as there is no contradiction, and these solutions are all within the scope disclosed in this application. Relational terms such as first and second, etc. are only used to distinguish an entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only include those elements, but also include other elements that are not clearly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0134] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic device, computer program product, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0135] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A method for issuing early warning rules, characterized in that: The method comprises: Displaying a background image, wherein the background image is marked with the position of the radar, the defense zone within the effective detection range of the radar, and the effective detection range of the radar; the background image is an electronic map of the detection scene of the radar; Obtaining a cutting line radius for the defense zone; Taking the position of the radar as the center of the circle and the radius of the cutting line as the radius, an arc cutting line is determined within the effective detection range of the radar of the background image; the arc cutting line is displayed within the effective detection range of the radar of the background image, or within the defense zone of the background image; for each defense zone, if the defense zone does not include the arc cutting line, the defense zone is directly used as a sub-defense zone; if the defense zone includes the arc cutting line, the defense zone is divided into a plurality of sub-defense zones by the arc cutting line, wherein the arc cutting line passes through at least one defense zone, and the arc cutting line divides the defense zone passed through into a plurality of sub-defense zones; Setting an early warning rule for at least one of the plurality of sub-defense zones; The location of the sub-defense zone with the early warning rule and the corresponding early warning rule are sent to the radar.
2. The method according to claim 1, characterized in that The method further comprises: The arc cutting line inside the defense zone is displayed in a first display mode, and the arc cutting line outside the defense zone is displayed in a second display mode, wherein the first display mode is different from the second display mode; After the cutting execution instruction is obtained, the arc cutting line outside the defense zone is filtered out.
3. The method according to claim 1, characterized in that The step of setting an early warning rule for at least one of the plurality of sub-defense zones comprises: When a cutting line radius is obtained, a first warning rule is set for a sub-defense zone inside the arc cutting line, and a second warning rule is set for a sub-defense zone outside the arc cutting line; or When N cutting line radii are obtained, the first warning rule is set for the sub-defense zone inside the first arc cutting line, the N-i+1 warning rule is set for the sub-defense zone outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and the N+1 warning rule is set for the sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the N arc cutting line.
4. The method according to claim 1, characterized in that: The obtaining of the cutting line radius for the defense zone includes: After receiving the cutting preparation instruction, according to the current focus position, in the background image, the cutting line radius is determined with the position of the radar as the origin and the position of the focus as the other end point of the radius; The method further comprises: Based on the scale of the background image, the actual length of the cutting line radius in the detection scene is displayed.
5. A warning rule issuing device, characterized in that: The device comprises: A background image acquisition module is used to display a background image, wherein the background image is marked with the position of the radar, the defense zone within the effective detection range of the radar, and the effective detection range of the radar; the background image is an electronic map of the detection scene of the radar; A cutting line radius acquisition module, used to acquire the cutting line radius for the defense zone; A sub-defense zone division module is used to determine an arc cutting line within the effective detection range of the radar of the background image with the position of the radar as the center and the cutting line radius as the radius; display the arc cutting line within the effective detection range of the radar of the background image, or display the arc cutting line within the defense zone of the background image; for each defense zone, if the defense zone does not include the arc cutting line, then the defense zone is directly used as a sub-defense zone; if the defense zone includes the arc cutting line, then the defense zone is divided into multiple sub-defense zones by the arc cutting line, wherein the arc cutting line passes through at least one defense zone, and the arc cutting line divides the defense zone passed through into multiple sub-defense zones; An early warning rule setting module, used for setting an early warning rule for at least one sub-defense zone among the multiple sub-defense zones; The warning rule sending module is used to send the location of the sub-defense zone with the warning rule and the corresponding warning rule to the radar.
6. The device according to claim 5, characterized in that The cutting line display module is specifically used to display the arc cutting line inside the defense zone in a first display mode, and display the arc cutting line outside the defense zone in a second display mode, wherein the first display mode is different from the second display mode; after obtaining the cutting execution instruction, filter out the arc cutting line outside the defense zone; The warning rule setting module is specifically used to set a first warning rule for the sub-defense zone inside the arc cutting line and set a second warning rule for the sub-defense zone outside the arc cutting line when a cutting line radius is obtained; or When N cutting line radii are obtained, a first warning rule is set for a sub-defense zone inside the first arc cutting line, an N-i+1 warning rule is set for a sub-defense zone outside the Ni arc cutting line and inside the N-i+1 arc cutting line, and an N+1 warning rule is set for a sub-defense zone outside the N arc cutting line, wherein N is an integer greater than 1, i={1,2,…,N-1}, and in the arc cutting lines formed by each of the cutting line radii, in order from near to far from the position of the radar, they are the first arc cutting line, the second arc cutting line,…, the N arc cutting line; The cutting line radius acquisition module is specifically used to determine the cutting line radius after receiving the cutting preparation instruction, according to the position of the current focus, with the position of the radar as the origin in the background image and the position of the focus as the other end point of the radius; The device further comprises: a length display module, which is used to display the real length of the cutting line radius in the detection scene based on the scale of the background image.
7. An electronic device, characterized in that: including a processor and a memory; The memory is used to store computer programs; The processor is used to implement the warning rule issuing method described in any one of claims 1-4 when executing the program stored in the memory.
8. A computer program product, characterized in that When it runs on a computer, it enables the computer to execute the warning rule issuing method described in any one of claims 1-4.
Citation Information
Patent Citations
Method and device for drawing defense area in security radar system
CN111383294A
Anti-collision early warning method, device and system, electronic equipment and storage medium
CN113433946A