Security monitoring method, device, electronic device and storage medium
Through video monitoring based on scene and model selection technology in production operations, the problem of low security monitoring accuracy in the existing technology is solved, monitoring accuracy and efficiency are improved, and costs are reduced.
Patent Information
- Application Number
- CN202311684959.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-08
AI Technical Summary
In the existing technology, safety monitoring of production operations relies on manual inspections, which results in the inability to effectively monitor all production scenarios at the same time. There are missed or wrong detections, resulting in low accuracy of safety monitoring.
Through instructions based on scene selection and model selection, determine the target monitoring scene and target security monitoring model, conduct video surveillance, obtain scene information, predict model parameters, configure the model, conduct security status detection, and generate early warnings when unsafe conditions are detected information.
It improves the accuracy of security monitoring, reduces dependence on manpower, is suitable for security monitoring in multiple scenarios, reduces costs, does not rely on the deployment of computer room equipment, and realizes dynamic regulation of security monitoring needs.
Smart Images

Figure CN117671594B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to a security monitoring method, device, electronic equipment and storage medium. Background Art
[0002] There are usually some unsafe factors in production operations. For example, there may be dangerous areas in the work site (such as the area below the hoisting operation). For another example, there may be safety hazards caused by improper operation of the work process by some operators. Therefore, it is very important to monitor the safety of production operations.
[0003] Usually, safety monitoring is carried out by manual inspection; however, this monitoring method is too dependent on manpower and cannot monitor the safety of all production scenarios at the same time. There may be missed detections or false detections, resulting in low accuracy of safety monitoring. Summary of the invention
[0004] The present invention provides a security monitoring method, device, electronic equipment and storage medium, which are used to solve the problem of low accuracy of security monitoring in the prior art.
[0005] The present invention provides a security monitoring method, comprising:
[0006] Based on the scene selection instruction, determine a target monitoring scene from a plurality of preset monitoring scenes, wherein at least one security monitoring requirement exists in the target monitoring scene;
[0007] Based on the model selection instruction, at least one target security monitoring model is determined from a plurality of preset security monitoring models, wherein the target security monitoring model is used to meet one security monitoring requirement among the at least one security monitoring requirement;
[0008] Based on the at least one target security monitoring model, a security status detection is performed on the monitoring video corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0009] According to a security monitoring method provided by the present invention, based on the at least one target security monitoring model, performing security status detection on the monitoring video corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene includes:
[0010] Acquire scene information of the target monitoring scene, the scene information including at least one of the following: scene identification, scene type, scene location, scene name, and scene image;
[0011] Based on the scenario information, predicting initial values of model parameters of each target security monitoring model;
[0012] Based on the model parameter initial values, configure the model parameters in each of the target security monitoring models to obtain at least one first target security monitoring model that has been configured; wherein the model parameter initial values are used to make the security monitoring requirements satisfied by the first target security monitoring model applicable to the scenario information;
[0013] Based on the at least one first target security monitoring model, security status detection is performed on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0014] According to a security monitoring method provided by the present invention, based on the at least one first target security monitoring model, security status detection is performed on the monitoring videos corresponding to the target monitoring scene respectively to obtain at least one security monitoring result corresponding to the target monitoring scene, including:
[0015] Obtaining the model parameter update value indicated by the parameter update instruction;
[0016] Based on the model parameter update value, configure the model parameters in the at least one first target security monitoring model to obtain at least one second target security monitoring model that has been configured;
[0017] Based on the at least one second target security monitoring model, security status detection is performed on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0018] According to a security monitoring method provided by the present invention, the method of determining at least one target security monitoring model from a plurality of preset security monitoring models based on a model selection instruction includes:
[0019] Determining at least one first security monitoring model corresponding to the target monitoring scenario from a plurality of preset security monitoring models;
[0020] Based on the model selection instruction, at least one target safety monitoring model is determined from the at least one first safety monitoring model.
[0021] According to a security monitoring method provided by the present invention, after performing security status detection on the monitoring video corresponding to the target monitoring scene based on the at least one target security monitoring model and obtaining at least one security monitoring result corresponding to the target monitoring scene, the method further includes:
[0022] generating warning information when the at least one security monitoring result indicates that an unsafe condition exists in the target monitoring scene;
[0023] Among them, the warning information includes at least one of the following: the type of the unsafe condition, the duration of the unsafe condition, the warning level of the unsafe condition, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
[0024] According to a security monitoring method provided by the present invention, after generating the warning information, the method further includes:
[0025] Displaying an early warning processing interface, wherein the early warning processing interface includes the early warning information;
[0026] Obtaining an early warning processing instruction acting on the early warning processing interface;
[0027] When the warning processing instruction indicates a processed state, setting the processing state of the unsafe situation to processed;
[0028] When the warning processing instruction indicates an ignore state, setting the processing state of the unsafe condition to ignore;
[0029] When the warning processing instruction indicates a deferred processing state, the processing state of the unsafe situation is set to deferred processing.
[0030] According to a security monitoring method provided by the present invention, the at least one target security monitoring model includes a dangerous behavior detection model, and the dangerous behavior detection model performs security status detection on the monitoring video based on the following steps:
[0031] Inputting the surveillance video corresponding to the target surveillance scene into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence;
[0032] Inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer;
[0033] In a case where the dangerous behavior detection result indicates that there is a dangerous behavior in the target monitoring scene, a safety monitoring result of the target monitoring scene is generated based on the dangerous behavior detection result and the face recognition result of the monitoring video.
[0034] The present invention also provides a safety monitoring device, comprising:
[0035] A scene selection module, configured to determine a target monitoring scene from a plurality of preset monitoring scenes based on a scene selection instruction, wherein at least one security monitoring requirement exists in the target monitoring scene;
[0036] A model selection module, configured to determine at least one target security monitoring model from a plurality of preset security monitoring models based on a model selection instruction, wherein the target security monitoring model is configured to meet one security monitoring requirement among the at least one security monitoring requirement;
[0037] The security monitoring module is used to perform security status detection on the monitoring video corresponding to the target monitoring scene based on the at least one target security monitoring model, and obtain at least one security monitoring result corresponding to the target monitoring scene.
[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the security monitoring methods described above is implemented.
[0039] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the security monitoring method described in any one of the above is implemented.
[0040] The security monitoring method, device, electronic device and storage medium provided by the present invention determine a target monitoring scene from a plurality of preset monitoring scenes based on a scene selection instruction, and there is at least one security monitoring requirement in the target monitoring scene; in this way, the user can determine the target monitoring scene from a plurality of monitoring scenes as needed, so as to further perform security status detection on the target monitoring scene later; based on the model selection instruction, at least one target security monitoring model is determined from a plurality of preset security monitoring models, and the target security monitoring model is used to meet one of the at least one security monitoring requirement; in this way, the determined target security monitoring model can meet the security monitoring requirement existing in the target monitoring scene, so that the determined target security monitoring model is for the target monitoring scene, and the accuracy of security monitoring is improved; based on the at least one target security monitoring model, the security status of the monitoring video corresponding to the target monitoring scene is detected, and at least one security monitoring result corresponding to the target monitoring scene is obtained; in this way, the target monitoring scene can be security monitored according to the determined target security monitoring model to obtain a security monitoring result. On the one hand, it does not rely on manpower, and improves the accuracy of security monitoring. On the other hand, based on the configuration of the target security monitoring model, the security monitoring requirements that need to be implemented in the target monitoring model are dynamically adjusted, thereby improving the accuracy of security monitoring. On the other hand, it can be applied to security monitoring in multiple scenarios. In the case of multiple monitoring scenarios, a corresponding security monitoring model can be configured for each monitoring scenario (such as the target monitoring scenario), thereby improving the accuracy of security monitoring. On the other hand, the security monitoring of each monitoring scenario of the present invention does not rely on the deployment of equipment in the computer room, thereby reducing the cost of security monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 One of the flow charts of the security monitoring method provided by the present invention;
[0043] Figure 2 The second flowchart of the security monitoring method provided by the present invention;
[0044] Figure 3 The third flowchart of the security monitoring method provided by the present invention;
[0045] Figure 4 The fourth flowchart of the security monitoring method provided by the present invention;
[0046] Figure 5 The fifth flowchart of the security monitoring method provided by the present invention;
[0047] Figure 6 A schematic diagram of the structure of the dangerous behavior detection model provided by the present invention;
[0048] Figure 7 A schematic diagram of the structure of the attention layer provided by the present invention;
[0049] Figure 8 The sixth flowchart of the security monitoring method provided by the present invention;
[0050] Fig. 9 The seventh flowchart of the security monitoring method provided by the present invention;
[0051] Fig.10 FIG8 is a flow chart of the security monitoring method provided by the present invention;
[0052] Fig.11 A schematic diagram of the structure of the face super-resolution processing model provided by the present invention;
[0053] Fig.12 This is one of the schematic diagrams of the effect of the security monitoring method provided by the present invention;
[0054] Fig.13 The second schematic diagram of the effect of the security monitoring method provided by the present invention;
[0055] Fig.14 The third schematic diagram of the effect of the security monitoring method provided by the present invention;
[0056] Fig.15 A schematic diagram of the structure of the safety monitoring device provided by the present invention;
[0057] Fig.16 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] As described in the background technology, there are usually some unsafe factors in production operations. For example, there may be dangerous areas in the work site (such as the area below the hoisting operation). For another example, there are safety hazards caused by improper operation of the work process by some operators. Therefore, it is very important to monitor the safety of production operations.
[0060] Usually, safety monitoring is carried out by manual inspection; however, this monitoring method is too dependent on manpower and cannot monitor the safety of all production scenarios at the same time. There may be missed detections or false detections, resulting in low accuracy of safety monitoring.
[0061] Alternatively, a model server can be deployed in a production scenario (such as a factory area), and independent scenario-based regulation can be performed based on the monitoring trial operation results of the production scenario to conduct security monitoring of the production scenario; however, this method is only applicable to a single scenario (such as a single factory area), and the existence of a computer room in the production scenario is required to deploy the model server; in the case of monitoring multiple scenarios (such as multiple factory areas), a computer room needs to be deployed in each scenario, so the cost of security monitoring is relatively high.
[0062] Alternatively, in the case of multi-scene monitoring, the surveillance video of each scene can be summarized and unified for security monitoring; however, this method has high requirements for the network transmission bandwidth of each scene, resulting in reduced efficiency of security monitoring.
[0063] In view of the above problems, the present invention proposes the following embodiments. Figure 1 One of the flow charts of the security monitoring method provided by the present invention is as follows: Figure 1 As shown, the security monitoring method includes:
[0064] Step S110: Based on the scene selection instruction, a target monitoring scene is determined from a plurality of preset monitoring scenes, and there is at least one security monitoring requirement in the target monitoring scene.
[0065] Here, the scene selection instruction is used to select a target monitoring scene.
[0066] In one embodiment, scene names of a plurality of preset monitoring scenes are displayed; and based on the scene name of the target monitoring scene indicated by the monitoring selection instruction, a target monitoring scene is determined from the plurality of preset monitoring scenes.
[0067] In another embodiment, scene images of a plurality of preset monitoring scenes are displayed; and based on the scene image of the target monitoring scene indicated by the monitoring selection instruction, a target monitoring scene is determined from the plurality of preset monitoring scenes.
[0068] In yet another embodiment, scene positions of a plurality of preset monitoring scenes are displayed; and based on the scene position of the target monitoring scene indicated by the monitoring selection instruction, the target monitoring scene is determined from the plurality of preset monitoring scenes.
[0069] Here, the preset multiple monitoring scenes are multiple scenes that can be used for security monitoring.
[0070] In one embodiment, the preset multiple monitoring scenes include preset multiple factory areas, and each factory area is a monitoring scene, so that the partition monitoring of each factory area can be realized.
[0071] In another embodiment, the preset multiple monitoring scenes include preset multiple dangerous areas, and each dangerous area is used as a monitoring scene. In this way, each dangerous area can be monitored to improve the accuracy of safety monitoring. Exemplarily, the preset multiple monitoring scenes include the following scenes: a work scaffolding area, a high-altitude guardrail area, and an area below a hoisting operation.
[0072] To facilitate monitoring of each monitoring scene, each monitoring scene can also correspond to a monitoring video, and the monitoring video corresponding to each monitoring scene is used to record the real-time operation status of the monitoring scene. Furthermore, the scene information of the monitoring scene can also be bound to the device information of the shooting device that shoots the monitoring scene.
[0073] In one embodiment, a scene database is constructed. The scene database includes scene information of a plurality of preset monitoring scenes; the scene information includes but is not limited to at least one of the following: scene identification, scene type, scene location, scene name, and scene image. It is understandable that the scene information of each monitoring scene reflects the scene characteristics of the monitoring scene.
[0074] In one embodiment, a device database is constructed, which includes device information of the shooting devices used to shoot the preset multiple monitoring scenes; the device information includes but is not limited to at least one of the following: device identification, device model, device parameters, video stream address, and device IP address.
[0075] Furthermore, a mapping relationship between the shooting devices in the device database and the monitoring scenes in the scene database may be established to bind the scene information of a monitoring scene with the device information of the shooting device that shoots the monitoring scene.
[0076] Here, the target monitoring scene is a monitoring scene that needs to be monitored for security. The target monitoring scene is selected by a scene selection instruction. There is at least one security monitoring requirement in the target monitoring scene.
[0077] Here, the security monitoring demand can be understood as the monitoring demand for detecting certain security risks.
[0078] In one embodiment, the safety monitoring requirement is a monitoring requirement for detecting dangerous behaviors. Exemplarily, the dangerous behaviors include but are not limited to at least one of the following: not wearing a safety rope, leaning on a high-altitude guardrail, being in the area below the hoisting operation, not wearing work clothes, and climbing over the cordon.
[0079] In another embodiment, the safety monitoring requirement also includes a monitoring requirement for detecting dangerous conditions. Exemplarily, the dangerous conditions include but are not limited to at least one of the following: excessive water accumulation, exposed wires, and blocked safety passages.
[0080] Step S120: Based on the model selection instruction, at least one target security monitoring model is determined from a plurality of preset security monitoring models, where the target security monitoring model is used to meet one of the at least one security monitoring requirement.
[0081] Here, the model selection instruction is used to select the at least one target security monitoring model mentioned above.
[0082] In one embodiment, at least one target security monitoring model is directly determined from a plurality of preset security monitoring models. Exemplarily, the model names of the plurality of preset security monitoring models are displayed; based on the model name of the target security monitoring model indicated by the model selection instruction, at least one target security monitoring model is determined from the plurality of preset security monitoring models.
[0083] In another embodiment, at least one first security monitoring model corresponding to the target monitoring scenario is determined from a plurality of preset security monitoring models; based on the model selection instruction, at least one target security monitoring model is determined from the at least one first security monitoring model. It is understandable that the types of potential safety hazards in the target monitoring scenario are limited, so not every security monitoring model may be used; therefore, the first security monitoring model suitable for the target monitoring scenario can be selected first, and then the target security monitoring model can be selected according to the model selection instruction.
[0084] Here, multiple security monitoring models are used to meet multiple security monitoring requirements, and each security monitoring model corresponds to one security monitoring requirement.
[0085] In one embodiment, the security monitoring model includes a dangerous behavior detection model to meet the monitoring requirements for detecting dangerous behaviors.
[0086] In another embodiment, the safety monitoring model includes a dangerous state detection model to meet the monitoring requirements for detecting dangerous states.
[0087] Here, the target security monitoring model is determined based on the model selection instruction.
[0088] The target security monitoring model is used to meet at least one security monitoring requirement in the target monitoring scenario.
[0089] Step S130: Based on at least one target security monitoring model, a security status detection is performed on the monitoring video corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0090] Here, the safety monitoring result at least includes indication information for indicating whether an unsafe condition exists in the target monitoring scene, and the unsafe condition includes a dangerous behavior and / or a dangerous state.
[0091] Furthermore, when at least one security monitoring result indicates the existence of an unsafe condition in the target monitoring scene, the above security monitoring result also includes at least one of the following: the type of unsafe condition, the number of unsafe conditions, the duration of the unsafe condition, the warning level of the unsafe condition, and the time of occurrence of the unsafe condition, etc.
[0092] In one embodiment, step S130 includes: directly inputting the monitoring videos corresponding to the target monitoring scene into at least one target security monitoring model to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0093] In another embodiment, step S130 includes: obtaining scene information of the target monitoring scene, the scene information including at least one of the following: scene identification, scene type, scene location, scene name, and scene image; based on the scene information, predicting the initial values of model parameters of each target security monitoring model; based on the initial values of the model parameters, configuring the model parameters in each target security monitoring model to obtain at least one first target security monitoring model that has been configured; wherein the initial values of the model parameters are used to make the security monitoring requirements satisfied by the first target security monitoring model applicable to the scene information; based on at least one first target security monitoring model, performing security status detection on the monitoring videos corresponding to the target monitoring scene respectively to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0094] Furthermore, the model parameters of the first target security monitoring model can also be updated. Exemplarily, based on at least one first target security monitoring model, the above-mentioned security status detection is performed on the monitoring videos corresponding to the target monitoring scene respectively, and at least one security monitoring result corresponding to the target monitoring scene is obtained, including: obtaining the model parameter update value indicated by the parameter update instruction; based on the model parameter update value, configuring the model parameters in at least one first target security monitoring model to obtain at least one second target security monitoring model that has been configured; based on at least one second target security monitoring model, the security status detection is performed on the monitoring videos corresponding to the target monitoring scene respectively, and at least one security monitoring result corresponding to the target monitoring scene is obtained.
[0095] In one embodiment, after step S130, the method further includes: generating warning information when at least one security monitoring result indicates that an unsafe condition exists in the target monitoring scene. The warning information includes at least one of the following: the type of the unsafe condition, the duration of the unsafe condition, the warning level of the unsafe condition, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
[0096] Furthermore, a safety situation analysis report for the target monitoring scenario can be generated based on the acquired warning information and the processing of the warning information; wherein the safety situation analysis report includes at least one of the following: the type ratio of unsafe conditions existing in the target monitoring scenario, the number of warnings, and the warning disposal rate.
[0097] The security monitoring method provided by the embodiment of the present invention determines a target monitoring scene from a plurality of preset monitoring scenes based on a scene selection instruction, and there is at least one security monitoring requirement in the target monitoring scene; in this way, the user can determine the target monitoring scene from a plurality of monitoring scenes as needed, so as to further perform security status detection on the target monitoring scene later; based on the model selection instruction, at least one target security monitoring model is determined from a plurality of preset security monitoring models, and the target security monitoring model is used to meet one of the at least one security monitoring requirement; in this way, the determined target security monitoring model can meet the security monitoring requirement existing in the target monitoring scene, so that the determined target security monitoring model is for the target monitoring scene, and the accuracy of security monitoring is improved; based on the at least one target security monitoring model, the security status of the monitoring video corresponding to the target monitoring scene is detected, and at least one security monitoring result corresponding to the target monitoring scene is obtained; in this way, the target monitoring scene can be security monitored according to the determined target security monitoring model to obtain a security monitoring result. On the one hand, it does not rely on manpower, and improves the accuracy of security monitoring. On the other hand, based on the configuration of the target security monitoring model, the security monitoring requirements that need to be implemented in the target monitoring model are dynamically adjusted, and the accuracy of security monitoring is improved. On the other hand, it can be applied to security monitoring in multiple scenarios. In the case of multiple monitoring scenarios, a corresponding security monitoring model can be configured for each monitoring scenario (such as a target monitoring scenario), thereby improving the accuracy of security monitoring. On the other hand, the security monitoring of each monitoring scenario of the present invention does not rely on the deployment of equipment in the computer room, thereby reducing the cost of security monitoring.
[0098] Based on any of the above embodiments, Figure 2 This is a second flow chart of the security monitoring method provided by the present invention. Figure 2 , the above step S130 includes:
[0099] Step S210: Acquire scene information of the target monitoring scene.
[0100] Here, the target monitoring scene is a monitoring scene that needs to be monitored for security. There is at least one security monitoring requirement in the target monitoring scene.
[0101] The security monitoring requirement can be understood as a monitoring requirement for detecting a certain potential safety hazard. The specific content of the security monitoring requirement can be referred to the description in step S110, which will not be repeated here.
[0102] Here, the scene information includes at least one of the following: a scene identifier, a scene type, a scene location, a scene name, and a scene image.
[0103] The scene identifier is used to uniquely identify the target monitoring scene. Exemplarily, the scene identifier can be a scene number or a scene ID.
[0104] In one embodiment, the scene image is a pre-stored scene image, for example, it may be a scene image pre-stored before acquiring the surveillance video corresponding to the target surveillance scene.
[0105] In another embodiment, the scene image is a video frame image extracted from a surveillance video corresponding to the target surveillance scene.
[0106] Step S220: Based on the scenario information, predict the initial values of the model parameters of each target security monitoring model.
[0107] In one embodiment, the model parameter initial value includes the initial value of the model running time. It should be noted that the security status detection is performed on the monitoring video corresponding to the target monitoring scene only when the current moment is in the model running time of the target security monitoring model.
[0108] In a specific example, step S220 is specifically implemented as follows: based on the scene type of the target monitoring scene, predicting the model running time of the target safety monitoring model. It is understandable that in some scene types, it is not necessary to perform safety status detection on the monitoring video corresponding to the target monitoring scene at all times. For example, in the operation workshop scene, it is only necessary to detect whether each operator operates in a standardized manner during the operation time. However, in other scene types, it may be necessary to perform safety status detection on the monitoring video corresponding to the target monitoring scene at all times; for example, in a scene with a high-altitude guardrail, it is necessary to monitor the scene for safety at all times to prevent people from leaning on the high-altitude guardrail. Therefore, the model running time of the target safety monitoring model can be predicted based on the scene type.
[0109] In another embodiment, the model parameter initial values include initial values of the model processing regions.
[0110] In a specific example, the model processing area includes a complete area of the target monitoring scene. For example, for the monitoring video corresponding to the target monitoring scene, the security status detection can be performed on the complete image of each video frame image in the monitoring video by default.
[0111] In another specific example, the model processing area includes only a part of the target monitoring scene. That is, for the monitoring video corresponding to the target monitoring scene, only part of the images of each video frame in the monitoring video can be used for safety status detection. For example, when monitoring a construction site scene, only the area below the hoisting operation included in the construction site scene can be used for safety monitoring to improve the efficiency of safety monitoring.
[0112] In another embodiment, the model parameter initial value includes an initial value of the warning confidence threshold. In a specific example, taking the target safety monitoring model as a dangerous behavior detection model, the dangerous behavior detection model can output the confidence of the dangerous behavior of "not wearing a helmet", and when the confidence exceeds the warning confidence threshold, send a warning message to provide a timely warning.
[0113] In yet another embodiment, the scene information is input into a model parameter prediction model to obtain initial values of the model parameters output by the model parameter prediction model.
[0114] Step S230: Based on the initial values of the model parameters, the model parameters in each target security monitoring model are configured to obtain at least one first target security monitoring model that has been configured.
[0115] Among them, the initial value of the model parameter is used to make the security monitoring requirements satisfied by the first target security monitoring model applicable to the scene information.
[0116] Step S240: Based on at least one first target security monitoring model, security status detection is performed on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0117] In one embodiment, step S240 includes: inputting the monitoring videos corresponding to the target monitoring scene into each first target security monitoring model respectively, and obtaining at least one security monitoring result corresponding to the target monitoring scene.
[0118] The security monitoring method provided by the embodiment of the present invention, since the scene information of the target monitoring scene can reflect the scene characteristics of the target monitoring scene, and the security monitoring requirements met by the target monitoring model are closely related to the scene characteristics of the target monitoring scene. Therefore, the initial values of the model parameters of each target security monitoring model can be determined based on the scene information of the target monitoring scene to realize the configuration of the model parameters; thereby making the configured first target security monitoring model more suitable for the target monitoring scene. Based on this, the accuracy of the subsequent use of the first target security monitoring model for security status detection can be improved, thereby improving the accuracy of security monitoring. In addition, in the case of multi-scenario monitoring, the model parameters of the target monitoring model of each monitoring scene can be configured to reduce the impact of scene differences on the model, improve the adaptability of the model, and thus improve the accuracy of security monitoring.
[0119] Based on any of the above embodiments, the above step S240 includes:
[0120] Obtaining the model parameter update value indicated by the parameter update instruction;
[0121] Based on the model parameter update value, configure the model parameters in at least one first target security monitoring model to obtain at least one second target security monitoring model that has been configured;
[0122] Based on at least one second target security monitoring model, security status detection is performed on monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
[0123] The security monitoring method provided by the embodiment of the present invention can update the model parameters in the first target security monitoring model according to user needs to obtain an updated second target security monitoring model. It is not difficult to understand that the accuracy of the updated second target security monitoring model is higher than that of the first target security monitoring model. Based on this, the accuracy of security monitoring of the target monitoring scene can be improved.
[0124] Based on any of the above embodiments, Figure 3 This is a flow chart of the third safety monitoring method provided by the present invention. Figure 3 , step S120 includes:
[0125] Step S310: Determine at least one first security monitoring model corresponding to a target monitoring scenario from a plurality of preset security monitoring models.
[0126] Here, the first security monitoring model is applicable to the target monitoring scenario.
[0127] In one embodiment, step S310 includes: according to the first security monitoring model indicated by the user instruction, directly determining at least one first security monitoring model corresponding to the target monitoring scene from a plurality of preset security monitoring models.
[0128] In another embodiment, step S310 includes: obtaining scene information of the target monitoring scene; predicting at least one security monitoring requirement existing in the target monitoring scene based on the scene information of the target monitoring scene; determining at least one first security monitoring model corresponding to the target monitoring scene from the preset multiple security monitoring models based on the at least one security monitoring requirement existing in the target monitoring scene and the security monitoring requirements satisfied by each security monitoring model in the preset multiple security monitoring models.
[0129] Step S320: Based on the model selection instruction, determine at least one target security monitoring model from at least one first security monitoring model.
[0130] The security monitoring method provided by the embodiment of the present invention can first select a first security monitoring model applicable to the target monitoring scenario from a plurality of preset security monitoring models, and then further select a target security monitoring model required for security status detection according to the model selection instruction. Based on this, on the one hand, it can be ensured that the target security monitoring model finally determined is applicable to the target monitoring scenario to improve the accuracy of security monitoring; on the other hand, it is not necessary to monitor all the potential safety hazards in the target monitoring scenario, that is, it is not necessary to meet all the security monitoring requirements in the target monitoring scenario, but to select the target security monitoring model to be used according to user requirements; based on this, the efficiency of security monitoring can be improved.
[0131] Based on any of the above embodiments, after step S130, the method further includes: generating warning information when at least one security monitoring result indicates that an unsafe situation exists in the target monitoring scene.
[0132] Here, unsafe conditions include: dangerous behavior and / or dangerous status.
[0133] In a specific example, the dangerous behavior includes but is not limited to at least one of the following: not wearing a safety rope, leaning on a high-altitude guardrail, being in the area below the lifting operation, not wearing work clothes, and climbing over the cordon, etc.
[0134] In a specific example, the dangerous condition includes but is not limited to at least one of the following: excessive water accumulation, exposed wires, and blocked safety passages.
[0135] Here, the warning information includes at least one of the following: the number of unsafe conditions, the type of unsafe conditions, the duration of the unsafe conditions, the warning level of the unsafe conditions, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
[0136] In a specific example, the warning image is a video frame image in which the unsafe condition is detected in the monitoring video, so that supervisors can view the specific unsafe condition based on the warning image.
[0137] Furthermore, early warning information can be sent.
[0138] In a specific example, a warning message is sent to a supervisor in the form of text, image or voice.
[0139] In another specific example, the warning information is displayed on the warning processing interface, so that the supervisor can directly view the corresponding warning information when viewing the warning processing interface.
[0140] In yet another specific example, a warning message is sent in a target monitoring scene in a broadcast format to alert operators in the target monitoring scene to existing unsafe conditions.
[0141] The security monitoring method provided by the embodiment of the present invention can generate early warning information when an unsafe situation exists in the target monitoring scene, and provide data support for subsequent notification of relevant personnel (such as supervisors or operators in the target monitoring scene) so as to deal with the unsafe situation in a timely manner and improve the reliability of security monitoring.
[0142] Based on any of the above embodiments, Figure 4 This is a fourth flow chart of the security monitoring method provided by the present invention. Figure 4 , after step S130, further comprising:
[0143] Step S410: displaying an early warning processing interface, which includes early warning information.
[0144] Here, the warning information includes at least one of the following: the number of unsafe conditions, the type of unsafe conditions, the duration of the unsafe conditions, the warning level of the unsafe conditions, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
[0145] Step S420: Obtain an early warning processing instruction acting on the early warning processing interface.
[0146] Here, the warning processing instruction is used to indicate the processing status of the unsafe situation.
[0147] Step S430: When the warning processing instruction indicates that the status is processed, the processing status of the unsafe situation is set to processed.
[0148] It can be understood that when the processing status of the unsafe situation is set to processed, it means that the unsafe situation has been eliminated in the target monitoring scene.
[0149] Step S440: When the warning processing instruction indicates an ignore state, the processing state of the unsafe condition is set to ignore.
[0150] It is understandable that when identifying unsafe conditions in surveillance videos, there may be a very small probability of false detection. In this case, the processing status of the unsafe condition can be set to ignore to avoid continuous warnings. Alternatively, for unsafe conditions such as water accumulation detection, it may not be the presence of water accumulation that is dangerous, but the area or depth of the water accumulation area must exceed a specific limit. Therefore, if it does not exceed the specific limit, the processing status of the unsafe condition can also be set to ignore to avoid continuous warnings.
[0151] Step S450: When the warning processing instruction indicates a deferred processing state, the processing state of the unsafe situation is set to deferred processing.
[0152] It is understandable that for some unsafe conditions, if the warning level is low, it means that the unsafe condition is not dangerous and not urgent, so the processing status of the unsafe condition can be set to deferred processing.
[0153] Furthermore, when set to delayed processing, an early warning may be issued again after a preset period of time based on the unsafe condition that has been delayed in processing; if after the early warning is issued again, the processing status of the unsafe condition is still set to delayed processing, the above steps are repeated until the processing status of the unsafe condition is set to processed or ignored.
[0154] The safety monitoring method provided by the embodiment of the present invention can set the processing status of each unsafe condition from the early warning processing interface. In this way, the processing status of the unsafe condition that has been eliminated can be set to processed, the processing status of the unsafe condition that is misdetected or does not meet the processing standard (for example, the area or depth of the water accumulation area exceeds a specific limit) can be set to ignored, and the processing status of the unsafe condition with a lower early warning level can be set to deferred processing, which is convenient for supervisors to handle the unsafe condition. Based on this, each unsafe condition can be reasonably handled to improve the reliability of safety monitoring.
[0155] Based on any of the above embodiments, Figure 5 This is a fifth flow chart of the security monitoring method provided by the present invention. Figure 5 The at least one target security monitoring model includes a dangerous behavior detection model, which detects the security status of the monitoring video based on the following steps:
[0156] Step S510: input the surveillance video corresponding to the target surveillance scene into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence.
[0157] Here, the target monitoring scenario can refer to the description above and will not be described in detail here.
[0158] In one embodiment, each video frame image in the surveillance video may be directly processed to improve the accuracy of security monitoring.
[0159] In another embodiment, the video frame images in the monitoring video are processed once every preset number of frames. In this way, frame skipping detection can be implemented, the amount of image data processing can be reduced, and the efficiency of security monitoring can be improved.
[0160] Here, the dangerous behavior detection model includes a feature extraction layer and a detection layer. The feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence. Based on this, by adding an attention layer, the inter-channel information of each channel of the feature map output by each convolution layer can be adjusted to improve the accuracy of dangerous behavior detection. It should be noted that the specific structure of the feature extraction layer, the attention layer, and the detection layer can be referred to the description below and will not be described in detail here.
[0161] Here, the target feature map is the output feature map of the feature extraction layer. In a specific example, the target feature map is a multi-dimensional feature map (also called a high-dimensional feature map) output by the feature extraction layer.
[0162] Step S520: input the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer.
[0163] Here, the dangerous behavior detection result includes information for indicating whether there is a dangerous behavior in the monitoring video; that is, information for indicating whether there is a dangerous behavior in the target monitoring scene.
[0164] In some embodiments, the dangerous behavior detection result may also include at least one of the following: the type of dangerous behavior, the number of dangerous behaviors, the dangerous behavior identifier, the dangerous behavior risk attribute, the dangerous behavior risk level, and the dangerous behavior trace, etc. Among them, the dangerous behavior identifier is used to uniquely identify a single dangerous behavior, for example, the dangerous behavior identifier can be a dangerous behavior serial number or a dangerous behavior ID, etc.
[0165] Here, for ease of understanding, Figure 6 This is a schematic diagram of the structure of the dangerous behavior detection model provided by the present invention. Figure 6 , the dangerous behavior detection model includes a feature extraction layer and a detection layer. The detection layer includes a region proposal network (RPN) layer, a region of interest pooling (ROIPooling) layer, a fully connected layer, a regression branch, and a classification branch. Among them, the RPN layer, the ROIPooling layer, and the fully connected layer are connected in sequence, and the fully connected layer is connected to the regression branch and the classification branch respectively.
[0166] The RPN layer is connected to the feature extraction layer. The RPN layer can generate candidate regions based on the target feature map input by the feature extraction layer. In one embodiment, the RPN layer also includes a normalized exponential function layer (not shown in the figure), which is used to determine whether the content of the candidate region belongs to the foreground or the background to generate a more accurate candidate region.
[0167] The ROIPooling layer is also connected to the feature extraction layer and the RPN layer respectively. The ROIPooling layer can determine a fixed-size candidate region feature map based on the candidate region generated by the RPN layer, the target feature map output by the feature extraction layer, and the image information of the video frame image in the surveillance video. The image information includes at least pixel information.
[0168] The fully connected layer can process the candidate region feature map input by the ROIPooling layer, and input the processing results into the classification branch and the regression branch.
[0169] The regression branch can determine the position adjustment parameters of the candidate region based on the processing result, so as to optimize the candidate region determined by the RPN.
[0170] The classification branch can determine the dangerous behavior detection result based on the processing result. For example, the type of dangerous behavior present in the surveillance video can be determined.
[0171] Step S530: When the dangerous behavior detection result indicates that there is a dangerous behavior in the target monitoring scene, a safety monitoring result of the target monitoring scene is generated based on the dangerous behavior detection result and the face recognition result of the monitoring video.
[0172] Here, the relevant contents of the dangerous behavior detection result can refer to the description in step S520, which will not be described in detail here.
[0173] In one embodiment, the face recognition result includes face information in the surveillance video.
[0174] In another embodiment, the face recognition result includes the identity information of the person in the surveillance video. The identity information includes but is not limited to at least one of the following: face information, name, gender, age, job type, job number, contact information, department, and professional qualification certificate.
[0175] In one embodiment, the face recognition result of the monitoring video is determined based on the following method: for the video frame image in the monitoring video, face detection is performed on the video frame image to obtain a face image; and face recognition is directly performed on the face image to obtain a face recognition result.
[0176] In another embodiment, the face recognition result of the surveillance video is determined based on the following method: for the video frame image in the surveillance video, face detection is performed on the video frame image to obtain a face image; super-resolution processing is performed on the face image to obtain a processed face image; face recognition is performed on the processed face image to obtain a face recognition result. It should be understood that super-resolution processing can improve the clarity of the face image. Based on this, the accuracy of the obtained face recognition result can be improved.
[0177] In one embodiment, when the dangerous behavior detection result indicates that there is a dangerous behavior in the surveillance video, face recognition is performed on the surveillance video to obtain the face recognition result of the surveillance video. Based on this, face recognition can be performed only when there is a dangerous behavior, rather than performing face recognition on the surveillance video in all cases, which reduces the amount of data processing and saves computing resources.
[0178] In another embodiment, while the surveillance video is input into the feature extraction layer in the dangerous behavior detection model, face recognition is performed on the surveillance video to obtain the face recognition result of the surveillance video. Based on this, dangerous behavior detection and face recognition can be performed at the same time, that is, face recognition is performed in advance while dangerous behavior detection is performed, thereby improving the efficiency of generating safety monitoring results.
[0179] Here, dangerous behavior refers to behavior that is not conducive to personal safety.
[0180] In a specific example, dangerous behaviors include but are not limited to at least one of the following: not wearing a safety rope, leaning on a high-altitude guardrail, being in the area below the hoisting operation, and climbing over the cordon, etc. It should be noted that the content of the dangerous behavior is related to the specific operation scene, and the present invention does not specifically limit the specific content of the dangerous behavior.
[0181] Here, the security monitoring results are generated based on the dangerous behavior detection results and the face recognition results of the surveillance video. It is understandable that the security monitoring results can reflect the dangerous behavior from both the dangerous behavior and personnel perspectives. Compared with a single dangerous behavior detection result and a single face recognition result, the security monitoring results can provide more dangerous behavior information.
[0182] In one embodiment, the security monitoring result includes but is not limited to at least one of the following: identity information of the target person, the type of dangerous behavior, the time when the dangerous behavior occurred, and the address where the dangerous behavior occurred.
[0183] The target person is a person who has dangerous behavior in the surveillance video. The identity information of the target person is determined based on the face recognition result of the surveillance video. In a specific example, the identity information includes but is not limited to at least one of the following: face information, name, gender, age, job type, work number, contact information, department, and professional qualification certificate.
[0184] In another embodiment, the safety monitoring result may further include at least one of the following: the number of dangerous behaviors, dangerous behavior identification, dangerous behavior risk attributes, dangerous behavior risk levels, and dangerous behavior traces, etc.
[0185] The security monitoring method provided by the embodiment of the present invention inputs the monitoring video corresponding to the target monitoring scene into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence; in this way, an attention layer can be added after the convolution layer of each sub-feature extraction layer, so as to adjust the attention between the channel information of each channel of the feature map output by each convolution layer, thereby improving the expressiveness of the feature map output by the convolution layer, so that the network can focus on more important channels, reduce the dependence on irrelevant or redundant information, and improve the dangerous behavior detection. The accuracy of the target feature map is improved, thereby improving the accuracy of safety monitoring; the target feature map is input into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; when the dangerous behavior detection result indicates that there is a dangerous behavior in the target monitoring scene, the safety monitoring result of the target monitoring scene is generated based on the dangerous behavior detection result and the face recognition result of the monitoring video; in this way, dangerous behavior detection can be performed based on a more expressive feature map, which improves the accuracy of dangerous behavior detection and thereby improves the accuracy of safety monitoring; in addition, a more comprehensive safety monitoring result is generated based on the dangerous behavior detection result and the face recognition result, which is convenient for users to understand the details. Based on this, on the one hand, an attention layer is added after the convolution layer of each sub-feature extraction layer to reset the weights of each channel of the feature map output by each convolution layer, so that the network can focus on more important channels, reduce dependence on irrelevant or redundant information, and improve the accuracy of detection. On the other hand, it does not rely on manpower and can comprehensively detect the behavior of all operators at the same time, which improves the efficiency and comprehensiveness of dangerous behavior detection and thereby improves the accuracy of safety monitoring.
[0186] Based on any of the above embodiments, Figure 7 This is a schematic diagram of the structure of the attention layer provided by the present invention. Figure 7 , the attention layer includes a global average pooling layer, a multi-channel feature extraction layer and a normalization layer connected in sequence. The input feature map of the attention layer is input into the attention layer to obtain the corresponding output feature map.
[0187] Further, based on Figure 7 The attention layer shown, Figure 8 This is a sixth flow chart of the security monitoring method provided by the present invention. Figure 8 As shown, any attention layer extracts features based on the following method:
[0188] Step S810: Input the input feature map of the attention layer to the global average pooling layer in the attention layer to obtain the first feature map output by the global average pooling layer.
[0189] In a specific example, step S810 can be implemented as follows: inputting the input feature map into the global average pooling layer; for each channel in the input feature map, in the global average pooling layer, calculating the pixel average of all pixels in the channel; generating a first feature map based on the pixel averages of each channel, the number of channels of the first feature map being the same as the number of channels of the input feature map.
[0190] Step S820: Input the first feature map to the multi-channel feature extraction layer in the attention layer to obtain a second feature map output by the multi-channel feature extraction layer, wherein the second feature map is used to indicate the channel weights of each channel in the input feature map, and the scale of the second feature map is the same as that of the first feature map.
[0191] In a specific example, step S820 can be implemented as follows: input the first feature map to the multi-channel feature extraction layer in the attention layer; based on the number of channels of the first feature map, generate a one-dimensional convolution kernel in the multi-channel feature extraction layer, the length of which is positively correlated with the number of channels of the first feature map; and perform convolution processing on the first feature map based on the one-dimensional convolution kernel to obtain a second feature map. Based on this, by reasonably setting the length of the one-dimensional convolution kernel, it is ensured that the scale of the obtained second feature map is the same as that of the first feature map.
[0192] It can be understood that when the scale of the second feature map is the same as that of the first feature map, feature dimensionality reduction is avoided, that is, information loss is avoided, thereby improving the accuracy of feature extraction and further improving the accuracy of security monitoring.
[0193] Step S830: input the second feature map into the normalization layer in the attention layer to obtain a third feature map output by the normalization layer.
[0194] In a specific example, each element in the second feature map is normalized based on the sigmoid formula to obtain the third feature map.
[0195] In another specific example, other normalization formulas (such as Z-Score, etc.) may also be used to normalize each element in the second feature map to obtain a third feature map.
[0196] Based on this, the value range of each element in the third feature map can be limited to between 0 and 1, which facilitates the subsequent feature map fusion.
[0197] Step S840: Fuse the third feature map with the input feature map to obtain a fourth feature map, and use the fourth feature map as the output feature map of the attention layer.
[0198] In a specific example, step S840 includes: multiplying the third feature map with the input feature map to obtain a fourth feature map, and using the fourth feature map as the output feature map of the attention layer.
[0199] It is understandable that other methods (such as convolution, etc.) can also be used to achieve the fusion of the third feature map and the input feature map, and the present invention does not impose specific limitations on this.
[0200] In the security monitoring method provided by the embodiment of the present invention, since the second feature map is used to indicate the channel weights of each channel in the input feature map, the third feature map after normalization of the second feature map can also indicate the channel weights of each channel in the input feature map; and then the third feature map can be fused with the input feature map to adjust the weights of each channel in the input feature map, and obtain a more expressive output feature map. Based on this, the attention adjustment of each channel of the input feature map is achieved, so that the network can focus on more important channels, reduce dependence on irrelevant or redundant information, improve the accuracy of feature extraction, and thus improve the accuracy of security monitoring.
[0201] Based on any of the above embodiments, any sub-feature extraction layer includes a convolution layer, an attention layer, an activation layer and a pooling layer connected in sequence.
[0202] In one embodiment, any sub-feature extraction layer only includes one convolution layer, one attention layer, one activation layer, and one pooling layer connected in sequence.
[0203] In another embodiment, any sub-feature extraction layer includes a pooling layer, and a plurality of sequentially connected convolutional layers, attention layers, and activation layers; the pooling layer is connected after the last activation layer in the sub-feature extraction layer.
[0204] Based on any of the above embodiments, Fig. 9 FIG7 is a flow chart of the security monitoring method provided by the present invention. Fig. 9 As shown in the figure, based on the dangerous behavior detection results and the face recognition results of the surveillance video, the security monitoring results of the target monitoring scene are generated, including:
[0205] Step S910: Based on the face recognition result, obtain the identity information of the target person in the surveillance video.
[0206] Here, the target person is the person who has dangerous behavior in the surveillance video.
[0207] Here, identity information includes but is not limited to at least one of the following: facial information, name, gender, age, job type, work number, contact information, department, and professional qualification certificate, etc.
[0208] In a specific example, the face recognition result includes the identity information of the target person; step S910 includes: directly obtaining the identity information of the target person from the face recognition result.
[0209] In another specific example, the face recognition result includes face information of the target person, and step S910 includes: based on the face information of the target person, matching the identity information corresponding to the face information from a preset person database. The preset person database stores the identity information of multiple persons, and the identity information of each person includes at least the face information of the person.
[0210] Step S920: Generate a security monitoring result of the target monitoring scene based on the identity information and the dangerous behavior detection result.
[0211] Here, the security monitoring results are generated based on the dangerous behavior detection results and the face recognition results of the surveillance video.
[0212] In one embodiment, the security monitoring result includes but is not limited to at least one of the following: identity information of the target person, the type of dangerous behavior, the time when the dangerous behavior occurred, and the address where the dangerous behavior occurred.
[0213] In another embodiment, the safety monitoring result may also include: the number of dangerous behaviors, dangerous behavior identification, dangerous behavior risk attributes, dangerous behavior risk levels, and dangerous behavior traces, etc.
[0214] In one embodiment, after step S920, it further includes: generating a safety monitoring report based on the safety monitoring results, the safety monitoring report including: the name, gender, age, type of work, work number, contact information, department, type of dangerous behavior, time of occurrence of the dangerous behavior, and address of occurrence of the dangerous behavior of the target person. Further, the safety monitoring report can also be stored, and / or the obtained safety monitoring report can be sent to the supervisor.
[0215] In another embodiment, the security monitoring result can be understood as the security monitoring report itself. Further, the security monitoring report can be stored, and / or the obtained security monitoring report can be sent to the supervisor.
[0216] The security monitoring method provided by the embodiment of the present invention can generate security monitoring results based on the dangerous behavior detection results and the face recognition results of the monitoring video. It can be understood that the security monitoring results can reflect the existing dangerous behavior situations (also known as unsafe conditions) from the two perspectives of dangerous behavior and personnel, and can prompt more information, so that users can understand more comprehensive situations, thereby improving the comprehensiveness and accuracy of security monitoring.
[0217] Based on any of the above embodiments, Fig.10 FIG8 is a flow chart of the security monitoring method provided by the present invention. Fig.10 As shown, the face recognition result is determined based on the following method:
[0218] Step S1010: For the video frame images in the surveillance video, perform face detection on the video frame images to obtain face images.
[0219] Step S1020: perform super-resolution processing on the face image to obtain a processed face image.
[0220] In one embodiment, a super-resolution technique based on interpolation (such as a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a bicubic interpolation algorithm, etc.) may be used to perform super-resolution processing on the face image to obtain a processed face image.
[0221] In another embodiment, a super-resolution technique based on reconstruction may be used to perform super-resolution processing on the face image to obtain a processed face image. Exemplarily, a non-local iterative back-projection (NLIBP) algorithm or a projection on convex set (POCS) algorithm may be used to perform reconstruction processing on the face image to obtain a processed face image.
[0222] In another embodiment, a super-resolution technology based on deep learning can be used to perform super-resolution processing on a facial image to obtain a processed facial image. Exemplarily, the facial image can be input into a facial super-resolution processing model to obtain a processed facial image. The facial super-resolution processing model is constructed based on a convolutional neural network.
[0223] To explain the scheme more clearly, Fig.11 A structural diagram of a face super-resolution processing model is shown in FIG. The face super-resolution processing model is constructed based on a deep face super-resolution (FSR) algorithm. The specific structure and processing principle of the face super-resolution processing model are briefly introduced below.
[0224] Reference Fig.11 ,The face super-resolution processing model includes: a recursive face super-resolution branch and a recursive face alignment branch.
[0225] The recursive face super-resolution branch includes a low-resolution feature extraction layer, a first fusion layer, a first convolution layer, a second fusion layer, a recursive layer, a high-resolution feature extraction layer, and a third fusion layer connected in sequence. Among them, the low-resolution feature extraction layer includes a second convolution layer and a pixel shuffling layer (also called a sub-pixel convolution layer) connected in sequence.
[0226] The second convolution layer is used to preliminarily extract image features. Exemplarily, a low-resolution image (e.g., the face image obtained in step S1010) can be input into the second convolution layer to obtain a fifth feature map of the low-resolution image. For example, a 3*3 convolution kernel can be used in the second convolution layer to convolve the input low-resolution image to obtain the fifth feature map.
[0227] The pixel shuffling layer is used to increase the dimension of image features. Exemplarily, the fifth feature map output by the second convolutional layer can be input to the pixel shuffling layer to obtain a sixth feature map output by the pixel shuffling layer, and the dimension of the sixth feature map is higher than that of the fifth feature map.
[0228] The first fusion layer connects the pixel shuffle layer and the recursive layer. The first fusion layer can fuse the first feedback feature map output by the recursive layer and the sixth feature map output by the pixel shuffle layer to obtain the seventh feature map. The first feedback feature map is obtained by processing the feature map output by the first fusion layer through the first convolution layer, the second fusion layer and the recursive layer in sequence.
[0229] The first feedback feature map output by the recursive layer is input into the high-resolution feature extraction layer to obtain the eighth feature map output by the high-resolution feature extraction layer.
[0230] Still refer to Fig.11 The recursive face super-resolution branch also includes an upsampling layer. The upsampling layer can upsample the input low-resolution image to obtain a ninth feature map.
[0231] The third fusion layer connects the recursive layer and the upsampling layer. The third fusion layer can fuse the eighth feature map output by the recursive layer and the ninth feature map output by the upsampling layer to obtain a first high-resolution image.
[0232] The recursive face alignment branch includes a pre-processing layer, a fourth fusion layer, a third convolutional layer, a recurrent hourglass layer, and a post-processing layer, which are connected sequentially.
[0233] The preprocessing layer is used to convert the input image (eg, the first high-resolution image) into high-dimensional features.
[0234] The fourth fusion layer is used to fuse the high-dimensional features output by the preprocessing layer and the second feedback feature map output by the cyclic hourglass layer to obtain the tenth feature map.
[0235] The third convolutional layer is used to extract features from the tenth feature map output by the fourth fusion layer to obtain an eleventh feature map.
[0236] The cyclic hourglass layer is used to process the eleventh feature map output by the third convolutional layer to obtain the twelfth feature map, which is a feature map related to the final facial key points for estimating the final facial key points. The facial key points are key points related to facial features (such as eyes, mouth, nose, and jaw line, etc.). The cyclic hourglass layer can enable the post-processing layer to generate a higher quality and more accurate feature map.
[0237] The post-processing layer is used to process the twelfth feature map output by the cyclic hourglass layer, and map the twelfth feature map into the final face key point feature map, which is the above-mentioned final face key point related feature map, and can also be called the face composition feature map.
[0238] Furthermore, the post-processing layer can also be connected to the second fusion layer in the recursive face super-resolution branch. Furthermore, the facial composition feature map output by the recursive face alignment branch can be input into the second fusion layer to implement iteration of the recursive face super-resolution branch and the recursive face alignment branch until a second high-resolution image with a sufficiently high resolution is generated (e.g., the processed face image obtained in step S1020).
[0239] Based on this, super-resolution processing of low-resolution images can be achieved to improve the clarity of low-resolution images.
[0240] Step S1030: performing face recognition on the processed face image to obtain a face recognition result.
[0241] In one embodiment, the face recognition result includes face information in the surveillance video.
[0242] In another embodiment, the face recognition result includes the identity information of the person in the surveillance video. The specific content of the identity information can be referred to the above description, which will not be described in detail here.
[0243] The security monitoring method provided by the embodiment of the present invention, on the one hand, only performs super-resolution processing on the face image, which reduces the amount of data processing and improves the efficiency of face recognition compared to processing the complete video frame image. On the other hand, the clarity of the face image is improved by super-resolution processing, and the accuracy of face recognition is improved, which provides data support for the subsequent determination of the identity information of the target person (that is, the person with dangerous behavior), and improves the accuracy of the determined identity information.
[0244] Based on any of the above embodiments, when the dangerous behavior detection result indicates that there is a dangerous behavior in the monitoring video, the above security monitoring method further includes: issuing a dangerous behavior alarm.
[0245] In one embodiment, the dangerous behavior warning includes: warning in the form of voice broadcast or buzzer alarm. Among them, the device corresponding to the voice broadcast or buzzer alarm can be set near the shooting device that shoots the surveillance video. Based on this, an alarm can be issued at the scene where dangerous behavior exists, so as to promptly urge the target personnel to regulate their behavior as soon as possible and improve the safety of the operation. It should be noted that there may be other forms of alarms, such as controlling the flashing of warning lights, etc., and the present invention does not make specific restrictions on this.
[0246] In another embodiment, the dangerous behavior warning includes sending dangerous behavior prompt information to the supervisor. Based on this, when the dangerous behavior is detected, the supervisor can be notified in time so that the supervisor can understand or intervene in the dangerous behavior.
[0247] The safety monitoring method provided by the embodiment of the present invention can issue a dangerous behavior alarm when a dangerous behavior is detected. Based on this, the detected dangerous behavior can be intervened to improve the safety of the operation. In addition, since an alarm is issued when the dangerous behavior detection result indicates that there is a dangerous behavior in the monitoring video, an alarm can be issued in advance before the safety monitoring result is generated, thereby improving the alarm efficiency and further improving the safety of the operation.
[0248] Based on any of the above embodiments, the security monitoring result includes the identity information of the target person in the monitoring video; after the security monitoring result of the target monitoring scene is generated based on the dangerous behavior detection result and the face recognition result of the monitoring video, it also includes:
[0249] In the case where the preset personnel database includes the identity information, based on the identity information, sending dangerous behavior warning information to the target person;
[0250] If the personnel database does not include the identity information, a dangerous behavior reminder message is sent to the supervisor.
[0251] In a specific example, the identity information of the target person includes at least the contact information of the target person, and sending the dangerous behavior warning information to the target person based on the identity information includes: sending the dangerous behavior warning information to the target person based on the contact information of the target person.
[0252] In another specific example, the identity information of the target person includes at least the name of the target person, and the safety monitoring result includes at least the type of dangerous behavior; the above-mentioned sending of dangerous behavior warning information to the target person based on the identity information includes: based on the name of the target person and the type of dangerous behavior, the target person is warned of dangerous behavior in the form of broadcast. For example, when the name of the target person is A and the type of dangerous behavior is C, the following message is broadcasted: "Employee A, for your life safety, please pay attention to correct behavior C!".
[0253] The safety monitoring method provided by the embodiment of the present invention can be understood that in some cases, the target person himself may not be aware that he has dangerous behavior; for example, in the case of a large-scale dangerous behavior alarm, if there are multiple operators in the target monitoring scene, the target person may not know that it is himself who has dangerous behavior, and therefore may not make corrections. This will pose a greater safety hazard. The embodiment of the present invention can send alarm information to individuals more accurately to improve the accuracy and reliability of early warnings, thereby improving the accuracy and reliability of safety monitoring. In addition, when the identity information of the target person cannot be detected from the personnel database, dangerous behavior prompt information is sent to the supervisor, so as to promptly notify the monitoring personnel; in this way, it can be ensured that regardless of whether the identity information of the target person is pre-stored, accurate dangerous behavior alarms can be issued to the target person to improve the safety of the operation.
[0254] Based on any of the above embodiments, after inputting the target feature map into the detection layer in the dangerous behavior detection model and obtaining the dangerous behavior detection result output by the detection layer, the method further includes:
[0255] When the dangerous behavior detection result indicates that dangerous behavior exists in the surveillance video, determining the duration of the dangerous behavior;
[0256] If the duration exceeds the preset time threshold, a dangerous behavior reminder message will be sent to the supervisor.
[0257] The safety monitoring method provided by the embodiment of the present invention can send dangerous behavior prompt information to the supervisor when the dangerous behavior lasts too long (for example, when it exceeds a preset time threshold). It is understandable that after the dangerous behavior occurs, some target persons may have a fluke mentality and do not correct the dangerous behavior. In the case that the dangerous behavior lasts too long, it can be considered that the target person has not made substantial corrections to the dangerous behavior, so the supervisor can be prompted to intervene. In this way, the safety of the operation and the reliability of safety monitoring can be improved.
[0258] In order to more clearly illustrate the security monitoring method provided by the embodiment of the present invention, a specific example is given below. Exemplarily, the monitoring method includes the following steps 1 to 8:
[0259] Step 1: Pre-build the scene database and device database.
[0260] The scene database includes scene information of a plurality of preset monitoring scenes. The device database includes device information of a shooting device for shooting the plurality of preset monitoring scenes. The relevant contents of the scene information and device information can refer to the description above.
[0261] Step 2: Preset multiple security monitoring models.
[0262] Furthermore, model parameters of multiple security monitoring models may be initialized, including at least one of the following: model name, warning level, model type, model call address, and warning confidence threshold.
[0263] For example, Fig.12 This is one of the schematic diagrams showing the effect of the security monitoring method provided by the present invention.
[0264] Reference Fig.12 The monitoring management page displays multiple preset security monitoring models, including: security channel anomaly recognition model, personnel crossing the boundary recognition model, and water accumulation detection recognition model.
[0265] Among them, the warning level of the safety channel anomaly recognition model is initialized to level 2, the model calling address of the safety channel anomaly recognition model uses the first address by default, the model type of the safety channel anomaly recognition model is target detection, and the warning confidence threshold of the safety channel anomaly recognition model is set to 0.75.
[0266] The warning level of the person crossing the boundary recognition model is initialized to level one, the model calling address of the person crossing the boundary recognition model uses the second address by default, the model type of the person crossing the boundary recognition model is target detection, and the warning confidence threshold of the person crossing the boundary recognition model is set to 0.5.
[0267] The warning level of the water accumulation detection and recognition model is initialized to level three, the model calling address of the water accumulation detection and recognition model uses the third address by default, the model type of the water accumulation detection and recognition model is image classification, and the warning confidence threshold of the water accumulation detection and recognition model is set to 0.5.
[0268] Furthermore, the model parameters in each security monitoring model can be modified or the corresponding security monitoring model can be deleted according to the operation controls in each security monitoring model. In addition, a control with the text "New" can be displayed in the monitoring management page to add a new security monitoring model to the preset multiple security monitoring models as needed.
[0269] Step 3: Establish a mapping relationship between the shooting devices in the device database and the monitoring scenes in the scene database.
[0270] Exemplarily, a mapping relationship is established between scene information of a certain monitoring scene and device information of a shooting device that shoots the monitoring scene, so as to bind the certain monitoring scene with the shooting device that shoots the monitoring scene.
[0271] Step 4: Based on the scenario selection instruction, determine a target monitoring scenario from multiple preset monitoring scenarios; based on the model selection instruction, determine at least one target security monitoring model from multiple preset security monitoring models.
[0272] For example, Fig.13 This is the second schematic diagram of the effect of the security monitoring method provided by the present invention.
[0273] Reference Fig.13 The monitoring management page displays: the scene name of the target monitoring scene, the scene image of the target monitoring scene, the video stream address, and the model configuration area of the target monitoring scene. Among them, the model configuration area displays multiple preset security monitoring models: security channel anomaly recognition model, personnel crossing the boundary recognition model, and water accumulation detection recognition model.
[0274] Furthermore, at least one target security monitoring model (eg, Fig.13 The selected person crossing the boundary recognition model).
[0275] Step 5: According to the scenario information of the target monitoring scenario, the model parameters of at least one target security monitoring model are configured to obtain at least one first target security monitoring model that has been configured.
[0276] In one embodiment, Fig.13 As shown, the monitoring management page displays the scene information of the target monitoring scene (such as the scene name and scene image), and the model configuration area displays multiple preset security monitoring models; after determining the target security monitoring model, the user can refer to the scene information of the target monitoring scene to set the warning confidence threshold, model running time and model processing area of each target security model.
[0277] In another embodiment, step five is specifically implemented as follows: obtaining scene information of the target monitoring scene; based on the scene information, predicting the initial values of the model parameters of each target security monitoring model; based on the initial values of the model parameters, configuring the model parameters in each target security monitoring model to obtain at least one first target security monitoring model that has been configured.
[0278] Step six: Based on at least one first target security monitoring model, perform security status detection on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene; if at least one security monitoring result indicates that there is an unsafe condition in the target monitoring scene, generate warning information.
[0279] Among them, the warning information includes at least one of the following: the type of unsafe condition, the duration of the unsafe condition, the warning level of the unsafe condition, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
[0280] Step seven, display the warning processing interface, the warning processing interface includes the above-mentioned warning information; obtain the warning processing instruction acting on the warning processing interface; when the warning processing instruction indicates a processed state, set the processing state of the unsafe condition to processed; when the warning processing instruction indicates an ignored state, set the processing state of the unsafe condition to ignored; when the warning processing instruction indicates a deferred processing state, set the processing state of the unsafe condition to deferred processing.
[0281] For example, Fig.14 This is the third schematic diagram of the effect of the security monitoring method provided by the present invention.
[0282] Reference Fig.14 The warning processing interface displays: the warning image, the scene name of the target monitoring scene, the device identification of the shooting device, the warning level, the warning time and the warning processing control, which includes: a first sub-control with the text displayed as "processed", a second sub-control with the text displayed as "ignore" and a third sub-control with the text displayed as "delay processing".
[0283] Further, in response to a user operation on the warning processing control, a warning processing instruction is obtained; for example, in response to the second sub-control being clicked, a warning processing instruction for indicating an ignore state is obtained. Then, based on the warning processing instruction, the processing state of the unsafe condition is set.
[0284] Step 8: Generate a security situation analysis report for the target monitoring scenario based on the acquired warning information and the processing of the warning information.
[0285] Among them, the safety situation analysis includes at least one of the following: the type and proportion of unsafe conditions existing in the target monitoring scenario, the number of warnings, and the warning disposal rate.
[0286] It can be seen that the above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the method. In order to achieve the above functions, the embodiment of the present invention provides a hardware structure and / or software module corresponding to each function. It should be easy for those skilled in the art to realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0287] The security monitoring device provided by the present invention is described below. The security monitoring device described below and the security monitoring method described above can be referenced to each other.
[0288] Fig.15 A schematic diagram of the structure of the security monitoring device provided by the present invention is shown in FIG. Fig.15 As shown, the safety monitoring device comprises:
[0289] A scene selection module 1510, configured to determine a target monitoring scene from a plurality of preset monitoring scenes based on a scene selection instruction, wherein at least one security monitoring requirement exists in the target monitoring scene;
[0290] A model selection module 1520, configured to determine at least one target security monitoring model from a plurality of preset security monitoring models based on the model selection instruction, wherein the target security monitoring model is configured to satisfy one security monitoring requirement among the at least one security monitoring requirement;
[0291] The security monitoring module 1530 is used to perform security status detection on the monitoring video corresponding to the target monitoring scene based on the at least one target security monitoring model, and obtain at least one security monitoring result corresponding to the target monitoring scene.
[0292] It should be noted that Fig.15 The division of modules in the example is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules.
[0293] Fig.16An example of a physical structure diagram of an electronic device is shown in FIG. Fig.16 As shown, the electronic device may include: a processor 1610, a communication interface 1620, a memory 1630 and a communication bus 1640, wherein the processor 1610, the communication interface 1620 and the memory 1630 communicate with each other through the communication bus 1640. The processor 1610 may call the logic instructions in the memory 1630 to execute the security monitoring method described in any of the above embodiments.
[0294] In addition, the logic instructions in the above-mentioned memory 1630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0295] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the security monitoring method provided by the above-mentioned methods.
[0296] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0297] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0298] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A security monitoring method, characterized in that: include: Based on the scene selection instruction, determine a target monitoring scene from a plurality of preset monitoring scenes, wherein at least one security monitoring requirement exists in the target monitoring scene; Based on the model selection instruction, at least one target security monitoring model is determined from a plurality of preset security monitoring models, wherein the target security monitoring model is used to meet one security monitoring requirement among the at least one security monitoring requirement; Based on the at least one target security monitoring model, perform security status detection on the monitoring video corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene; The step of performing security status detection on the surveillance video corresponding to the target surveillance scene based on the at least one target security surveillance model to obtain at least one security surveillance result corresponding to the target surveillance scene includes: Acquire scene information of the target monitoring scene, the scene information including at least one of the following: scene identification, scene type, scene location, scene name, and scene image; Based on the scenario information, predicting initial values of model parameters of each target security monitoring model; Based on the model parameter initial values, configure the model parameters in each of the target security monitoring models to obtain at least one first target security monitoring model that has been configured; wherein the model parameter initial values are used to make the security monitoring requirements satisfied by the first target security monitoring model applicable to the scenario information; Based on the at least one first target security monitoring model, respectively perform security status detection on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene; The predicting, based on the scenario information, an initial value of a model parameter of each target security monitoring model comprises: Based on the scenario type of the target monitoring scenario, predicting the model running time of each of the target security monitoring models; The step of determining at least one target security monitoring model from a plurality of preset security monitoring models based on the model selection instruction includes: Determining at least one first security monitoring model corresponding to the target monitoring scenario from a plurality of preset security monitoring models; Based on the model selection instruction, at least one target safety monitoring model is determined from the at least one first safety monitoring model.
2. The security monitoring method according to claim 1, characterized in that: The step of performing security status detection on the surveillance videos corresponding to the target surveillance scene based on the at least one first target security surveillance model to obtain at least one security surveillance result corresponding to the target surveillance scene includes: Obtaining the model parameter update value indicated by the parameter update instruction; Based on the model parameter update value, configure the model parameters in the at least one first target security monitoring model to obtain at least one second target security monitoring model that has been configured; Based on the at least one second target security monitoring model, security status detection is performed on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene.
3. The security monitoring method according to claim 1, characterized in that: After performing security status detection on the surveillance video corresponding to the target surveillance scene based on the at least one target security surveillance model to obtain at least one security surveillance result corresponding to the target surveillance scene, the method further includes: generating warning information when the at least one security monitoring result indicates that an unsafe condition exists in the target monitoring scene; Among them, the warning information includes at least one of the following: the type of the unsafe condition, the duration of the unsafe condition, the warning level of the unsafe condition, the warning time, the warning image, the scene name of the target monitoring scene, and the scene location of the target monitoring scene.
4. The security monitoring method according to claim 3, characterized in that: After generating the warning information, the method further includes: Displaying an early warning processing interface, wherein the early warning processing interface includes the early warning information; Obtaining an early warning processing instruction acting on the early warning processing interface; When the warning processing instruction indicates a processed state, setting the processing state of the unsafe situation to processed; When the warning processing instruction indicates an ignore state, setting the processing state of the unsafe condition to ignore; When the warning processing instruction indicates a deferred processing state, the processing state of the unsafe situation is set to deferred processing.
5. The security monitoring method according to claim 1, characterized in that: The at least one target security monitoring model includes a dangerous behavior detection model, and the dangerous behavior detection model performs security status detection on the monitoring video based on the following steps: Inputting the surveillance video corresponding to the target surveillance scene into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence; Inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; In a case where the dangerous behavior detection result indicates that there is a dangerous behavior in the target monitoring scene, a safety monitoring result of the target monitoring scene is generated based on the dangerous behavior detection result and the face recognition result of the monitoring video.
6. A security monitoring device, characterized in that: include: A scene selection module, configured to determine a target monitoring scene from a plurality of preset monitoring scenes based on a scene selection instruction, wherein at least one security monitoring requirement exists in the target monitoring scene; A model selection module, configured to determine at least one target security monitoring model from a plurality of preset security monitoring models based on a model selection instruction, wherein the target security monitoring model is configured to meet one security monitoring requirement among the at least one security monitoring requirement; A security monitoring module, configured to perform security status detection on the monitoring video corresponding to the target monitoring scene based on the at least one target security monitoring model, and obtain at least one security monitoring result corresponding to the target monitoring scene; The safety monitoring module is also used for: Acquire scene information of the target monitoring scene, the scene information including at least one of the following: scene identification, scene type, scene location, scene name, and scene image; Based on the scenario information, predicting initial values of model parameters of each target security monitoring model; Based on the model parameter initial values, configure the model parameters in each of the target security monitoring models to obtain at least one first target security monitoring model that has been configured; wherein the model parameter initial values are used to make the security monitoring requirements satisfied by the first target security monitoring model applicable to the scenario information; Based on the at least one first target security monitoring model, respectively perform security status detection on the monitoring videos corresponding to the target monitoring scene to obtain at least one security monitoring result corresponding to the target monitoring scene; The predicting, based on the scenario information, an initial value of a model parameter of each target security monitoring model comprises: Based on the scenario type of the target monitoring scenario, predicting the model running time of each of the target security monitoring models; The model selection module is also used to: Determining at least one first security monitoring model corresponding to the target monitoring scenario from a plurality of preset security monitoring models; Based on the model selection instruction, at least one target safety monitoring model is determined from the at least one first safety monitoring model.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the security monitoring method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the security monitoring method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Depth video behavior identification method and system
CN110059662A
Network security monitoring method, system and device, storage medium and computer equipment
CN111198860A
Driving safety monitoring method and device, computer equipment and storage medium
CN111274881A
Safety detection method and device, electronic equipment, and storage medium
CN111985428A
Urban visual perception method and device, electronic equipment and storage medium
CN112580470A
