Environmental security check method and device, and storage medium
By automating the identification of target security inspectors and task generation, and combining this with the review of task execution information, the problem of cumbersome and inefficient existing security inspection processes has been solved, achieving efficient and accurate security inspection management.
Patent Information
- Application Number
- CN202511550492.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2026-01-13
AI Technical Summary
The existing safety inspection process is cumbersome, inefficient, and relies on manual labor, resulting in a large investment of manpower and resources, and it is difficult to guarantee accuracy, making it difficult to detect and resolve safety hazards in a timely manner.
By automatically identifying target security inspectors based on inspection information and security inspector work information, generating security inspection tasks, and collecting task execution information through the target security inspection terminal to judge the task completion rate, the system achieves automated generation and systematic management of security inspection tasks.
It has improved the automation and efficiency of environmental safety inspections, ensuring that inspection tasks are completed according to standards and that safety hazards are identified and resolved in a timely manner.
Smart Images

Figure CN121329062A_ABST
Abstract
Description
Technical Field
[0001] This application falls under the field of safety inspection, specifically relating to environmental safety inspection methods, equipment, and storage media. Background Technology
[0002] With the continuous development of industrial production, safety management has received increasing attention. In existing technologies, safety inspection processes are often cumbersome, inefficient, and difficult to promptly identify and resolve safety hazards. Furthermore, current safety inspection methods rely heavily on manual labor, requiring significant human and material resources, and the accuracy and effectiveness of inspections are difficult to guarantee.
[0003] Therefore, improving the automation level of environmental safety inspections and conducting them efficiently are urgent technical problems that need to be solved. Summary of the Invention
[0004] The purpose of this application is to improve the automation level of environmental safety inspections and to conduct environmental safety inspections more efficiently.
[0005] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0006] According to one aspect of the embodiments of this application, an environmental safety inspection method is provided, the method comprising: The target security inspector is determined based on the inspection information from the inspection point and the work information of the security inspector. A security inspection task is generated based on the inspection information and the work information of the target security inspector, and the security inspection task is sent to the target security inspector's target security inspection terminal. Based on the task execution information collected by the target security terminal response control command, it is determined whether the security task has been completed.
[0007] According to one aspect of the embodiments of this application, determining a target security inspector based on inspection information and the security inspector's work information includes: Based on the type information in the inspection information, the security inspector of the type corresponding to the type information is selected as the first security inspector; Based on the production line information in the inspection information, the first security inspector with inspection authority is selected as the initial security inspector, and at least one initial security inspector is selected as the target security inspector.
[0008] According to one aspect of the embodiments of this application, the method further includes: Determine the required number of security inspectors for each type of target based on the inspection information; Select initial security inspectors of each type as target security inspectors to ensure that the required number of target security inspectors of each type is reached.
[0009] According to one aspect of the embodiments of this application, a security inspection task is generated based on the inspection information and the work information of the target security inspector, and the security inspection task is sent to the target security inspector's target security inspection terminal, including: The security inspection task is generated based on the inspection frequency and location information in the inspection information, as well as the shift information and personnel information of the target security inspector.
[0010] According to one aspect of the embodiments of this application, the type information in the inspection information can correspond to multiple types of security personnel. Based on the inspection frequency and location information in the inspection information, as well as the shift information and personnel information of the target security personnel, the security inspection task is generated, including: If the initial security inspector is of multiple types, then at least one target security inspector shall be selected from each type of initial security inspector; Based on the inspection information, the inspection frequency corresponding to each type of target security inspector is obtained, and the inspection frequency of each target security inspector is determined. Based on the inspection frequency, shift information, personnel information, and location information of each target security inspector, the security inspection task for each target security inspector is generated. If the initial security inspectors are of the same type, the security inspection task is generated based on the inspection frequency and location information in the inspection point information, as well as the shift information and personnel information of the target security inspector.
[0011] According to one aspect of the embodiments of this application, determining whether the security check task has been completed based on task execution information collected from the target security check terminal response control command includes: The task execution information is a task execution image. The task execution image is preprocessed to obtain multiple execution images. Obtain the standard execution steps corresponding to the security inspection task, and the standard image features corresponding to each of the standard execution steps; An execution image that matches the standard image features is taken as the hit image, and a blank image is assigned as a supplementary image for the standard execution steps that do not have a hit image. Based on the playback order of the hit images in the task execution image, the hit images are sorted to obtain an execution image sequence, and based on the execution order of the standard execution steps, the hit images and supplementary images are sorted to obtain a standard image sequence; Calculate the sequence similarity between the standard image sequence and the execution image sequence to determine the task completion degree based on the sequence similarity. If the task completion degree is greater than a set threshold, the task is determined to be completed; if the task completion degree is less than or equal to the set threshold, the task is determined to be failed.
[0012] According to one aspect of the embodiments of this application, calculating the sequence similarity between the standard image sequence and the execution image sequence includes: The length of the longest identical subsequence in the executed image sequence and the standard image sequence is taken as the target length, and the ratio of the target length to the length of the standard image sequence is taken as the first similarity. The number of overlapping adjacent image pairs in the executed image sequence and the standard image sequence is taken as the target overlap number, and the ratio of the target overlap number to the number of adjacent image pairs in the standard image sequence is taken as the second similarity. A third similarity between the execution image sequence and the standard image sequence is calculated based on the difference in the sorting position of each hit image in the execution image sequence and the standard image sequence. The sequence similarity between the executed image sequence and the standard image sequence is calculated based on at least one of the first similarity, the second similarity, and the third similarity.
[0013] According to one aspect of the embodiments of this application, the length of the longest identical subsequence in the executed image sequence and the standard image sequence is used as the target length, and the ratio of the target length to the length of the standard image sequence is used as the first similarity, including: Take any image in the execution image sequence as the target image. If the next image of the target image is the same as the next image of the target image in the standard image sequence, then take the next image of the target image as the target image. The acquisition of the target image is repeated until the next image of the target image is different from the next image of the target image in the standard image sequence, and the number of the target images is used as the initial length; Obtain the initial length corresponding to each of the hit images, and take the largest initial length as the target length; The ratio of the target length to the standard image sequence length is used as the first similarity.
[0014] According to one aspect of the embodiments of this application, an environmental safety inspection device is provided, including a memory, a processor, and a readable program stored in the memory, wherein the processor executes the readable program to implement the method as described in any of the preceding claims.
[0015] According to one aspect of the embodiments of this application, a readable storage medium is provided, on which a readable program / instruction is stored, which, when executed by a processor, implements the method as described in any of the preceding claims.
[0016] In this application, the target security inspector is first determined based on the inspection information of the checkpoint and the work information of the security inspector. Then, a security inspection task is generated based on the inspection information and the target security inspector's work information, and the security inspection task is sent to the target security inspector's target security inspection terminal. Finally, the task execution information collected by the target security inspection terminal in response to control commands is used to determine whether the security inspection task has been completed. This application automatically determines the target security inspector based on the inspection information of the checkpoint and the work information of the security inspector, and automatically generates security inspection tasks based on these information. This achieves automated generation and systematic management of security inspection tasks, greatly improving the automation level and efficiency of environmental security inspections. Furthermore, this application reviews the completion status of the security inspection task based on the task execution information collected by the target security inspection terminal in response to control commands to determine whether the security inspection task has been completed according to standards. This also enables control over the execution status of the security inspection task, ensuring that the task is completed according to the execution standards. This significantly increases the effectiveness of environmental security inspections, enabling the timely detection and resolution of security hazards.
[0017] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0020] Figure 1 A flowchart of an environmental safety inspection method according to an embodiment of this application is shown.
[0021] Figure 2 A flowchart illustrating the process of determining a target security inspector based on inspection information and the work information of the security inspector, according to one embodiment of this application, is shown.
[0022] Figure 3 A flowchart illustrating the determination of a target security inspector according to one embodiment of this application is shown.
[0023] Figure 4 A flowchart illustrating the generation of a security inspection task based on inspection frequency, location information, and shift and personnel information of the target security inspector, according to one embodiment of this application, is shown.
[0024] Figure 5 A flowchart is shown, illustrating a process according to an embodiment of this application, of collecting task execution information based on a target security check terminal response control command to determine whether a security check task has been completed.
[0025] Figure 6 A flowchart illustrating the calculation of sequence similarity between a standard image sequence and an execution image sequence according to an embodiment of this application is shown.
[0026] Figure 7 A flowchart illustrating an embodiment of this application is provided, which uses the length of the longest identical subsequence in the executed image sequence and the standard image sequence as the target length, and the ratio of the target length to the length of the standard image sequence as the first similarity.
[0027] Figure 8 A computer system architecture block diagram for an environmental safety inspection method according to an embodiment of this application is shown. Detailed Implementation
[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0029] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0032] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0033] With the continuous development of industrial production, safety management has received increasing attention. In existing technologies, safety inspection processes are often cumbersome, inefficient, and difficult to promptly identify and resolve safety hazards. Furthermore, current safety inspection methods rely heavily on manual labor, requiring significant human and material resources, and the accuracy and effectiveness of inspections are difficult to guarantee.
[0034] Therefore, improving the automation level of environmental safety inspections and conducting them efficiently are urgent technical problems that need to be solved.
[0035] Please see Figure 1 , Figure 1 A flowchart of an environmental safety inspection method according to an embodiment of this application is shown. This application provides the steps of an environmental safety inspection method, including: Step S110: Determine the target security inspector based on the inspection information of the inspection point and the work information of the security inspector; Step S120: Generate a security inspection task based on the inspection information and the target security inspector's work information, and send the security inspection task to the target security inspector's target security inspection terminal; Step S130: Based on the task execution information collected by the target security terminal response control command, determine whether the security check task has been completed.
[0036] The above three steps are described in detail below.
[0037] In step S110, the target security inspector is determined based on the inspection point information and the security inspector's work information. It should be clarified that an inspection point refers to an area requiring security checks. Inspection point information refers to information about the inspection point, including but not limited to location information indicating the location of the inspection point, type information indicating the type of inspection (e.g., high-altitude), inspection frequency indicating the required frequency of inspection, and hazard level indicating the degree of danger of the inspection point.
[0038] Based on the inspection point information, the target security inspector is determined from among all security inspectors to inspect each point, ensuring that the target security inspector is appropriately matched to each inspection point, thereby guaranteeing the effectiveness of security checks. For example, based on the type of inspection point, it can be determined what type of security inspector is best suited to perform the security checks at that point.
[0039] In step S120, a security check task is generated based on the checkpoint information and the target security inspector's work information. It should be clarified that the target security inspector's work information includes, but is not limited to: type information indicating the type of security check, shift information indicating the target security inspector's on-duty time, personnel information indicating the target security inspector's identity attributes, and permission information indicating the target security inspector's inspection authority.
[0040] After identifying the target security personnel, a security check task needs to be generated. Based on the checkpoint information and the target security personnel's work information, the personnel, location, time, and frequency of the security check are determined, and then the security check task is generated. This security check task is then sent to the target security personnel's target security check terminal so that the target security personnel are aware of the security check task. The target security check terminal can be a mobile terminal.
[0041] For example, the location information of the security checkpoint is determined based on the location information of the checkpoint; the security check time is determined based on the shift information of the target security inspector; the inspection time of the target security inspector is determined based on the inspection frequency of the checkpoint and the shift information of the target security inspector; and the personnel to conduct the security check at the checkpoint are determined based on the personnel information of the target security inspector. A security check task is generated based on the personnel, location information, time, and frequency.
[0042] The above process enables the automated generation and systematic management of security inspection tasks, greatly improving the automation level and efficiency of environmental security inspections.
[0043] In step S130, task execution information collected based on the target security terminal's response control command is used to determine whether the security check task has been completed according to the execution standards. Task execution information refers to the task execution data generated during the target security officer's execution of the security check task. Task execution information is collected based on the target security officer's operational behavior. It is important to clarify that although the security check task has been completed, it does not mean that the security check task is finished. Before review, it can only be said that the security check task has been completed, not that the security check task is finished. This is because to determine whether the security check task is completed, it needs to be reviewed to determine the target security officer's degree of task completion. Only when the degree of task completion reaches a set threshold can the security check task be determined to be completed.
[0044] In some embodiments, task execution information may include the movement trajectory of the target security inspector. Task execution information may include footage of the target security inspector performing the security inspection task. Task execution information may include video footage of the security inspection task execution process.
[0045] In some embodiments, the movement trajectory of the target security inspector can be used to determine whether the inspector has followed the prescribed movement path to conduct security checks at checkpoints, thereby determining whether the security task has been completed. Based on the footage of the target security inspector performing the security task, it can be determined whether the task has been completed (e.g., whether the inspector signed a checklist at a specific location, or whether certain mechanical devices were placed in a specific state). Based on the video footage of the target security inspector performing the task, it can be determined whether the inspector's execution process was compliant, thereby determining whether the security task has been completed, such as whether the inspector reached all designated locations or completed all specific steps on the mechanical devices.
[0046] In some embodiments, task execution information is sent to a server to facilitate quality inspection by personnel, and the server determines whether the security inspection task has been completed based on the personnel's actions. In some embodiments, task execution information is used to extract execution features, and the completion of the security inspection task is determined based on the comparison between the execution features and standard features. In some embodiments, task execution information is input into a pre-trained review neural network, which reviews the task execution information to determine whether the security inspection task has been completed.
[0047] In some embodiments, task completion includes overall task completion and partial task completion.
[0048] Regarding the overall task completion rate, task execution information can be generated in response to the target security inspector's operational behavior and after the target security inspector confirms the completion of the security inspection task. This allows the target terminal to evaluate the overall task completion rate based on the task execution information. If the task completion rate is low, the target security inspector will be notified that the security inspection task has not been completed.
[0049] Regarding task completion, in this case, task execution information can be generated at any stage of the security check task execution (before the target security officer determines the task is complete). This allows the target terminal to review the completed portion of the security check task. If the task completion rate is low, the target security officer is prompted to complete it again. The task execution information can be generated automatically based on the target security officer's actions, or it can be automatically acquired at set intervals to evaluate the completion rate of the completed portion of the security check task. If the task completion rate is less than or equal to a set threshold, a corresponding response strategy is determined based on the task completion rate, such as remediation or re-execution of the security check task. If the task completion rate is greater than the set threshold, the task is determined to be complete.
[0050] In some embodiments, the target security officer's physical status parameters are obtained directly from the target security check terminal or through a wearable mobile terminal to determine the target security officer's safety status. In some embodiments, the target security officer's location is obtained directly from the target security check terminal or through a wearable mobile terminal to quickly locate the target security officer when a safety issue arises, thereby enabling rescue efforts. For example, when the target security officer's physical status parameters exhibit dangerous characteristics, the target security check terminal generates a rescue alarm and then uploads the target security check terminal's location and the rescue alarm to the server, allowing the server to quickly detect the target security officer's dangerous situation and promptly initiate rescue operations.
[0051] This application's embodiments automatically determine target security inspectors based on inspection point information and security inspector work information, and automatically generate security inspection tasks based on the inspection point information and target security inspector work information. This achieves automated generation and systematic management of security inspection tasks, greatly improving the automation level and efficiency of environmental security inspections. This application also reviews the completion status of security inspection tasks based on task execution information collected from the target security inspection terminal's response control commands to determine whether the security inspection tasks are completed according to standards. Simultaneously, it achieves control over the execution status of security inspection tasks, ensuring the degree of completion according to execution standards. This significantly increases the effectiveness of environmental security inspections, enabling the timely detection and resolution of security hazards.
[0052] Please see Figure 2 , Figure 2 A flowchart illustrating the process of determining a target security inspector based on inspection information and security inspector work information according to an embodiment of this application is shown. This embodiment provides step S110 of determining a target security inspector based on inspection information and security inspector work information, including: Step S111: Based on the type information in the inspection information, the security inspector corresponding to the type information is selected as the first security inspector. Step S112: Based on the production line information in the inspection information, the first security inspector with inspection authority is selected as the initial security inspector, and at least one initial security inspector is selected as the target security inspector. The two steps described above are described in detail below.
[0053] In step S111, based on the category information in the checkpoint information, the type of security inspector required for the checkpoint can be determined. There is a correspondence between the category information and the type of security inspector, and each category information corresponds to a specific type of security inspector. In some embodiments, the category information corresponds to at least one type of security inspector.
[0054] The security inspector corresponding to the category information will be designated as the first security inspector. For example, if the inspection is classified as a high-altitude operation, then the security inspector with the high-altitude operation type will be designated as the first security inspector among all security inspectors. In step S112, based on the production line information in the inspection information, the first security inspector with inspection authority is selected as the initial security inspector. The production line information indicates which production line the inspection belongs to, or which jurisdiction the inspection belongs to. If the inspection belongs to the first production line, then the first security inspector with the authority to inspect the first production line is selected as the initial security inspector.
[0055] Select at least one initial security inspector as the target security inspector. That is, select a security inspector who simultaneously meets the required type and permissions for the inspection.
[0056] In this embodiment, by automatically identifying the target security inspector, the automation level of the environmental security inspection process is improved. Furthermore, by determining the target security inspector from among all security inspectors based on the inspection point information, targeted security inspectors can be assigned to each inspection point to optimize security inspection effectiveness as much as possible. In addition, this embodiment uses screening criteria to progressively select the first security inspector and the initial security inspector, reducing the amount of data processing.
[0057] In some embodiments, based on the production line information in the inspection information, a security inspector with inspection authority is designated as a second security inspector; a security inspector who is both a first and a second security inspector is designated as an initial security inspector, and at least one initial security inspector is selected as a target security inspector.
[0058] Please see Figure 3 , Figure 3 A flowchart illustrating an embodiment of this application is provided, showing how, based on production line information in inspection information, a first security inspector with inspection authority is selected as an initial security inspector, and at least one initial security inspector is selected as a target security inspector. This embodiment provides step S112, which involves selecting a first security inspector with inspection authority as an initial security inspector and at least one initial security inspector as a target security inspector based on production line information in inspection information, including: Step S1121: Determine the required number of security inspectors for each type of target based on the inspection information; Step S1122: Select each type of initial security inspector as the target security inspector, so that the number of target security inspectors of each type reaches the required number.
[0059] The two steps described above are described in detail below.
[0060] In step S1121, the inspection information records the number of security personnel required for each type of target at this inspection point. This is because, depending on the danger level or complexity of the inspection point, sometimes multiple types of target security personnel are needed, and multiple personnel are required for each type of target security personnel to carry out coordinated operations.
[0061] In some embodiments, the required number of target security personnel for each type is determined based on the level of danger or complexity of the inspection.
[0062] In step S1122, after determining the required number of security inspectors for each type at the checkpoint, a corresponding number of initial security inspectors for each type are selected as target security inspectors. This ensures that the number of target security inspectors for each type reaches the required number for the checkpoint.
[0063] In some embodiments, 'a' type A security inspectors and 'b' type B security inspectors are required for inspection. Therefore, 'a' type A initial security inspectors are selected as type A target security inspectors. 'b' type B initial security inspectors are selected as type B target security inspectors.
[0064] If the number of initial security inspectors is less than the required number of target security inspectors, a notification message will be displayed to remind the user that there are insufficient initial security inspectors. If the number of initial security inspectors exceeds the required number of target security inspectors, the initial security inspectors with the most extensive security inspection experience will be selected as target security inspectors in order of their years of service.
[0065] Please see Figure 4 , Figure 4 This document illustrates a flowchart illustrating the generation of a security inspection task based on inspection frequency and location information, as well as the shift information and personnel information of the target security inspector, according to an embodiment of this application. The category information in the inspection information can correspond to multiple types of security personnel. This embodiment provides step S120 for generating a security inspection task based on inspection frequency and location information, as well as the shift information and personnel information of the target security inspector, including: Step S121: If there are multiple types of initial security inspectors, then select at least one target security inspector from each type of initial security inspector. Step S122: Obtain the inspection frequency corresponding to each type of target security inspector based on the inspection information, and determine the inspection frequency of each target security inspector. Step S123: Based on the inspection frequency, shift information, personnel information, and location information of each target security inspector, generate security inspection tasks for each target security inspector. Step S124: If the initial security inspectors are of the same type, then generate a security inspection task based on the inspection frequency and location information in the inspection point information, as well as the shift information and personnel information of the target security inspector.
[0066] The above four steps are described in detail below.
[0067] In step S121, it is important to clarify that the category information in the inspection information corresponds to multiple types of security personnel. Security inspection tasks require the cooperation of multiple types of target security personnel, hence the category information corresponds to multiple types of target security personnel. Alternatively, if the inspection is particularly important, while one type of target security personnel may be needed for inspection, other types of target security personnel may also be needed for random checks; therefore, multiple types of target security personnel need to perform their respective security inspection tasks.
[0068] If there are multiple types of initial security inspectors, it means that the security inspection task requires multiple types of target security inspectors to complete. Therefore, at least one target security inspector should be selected from each type of initial security inspector to conduct the inspection.
[0069] To obtain multiple types of initial security inspectors, steps S111-S112 can be used to separately or jointly filter security inspectors of each type as initial security inspectors. For example, the inspection requires both type A and type B security inspectors. Firstly, step S111 can be used to separately or directly select type A and type B security inspectors from all security inspectors as the first security inspectors. Then, based on the production line information in the inspection information, the first security inspectors with inspection authority are selected as the initial security inspectors, i.e., the initial security inspectors are divided into type A initial security inspectors and type B initial security inspectors. Then, based on the required number of target security inspectors for each type at the inspection, the corresponding number of initial security inspectors from the two types are selected as target security inspectors. For example, if the inspection requires 'a' type A target security inspectors and 'b' type B target security inspectors, then 'a' type A initial security inspectors are selected as type A target security inspectors, and 'b' type B security inspectors are selected as type B target security inspectors.
[0070] In step S122, the inspection information records the inspection frequency corresponding to each type of target security inspector. The inspection frequency corresponding to each type of target security inspector is obtained based on the inspection information, and then the inspection frequency corresponding to each target security inspector is determined according to its type. Each type of target security inspection corresponds to the same inspection frequency. In some embodiments, the inspection frequency corresponding to each type of target security inspection in the inspection information can be customized.
[0071] For example, if the inspection frequency m corresponds to a type A target security inspector, then both type A target security inspectors A1 and A2 correspond to inspection frequencies m. If the inspection frequency n corresponds to a type B target security inspector, then both type B target security inspectors B1 and B2 correspond to inspection frequencies n. In other words, after knowing the inspection frequency corresponding to each type of target security inspector, the inspection frequency of each target security inspector can be obtained.
[0072] In step S123, security inspection tasks are generated for each target security inspector based on their inspection frequency, shift information, personnel information, and location information in the inspection point information. These tasks are then sent to the target task terminal of the corresponding target security inspector. For example, a security inspection task is generated based on the shift information, personnel information, inspection frequency, and location information in the inspection point information of target security inspector An, and then sent to target task terminal of target security inspector An. Security inspection tasks are generated and sent to the corresponding target task terminal for each target security inspector using the above method.
[0073] In step S124, if the initial security inspectors are of the same type, a security inspection task is generated directly based on the inspection frequency, location information, shift information, and personnel information of the target security inspectors recorded in the inspection information, and the security inspection task is sent to the target task terminal of each target security inspector.
[0074] For example, if the checkpoint only requires type A security inspectors, then multiple target security inspectors of type A, A1, A2, ..., are obtained, or there is only one security inspector A1. For any target security inspector An, a security inspection task is generated based on the shift information, personnel information, inspection frequency, and location information in the checkpoint information of target security inspector An, and then the security inspection task is sent to the target task terminal of target security inspector An. Security inspection tasks are generated in the above manner for each target security inspector and sent to the corresponding target task terminal of the target security inspector.
[0075] In this embodiment, when multiple types of security inspectors are needed to assist in inspections or quality checks, the corresponding security inspectors can be generated simultaneously, which greatly improves the efficiency of automatic generation of security inspection tasks and increases the efficiency of environmental security inspections. At the same time, since the above process is generated automatically, corresponding task generation records will be left behind. The task execution records facilitate the management of environmental security inspection data. Therefore, this embodiment makes it easier to control the entire environmental security inspection process and efficiently solve security risks.
[0076] Please see Figure 5 , Figure 5 A flowchart illustrating a method for determining whether a security check task has been completed based on task execution information collected according to a target security check terminal response control command, according to an embodiment of this application, is provided. This embodiment of the application provides step S130 for determining whether a security check task has been completed based on task execution information collected according to a target security check terminal response control command, including: Step S131: The task execution information is the task execution image. The task execution image is preprocessed to obtain multiple execution images. Step S132: Obtain the standard execution steps corresponding to the security inspection task, and the standard image features corresponding to each standard execution step; Step S133: Select an execution image that matches the features of the standard image as the hit image, and assign a blank image as a supplementary image to the standard execution steps that do not have a hit image. Step S134: Sort the hit images according to the playback order of the hit images in the task execution image to obtain the execution image sequence, and sort the hit images and supplementary images according to the execution order of the standard execution steps to obtain the standard image sequence. Step S135: Calculate the sequence similarity between the standard image sequence and the execution image sequence to determine the task completion degree based on the sequence similarity. If the task completion degree is greater than a set threshold, the task is determined to be completed. If the task completion degree is less than or equal to the set threshold, the task is determined to be failed.
[0077] The above five steps are described in detail below.
[0078] In some embodiments, task completion rate can refer to the completion rate of the portion of the security check task represented by the task image that has been performed. If the task execution image is acquired during the task execution process, meaning that only a portion of the security check task has been performed, then the task completion rate refers to the completion rate of the target security officer's performance of a portion of the security check task. If the task execution image is acquired after the task execution has ended, meaning that the security check task has been completed, then the task completion rate refers to the completion rate of all security check task performance actions.
[0079] First, regarding the overall task completion rate, that is, at this point, the task completion rate refers to the overall task completion rate.
[0080] Task execution information (task execution video) is generated in response to the target security officer's actions and after the target security officer confirms the completion of the security task. In other words, the task execution video represents the overall execution status of the case task, allowing the target terminal to evaluate the task completion rate based on the overall task execution information. If the task completion rate is low, the target security officer is notified that the security task has not been completed. If the task completion rate is high, the task is confirmed as completed. See the following five steps for details: In this embodiment, the target task terminal is equipped with a camera device, or the target security inspector wears a camera device. The camera device automatically starts recording when the task begins, or starts recording in response to the user's operation, until it stops recording in response to the target security inspector's operation and considers that the security task has been completed, and generates task execution video.
[0081] In step S131, task execution information is generated after the target security inspector determines that the security inspection task has been completed. This task execution information consists of task execution images. The target task terminal acquires these execution images and preprocesses them to obtain multiple execution images. The target task terminal can acquire the task execution images using a camera device mounted on it. In some embodiments, the target task terminal can acquire the task execution images using a mobile camera device worn by the target security inspector.
[0082] After acquiring the task execution image, the target task terminal preprocesses the task execution image to obtain multiple execution images.
[0083] For example, frames can be extracted from the task execution video at regular intervals to obtain multiple execution images. Alternatively, each frame of the task execution video can be extracted as an execution image.
[0084] In step S132, the standard execution steps corresponding to the security inspection task and the image features corresponding to each standard step are obtained. For example, for a patrol security inspection task, the standard execution steps refer to the various locations that need to be reached, with each standard execution step corresponding to one location. For a security inspection task involving operating machinery and equipment, the standard execution steps refer to the sequential operations required to operate the machinery and equipment, with each standard execution step corresponding to the state of the machinery and equipment after an operation. For a security inspection task where the target security inspector needs to conduct security observation (such as security supervision of unloading goods), the standard execution steps refer to supervising the observed object to perform the task according to a set degree, with each standard execution step corresponding to an execution program node of the observed object. Each standard execution step corresponds to a standard image feature.
[0085] In step S133, the execution image that matches the standard image features to a preset feature threshold is taken as the hit image. If there are multiple execution images that match the standard image features, the execution image that matches the standard image features to the highest degree is taken as the hit image, ensuring that each standard execution step corresponds to at most one hit image.
[0086] It is important to clarify that if the target security inspector's performance in the execution image is not standardized (e.g., distorted movements or irregular behavior) and does not conform to the standard image characteristics, then even if the target security inspector is performing a standard step in the security inspection task, that execution image cannot be considered a hit image. This, in turn, evaluates the target security inspector's performance in carrying out the security inspection task, while also urging them to perform the task diligently, thereby ensuring that potential security risks can be detected in a timely manner.
[0087] For standard execution steps that do not match an image, a blank image is assigned as a replacement image. Each standard execution step has a corresponding matched image or a replacement image; that is, each standard step can only correspond to one image.
[0088] In step S134, the hit images are sorted according to their playback order in the task execution video to obtain an execution image sequence. Then, according to the execution order of the standard execution steps, the hit images and supplementary images are sorted to obtain a standard image sequence. That is, the execution image sequence represents the actual execution of the security check task by the target security officer, while the standard image sequence represents the expected execution of the security check task by the target security officer. If both are completely identical, it indicates that the target security officer has flawlessly completed the security check task. If they are partially identical, it indicates that the target security officer has flawed the completion of the security check task, meaning the target security officer's completion rate is not 100%. The greater the similarity between the execution image sequence and the standard image sequence, the higher the target security officer's completion rate of the security check task.
[0089] In step S135, the sequence similarity between the standard image sequence and the execution image sequence is calculated to determine the task completion degree based on the sequence similarity. If the task completion degree is greater than a set threshold, the task is determined to be completed; if the task completion degree is less than or equal to the set threshold, the task is determined to be failed.
[0090] In some embodiments, a task execution report is output regardless of whether the task is completed or failed, indicating any violations by the target security inspector during the execution of the security inspection task.
[0091] This application embodiment, through analysis of task execution images, can automatically and reasonably determine whether the target security inspector strictly follows the standard execution procedures during the security inspection process, saving manpower from individually reviewing the task execution images of the target security inspector. On the other hand, by reviewing the security inspection task execution process, it ensures that each security inspection task is effectively completed, improving the quality of security task execution. Simultaneously, this method increases the diligence of the target security inspector in performing security inspection tasks, thereby enabling the timely detection and resolution of security risks.
[0092] Secondly, regarding the task completion rate, that is, at this point the task completion rate refers to the completion rate of the task portion.
[0093] In some embodiments, task execution images can also be acquired during task execution to evaluate the completion of the completed portion of the security check task. That is, the task execution image evaluates the completed portion of the security check task, not the entire task. Task execution information is acquired before the security check task is considered complete, meaning it has ended but before the target security officer's actions have been responded to. Task execution information can be generated at any stage of the incomplete security check task. Based on this information, the target terminal can evaluate the completion of the completed portion of the security check task. The task execution information can be generated automatically based on user actions, or it can be acquired at set intervals to review the completion of the completed portion of the security check task. If the completion rate is low, the target security officer is prompted to complete the task again.
[0094] The target task terminal is equipped with a camera device, or the target security inspector wears a camera device. The camera device automatically starts recording when the task begins, or starts recording in response to the user's operation, until it responds to the target security inspector's operation and considers the security task to be completed. During this process, it automatically generates images based on the user's operation, or it can acquire the recorded task execution images at set intervals.
[0095] For evaluating the completion of a task, for example, the task execution information is task execution video. First, the task execution video is preprocessed to obtain multiple execution images. These images are then sorted according to their playback order. Next, standard image features are identified for each execution image in reverse order until an execution image matching the standard image features is found. The standard execution step corresponding to this execution image is taken as the cutoff step. For all standard execution steps, only all standard execution steps between the first and cutoff steps (including the first and cutoff standard steps) are retained; other standard execution steps are temporarily hidden and not reviewed. The execution image matching the standard image features is taken as the hit image, and a blank image is assigned as a supplementary image for standard execution steps without a hit image. Based on the playback order of the hit images in the task execution video, the hit images are sorted to obtain an execution image sequence. Then, based on the execution order of the standard execution steps, the hit images and supplementary images are sorted to obtain a standard image sequence. The sequence similarity between the standard image sequence and the execution image sequence is calculated to determine the partial task completion based on the sequence similarity.
[0096] In some embodiments, if the task completion rate is greater than a temporary threshold, it is determined that the completed part of the task is completed; if the task completion rate is less than or equal to the temporary threshold, it is determined that the completed part of the task is not completed, and the target security inspector is prompted to complete it again, or a different target security inspector is asked to re-execute the security inspection task.
[0097] In this embodiment, by reviewing some completed security check tasks, multiple spot checks of the target security personnel can be carried out. If the target security personnel do not perform the task well, the problem can be corrected in time, avoiding the need to re-examine the entire security check task after it has been completed and have problems found.
[0098] In some embodiments, the number of execution steps with hit images is taken as the hit count; the ratio of the hit count to the standard number of execution steps is taken as the hit rate; and the task completion degree is calculated based on sequence similarity and hit rate. This method allows for a more accurate determination of task completion.
[0099] Please see Figure 6 , Figure 6 A flowchart illustrating the calculation of sequence similarity between a standard image sequence and an execution image sequence according to an embodiment of this application is shown. This embodiment provides step S135 for calculating the sequence similarity between a standard image sequence and an execution image sequence, including: Step S201: The length of the longest identical subsequence in the executed image sequence and the standard image sequence is taken as the target length, and the ratio of the target length to the length of the standard image sequence is taken as the first similarity. Step S202: The number of overlapping adjacent image pairs in the executed image sequence and the standard image sequence is taken as the target overlap number, and the ratio of the target overlap number to the number of adjacent image pairs in the standard image sequence is taken as the second similarity. Step S203: Calculate the third similarity between the execution image sequence and the standard image sequence based on the difference in the sorting position of each hit image in the execution image sequence and the standard image sequence. Step S204: Calculate the sequence similarity between the executed image sequence and the standard image sequence based on at least one of the first similarity, second similarity, and third similarity.
[0100] The above four steps are described in detail below.
[0101] In step S201, the length of the longest identical subsequence in the executed image sequence and the standard image sequence is taken as the target length, and the ratio of the target length to the length of the standard image sequence is taken as the first similarity. The similarity between the executed image sequence and the standard image sequence is determined from the perspective of the execution content, that is, whether the target security inspector has performed the security inspection task according to the content specified in the standard execution steps. The higher the first similarity, the more similar the executed image sequence and the standard image sequence are.
[0102] In step S202, the number of overlapping adjacent image pairs in the executed image sequence and the standard image sequence is taken as the target overlap number, and the ratio of the target overlap number to the number of adjacent image pairs in the standard image sequence is taken as the second similarity. The relative positional relationship of the images in the two image sequences is determined from the adjacency relationship, and then the similarity between the executed image sequence and the standard image sequence is determined from the dimension of relative positional relationship, that is, to determine whether the target security inspector performs the security inspection task in a relatively coherent relative execution order. The larger the second similarity, the more similar the executed image sequence and the standard image sequence are.
[0103] In step S203, a third similarity is calculated between the executed image sequence and the standard image sequence based on the differences in the order of each hit image in the executed image sequence and the standard image sequence. Based on the positional differences of each hit image in the two image sequences, it can be determined whether the target security inspector performed the security task according to the absolute execution order of the standard execution steps. This achieves the determination of the similarity between the executed image sequence and the standard image sequence from the dimension of execution order; the greater the third similarity, the more similar the executed image sequence and the standard image sequence are.
[0104] In step S204, the sequence similarity between the executed image sequence and the standard image sequence is calculated based on at least one of the first similarity, the second similarity, and the third similarity.
[0105] In some embodiments, the first similarity is directly used as the sequence similarity. The second similarity is directly used as the sequence similarity. The sum of the first and second similarities is directly used as the sequence similarity. The sum of the first and third similarities is directly used as the sequence similarity. The sum of the second and third similarities is directly used as the sequence similarity. The sum of the first, second, and third similarities is directly used as the sequence similarity.
[0106] In other embodiments, the sequence similarity is obtained by substituting the first similarity and the second similarity into the corresponding formula. The sequence similarity is also obtained by substituting the first similarity and the third similarity into the corresponding formula. Alternatively, the sequence similarity can be obtained by directly substituting the second similarity and the third similarity into the corresponding formula. Finally, the sequence similarity can be obtained by directly substituting the first similarity, the second similarity, and the third similarity into the corresponding formula.
[0107] In other embodiments, the product of the first similarity and the first weight is used as the first factor, the product of the second similarity and the second weight is used as the second factor, and the product of the third similarity and the third weight is used as the third factor. The sum of the first weight, the second weight, and the third weight is 1. The sum of the first factor, the second factor, and the third factor is used as the sequence similarity between the executed image sequence and the standard image sequence.
[0108] Please see Figure 7, Figure 7 A flowchart illustrating an embodiment of this application is provided, showing the process of using the length of the longest identical subsequence in an execution image sequence and a standard image sequence as a target length, and the ratio of the target length to the length of the standard image sequence as a first similarity. The embodiment of this application provides step S201, which uses the length of the longest identical subsequence in an execution image sequence and a standard image sequence as a target length, and the ratio of the target length to the length of the standard image sequence as a first similarity, including: Step S2011: Take any image in the execution image sequence as the target image. If the next image of the target image is the same as the next image of the target image in the standard image sequence, then take the next image of the target image as the target image. Step S2012: Repeat the acquisition of the target image until the next image of the target image is obtained. This is different from the next image of the target image in the standard image sequence. The number of target images is used as the initial length. Step S2013: Obtain the initial length corresponding to each hit image, and take the largest initial length as the target length; Step S2014: The ratio of the target length to the standard image sequence length is used as the first similarity.
[0109] The above four steps are described in detail below.
[0110] In step S2011, any image in the execution image sequence is taken as the target image. If the next image in the execution image sequence is the same as the next image in the standard image sequence, then the next image of the target image is taken as the target image.
[0111] For example, the execution image sequence is (A1, B2, C3, F4, D5, E6, G7, H8), and the standard image sequence is (A1, B2, C3, white 4, D5, E6, F7, G8, H9). Here, the letters represent the hit images, and the subscripts indicate the order of each hit image in the execution image sequence. "White" represents a supplementary image.
[0112] For example, image A is used as the target image, and the next image in the execution image sequence is B, and the next image in the standard image sequence is also B. Therefore, image B is also used as the target image.
[0113] In step S1012, for target image B, if the next image in both the executed image sequence and the standard image sequence is image C, then image C is also taken as the target image. However, the next image for target image C differs between the executed image sequence and the standard image sequence. In the executed image sequence, the next image for target image C is image F, unlike the standard image sequence where the next image for target image C is a blank image. Therefore, the identical subsequence starting with image A is completed, containing three images: A, B, and C. The initial length of the identical subsequence starting with image A is 3.
[0114] In step S1013, in the executed image sequence, the same subsequence is determined starting with each image to obtain each initial length. The maximum initial length is then used as the target length. An example target length is 3.
[0115] In step S1014, the ratio of the target length to the standard image sequence length is used as the first similarity. For example, in the above embodiment, the length of the standard image sequence is 9, so the first similarity is one-third.
[0116] In this embodiment, the similarity between the executed image sequence and the standard image sequence is determined from the dimension of the execution content, that is, to determine whether the target security inspector has performed the security inspection task according to the content specified in the standard execution steps. The greater the first similarity, the more similar the executed image sequence and the standard image sequence are.
[0117] In some embodiments, a method for calculating the second similarity is provided. Any two adjacent images in the executed image sequence are taken as a first image pair, and any two adjacent images in the standard sequence are taken as a second image pair; the number of identical first and second image pairs is taken as the target overlap number; the ratio of the target overlap number to the number of second image pairs is taken as the second similarity.
[0118] For example, given the execution image sequence (A1, B2, C3, F4, D5, E6, G7, H8) and the standard image sequence (A1, B2, C3, F4, D5, E6, F7, G8, H9), we obtain the first image pair (AB, BC, CF, FD, DE, EG, GH) and the second image pair (AB, BC, C, D, DE, EF, FG, GH). The number of identical pairs in the first and second image pairs is taken as the target overlap number, which is 4 pairs, namely (AB, BC, DE, GH). Since the number of second image pairs is 8, the second similarity is 1 / 2.
[0119] In this embodiment, the relative positional relationship of images in two image sequences is determined based on their adjacency. Then, the similarity between the executed image sequence and the standard image sequence is determined from the dimension of relative positional relationship, that is, whether the target security inspector performs the security inspection task in a relatively coherent relative execution order. The greater the similarity, the more similar the executed image sequence and the standard image sequence are.
[0120] In some embodiments, a method for calculating the third similarity is provided. The sorting position of each hit image in the execution image sequence is taken as the first position, and the sorting position of the hit image in the standard image sequence is taken as the second position; the absolute value of the difference between the first position and the second position of the hit image is taken as the position error value; the ratio of the position error value to the length of the execution image sequence is taken as the position error value of the hit image, and the reciprocal of the sum of the position error values of all hit images is taken as the third similarity.
[0121] For example, for a hit image A, its sort position in the executed image sequence is 1, and its sort position in the standard executed image sequence is 1, so the position error value for hit image A is 0. For a hit image F, its sort position in the executed image sequence is 4, and its sort position in the standard executed image sequence is 7, so the position error value for hit image A is 3. The ratio of the position error value to the length of the executed image sequence is used as the position error value of the hit image, and the reciprocal of the sum of the position error values of all hit images is used as the third similarity.
[0122] In this embodiment, based on the positional differences of each hit image in the two image sequences, it can be determined whether the target security inspector performed the security inspection task according to the absolute execution order of the standard execution steps. This achieves the determination of the similarity between the executed image sequence and the standard image sequence from the dimension of execution order; the greater the third similarity, the more similar the executed image sequence and the standard image sequence are.
[0123] In some embodiments, to better protect the safety of the target security personnel, if the danger level of a checkpoint reaches a set level, the location of the checkpoint center is obtained based on the checkpoint information, and a danger zone formed based on the checkpoint center location is determined. Based on the location and movement direction of the target security terminal, the danger index corresponding to the target security personnel is calculated. The target task terminal issues a corresponding warning to the target security personnel based on the danger index and sends a danger alert to the server. The higher the danger index, the greater the danger to the target security personnel. In some embodiments, the danger index falls within different ranges, generating different forms of warnings and danger alerts.
[0124] It should be clarified that the danger zone can be of any shape, the inspection center is located within the danger zone, and the closer to the inspection center, the more dangerous it is. The location of the danger zone is recorded in the inspection information.
[0125] In this embodiment, the determination of dangerous areas is triggered by the danger level, which can accurately delineate risk boundaries based on the location of the inspection center, avoiding ineffective attention to non-dangerous areas and improving the targeting of risk management. By combining the real-time location and movement direction of the target security terminal to calculate the danger index, the actual risks faced by security personnel can be dynamically and accurately reflected (rather than a general judgment), making risk assessment more aligned with the actual situation on site. Sending alerts to the target terminal allows security personnel to be aware of their own risks immediately, facilitating rapid avoidance; sending prompts to the server allows the backend to monitor the on-site risk status in real time, providing a basis for overall scheduling and support coordination, achieving the linkage of "immediate response from target security personnel + global backend control," thus improving risk response efficiency and security.
[0126] In some embodiments, the hazard index can be calculated in the following ways.
[0127] It should be clarified that this method applies when the target security checkpoint (target security personnel) is moving towards the checkpoint center and has not entered a danger zone. It aims to predict whether the current movement path is safe enough to alert the target security personnel to take evasive action. If the target security checkpoint (target security personnel) is located in a danger zone, the danger index is calculated directly based on the distance between the target security checkpoint and the checkpoint center. For example, if the target interval of the distance between the target security checkpoint and the checkpoint center is determined, the corresponding danger index is determined based on that interval.
[0128] Firstly, if the target security inspector's movement direction would pass through a dangerous area, the ray pointing in that direction is taken as the first ray; the distance between the inspection center and the first ray is taken as the first distance; that is, the first distance is the closest distance between the target security inspector and the inspection center along the current movement direction. Evaluating the target security inspector's risk index through the first distance is more objective.
[0129] A ray perpendicular to the first ray passing through the center of the inspection point is designated as the second ray. The intersection of the second ray and the edge of the danger zone is designated as the first node. The distance between the inspection point center and the first node is designated as the first safe distance. The ratio of the first safe distance to the first distance is designated as the first danger value. The first safe distance refers to the length of the safe distance when the target security inspector is closest to the inspection point center in the current direction of movement. Therefore, using the ratio of the first safe distance to the first distance as the first danger value can objectively evaluate the degree of danger posed to the target security inspector when they are closest to the inspection point center.
[0130] Before the target security checkpoint (target security personnel) enters the danger zone, the ray from the target security checkpoint towards the center of the checkpoint is designated as the third ray, and the first intersection of the third ray and the edge of the danger zone is designated as the second node. At this point, the second node is located between the center of the checkpoint and the target security checkpoint. The distance between the center of the checkpoint and the second node is designated as the second safe distance; the distance between the center of the checkpoint and the target security checkpoint (target security personnel) is designated as the second distance (the current distance between the target security personnel and the center of the checkpoint), and the ratio of the second safe distance to the second distance is designated as the second danger value; that is, the greater the distance between the target security personnel (target security checkpoint) and the center of the checkpoint, the safer it is. The second danger value can be used to evaluate the danger posed by the current position or the straight-line distance, that is, the current level of danger for the target security personnel.
[0131] The hazard index is calculated based on the first and second hazard values. Alternatively, the sum of the first and second hazard values can be used as the hazard index. The safe distance in the inspection information refers to the minimum distance from the center of the inspection point to ensure safety. Both the first and second hazard values are positively correlated with the hazard index.
[0132] In this embodiment, on the one hand, precise hazard index calculations can be performed for areas of various shapes. On the other hand, by determining whether the movement direction passes through a dangerous area and identifying the traversing line, the movement trend of security personnel is incorporated into the risk assessment, rather than relying solely on their current static position. This allows for the prediction of potential future risks and avoids overlooking "potential proximity hazards." The first hazard value (based on the distance between the movement path and the center of danger) reflects the "path proximity" between the movement direction and the dangerous area, while the second hazard value (based on the distance between the current position and the center of danger) reflects the "immediate distance risk." Combining these two values quantifies risk from both the "movement trend" and "current state" dimensions, avoiding the one-sidedness of a single-dimensional assessment. By quantifying risk through the ratio of distance to the danger radius (the closer the distance, the larger the ratio, and the higher the risk), the abstract concept of "hazard" is transformed into a calculable value. Furthermore, by combining the dual parameters of movement path and real-time position, the hazard index more closely reflects the actual risk status faced by security personnel in real-world scenarios, providing a more reliable basis for subsequent early warnings. Calculations are only initiated for scenarios where the movement direction will pass through dangerous areas, avoiding invalid assessments of irrelevant movement states, thus improving efficiency while ensuring assessment accuracy.
[0133] Secondly, if the movement direction of the target security checkpoint terminal would pass through a danger zone, the vector pointing from the target security checkpoint terminal to the center of the checkpoint is designated as the fourth ray, and the movement direction of the target security checkpoint terminal is designated as the fifth ray. A sixth ray is drawn through the target security checkpoint terminal, passing through the outermost edge of the danger zone without crossing it, and located on the side of the fifth ray away from the fourth ray. The first intersection point of the fourth ray and the edge of the danger zone is designated as the third node, i.e., the third node is located between the target security checkpoint terminal (target security personnel) and the center of the checkpoint. The distance between the center of the checkpoint and the third node is designated as the third safe distance. The distance between the center of the checkpoint and the target security checkpoint terminal is designated as the third distance, and the ratio of the third safe distance to the third distance is designated as the third danger value. The angle formed by the fourth and fifth rays is designated as the danger angle, and the angle formed by the fourth and sixth rays is designated as the reference angle. The ratio of the reference angle to the danger angle is designated as the fourth danger value. The danger index is calculated based on the third and fourth danger values.
[0134] In some embodiments, if the danger zone is a circular area centered on the inspection center position with a set distance as the danger radius, and if the target security terminal's movement direction would pass through the danger zone, then the vector pointing from the target security terminal to the inspection center position is taken as the fourth ray, and the movement direction of the target security terminal is taken as the fifth ray. The danger zone refers to the circular area centered on the inspection center position. The distance between the inspection center position and the target security terminal is taken as the third distance, and the ratio of the danger radius to the third distance is taken as the third danger value. A tangent is drawn from the position of the target security terminal to the danger zone, and the tangent located on the side of the fourth ray deviating from the fifth ray is taken as the sixth ray. The angle formed by the fourth ray and the sixth ray is taken as the reference angle. The angle formed by the fourth ray and the fifth ray is taken as the danger angle, and the ratio of the reference angle to the danger angle is taken as the fourth danger value. The danger index is calculated based on the third danger value and the fourth danger value.
[0135] In this embodiment, the beneficial effects of this technical means are mainly reflected in three aspects: First, it achieves multi-dimensional and accurate quantification of risk. The third hazard value quantifies the "safety margin from the current position to the edge of danger" by the ratio of the third safety distance (distance from the edge of the danger zone to the center) to the current distance (the smaller the ratio, the greater the safety margin); the fourth hazard value quantifies the risk of the movement direction deviating from the safety boundary by the angle ratio (the larger the ratio, the closer the direction is to the core of danger). Both are evaluated from two dimensions: "distance safety margin" and "degree of deviation in direction," avoiding the one-sidedness of a single indicator. Second, it improves the accuracy of risk prediction. By ray positioning of the edge and intersection of the danger zone, the actual range of the danger zone is used as the evaluation benchmark, making the distance and angle parameters closely related to the real scene. At the same time, combined with the analysis of the movement direction, the potential risk of "whether it is possible to break through the safety boundary" can be identified in advance. Third, it ensures efficient and reliable assessment. Abstract risks are transformed into calculable values in the form of ratios, and both are positively correlated with the risk index. The calculation logic is clear, which not only facilitates the generation of results in real time to meet the immediate needs of security inspection scenarios, but also provides clear quantitative basis for subsequent early warnings, thereby improving the accuracy of risk response. In some embodiments, the determination of whether a target security inspection terminal will pass through a dangerous area can be performed as follows: First, a reference angle and a danger angle can be determined using the above embodiments. If the danger angle is less than the reference angle, it is determined that the target security inspection terminal will pass through the dangerous area in its current direction of movement. Then, the danger index is determined based on the actual situation. If the danger angle is greater than or equal to the reference angle, it is determined that the target security inspection terminal will not pass through the dangerous area in its current direction of movement.
[0136] In some embodiments, the method for calculating the hazard index in the first embodiment is used as the first method. The method for calculating the hazard index in the second embodiment is used as the second method. The method for calculating the hazard index in the third embodiment is used as the third method.
[0137] The first, second, and third methods can be used individually or in combination.
[0138] For example, if the shape of the hazardous area is arbitrary, either the first method or the second method can be used to calculate the hazard index, or the first method and the second method can be used separately to calculate the hazard index, and the average of the two hazard indices obtained is taken as the final hazard index. If the hazardous area is circular, any one of the first method, the second method, or the third method can be used to calculate the hazard index. Alternatively, the first method and the second method can be used in combination, and the average of the two hazard indices obtained is taken as the final hazard index. This application embodiment can accurately calculate the current danger value and potential danger value of the target security inspector (target security inspection terminal) for dangerous areas of any shape, and then calculate the danger index of the target security inspector to ensure the safety of the target security inspector.
[0139] Figure 8 A computer system architecture block diagram for an environmental safety inspection method according to an embodiment of this application is shown.
[0140] It should be noted that, Figure 8 The computer system 800 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0141] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage section 808 into random access memory (RAM). The RAM 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output interface 805 (I / O interface) is also connected to the bus 804.
[0142] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 810 as needed so that computer programs read from it can be installed into the storage section 808 as needed.
[0143] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit 801, it performs various functions defined in the system of this application.
[0144] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0145] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0146] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0147] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0148] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0149] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. An environmental safety inspection method, characterized in that, The method includes: The target security inspector is determined based on the inspection information from the inspection point and the work information of the security inspector. A security inspection task is generated based on the inspection information and the work information of the target security inspector, and the security inspection task is sent to the target security inspector's target security inspection terminal. Based on the task execution information collected by the target security terminal response control command, it is determined whether the security task has been completed.
2. The method according to claim 1, characterized in that, The target security inspector is determined based on the inspection information from the checkpoint and the work information of the security inspector, including: Based on the type information in the inspection information, the security inspector of the type corresponding to the type information is selected as the first security inspector; Based on the production line information in the inspection information, the first security inspector with inspection authority is selected as the initial security inspector, and at least one initial security inspector is selected as the target security inspector.
3. The method according to claim 2, characterized in that, The method further includes: Determine the required number of security inspectors for each type of target based on the inspection information; Select initial security inspectors of each type as target security inspectors to ensure that the required number of target security inspectors of each type is reached.
4. The method according to claim 1, characterized in that, Based on the inspection information and the target security inspector's work information, a security inspection task is generated, and the security inspection task is sent to the target security inspector's target security inspection terminal, including: The security inspection task is generated based on the inspection frequency and location information in the inspection information, as well as the shift information and personnel information of the target security inspector.
5. The method according to claim 4, characterized in that, The type information in the inspection point information can correspond to multiple types of security personnel. Based on the inspection frequency and location information in the inspection point information, as well as the shift information and personnel information of the target security personnel, the security inspection task is generated, including: If the initial security inspector is of multiple types, then at least one target security inspector shall be selected from each type of initial security inspector; Based on the inspection information, the inspection frequency corresponding to each type of target security inspector is obtained, and the inspection frequency of each target security inspector is determined. Based on the inspection frequency, shift information, personnel information, and location information of each target security inspector, the security inspection task for each target security inspector is generated. If the initial security inspectors are of the same type, the security inspection task is generated based on the inspection frequency and location information in the inspection point information, as well as the shift information and personnel information of the target security inspector.
6. The method according to claim 1, characterized in that, Based on the task execution information collected according to the target security check terminal's response control command, it is determined whether the security check task has been completed, including: The task execution information is a task execution image. The task execution image is preprocessed to obtain multiple execution images. Obtain the standard execution steps corresponding to the security inspection task, and the standard image features corresponding to each of the standard execution steps; An execution image that matches the standard image features is taken as the hit image, and a blank image is assigned as a supplementary image for the standard execution steps that do not have a hit image. Based on the playback order of the hit images in the task execution image, the hit images are sorted to obtain an execution image sequence, and based on the execution order of the standard execution steps, the hit images and supplementary images are sorted to obtain a standard image sequence; The sequence similarity between the standard image sequence and the execution image sequence is calculated to determine the task completion degree based on the sequence similarity. If the task completion degree is greater than a set threshold, the task is determined to be completed; if the task completion degree is less than or equal to the set threshold, the task is determined to be failed.
7. The method according to claim 6, characterized in that, Calculating the sequence similarity between the standard image sequence and the execution image sequence includes: The length of the longest identical subsequence in the executed image sequence and the standard image sequence is taken as the target length, and the ratio of the target length to the length of the standard image sequence is taken as the first similarity. The number of overlapping adjacent image pairs in the executed image sequence and the standard image sequence is taken as the target overlap number, and the ratio of the target overlap number to the number of adjacent image pairs in the standard image sequence is taken as the second similarity. A third similarity between the execution image sequence and the standard image sequence is calculated based on the difference in the sorting position of each hit image in the execution image sequence and the standard image sequence. The sequence similarity between the executed image sequence and the standard image sequence is calculated based on at least one of the first similarity, the second similarity, and the third similarity.
8. The method according to claim 7, characterized in that, The length of the longest identical subsequence in the executed image sequence and the standard image sequence is used as the target length, and the ratio of the target length to the length of the standard image sequence is used as the first similarity, including: Take any image in the execution image sequence as the target image. If the next image of the target image is the same as the next image of the target image in the standard image sequence, then take the next image of the target image as the target image. The acquisition of the target image is repeated until the next image of the target image is different from the next image of the target image in the standard image sequence, and the number of the target images is used as the initial length; Obtain the initial length corresponding to each of the hit images, and take the largest initial length as the target length; The ratio of the target length to the standard image sequence length is used as the first similarity.
9. An environmental safety inspection device, comprising a memory, a processor, and a readable program stored in the memory, characterized in that, The processor executes the readable program to implement the method of any one of claims 1 to 8.
10. A readable storage medium, characterized in that, It stores a readable program / instruction that, when executed by a processor, implements the method of any one of claims 1 to 8.