Patrol monitoring method, system and device, storage medium and electronic equipment
Patent Information
- Application Number
- CN202611011121.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-10-27
AI Technical Summary
这种逐点遍历的方式在巡检点数量较大时,计算开销大、处理效率低,难以满足实时监控的高时效要求
[0015]通过上述技术方案,通过实时获取所述巡检人员的定位信息;基于所述巡检人员的定位信息,判断所述巡检人员是否在巡检区域内,得到监控结果;所述巡检区域是基于授权工作范围和巡检路线生成的带状闭合多边形区域。通过基于授权工作范围和巡检路线生成的带状闭合多边形区域,在监控时,只需要对定位和带状闭合多边形区域的包含关系判断,就可以快速判断巡检人员是否在巡检区域内,提高了判断效率,从而可以快速得到监控结果,实时响应性更强,能够满足实时监控的高时效要求。同时还大幅降低了计算成本。对于拐弯处的判断,由于生成的带状闭合多边形区域在拐弯处进行了平滑处理,可以有效减少误判的可能,提高了监控准确性。
Smart Images

Figure CN122990820A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inspection technology, specifically to an inspection monitoring method, an inspection monitoring system, an inspection monitoring device, a machine-readable storage medium, and an electronic device. Background Technology
[0002] In industrial settings such as chemical plants that require manual inspections, it is necessary to identify in real time whether inspection personnel have exceeded their authorized work scope in order to ensure the safety of critical facilities.
[0003] Current technology employs a monitoring method based on comparing each inspection point: a large number of inspection points are pre-set along the planned inspection route. After obtaining the location coordinates of the inspection personnel in real time, the distance between these coordinates and each inspection point on the planned route is calculated sequentially. The calculated result is then compared with a preset distance threshold to determine whether the personnel are outside the designated area. For example, when the inspection route contains 1000 inspection points, each location update requires 1000 distance comparisons. This point-by-point traversal method incurs high computational overhead and low processing efficiency when the number of inspection points is large, making it difficult to meet the high timeliness requirements of real-time monitoring. Summary of the Invention
[0004] The purpose of this invention is to provide an inspection and monitoring method, an inspection and monitoring system, an inspection and monitoring device, a machine-readable storage medium, and an electronic device. This inspection and monitoring method improves judgment efficiency, can quickly obtain monitoring results, and has stronger real-time responsiveness.
[0005] To achieve the above objectives, the first aspect of this application provides an inspection and monitoring method, comprising: Real-time location information of inspection personnel; Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area, and the monitoring results are obtained; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0006] In this embodiment of the application, the process of generating the inspection area includes: Obtain the authorized work scope and inspection route, wherein the inspection route includes multiple orderly inspection points; Connect the multiple ordered inspection points into a continuous line to obtain the inspection line; Based on the authorized working range, the inspection line is used as the central axis to expand outwards to the left and right sides and the outer side of the endpoints, resulting in a strip-shaped closed polygonal region.
[0007] In this embodiment of the application, the step of expanding outwards to the left and right sides and the outer edge of the endpoints based on the authorized working range, with the inspection line as the central axis, to obtain a strip-shaped closed polygonal region includes: Based on the authorized working range, the diffusion distance parameter is determined; The diffusion distance parameter is converted to a unit to obtain the buffer diffusion parameter; With the inspection line as the central axis, the diffusion extends to the left and right sides and the outer side of the endpoints according to the buffer diffusion parameters, resulting in a strip-shaped closed polygonal region.
[0008] In this embodiment of the application, it also includes: The strip-shaped closed polygon region is converted to WKT format and stored in the memory cache.
[0009] In this embodiment of the application, determining whether the inspection personnel are within the inspection area based on their location information, and obtaining the monitoring result, includes: Obtain inspection task information; Based on the inspection task information, the corresponding inspection area is matched; If a corresponding inspection area is successfully matched, the location information of the inspection personnel is used to determine whether the inspection personnel are within the inspection area corresponding to the inspection task.
[0010] In this embodiment of the application, it also includes: If no matching inspection area is found, obtain the authorized work area and inspection route; Based on the authorized work scope and the inspection route, an inspection area corresponding to the inspection task is generated. Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area corresponding to the inspection task.
[0011] A second aspect of this application provides an inspection and monitoring system, including a positioning terminal and a backend server, wherein the positioning terminal is worn by inspection personnel. The positioning terminal is used to obtain the location information of the inspection personnel in real time and send the location information of the inspection personnel to the backend server. The backend server is used to determine whether the inspection personnel are within the inspection area based on their location information, and to obtain the monitoring results; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0012] A third aspect of this application provides an inspection and monitoring device, comprising: The acquisition module is used to acquire the location information of inspection personnel in real time. The monitoring module is used to determine whether the inspection personnel are within the inspection area based on their location information, and to obtain the monitoring results; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0013] A fourth aspect of this application provides an electronic device, the electronic device comprising: At least one processor; A memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the above-mentioned inspection and monitoring method by executing the instructions stored in the memory.
[0014] The fifth aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, configure the processor to perform the aforementioned inspection and monitoring method.
[0015] The above technical solution acquires the location information of the inspection personnel in real time; based on this location information, it determines whether the inspection personnel are within the inspection area, thus obtaining the monitoring result. The inspection area is a closed polygonal region generated based on the authorized work range and inspection route. By using this closed polygonal region, during monitoring, only the inclusion relationship between the location and the closed polygonal region needs to be determined to quickly ascertain whether the inspection personnel are within the inspection area, improving efficiency and enabling rapid monitoring results. This provides stronger real-time responsiveness and meets the high timeliness requirements of real-time monitoring. It also significantly reduces computational costs. For the judgment at corners, the generated closed polygonal region is smoothed at corners, effectively reducing the possibility of misjudgment and improving monitoring accuracy.
[0016] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0017] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 The illustration shows a flowchart of an inspection and monitoring method according to an embodiment of this application; Figure 2 This diagram schematically illustrates the overall interaction architecture of a system according to an embodiment of this application. Figure 3 This illustration schematically shows a diagram of the generation of an inspection area according to an embodiment of this application; Figure 4 The diagram illustrates the internal structure of a computer device according to an embodiment of this application.
[0018] Explanation of reference numerals in the attached figures 210 - Acquisition module; 220 - Monitoring module; A01 - Processor; A02 - Network interface; A03 - Internal memory; A04 - Display screen; A05 - Input device; A06 - Non-volatile storage medium; B01 - Operating system; B02 - Computer program. Detailed Implementation
[0019] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.
[0020] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0021] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0022] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0023] Please refer to Figure 1 , Figure 1 The illustration shows a flowchart of an inspection and monitoring method according to an embodiment of this application. This embodiment provides an inspection and monitoring method, including the following steps: Step 110: Obtain the location information of the inspection personnel in real time; In this embodiment, the aforementioned location information may refer to the location coordinates of the inspection personnel. These location coordinates may refer to latitude and longitude coordinates, which can be obtained by collecting the real-time latitude and longitude coordinates of the personnel at a fixed frequency through a positioning terminal (such as Beidou) worn by the inspection personnel.
[0024] Step 120: Based on the location information of the inspection personnel, determine whether the inspection personnel are within the inspection area and obtain the monitoring results; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0025] In this embodiment, after obtaining the location information, the location coordinates of the inspection personnel can be compared to see if they are within the inspection area, thus determining whether the inspection personnel are within the inspection area. When the location coordinates are latitude and longitude coordinates, they can be formatted into standard point geometric text before comparison. Monitoring results include those exceeding the authorized working range and those not exceeding the authorized working range. If it is determined that the inspection personnel have exceeded the authorized working range, an alarm mechanism can be immediately triggered, generating alarm information and pushing the alarm information to the monitoring screen and the mobile devices of management personnel.
[0026] The aforementioned inspection area is a strip-shaped closed polygonal region generated based on the authorized work area and inspection route. This strip-shaped closed polygonal region encompasses the inspection route and is a closed polygonal region with a solid width. The inspection area represents the area that inspection personnel are allowed to access during inspections. This inspection area can be predetermined and used directly afterwards.
[0027] It should be noted that when there are multiple different inspection tasks, different inspection tasks can have different inspection areas, that is, the inspection area corresponds to the specific inspection task.
[0028] In some embodiments, the process of generating the inspection area includes: First, obtain the authorized work scope and inspection route, which includes multiple orderly inspection points; In this embodiment, the authorized work scope is a compliant inspection range determined by the user based on actual conditions. Specifically, it can be determined according to the actual inspection route width or safety management requirements. For example, it may require inspection personnel to operate within a certain range to the left and right of the inspection route. This can be achieved by reading preset inspection route information from a database. This information is typically represented as an ordered list of coordinate points, i.e., multiple ordered inspection points. For instance, the planned sequence of inspection points can be represented as P1, P2, ..., Pn.
[0029] Then, the multiple ordered inspection points are connected into a continuous line to obtain the inspection line; In this embodiment, each inspection point can be connected sequentially to form a polyline, thus obtaining an inspection line. For example, in the example above, a polyline connecting P1 to Pn can be constructed in memory. At this time, the polyline has no width, only a length attribute.
[0030] In practical implementation, the TrackToPolygon utility class in a geometric calculation library or GIS (Geographic Information System) can be used to call GeometryFactory. The TrackToPolygon utility class is primarily responsible for the static data conversion "from point to polygon." GeometryFactory is specifically designed to create various geometric objects. Specifically, the acquired set of coordinate points is converted into a Coordinate array, which represents a series of ordered coordinate points. A LineString object is then instantiated. The LineString object is a one-dimensional geometric object representing a polyline formed by connecting two or more points sequentially with straight line segments, thus obtaining the inspection line.
[0031] Finally, based on the authorized working range, the inspection line is used as the central axis to expand outwards to the left and right sides and the outer side of the endpoints, resulting in a strip-shaped closed polygonal region.
[0032] In this embodiment, the strip-shaped closed polygonal region completely covers the inspection route and its surrounding tolerance range, and the connection style at the corners is automatically processed.
[0033] By obtaining the authorized working range and inspection route, the multiple ordered inspection points are connected into a continuous line to obtain the inspection line. Based on the authorized working range, the inspection line is used as the central axis to expand outward to the left and right sides and the outer side of the endpoints to obtain a strip-shaped closed polygonal region. This realizes the topology construction process of constructing lines from points and expanding areas from lines, so that the strip-shaped closed polygonal region fully meets the inspection and monitoring requirements and avoids the occurrence of blind spots in judgment.
[0034] In some embodiments, the step of expanding outwards to the left and right sides and the outer edge of the endpoints based on the authorized working range, with the inspection line as the central axis, to obtain a strip-shaped closed polygonal region includes: First, based on the authorized working range, the diffusion distance parameter is determined; In this embodiment, the diffusion distances on the left and right sides and the outer edge of the endpoints can be determined based on the authorized working range, i.e., the diffusion distance parameters.
[0035] Then, the diffusion distance parameter is converted to a unit to obtain the buffer diffusion parameter; In this embodiment, since the positioning coordinate system is usually based on latitude and longitude coordinates (unit: degrees), and the authorized working range set by the user is usually based on physical distance (unit: meters), unit conversion can be performed. The unit conversion can be calculated using a simplified spherical distance conversion formula, which is as follows: , in, For diffusion distance parameters, such as unilateral diffusion distance (meters), 6350 is an approximate value for the Earth's polar radius (kilometers); the final result is... It is the value after converting "meters" to "degrees", that is, the buffer diffusion parameter.
[0036] Finally, with the inspection line as the central axis, the diffusion proceeds to the left and right sides and the outer side of the endpoints according to the buffer diffusion parameters, resulting in a strip-shaped closed polygonal region.
[0037] In this embodiment, the inspection line is the central axis, and the left and right sides diffuse according to the buffer diffusion parameters. For the endpoints, the diffusion extends outward according to the buffer diffusion parameters, thereby forming a strip-shaped closed polygonal region.
[0038] For example, please see Figure 2 , Figure 2 The diagram illustrates the overall interactive architecture of the system according to an embodiment of this application. In the example above, P1~Pn represent a series of discrete latitude and longitude coordinate points for planning the inspection route; L represents a linear geometric object (LineString) generated by connecting the discrete points in sequence; d represents a preset inspection area diffusion distance (i.e., buffer diffusion parameter); Area represents a closed inspection area surface generated by expanding the linear geometric object L to both sides by a distance d, i.e., a strip-shaped closed polygonal area.
[0039] By determining the diffusion distance parameter based on the authorized working range, and by converting the unit of the diffusion distance parameter to map the physical distance to latitude and longitude coordinates, so that the inspection line and the diffusion distance parameter are in the same unit, and with the inspection line as the central axis, the diffusion can be carried out to the left and right sides and the outer side of the endpoint according to the buffer diffusion parameter, so as to obtain a more accurate strip-shaped closed polygonal area.
[0040] It should be noted that when constructing the inspection area, the inspection points can be grouped first, and a strip-shaped closed polygonal region corresponding to each group of inspection points can be constructed according to the above method. Finally, the strip-shaped closed polygonal regions corresponding to each group of inspection points can be combined to obtain the final inspection area.
[0041] For example, when there are bends in some inspection routes, the inspection points can be split at the bends, and multiple inspection points can be divided into multiple groups. For each group of inspection points, an authorized working range can be set, thus forming a strip-shaped closed polygonal area with different authorized working ranges. Finally, the strip-shaped closed polygonal areas corresponding to each group of inspection points are combined according to the order of the inspection points to obtain the final inspection area. In this way, the final inspection area is smoothed at the bends, which helps to reduce the possibility of false alarms.
[0042] In some embodiments, the method further includes: converting the strip-shaped closed polygonal region into WKT format and storing it in a memory cache.
[0043] In this embodiment, the generated strip-shaped closed polygon region can be converted into a Well-Known Text (WKT) format string by extracting its boundary points. To address performance issues in complex scenarios, a caching mechanism can be introduced, whereby the strip-shaped closed polygon region is converted to WKT format and stored in a memory cache. Subsequent checks only require reading from the cache, eliminating the need for repeated execution. It can also be stored in a Redis cache with a reasonable expiration time to ensure the validity of the strip-shaped closed polygon region.
[0044] In some embodiments, determining whether the inspection personnel are within the inspection area based on their location information, and obtaining the monitoring result, includes: First, obtain inspection task information; In this embodiment, the aforementioned inspection task information may be the inspection task name, inspection task identifier, etc., and may be input by the user.
[0045] Then, based on the inspection task information, the corresponding inspection area is matched; In this embodiment, inspection areas can be pre-stored for different inspection tasks. However, the stored inspection areas may expire, become invalid, or be deleted, so matching can be performed first. The matching can be performed by the inspection task name or inspection task identifier, etc., to find the corresponding inspection area.
[0046] Then, if the corresponding inspection area is successfully matched, the location information of the inspection personnel is used to determine whether the inspection personnel are in the inspection area corresponding to the inspection task.
[0047] In this embodiment, if a corresponding inspection area can be matched, it is possible to determine whether the inspection personnel are in the inspection area corresponding to the inspection task based on their location information, that is, to perform real-time monitoring and identification.
[0048] Accordingly, if no matching inspection area is found, the following steps can be performed: First, obtain the authorized work scope and inspection route; Then, based on the authorized work scope and the inspection route, the inspection area corresponding to the inspection task is generated; In this embodiment, the specific process of generating the inspection area corresponding to the inspection task has been described above and will not be repeated here.
[0049] Then, based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area corresponding to the inspection task.
[0050] In this embodiment, after regenerating the inspection area corresponding to the inspection task, the real-time monitoring and identification process is executed again.
[0051] By matching the corresponding inspection area based on the inspection task information, if a match is successful, the location information of the inspection personnel is used to determine whether the inspection personnel are within the inspection area. Otherwise, the inspection area is generated first, and then the location information of the inspection personnel is used to determine whether the inspection personnel are within the inspection area. This ensures the reliability of inspection monitoring.
[0052] In practical implementation, the corresponding inspection area can be retrieved from the cache based on the inspection task assigned to the inspector. The core logic can be determined by calling the `contains` method in `PolygonUtil.java`. This method uses computational geometry algorithms to accurately determine whether a point falls within the closed boundary of a polygon. The `contains` method encapsulates the complex spatial topology calculation process, allowing upper-level business logic to obtain a boolean result simply by passing two strings (the inspector's location information and the inspection area corresponding to the task). When performing real-time location determination, the cached geometric object is directly called to perform efficient `contains` operations, avoiding frequent database queries and geometric construction overhead.
[0053] In actual operation, the data flow is as follows: 1. During initialization / modification: The business system calls TrackToPolygon to generate a coordinate set, converts it to WKT, and writes it to the Redis cache.
[0054] 2. During real-time monitoring: Receive location points - Read Redis cache - Call PolygonUtil.contains - Output results.
[0055] Before adopting caching technology, for each received location point, the system needed to retrieve route points from the database, rebuild the LineString, and re-execute the inspection area calculation. For a system with 1000 inspection points and a location frequency of 1 second, this would impose a huge CPU burden. After adopting the caching design, the complex geometry construction process is only executed once when the route is created, and the real-time judgment stage only involves memory reading and geometry comparison, which greatly improves the algorithm's running efficiency and response speed in high-concurrency scenarios.
[0056] In the above implementation process, the location information of the inspection personnel is acquired in real time; based on the location information, it is determined whether the inspection personnel are within the inspection area, thus obtaining the monitoring result; the inspection area is a strip-shaped closed polygonal region generated based on the authorized working range and the inspection route. By using this strip-shaped closed polygonal region generated based on the authorized working range and the inspection route, during monitoring, only the inclusion relationship between the location and the strip-shaped closed polygonal region needs to be determined to quickly determine whether the inspection personnel are within the inspection area, improving judgment efficiency and enabling rapid acquisition of monitoring results. This provides stronger real-time responsiveness, meeting the high timeliness requirements of real-time monitoring, while also significantly reducing computational costs. For the judgment at corners, since the generated strip-shaped closed polygonal region is smoothed at corners, the possibility of misjudgment can be effectively reduced, improving monitoring accuracy.
[0057] This embodiment provides an inspection and monitoring system, including a positioning terminal and a backend server, wherein the positioning terminal is worn by inspection personnel. The positioning terminal is used to obtain the location information of the inspection personnel in real time and send the location information of the inspection personnel to the backend server. The backend server is used to determine whether the inspection personnel are within the inspection area based on their location information, and to obtain the monitoring results; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0058] In this embodiment, the backend server can be configured with a computing server containing at least 8 CPU cores and 64GB of memory. Due to the large amount of spatial geometric calculations and high-concurrency data processing involved, a high-performance CPU and sufficient memory are fundamental to ensuring system responsiveness. The positioning terminal is a positioning device (such as a positioning card) worn by inspection personnel, supporting BeiDou satellite positioning. The positioning terminal may have 4G / 5G or other communication modules, capable of sending real-time data packets to the backend server at a set frequency to transmit the inspection personnel's positioning information to the backend server.
[0059] The backend server continuously performs judgments in a loop during the inspection personnel's work, at a frequency consistent with the reporting frequency of the positioning terminal. This may include the following steps: 1. The backend server receives data packets reported by the positioning terminal, parses out the inspection personnel information, current longitude and current latitude, and assembles the coordinates into a WKT point format string; 2. Based on the inspection tasks associated with the inspection personnel, the system first checks the cache. Cache hit: The system directly retrieves the WKT string of the inspection area generated during the initialization phase. Cache miss (abnormal situation): A degradation strategy is triggered, the inspection area is regenerated and written back to the cache to ensure high system availability.
[0060] 3. Call the core utility class's method to calculate whether the point is inside or on the polygon's boundary. Output: Returns a boolean value of true (within range) or false (out of range).
[0061] 4. If the system returns true: the personnel's behavior is deemed compliant, and the system records the location to the historical trajectory database for subsequent work hour statistics and trajectory playback. If the system returns false: the personnel are deemed to have crossed the boundary. The system immediately generates an alarm record, including the time, location, and personnel information of the boundary crossing, and pushes it to the monitoring screen. At the same time, it issues a command to the on-site audible and visual alarm or personnel positioning card to provide a vibration alert.
[0062] Taking a chemical industrial park as an example, an on-site test was conducted, and the specific process included: 1. Test preset conditions Route planning: Select an "L"-shaped inspection section containing 10 key coordinate points (the more coordinate points, the more accurate the algorithm): Parameter settings: Set the allowable inspection deviation range distance=5 meters.
[0063] 2. Algorithm Execution Process (1) The system calls TrackToPolygon to connect the 10 points.
[0064] (2) Calculate bufferDistance.
[0065] (3) Perform a buffer operation on the line segment to generate a continuous bent strip polygon with a width of about 10 meters (5 meters on each side).
[0066] (4) Convert the polygon into WKT and store it in Redis.
[0067] 3. Real-time judgment test Scenario 1 (Routine Inspection): The system determines that everything is normal.
[0068] Scenario 2 (Internal Cut-off at a Turn): The inspection personnel are located inside the turn at the inspection point, at coordinate P2. Although P2 is not on the inspection line, due to the buffer operation generating a fan-shaped or flat-topped connected region at the corner, P2 is still located within the polygon. This effectively solves the blind spot problem at turns in traditional point-to-point comparisons.
[0069] Scenario 3 (Boundary Exceedance Alarm): The system successfully triggered the alarm.
[0070] By introducing a topology calculation library, the business problem of judging the compliance of inspection routes is transformed into a geometric mathematical problem of "point-surface spatial inclusion relationship calculation". TrackToPolygon achieves full coverage of straight lines, polylines, and turns without blind spots. Through the static encapsulation of PolygonUtil and Redis caching strategy, low-latency response is achieved in high-concurrency scenarios. Dynamic diffusion distance parameters enable precise adaptation to different industrial physical environments.
[0071] Please refer to Figure 3 , Figure 3 A schematic diagram illustrating the generation of an inspection area according to an embodiment of this application is provided. This embodiment provides an inspection monitoring device, including an acquisition module 210 and a monitoring module 220, wherein: The acquisition module 210 is used to acquire the location information of the inspection personnel in real time; The monitoring module 220 is used to determine whether the inspection personnel are in the inspection area based on the location information of the inspection personnel, and to obtain the monitoring results; the inspection area is a strip-shaped closed polygon area generated based on the authorized work range and inspection route.
[0072] The inspection and monitoring device includes a processor and a memory. The acquisition module 210 and the monitoring module 220 are stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.
[0073] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and monitoring can be implemented by adjusting kernel parameters.
[0074] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0075] This invention provides a machine-readable storage medium storing a program that, when executed by a processor, implements the inspection and monitoring method.
[0076] This invention provides a processor for running a program, wherein the program executes the inspection and monitoring method during runtime.
[0077] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown in the figure, the computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A06. The network interface A02 is used for communication with external terminals via a network connection. When the computer program is executed by the processor A01, it implements a patrol monitoring method. The display screen A04 can be an LCD screen or an e-ink display screen. The input device A05 can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0078] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0079] In one embodiment, the inspection and monitoring method system provided in this application can be implemented as a computer program, and the computer program can be implemented in the form of, for example, Figure 4 The system runs on the computer device shown. The computer device's memory can store the various program modules that make up the inspection and monitoring method system, for example, Figure 3 The acquisition module 210 and monitoring module 220 are shown. The computer program, composed of these modules, causes the processor to execute the steps in the inspection and monitoring methods of the various embodiments of this application described in this specification.
[0080] Figure 4 The computer equipment shown can be used as follows Figure 3 The acquisition module 210 in the inspection and monitoring system shown executes step 110. The computer device can execute step 120 through the monitoring module 220.
[0081] This application provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the above-described inspection and monitoring method by executing the instructions stored in the memory. When the processor executes the instructions, it performs the following steps: Real-time location information of inspection personnel; Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area, and the monitoring results are obtained; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
[0082] In one embodiment, the process of generating the inspection area includes: Obtain the authorized work scope and inspection route, wherein the inspection route includes multiple orderly inspection points; Connect the multiple ordered inspection points into a continuous line to obtain the inspection line; Based on the authorized working range, the inspection line is used as the central axis to expand outwards to the left and right sides and the outer side of the endpoints, resulting in a strip-shaped closed polygonal region.
[0083] In one embodiment, the process of expanding outwards from the inspection line as the central axis, based on the authorized working range, to the left and right sides and the outer edge of the endpoints, to obtain a strip-shaped closed polygonal region includes: Based on the authorized working range, the diffusion distance parameter is determined; The diffusion distance parameter is converted to a unit to obtain the buffer diffusion parameter; With the inspection line as the central axis, the diffusion extends to the left and right sides and the outer side of the endpoints according to the buffer diffusion parameters, resulting in a strip-shaped closed polygonal region.
[0084] In one embodiment, it also includes: The strip-shaped closed polygon region is converted to WKT format and stored in the memory cache.
[0085] In one embodiment, determining whether the inspection personnel are within the inspection area based on their location information, and obtaining the monitoring result, includes: Obtain inspection task information; Based on the inspection task information, the corresponding inspection area is matched; If a corresponding inspection area is successfully matched, the location information of the inspection personnel is used to determine whether the inspection personnel are within the inspection area corresponding to the inspection task.
[0086] In one embodiment, it also includes: If no matching inspection area is found, obtain the authorized work area and inspection route; Based on the authorized work scope and the inspection route, an inspection area corresponding to the inspection task is generated. Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area corresponding to the inspection task.
[0087] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0089] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0090] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0091] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0092] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0093] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0094] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0095] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A patrol monitoring method, characterized in that, include: Real-time location information of inspection personnel; Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area, and the monitoring results are obtained. The inspection area is a closed polygonal region generated based on the authorized work area and inspection route.
2. The inspection and monitoring method according to claim 1, characterized in that, The process of generating the inspection area includes: Obtain the authorized work scope and inspection route, wherein the inspection route includes multiple orderly inspection points; Connect the multiple ordered inspection points into a continuous line to obtain the inspection line; Based on the authorized working range, the inspection line is used as the central axis to expand outwards to the left and right sides and the outer side of the endpoints, resulting in a strip-shaped closed polygonal region.
3. The inspection and monitoring method according to claim 2, characterized in that, Based on the authorized working range, and with the inspection line as the central axis, the region expands outwards to the left and right sides and the outer edges of the endpoints to form a closed polygonal region, including: Based on the authorized working range, the diffusion distance parameter is determined; The diffusion distance parameter is converted to a unit to obtain the buffer diffusion parameter; With the inspection line as the central axis, the diffusion extends to the left and right sides and the outer side of the endpoints according to the buffer diffusion parameters, resulting in a strip-shaped closed polygonal region.
4. The inspection and monitoring method according to claim 2, characterized in that, Also includes: The strip-shaped closed polygon region is converted to WKT format and stored in the memory cache.
5. The inspection and monitoring method according to claim 1, characterized in that, The step of determining whether the inspection personnel are within the inspection area based on their location information, and obtaining the monitoring results, includes: Obtain inspection task information; Based on the inspection task information, the corresponding inspection area is matched; If a corresponding inspection area is successfully matched, the location information of the inspection personnel is used to determine whether the inspection personnel are within the inspection area corresponding to the inspection task.
6. The inspection and monitoring method according to claim 5, characterized in that, Also includes: If no matching inspection area is found, obtain the authorized work area and inspection route; Based on the authorized work scope and the inspection route, an inspection area corresponding to the inspection task is generated. Based on the location information of the inspection personnel, it is determined whether the inspection personnel are within the inspection area corresponding to the inspection task.
7. An inspection and monitoring system, characterized in that, It includes a positioning terminal and a backend server, wherein the positioning terminal is worn by the inspection personnel; The positioning terminal is used to obtain the location information of the inspection personnel in real time and send the location information of the inspection personnel to the backend server. The backend server is used to determine whether the inspection personnel are within the inspection area based on their location information, and to obtain the monitoring results; the inspection area is a strip-shaped closed polygonal area generated based on the authorized work range and inspection route.
8. An inspection and monitoring device, characterized in that, include: The acquisition module is used to acquire the location information of inspection personnel in real time. The monitoring module is used to determine whether the inspection personnel are within the inspection area based on their location information, and to obtain the monitoring results. The inspection area is a closed polygonal region generated based on the authorized work area and inspection route.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; A memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the inspection and monitoring method according to any one of claims 1 to 6 by executing the instructions stored in the memory.
10. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by the processor, the instruction causes the processor to be configured to perform the inspection and monitoring method according to any one of claims 1 to 6.