Sensitive area approaching early warning method, device and equipment and storage medium
By constructing targets and buffering geographical space images, the actual latitude and longitude of monitoring objects is compared with the latitude and latitude and longitude of the monitoring objects, and the problems that are difficult to verify in the entrance identity recognition have been solved, and timely early warning and safety improvement of sensitive areas have been achieved.
Patent Information
- Application Number
- CN202411499028.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-24
AI Technical Summary
In the case of a large number of visitors, the method of identifying visitors only at the entrance can easily lead to the inability to increase the number of staff to verify their identity in a timely manner, which greatly increases the possibility of unrelated personnel entering important areas.
By obtaining the target latitude and longitude collection corresponding to the target sensitive area, build a target geographical space image, and determine the buffer area according to the set distance to generate the buffer geographic image, compare the actual latitude and longitude of the monitoring objects, determine whether to send to the user whether to send the user to the user Early warning information.
It achieves timely early warning of monitoring objects approaching sensitive areas, reduces the possibility of irrelevant personnel entering sensitive areas, and improves the security of sensitive areas.
Smart Images

Figure CN119360582A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a sensitive area approach warning method, device, equipment and storage medium. Background Art
[0002] With the rapid development of information technology, more and more companies and individuals have begun to realize the importance of security protection for important areas. At present, in order to prevent irrelevant personnel from entering important areas, the identity of the access personnel is usually identified at the entrance of the important area, and an alarm is issued based on the identity identification results.
[0003] However, when there are a large number of visitors, the method of only identifying the visitors at the entrance may easily lead to the inability to increase the number of staff to verify their identities in a timely manner, which greatly increases the possibility of unrelated personnel entering important areas. Summary of the invention
[0004] The present invention provides a sensitive area approaching warning method, device, equipment and storage medium, which can realize timely warning of the situation where a monitored object is approaching a sensitive area, thereby improving the safety of the sensitive area.
[0005] In a first aspect, an embodiment of the present invention provides a sensitive area approach warning method, comprising:
[0006] Obtain a target latitude and longitude set corresponding to the target sensitive area, and use a geospatial library to construct a target geospatial image corresponding to the target sensitive area based on the target latitude and longitude set;
[0007] Determine the buffer area corresponding to the target sensitive area based on the target geospatial image and the set proximity distance;
[0008] Obtaining a buffer zone latitude and longitude set corresponding to the buffer zone, and generating a buffer geospatial image corresponding to the buffer zone based on the buffer zone latitude and longitude set;
[0009] The actual longitude and latitude corresponding to each monitoring object in the preset monitoring area and the buffered longitude and latitude of each point on the buffered geographic space image are obtained, and based on the comparison results of the actual longitude and latitude and the buffered longitude and latitude, it is determined whether to send a warning information to the user that the monitoring object is close to the target sensitive area.
[0010] Optionally, a buffer geospatial image corresponding to the buffer area is generated based on the buffer zone longitude and latitude set, including: determining the height values corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value; generating a buffer geospatial image corresponding to the buffer area based on the buffer zone longitude and latitude set and the height values corresponding to each longitude and latitude data in the buffer zone longitude and latitude set; wherein the buffer geospatial image is a three-dimensional image.
[0011] Optionally, based on the comparison results of the actual longitude and latitude and each buffer longitude and latitude, determine whether to send a warning message to the user that the monitored object is approaching the target sensitive area, including: obtaining the actual height value corresponding to the actual longitude and latitude, and the buffer height values corresponding to each buffer longitude and latitude, and based on the comparison results of the actual longitude and longitude with each buffer longitude and latitude, and the comparison results of the actual height value with each buffer height value, determine whether to send a warning message to the user that the monitored object is approaching the target sensitive area.
[0012] Optionally, based on the comparison results of the actual longitude and latitude with each buffer longitude and latitude, and the comparison results of the actual height value with each buffer height value, it is determined whether to send a warning message to the user that the monitored object is approaching the target sensitive area, including: determining the actual array corresponding to the actual longitude and latitude, and selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude; determining the current buffer array corresponding to the current buffer longitude and latitude, and using the actual array, the current buffer array, the preset relative tolerance and the preset absolute tolerance as parameters of the preset data comparison function to determine whether the actual longitude and latitude are approximately equal to the current buffer longitude and latitude; if so, obtaining the actual height value corresponding to the actual longitude and latitude, and the current buffer height value corresponding to the current buffer longitude and latitude, and sending a warning message to the user that the monitored object is approaching the target sensitive area when the actual height value is less than or equal to the current buffer height value; if not, returning to execute the step of selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude, until the actual longitude and latitude are approximately equal to the current buffer longitude and latitude, or the processing of the buffer longitude and latitude of all points on the buffered geographic space image is completed.
[0013] Optionally, a buffer area corresponding to the target sensitive area is determined according to the target geospatial image and a set proximity distance, including: determining a first buffer area corresponding to the target sensitive area according to the target geospatial image and a first preset proximity distance; determining a first buffer area to be processed corresponding to the target sensitive area according to the target geospatial image and a second preset proximity distance, and processing the first buffer area to be processed according to the first buffer area to obtain a second buffer area; wherein the first buffer area to be processed includes the first buffer area and the second buffer area; determining a second buffer area to be processed corresponding to the target sensitive area according to the target geospatial library and a third preset proximity distance, and processing the second buffer area to be processed according to the first buffer area to obtain a third buffer area; wherein the second buffer area to be processed includes the first buffer area and the third buffer area.
[0014] Optionally, the buffer longitude and latitude of each point on the buffer geospatial image is obtained, and based on the comparison results between the actual longitude and latitude and each buffer longitude and latitude, it is determined whether to send warning information about the monitored object approaching the target sensitive area to the user, including: obtaining a first buffer geospatial image corresponding to the first buffer area, and the first buffer longitude and latitude of each point on the first buffer geospatial image, and when the actual longitude and latitude are equal to any first buffer longitude and latitude within an error range, sending emergency warning information about the monitored object approaching the target sensitive area to the user; obtaining a second buffer geospatial image corresponding to the second buffer area, and the second buffer longitude and latitude of each point on the second buffer geospatial image, and when the actual longitude and latitude are equal to any second buffer longitude and latitude within an error range, sending important warning information about the monitored object approaching the target sensitive area to the user; obtaining a third buffer geospatial image corresponding to the third buffer area, and the third buffer longitude and latitude of each point on the third buffer geospatial image, and when the actual longitude and latitude are equal to any third buffer longitude and latitude within an error range, sending general warning information about the monitored object approaching the target sensitive area to the user.
[0015] In a second aspect, an embodiment of the present invention further provides a sensitive area proximity warning device, comprising:
[0016] A target image construction module is used to obtain a target longitude and latitude set corresponding to a target sensitive area, and use a geospatial library to construct a target geospatial image corresponding to the target sensitive area based on the target longitude and latitude set;
[0017] A buffer area determination module is used to determine a buffer area corresponding to a target sensitive area according to a target geospatial image and a set proximity distance;
[0018] A buffer image construction module is used to obtain a buffer latitude and longitude set corresponding to the buffer area, and generate a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set;
[0019] The regional warning module is used to obtain the actual longitude and latitude corresponding to each monitored object in the preset monitoring area, as well as the buffered longitude and latitude of each point on the buffered geographic space image, and determine whether to send a warning message to the user about the monitored object approaching the target sensitive area based on the comparison results of the actual longitude and latitude and each buffered longitude and latitude.
[0020] Optionally, the buffer image construction module is specifically used to: determine the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value; generate a buffer geospatial image corresponding to the buffer area according to the buffer zone longitude and latitude set, and the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set; wherein the buffer geospatial image is a three-dimensional image.
[0021] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0022] at least one processor; and
[0023] a memory communicatively connected to at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the sensitive area proximity warning method provided in any embodiment of the present invention.
[0025] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement the sensitive area proximity warning method provided by any embodiment of the present invention when executed.
[0026] The technical solution of the embodiment of the present invention can provide timely warning of the situation where the monitored object is close to the sensitive area, reduce the possibility of unrelated personnel entering the sensitive area, and improve the safety of the sensitive area.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 This is a flow chart of a sensitive area approach warning method provided according to Embodiment 1 of the present invention;
[0030] Figure 2 is a flow chart of another sensitive area approach warning method provided according to Embodiment 2 of the present invention;
[0031] Figure 3 This is a schematic diagram of the structure of a sensitive area approaching warning device provided according to Embodiment 3 of the present invention;
[0032] Figure 4 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Embodiment 1
[0036] Figure 1It is a flowchart of a sensitive area proximity warning method provided according to Example 1 of the present invention. This embodiment can be applied to determine whether a monitored object in a preset monitoring area is close to a sensitive area. The method can be executed by a sensitive area proximity warning device. The sensitive area proximity warning device can be implemented in the form of hardware and / or software. The sensitive area proximity warning device can be configured in an electronic device such as a computer.
[0037] like Figure 1 As shown, a sensitive area approaching warning method disclosed in this embodiment includes:
[0038] S110, obtaining a target longitude and latitude set corresponding to the target sensitive area, and using a geospatial library to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set.
[0039] In this embodiment, the target sensitive area may be an area that no unauthorized persons are allowed to enter. The target longitude and latitude set may be a set of longitude and latitude of each point on the target sensitive area.
[0040] In this step, specifically, one of the multiple candidate coordinate system numbers can be selected as the target coordinate system number, and the geospatial library can be used to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set and the target coordinate system number. There can be multiple candidate coordinate system numbers, such as EPSG:4326 for representing the geocentric coordinate system and EPSG:3857 for representing the Mercator projection coordinate system.
[0041] S120: Determine a buffer area corresponding to the target sensitive area according to the target geographic space image and the set proximity distance.
[0042] In this embodiment, the buffer area may be an area surrounding the target sensitive area. The buffer area may be used to send warning information to the user before the monitored object enters the target sensitive area.
[0043] In this step, specifically, the buffer zone analysis method in geographic spatial analysis can be used to determine the buffer zone surrounding the target sensitive area according to the set proximity distance.
[0044] Optionally, a buffer area corresponding to the target sensitive area is determined according to the target geospatial image and a set proximity distance, including: determining a first buffer area corresponding to the target sensitive area according to the target geospatial image and a first preset proximity distance; determining a first buffer area to be processed corresponding to the target sensitive area according to the target geospatial image and a second preset proximity distance, and processing the first buffer area to be processed according to the first buffer area to obtain a second buffer area; wherein the first buffer area to be processed includes the first buffer area and the second buffer area; determining a second buffer area to be processed corresponding to the target sensitive area according to the target geospatial library and a third preset proximity distance, and processing the second buffer area to be processed according to the first buffer area to obtain a third buffer area; wherein the second buffer area to be processed includes the first buffer area and the third buffer area.
[0045] In this embodiment, the first preset proximity distance is smaller than the second preset proximity distance, and the second preset proximity distance is smaller than the third preset proximity distance. The first buffer area includes the first buffer area and the second buffer area, and the second buffer area includes the first buffer area to be processed and the third buffer area. The first preset proximity distance, the second preset proximity distance, and the third preset proximity distance can be determined according to user needs and the longitude and latitude of each point on the target geospatial image. For example, the first preset proximity distance can be set to 200 meters, the second preset proximity distance can be set to 500 meters, and the third preset proximity distance can be set to 1000 meters.
[0046] Specifically, the area to be cropped in the first buffer area to be processed can be determined based on the first buffer area, and the area to be cropped in the first buffer area to be processed can be eliminated to obtain the second buffer area. The area to be cropped in the second buffer area to be processed can be determined based on the first buffer area to be processed, and the area to be cropped in the second buffer area to be processed can be eliminated to obtain the third buffer area.
[0047] S130, obtaining a buffer zone longitude and latitude set corresponding to the buffer zone, and generating a buffer geospatial image corresponding to the buffer zone according to the buffer zone longitude and latitude set.
[0048] In this step, specifically, one of the multiple candidate coordinate system numbers can be selected as the buffer coordinate system number, and a buffer geospatial image corresponding to the buffer area can be constructed using the geospatial library according to the buffer latitude and longitude set and the buffer coordinate system number.
[0049] S140, obtaining the actual longitude and latitude corresponding to each monitoring object in the preset monitoring area, and the buffered longitude and latitude of each point on the buffered geographic space image, and determining whether to send a warning message to the user that the monitoring object is close to the target sensitive area based on the comparison result of the actual longitude and latitude and the buffered longitude and latitude.
[0050] In this step, specifically, movable objects that appear in the preset monitoring area can be used as monitoring objects, and the actual latitude and longitude of the monitoring objects can be obtained. The preset monitoring area includes a target sensitive area and a buffer area, and movable objects are not limited to people and animals that are not allowed to enter the target sensitive area.
[0051] Then, it can be determined in turn whether the actual longitude and latitude and each buffer longitude and latitude are equal within the error range, and when the actual longitude and latitude and any buffer longitude and latitude are equal within the error range, it is determined that the monitoring object corresponding to the actual longitude and latitude is within the buffer area. At this time, an early warning message that the monitoring object is close to the target sensitive area can be sent to the user.
[0052] Optionally, the buffer longitude and latitude of each point on the buffer geospatial image is obtained, and based on the comparison results between the actual longitude and latitude and each buffer longitude and latitude, it is determined whether to send warning information about the monitored object approaching the target sensitive area to the user, including: obtaining a first buffer geospatial image corresponding to the first buffer area, and the first buffer longitude and latitude of each point on the first buffer geospatial image, and when the actual longitude and latitude are equal to any first buffer longitude and latitude within an error range, sending emergency warning information about the monitored object approaching the target sensitive area to the user; obtaining a second buffer geospatial image corresponding to the second buffer area, and the second buffer longitude and latitude of each point on the second buffer geospatial image, and when the actual longitude and latitude are equal to any second buffer longitude and latitude within an error range, sending important warning information about the monitored object approaching the target sensitive area to the user; obtaining a third buffer geospatial image corresponding to the third buffer area, and the third buffer longitude and latitude of each point on the third buffer geospatial image, and when the actual longitude and latitude are equal to any third buffer longitude and latitude within an error range, sending general warning information about the monitored object approaching the target sensitive area to the user.
[0053] The error range may be a range within which the point position corresponding to the actual longitude and latitude on the buffered geospatial image can be determined.
[0054] The advantage of such a setting is that by determining multiple buffer areas corresponding to the target sensitive areas and sending different levels of warning information to the user when the monitored object enters different buffer areas, the user can relatively accurately determine the location of the monitored object based on the warning information, thereby facilitating the timely allocation of staff to the target sensitive areas to improve the safety of the target sensitive areas.
[0055] The technical solution of this embodiment obtains a target longitude and latitude set corresponding to the target sensitive area, and uses the geospatial library to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set; determines the buffer area corresponding to the target sensitive area according to the target geospatial image and the set proximity distance; obtains a buffer latitude and longitude set corresponding to the buffer area, and generates a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set; obtains the actual longitude and latitude corresponding to each monitored object in the preset monitoring area, and the buffer longitude and latitude of each point on the buffer geospatial image, and determines whether to send a warning information of the monitored object approaching the target sensitive area to the user based on the comparison result of the actual longitude and latitude and each buffer longitude and latitude. The technical means solves the problem that the method of only identifying the visiting personnel at the entrance easily leads to the inability to timely increase the staff for identity verification when there are many visiting personnel, which greatly increases the possibility of unrelated personnel entering the sensitive area. It can realize timely warning of the situation where the monitored object is approaching the sensitive area, thereby improving the security of the sensitive area.
[0056] To illustrate the technical solution of this embodiment in detail, the following is an example of the code used to implement the technical solution of this embodiment:
[0057]
[0058]
[0059] The advantage of this setting is that through the geospatial library, a large amount of geographic data can be quickly processed and it can be accurately determined whether each monitored object is close to the target sensitive area.
[0060] Embodiment 2
[0061] Figure 2 It is a flowchart of another sensitive area proximity warning method provided according to the second embodiment of the present invention. This embodiment is based on the further optimization and expansion of the above embodiments and can be combined with various optional technical solutions in the above implementation methods.
[0062] like Figure 2 As shown, a sensitive area approaching warning method disclosed in this embodiment includes:
[0063] S210, obtaining a target longitude and latitude set corresponding to the target sensitive area, and using a geospatial library to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set.
[0064] S220: Determine a buffer area corresponding to the target sensitive area according to the target geographic space image and the set proximity distance.
[0065] S230, obtaining a buffer zone longitude and latitude set corresponding to the buffer area, and determining the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value.
[0066] In this step, specifically, the height value of the target sensitive area can be multiplied by the set ratio value, and the multiplication result can be used as the height value corresponding to each longitude and latitude data in the buffer longitude and latitude set. Alternatively, the height value corresponding to each longitude and latitude data in the buffer longitude and latitude set can be determined according to the height value corresponding to the target sensitive area, the set ratio value and user needs.
[0067] S240, generating a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set and the altitude value corresponding to each longitude and latitude data in the buffer latitude and longitude set.
[0068] In this embodiment, the buffered geospatial image is a three-dimensional image.
[0069] In this step, specifically, a preset 3D library (such as plotly) can be used to generate a buffer geospatial image corresponding to the buffer area based on the buffer latitude and longitude set and the height value corresponding to each longitude and longitude data in the buffer latitude and longitude set.
[0070] S250, obtaining the actual longitude and latitude corresponding to each monitoring object in the preset monitoring area, the buffered longitude and latitude of each point on the buffered geographic space image, the actual height value corresponding to the actual longitude and latitude, and the buffered height value corresponding to each buffered longitude and latitude.
[0071] S260: Determine whether to send a warning message to the user that the monitored object is approaching a target sensitive area based on the comparison result between the actual longitude and latitude and the buffer longitude and latitude, and the comparison result between the actual altitude and the buffer altitude.
[0072] In this step, specifically, when it is determined that the actual longitude and latitude are equal to any buffer longitude and latitude within an error range, it can be determined whether to send a warning message to the user that the monitored object is approaching a target sensitive area based on the comparison result between the actual height value and each buffer height value.
[0073] Optionally, based on the comparison results of the actual longitude and latitude with each buffer longitude and latitude, and the comparison results of the actual height value with each buffer height value, it is determined whether to send a warning message to the user that the monitored object is approaching the target sensitive area, including: determining the actual array corresponding to the actual longitude and latitude, and selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude; determining the current buffer array corresponding to the current buffer longitude and latitude, and using the actual array, the current buffer array, the preset relative tolerance and the preset absolute tolerance as parameters of the preset data comparison function to determine whether the actual longitude and latitude are approximately equal to the current buffer longitude and latitude; if so, obtaining the actual height value corresponding to the actual longitude and latitude, and the current buffer height value corresponding to the current buffer longitude and latitude, and sending a warning message to the user that the monitored object is approaching the target sensitive area when the actual height value is less than or equal to the current buffer height value; if not, returning to execute the step of selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude, until the actual longitude and latitude are approximately equal to the current buffer longitude and latitude, or the processing of the buffer longitude and latitude of all points on the buffered geographic space image is completed.
[0074] There may be multiple preset data comparison functions, such as numpy.isclose().
[0075] Exemplarily, the actual array, the current buffer array, the preset relative tolerance, and the preset absolute tolerance may be used as parameters of numpy.isclose() to determine whether the actual longitude and latitude are approximately equal to the current buffer longitude and latitude.
[0076] The advantage of this setting is that when the height of the buffer area is lower than the preset monitoring area, for example, the preset monitoring area is a five-story office building and the buffer area is the first and second floors of the office building, by comparing the actual longitude and latitude with the longitude and latitude of each buffer, as well as comparing the actual height value with the buffer height values, it is determined whether to send a warning information to the user that the monitored object is approaching the target sensitive area, thereby avoiding excessive issuance of warning information and improving the user experience.
[0077] The technical solution of this embodiment generates a buffer geospatial image corresponding to the buffer area through a buffer longitude and latitude set, and the altitude value corresponding to each longitude and latitude data in the buffer longitude and longitude set, and when it is determined that the actual longitude and latitude are equal to any buffer longitude and latitude within the error range, it is further determined whether to send a warning information about the monitored object approaching the target sensitive area to the user based on the comparison result between the actual altitude value and each buffer altitude value, which can improve the accuracy of the warning information sent to the user and enhance the user satisfaction.
[0078] Based on the above embodiments, in order to explain in detail the sensitive area proximity warning method and effect in the present invention, the following is a most detailed embodiment for explanation: Step 1, obtain the target longitude and latitude set corresponding to the target sensitive area, and use the geospatial library to construct the target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set. Step 2, determine the first buffer area corresponding to the target sensitive area according to the target geospatial image and the first preset proximity distance; determine the first buffer area to be processed corresponding to the target sensitive area according to the target geospatial image and the second preset proximity distance, and process the first buffer area to be processed according to the first buffer area to obtain the second buffer area; wherein the first buffer area to be processed includes the first buffer area and the second buffer area; determine the second buffer area to be processed corresponding to the target sensitive area according to the target geospatial library and the third preset proximity distance, and process the second buffer area to be processed according to the first buffer area to obtain the third buffer area; wherein the second buffer area to be processed includes the first buffer area to be processed and the third buffer area.
[0079] Step 3: Determine the height value corresponding to each buffer area according to the height value corresponding to the target sensitive area and the set ratio value. Step 4: Generate a first buffer geospatial image corresponding to the first buffer area according to the first buffer latitude and longitude set corresponding to the first buffer area and the height value corresponding to each buffer area. Generate a second buffer geospatial image corresponding to the second buffer area according to the second buffer latitude and longitude set corresponding to the second buffer area and the height value corresponding to each buffer area. Generate a third buffer geospatial image corresponding to the third buffer area according to the third buffer latitude and longitude set corresponding to the third buffer area and the height value corresponding to each buffer area.
[0080] Step 5: Obtain the actual longitude and latitude corresponding to each monitored object in the preset monitoring area, and the actual altitude value corresponding to the actual longitude and latitude. If the actual longitude and latitude are equal to the first buffer longitude and latitude of any point on the first buffer geospatial image within the error range, and the actual altitude value is less than or equal to the first buffer altitude value corresponding to the first buffer longitude and latitude, an emergency warning message is sent to the user that the monitored object is close to the target sensitive area.
[0081] If the actual longitude and latitude are equal to the second buffer longitude and latitude of any point on the second buffer geospatial image within the error range, and the actual height value is less than or equal to the second buffer height value corresponding to the second buffer longitude and latitude, then the important warning information of the monitored object approaching the target sensitive area is sent to the user. If the actual longitude and latitude are equal to the third buffer longitude and latitude of any point on the third buffer geospatial image within the error range, and the actual height value is less than or equal to the third buffer height value corresponding to the third buffer longitude and latitude, then the general warning information of the monitored object approaching the target sensitive area is sent to the user.
[0082] Embodiment 3
[0083] Figure 3 It is a structural diagram of a sensitive area proximity warning device provided according to Example 3 of the present invention. This embodiment can be used to determine whether a monitored object in a preset monitoring area is close to a sensitive area. The sensitive area proximity warning device can be implemented in the form of hardware and / or software and can be configured in an electronic device such as a computer.
[0084] like Figure 3 As shown, the sensitive area approaching warning device disclosed in this embodiment includes: a target image construction module 31, a buffer area determination module 32, a buffer image construction module 33 and a regional warning module 34, wherein:
[0085] A target image construction module 31 is used to obtain a target longitude and latitude set corresponding to the target sensitive area, and use a geospatial library to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set;
[0086] A buffer area determination module 32, for determining a buffer area corresponding to a target sensitive area according to a target geospatial image and a set proximity distance;
[0087] The buffer image construction module 33 is used to obtain a buffer latitude and longitude set corresponding to the buffer area, and generate a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set;
[0088] The regional warning module 34 is used to obtain the actual longitude and latitude corresponding to each monitoring object in the preset monitoring area, as well as the buffered longitude and latitude of each point on the buffered geographic space image, and determine whether to send a warning message to the user that the monitoring object is close to the target sensitive area based on the comparison result of the actual longitude and latitude and each buffered longitude and latitude.
[0089] The technical solution in this embodiment, through the mutual cooperation of the target image construction module, the buffer area determination module, the buffer image construction module and the area warning module, solves the problem that the method of only identifying the identity of visitors at the entrance may easily lead to the inability to promptly increase the number of staff for identity verification when there are many visitors, thereby greatly increasing the possibility of unrelated personnel entering sensitive areas. It can realize timely warning of the situation where the monitored object is close to the sensitive area, thereby improving the security of the sensitive area.
[0090] Optionally, the buffer image construction module 33 is specifically used to: determine the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value; generate a buffer geospatial image corresponding to the buffer area according to the buffer zone longitude and latitude set, and the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set; wherein the buffer geospatial image is a three-dimensional image.
[0091] Optionally, the regional warning module 34 is specifically used to: obtain the actual height value corresponding to the actual longitude and latitude, and the buffer height values corresponding to each buffer longitude and latitude, and determine whether to send a warning message to the user that the monitored object is approaching the target sensitive area based on the comparison results between the actual longitude and latitude and each buffer longitude and latitude, and the comparison results between the actual height value and each buffer height value.
[0092] Optionally, based on the comparison results of the actual longitude and latitude with each buffer longitude and latitude, and the comparison results of the actual height value with each buffer height value, it is determined whether to send a warning message to the user that the monitored object is approaching the target sensitive area, including: determining the actual array corresponding to the actual longitude and latitude, and selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude; determining the current buffer array corresponding to the current buffer longitude and latitude, and using the actual array, the current buffer array, the preset relative tolerance and the preset absolute tolerance as parameters of the preset data comparison function to determine whether the actual longitude and latitude are approximately equal to the current buffer longitude and latitude; if so, obtaining the actual height value corresponding to the actual longitude and latitude, and the current buffer height value corresponding to the current buffer longitude and latitude, and sending a warning message to the user that the monitored object is approaching the target sensitive area when the actual height value is less than or equal to the current buffer height value; if not, returning to execute the step of selecting one from each buffer longitude and latitude in turn as the current buffer longitude and latitude, until the actual longitude and latitude are approximately equal to the current buffer longitude and latitude, or the processing of the buffer longitude and latitude of all points on the buffered geographic space image is completed.
[0093] Optionally, the buffer area determination module 32 is specifically used to: determine a first buffer area corresponding to the target sensitive area according to the target geospatial image and a first preset proximity distance; determine a first buffer area to be processed corresponding to the target sensitive area according to the target geospatial image and a second preset proximity distance, and process the first buffer area to be processed according to the first buffer area to obtain a second buffer area; wherein the first buffer area to be processed includes the first buffer area and the second buffer area; determine the second buffer area to be processed corresponding to the target sensitive area according to the target geospatial library and a third preset proximity distance, and process the second buffer area to be processed according to the first buffer area to obtain a third buffer area; wherein the second buffer area to be processed includes the first buffer area and the third buffer area.
[0094] Optionally, the regional warning module 34 is specifically used to: obtain a first buffer geospatial image corresponding to the first buffer area, and the first buffer longitude and latitude of each point on the first buffer geospatial image, and when the actual longitude and latitude are equal to any first buffer longitude and latitude within an error range, send emergency warning information about the monitored object approaching the target sensitive area to the user; obtain a second buffer geospatial image corresponding to the second buffer area, and the second buffer longitude and latitude of each point on the second buffer geospatial image, and when the actual longitude and latitude are equal to any second buffer longitude and latitude within an error range, send important warning information about the monitored object approaching the target sensitive area to the user; obtain a third buffer geospatial image corresponding to the third buffer area, and the third buffer longitude and latitude of each point on the third buffer geospatial image, and when the actual longitude and latitude are equal to any third buffer longitude and latitude within an error range, send general warning information about the monitored object approaching the target sensitive area to the user.
[0095] The sensitive area approaching warning device provided in the embodiment of the present invention can execute the sensitive area approaching warning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, reference can be made to the description in any method embodiment of the present application.
[0096] Embodiment 4
[0097] Figure 4 FIG. 1 is a schematic diagram showing the structure of an electronic device 10 that can be used to implement an embodiment of the present invention. Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0098] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0099] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a sensitive area proximity warning method.
[0100] In some embodiments, the sensitive area approaching warning method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the sensitive area approaching warning method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the sensitive area approaching warning method in any other appropriate manner (for example, by means of firmware).
[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A sensitive area approach warning method, characterized in that: The method comprises: Acquire a target longitude and latitude set corresponding to a target sensitive area, and construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set using a geospatial library; Determining a buffer area corresponding to the target sensitive area according to the target geospatial image and a set proximity distance; Acquire a buffer zone longitude and latitude set corresponding to the buffer zone, and generate a buffer geospatial image corresponding to the buffer zone according to the buffer zone longitude and latitude set; The actual longitude and latitude corresponding to each monitoring object in the preset monitoring area and the buffered longitude and latitude of each point on the buffered geographic space image are obtained, and based on the comparison results of the actual longitude and latitude and the buffered longitude and latitude, it is determined whether to send a warning information to the user that the monitoring object is close to the target sensitive area.
2. The method according to claim 1, characterized in that Generating a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set, including: Determine the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value; Generate a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set and the altitude value corresponding to each longitude and latitude data in the buffer latitude and longitude set; Wherein, the buffered geospatial image is a three-dimensional image.
3. The method according to claim 2, characterized in that According to the comparison results between the actual longitude and latitude and each buffer longitude and latitude, determine whether to send the user an early warning message of the monitored object approaching the target sensitive area, including: Obtain the actual height value corresponding to the actual longitude and latitude, and the buffer height values corresponding to each of the buffer longitude and latitude, and determine whether to send a warning message to the user that the monitored object is approaching a target sensitive area based on the comparison results of the actual longitude and latitude with each buffer longitude and latitude, and the comparison results of the actual height value with each buffer height value.
4. The method according to claim 3, characterized in that According to the comparison results between the actual longitude and latitude and each buffer longitude and latitude, and the comparison results between the actual altitude and each buffer altitude, it is determined whether to send the user an early warning information of the monitored object approaching the target sensitive area, including: Determine an actual array corresponding to the actual longitude and latitude, and select one from each buffer longitude and latitude in turn as the current buffer longitude and latitude; Determine a current buffer array corresponding to the current buffer longitude and latitude, and use the actual array, the current buffer array, the preset relative tolerance and the preset absolute tolerance as parameters of a preset data comparison function to determine whether the actual longitude and latitude are approximately equal to the current buffer longitude and latitude; If yes, then obtain the actual height value corresponding to the actual longitude and latitude, and the current buffer height value corresponding to the current buffer longitude and latitude, and send a warning message to the user that the monitored object is approaching the target sensitive area when the actual height value is less than or equal to the current buffer height value; If not, return to the step of selecting one of the buffer longitudes and latitudes in turn as the current buffer longitude and latitude, until the actual longitude and latitude are approximately equal to the current buffer longitude and latitude, or the processing of the buffer longitude and latitude of all points on the buffered geospatial image is completed.
5. The method according to claim 1, characterized in that Determining a buffer area corresponding to the target sensitive area according to the target geospatial image and the set proximity distance includes: Determining a first buffer area corresponding to the target sensitive area according to the target geospatial image and a first preset proximity distance; Determine a first buffer area to be processed corresponding to the target sensitive area according to the target geospatial image and the second preset proximity distance, and process the first buffer area to be processed according to the first buffer area to obtain a second buffer area; Wherein, the first buffer area includes a first buffer area and a second buffer area; Determine a second buffer area to be processed corresponding to the target sensitive area according to the target geographic space library and the third preset proximity distance, and process the second buffer area to be processed according to the first buffer area to be processed to obtain a third buffer area; The second buffer area includes a first buffer area to be processed and a third buffer area.
6. The method according to claim 5, characterized in that Obtain the buffered longitude and latitude of each point on the buffered geospatial image, and determine whether to send warning information about the monitored object approaching the target sensitive area to the user based on the comparison results of the actual longitude and latitude and each buffered longitude and latitude, including: Acquire a first buffer geospatial image corresponding to the first buffer area, and the first buffer longitude and latitude of each point on the first buffer geospatial image, and send emergency warning information of the monitored object approaching the target sensitive area to the user when the actual longitude and latitude are equal to any first buffer longitude and latitude within an error range; Acquire a second buffer geospatial image corresponding to the second buffer area, and the second buffer longitude and latitude of each point on the second buffer geospatial image, and send important warning information about the monitored object approaching the target sensitive area to the user when the actual longitude and latitude are equal to any second buffer longitude and latitude within an error range; Obtain a third buffer geospatial image corresponding to the third buffer area, and the third buffer longitude and latitude of each point on the third buffer geospatial image, and when the actual longitude and latitude are equal to any third buffer longitude and latitude within an error range, send a general warning message to the user that the monitored object is approaching the target sensitive area.
7. A sensitive area approach warning device, characterized in that: The device comprises: A target image construction module is used to obtain a target longitude and latitude set corresponding to a target sensitive area, and use a geospatial library to construct a target geospatial image corresponding to the target sensitive area according to the target longitude and latitude set; A buffer area determination module, used to determine a buffer area corresponding to the target sensitive area according to the target geospatial image and a set proximity distance; A buffer image construction module, used for acquiring a buffer latitude and longitude set corresponding to the buffer area, and generating a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set; The regional warning module is used to obtain the actual longitude and latitude corresponding to each monitored object in the preset monitoring area, as well as the buffered longitude and latitude of each point on the buffered geographic space image, and determine whether to send a warning message to the user about the monitored object approaching the target sensitive area based on the comparison results of the actual longitude and latitude and each buffered longitude and latitude.
8. The device according to claim 7, characterized in that The buffer image construction module is specifically used for: Determine the height value corresponding to each longitude and latitude data in the buffer zone longitude and latitude set according to the height value corresponding to the target sensitive area and the set ratio value; Generate a buffer geospatial image corresponding to the buffer area according to the buffer latitude and longitude set and the altitude value corresponding to each longitude and latitude data in the buffer latitude and longitude set; Wherein, the buffered geospatial image is a three-dimensional image.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the sensitive area proximity warning method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the sensitive area proximity warning method according to any one of claims 1 to 6 when executed.