Regional retention management method and device, electronic equipment and storage medium
By detecting stranded events in the video data in the target area and determining the status of stranded personnel, the management strategy is automatically adjusted, which solves the problem of low stranded management efficiency in the existing technology and achieves more efficient and flexible stranded management.
Patent Information
- Application Number
- CN202410855667.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, personnel detention analysis relies on manual observation and video monitoring, which results in low timeliness and inability to take timely measures, resulting in low efficiency of detention management.
By detecting stranded events in the video data in the target area, the video data to be processed is obtained, the status data of the stranded persons is determined, the stranded management strategy is determined based on the status data, and the management strategy is automatically adjusted to improve efficiency and flexibility.
It improves the timeliness and efficiency of detention management, reduces the reliance on manual intervention, and enhances the flexibility and accuracy of detention management.
Smart Images

Figure CN118780960A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a method, device, electronic device and storage medium for regional detention management. Background Art
[0002] In some specific areas, the control of personnel entry and exit is relatively strict, such as the finance room, interrogation room, archive room, confidential room, etc. The phenomenon of personnel detention in these specific areas not only affects the management safety of the specific area, but also may cause harm to the stranded personnel. The existing personnel detention analysis in specific areas mainly relies on manual observation and video surveillance, but such personnel detention analysis methods have the disadvantage of low timeliness and cannot take corresponding measures in time to manage the detention in specific areas, resulting in low efficiency of detention management in specific areas and easy occurrence of stranded personnel. Summary of the invention
[0003] The embodiment of the present invention provides a regional detention management method, which aims to solve the problem that the existing personnel detention analysis method is not timely enough and cannot take corresponding measures to manage the detention in a specific area, resulting in low detention management efficiency in the specific area. After a detention event is detected in the video data in the target area, the status of the stranded personnel is determined by the video to be processed in the video data, and the corresponding detention management strategy is determined by the status of the stranded personnel. It does not rely on manual observation and viewing of video surveillance, which can improve the detention management efficiency of the target area. At the same time, since the status of the stranded personnel is taken into consideration, the detention management strategy can be adjusted according to the status of the stranded personnel, thereby improving the flexibility of detention management.
[0004] In a first aspect, an embodiment of the present invention provides a method for regional detention management, characterized in that the method comprises the following steps:
[0005] When a retention event is detected in the video data in the target area, obtaining the video data to be processed within a preset time period in the video data;
[0006] Determine the status data of the stranded person in the stranded event based on the video data to be processed;
[0007] A detention management strategy for the target area is determined based on the status data of the stranded personnel, and the target area is managed according to the detention management strategy.
[0008] Optionally, when a retention event is detected in the video data in the target area, before obtaining the video data to be processed within a preset time period in the video data, the method further includes:
[0009] Acquiring first video data within the target area through a first monitoring device and acquiring second video data within the target area through a second monitoring device, wherein the first monitoring device and the monitoring device are arranged at different locations;
[0010] Performing detection and tracking processing on the first video data and the second video data respectively to obtain a first number of people and a second number of people;
[0011] According to the first number of people and the second number of people, it is determined whether a detention event is detected in the video data in the target area.
[0012] Optionally, judging whether a detention event is detected in the video data in the target area according to the first number of people and the second number of people includes:
[0013] If the sum of the first number of people and the second number of people is greater than or equal to the first preset number of people and less than or equal to the second preset number of people, then determining the length of stay of each target person in the target area, and the first preset number of people is less than the second preset number of people;
[0014] If there is at least one of the target persons whose stay time is longer than a preset time threshold, determining that a stay event is detected in the video data in the target area;
[0015] If there is no target person whose stay time is less than or equal to the preset time threshold, it is determined that no stay event is detected in the video data in the target area.
[0016] Optionally, when a retention event is detected in the video data in the target area, obtaining the video data to be processed within a preset time period from the video data includes:
[0017] When a retention event is detected in the video data within the target area, obtaining the retention duration of the retention event;
[0018] A video segment within the retention time is intercepted from the video data as the video data to be processed.
[0019] Optionally, the state data includes emotional state data, and the determining the state data of the stranded person in the stranded event based on the video data to be processed includes:
[0020] Extracting facial video data of the stranded person from the video data to be processed;
[0021] Emotion recognition processing is performed on the face video data to obtain emotional state data of the stranded person in the stranded event.
[0022] Optionally, the state data includes behavior state data, and the determining the state data of the stranded person in the stranded event based on the video data to be processed includes:
[0023] Extracting the human body video data of the stranded person from the video data to be processed;
[0024] The human body video data is processed for behavior recognition to obtain behavior status data of the stranded person in the stranded event.
[0025] Optionally, the determining of the detention management strategy of the target area based on the status data of the stranded personnel includes:
[0026] Determine, based on the status data of the stranded person, the impact of the stranded event on the stranded person;
[0027] Based on the mapping relationship between the impact result and the detention management strategy, the detention management strategy of the target area is matched using the impact result of the detention event on the stranded personnel.
[0028] In a second aspect, an embodiment of the present invention further provides a regional detention management device, the regional detention management device comprising:
[0029] A first acquisition module is used to acquire to-be-processed video data within a preset time period from the video data when a retention event is detected in the video data within the target area;
[0030] A first processing module, configured to determine the status data of the stranded person in the stranded event based on the video data to be processed;
[0031] The second processing module is used to determine the detention management strategy of the target area based on the status data of the stranded personnel, and manage the target area according to the detention management strategy.
[0032] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the regional detention management method provided in the embodiment of the present invention when executing the computer program.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the regional detention management method provided in the embodiment of the invention are implemented.
[0034] In an embodiment of the present invention, when a detention event is detected in video data within a target area, to-be-processed video data within a preset time period is obtained from the video data; status data of the stranded person in the detention event is determined based on the to-be-processed video data; a detention management strategy for the target area is determined based on the status data of the stranded person, and the target area is managed according to the detention management strategy. After a detention event is detected in the video data within the target area, the status of the stranded person is determined through the to-be-processed video in the video data, and the corresponding detention management strategy is determined using the status of the stranded person. This does not rely on manual observation and viewing of video surveillance, and can improve the efficiency of detention management in the target area. At the same time, since the status of the stranded person is taken into consideration, the detention management strategy can be adjusted according to the status of the stranded person, thereby improving the flexibility of detention management. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 is a flow chart of a regional detention management method provided by an embodiment of the present invention;
[0037] Figure 2 This is a diagram of the monitoring equipment architecture of an interrogation room provided by an embodiment of the present invention;
[0038] Figure 3 is a flow chart of another regional detention management method provided by an embodiment of the present invention;
[0039] Figure 4 It is a structural schematic diagram of a regional detention management device provided in an embodiment of the present invention;
[0040] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] like Figure 1 As shown, Figure 1 : is a flow chart of a regional detention management method provided by an embodiment of the present invention, including:
[0043] 101. When a retention event is detected in the video data in the target area, to-be-processed video data within a preset time period is obtained from the video data.
[0044] In an embodiment of the present invention, the above-mentioned regional detention management method can be applied to a regional management platform, which includes a server and a monitoring device. The server and the monitoring device are communicatively connected, and the monitoring device can be one or more. The above-mentioned regional detention management method is specifically applied to the server.
[0045] The above-mentioned target area may be a specific area with limited time or conditional access, such as a finance room, interrogation room, archive room, confidential room, etc.
[0046] The target area can be photographed by monitoring equipment to obtain video data in the target area, and the video data can be real-time. By performing retention event detection on the video data, it is detected whether there is a retention event in the video data. The retention event detection can be automatically detected by algorithms such as convolutional neural networks or recurrent neural networks, or by human body recognition algorithms and time threshold judgment.
[0047] The above detention incidents can be understood as the presence of corresponding personnel in the target area who have not left in addition to the time-limited access or conditional access. For example, there is only one person in the interrogation room, a person stays in the archive room for more than half an hour, and there are unauthorized personnel in the confidential room.
[0048] The above-mentioned preset time can be the start time of the detention event to the end time when the detention event ends. For example, the time when the number of people in the interrogation room changes from three to two or one is taken as the start time of the detention event, and the time when the last person leaves the interrogation room is taken as the end time when the detention event ends; the time when the person stays in the archive room for more than half an hour is taken as the start time of the detention event; the time when the person leaves the archive room is taken as the end time of the detention event; the time when the unauthorized person is detected in the confidential room is taken as the start time of the detention event, and the time when the unauthorized person is in the confidential room is taken as the end time of the detention event, etc.
[0049] According to the preset time, a corresponding video segment is cut out from the video data in the target area to obtain the video data to be processed.
[0050] 102. Determine status data of stranded persons in the stranded event based on the video data to be processed.
[0051] In an embodiment of the present invention, after obtaining the video data to be processed, the state of the stranded person in the stranded event can be analyzed to obtain the state data of the stranded person in the stranded event. The stranded person may be one or more persons. The state data may be emotional state data and / or behavioral state data.
[0052] Specifically, target detection can be performed on the video data to be processed, and images of people in the video data to be processed can be detected, and the images of people can be used as images of stranded people. Emotion and / or behavior recognition processing can be performed on the images of stranded people to obtain emotion recognition results and / or behavior recognition results of the stranded people, and the emotion recognition results can be used as emotion state data, and the behavior recognition results can be used as behavior state data.
[0053] In a possible embodiment, a face video of the stranded person can be collected when the stranded person leaves the target area, and the facial expression changes of the stranded person when leaving can be analyzed using computer vision technology. The facial expression features under different emotional states can be identified through image processing and feature point detection. According to the state tracking of emotional changes, retention analysis and evaluation are performed to obtain the emotional state data of the stranded person. It is also possible to collect a body video of the stranded person when the stranded person leaves the target area, and use computer vision technology to analyze the behavioral changes of the stranded person when leaving. According to the state tracking of behavioral changes, the posture features under different behavioral states can be identified through image processing and feature point detection. According to the state tracking of behavioral changes, retention analysis and evaluation are performed to obtain the behavioral state data of the stranded person.
[0054] 103. Determine a detention management strategy for a target area based on the status data of the stranded persons, and manage the target area according to the detention management strategy.
[0055] In the embodiment of the present invention, after obtaining the status data of the stranded person, the mapping relationship between the status data and the stranded management policy can be used to match the stranded management policy corresponding to the status data of the stranded person.
[0056] The above-mentioned detention management strategies include optimizing process audits in target areas, improving management efforts, increasing notification reminders, etc., to reduce the frequency of detention incidents.
[0057] After the detention management strategy is obtained, the detention management strategy may be sent to relevant management departments so that the relevant management departments can manage the target area according to the detention management strategy.
[0058] In a possible embodiment, when a detention event is analyzed, according to the push permission of the set task, the detention event information, the time and place of the detention, the detention duration, and the detention event scene diagram are immediately pushed to the on-duty personnel for timely processing. The on-duty personnel make a warning event judgment based on the scene diagram, video and event information of the alarm event. If a detention event does occur, it can be immediately intervened manually. The on-duty personnel can operate through the system interface or remote voice call to immediately take the stranded person out of the target area. If the mood of the stranded person is low or collapsed after being taken away, the physiological condition of the stranded person should be tested in time, and the changes in physiological indicators such as heart rate and respiratory rate should be observed to avoid the occurrence of malicious events. Subsequent improvement measures can be to optimize the trial management efficiency link. For example, in the interrogation room scenario, when the lawyer side screen, the dual device detects that the lawyer has withdrawn from the screen, and immediately notifies the police to intervene in the interrogation side personnel and take the interrogation side personnel away to avoid the occurrence of detention events.
[0059] In an embodiment of the present invention, when a detention event is detected in the video data in the target area, the to-be-processed video data within a preset time period is obtained in the video data; the status data of the stranded person in the detention event is determined based on the to-be-processed video data; the detention management strategy of the target area is determined based on the status data of the stranded person, and the target area is managed according to the detention management strategy. After the detention event is detected in the video data in the target area, the status of the stranded person is determined by the to-be-processed video in the video data, and the corresponding detention management strategy is determined by the status of the stranded person, which does not rely on manual observation and viewing of video surveillance, and can improve the efficiency of detention management in the target area. At the same time, since the status of the stranded person is taken into consideration, the detention management strategy can be adjusted according to the status of the stranded person, thereby improving the flexibility of detention management.
[0060] It should be noted that the regional detention management method provided in the embodiment of the present invention can be applied to electronic devices such as mobile phones, tablets, computers, servers, etc. that can perform regional detention management.
[0061] It is understandable that in the specific implementation of this application, video data, personnel data and other related data are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0062] Optionally, when a detention event is detected in the video data within the target area, before the step of obtaining the video data to be processed within a preset time period in the video data, the first video data within the target area can be obtained through the first monitoring device and the second video data within the target area can be obtained through the second monitoring device, and the first monitoring device and the monitoring device are arranged at different positions; the first video data and the second video data are detected and tracked respectively to obtain the first number of people and the second number of people; based on the first number of people and the second number of people, it is determined whether a detention event is detected in the video data within the target area.
[0063] In the embodiment of the present invention, the target area is monitored by a first monitoring device set at a first position to obtain first video data in the target area, and the target area is monitored by a second monitoring device set at a second position to obtain second video data in the target area. It can be understood that the first position and the second position are different directions and positions, that is, the first monitoring device and the second monitoring device are set at different positions to monitor the target area in different directions. In addition, the above-mentioned first monitoring device and the second monitoring device do not represent a limit on the number of monitoring devices, that is, the first monitoring device can be one or more, and the second monitoring device can also be one or more.
[0064] For example, for an archive room, the first monitoring device can be set above the archive rack to monitor the archive room and obtain the first video data, and the second monitoring device can be set above the door to monitor the archive room and obtain the second video data. For an interrogation room, the first monitoring device can be set on the side of the interrogated person to monitor the interrogation room and obtain the first video data, and the second monitoring device can be set on the side of the interrogator to monitor the interrogation room and obtain the second video data. Figure 2 It should be noted that the above-mentioned setting positions of the first monitoring device and the second monitoring device are for illustrative purposes only, and can be set according to actual conditions in specific scenarios without limitation.
[0065] After obtaining the first video data and the second video data, the first video data and the second video data can be respectively detected and tracked by the target tracking algorithm to obtain the target tracking result in the first video data and the detection and tracking result in the second video data. In the target tracking algorithm, a tracking ID is assigned to each target that appears. Each target corresponds to a tracking ID. The tracking ID can be used to check whether the target appears in the video. The above target is a human target. The detection and tracking result includes data such as the tracking ID of the human target, the appearance time of the human target, and the disappearance time of the human target.
[0066] In the above target tracking algorithm, computer vision technology can be used to perform high-precision detection and tracking of the head, shoulders, neck, body, face, etc. of a person. In this process, the video data of each device is processed by an image processing algorithm to identify and mark the key features of each person in each video frame, such as body outline and facial features, and then target tracking is performed through feature matching between different frames. At the same time, the behavior patterns of people, including entry and exit time, length of stay, etc., are learned and modeled through machine learning algorithms.
[0067] The number of people can be determined based on the number of tracking IDs, and the appearance time and disappearance time of the person target can be used to determine the length of time the person target stays. Specifically, the first number of people can be determined by the number of tracking IDs in the detection and tracking results corresponding to the first video data, and the second number of people can be determined by the number of tracking IDs in the detection and tracking results corresponding to the second video data.
[0068] Further, after obtaining the first number of people and the second number of people, it is possible to determine whether a detention event is detected in the video data in the target area by the appearance time of the person target or the length of time the person target stays. For example, when the appearance time of the person target is outside the time-limited access, it can be determined that a detention event is detected in the video data in the target area. Or, for example, when the length of time the person target stays exceeds a preset length threshold, it can be determined that a detention event is detected in the video data in the target area.
[0069] In the embodiment of the present invention, multiple monitoring devices are used to obtain video data of the target area at different locations, and detection and tracking processing are performed on the video data at different locations. This can avoid underreporting of the visual algorithm under a single device, thereby improving the detection accuracy of detention events.
[0070] Optionally, in the step of determining whether a detention event is detected in the video data within the target area based on the first number of persons and the second number of persons, if the sum of the first number of persons and the second number of persons is greater than or equal to the first preset number of persons and less than or equal to the second preset number of persons, the stay duration of each target person in the target area can be determined, and the first preset number of persons is less than the second preset number of persons; if there is at least one target person whose stay duration is greater than the preset duration threshold, it is determined that a detention event is detected in the video data within the target area; if there is no target person whose stay duration is less than or equal to the preset duration threshold, it is determined that no detention event is detected in the video data within the target area.
[0071] In the embodiment of the present invention, taking into account the problem of visual algorithm omissions in a single monitoring device, a first monitoring device and a second monitoring device are used to acquire video data in the target area from different directions, and then detection and tracking processing are performed separately to obtain the number of people detected in different directions, i.e., the first number of people and the second number of people.
[0072] The first preset number of people may be 1. If the sum of the first number of people and the second number of people is greater than or equal to the first preset number of people, it can be said that there are people in the target area. If the sum of the first number of people and the second number of people is less than the first preset number of people, it can be said that there are no people in the target area. The second preset number of people may be 2. If the sum of the first number of people and the second number of people is greater than or equal to the first preset number of people and less than or equal to the second preset number of people, it can be said that there are at least one person in the target area. If the sum of the first number of people and the second number of people is greater than the second preset number of people, it can be said that there are at least two people in the target area. In certain specific scenarios, the presence of two or more people is allowed. Of course, the first preset number of people being 1 and the second preset number of people being 2 are not limitations on the protection scope of the present invention. The first preset number of people and the second preset number of people can be set according to the actual scenario, as long as the first preset number of people is less than the second preset number of people.
[0073] Whether there is at least one person in the target area is determined by the first number of people and the second number of people, as well as the first preset number of people and the second preset number of people. If so, the person in the target area can be determined as the target person, and then the appearance time and disappearance time of each target person in the target area are obtained. The stay time of each target person is determined according to the appearance time and disappearance time of each target person. For a target person without a disappearance time, the stay time of the target person can be determined according to the appearance time and current time of the target person.
[0074] After obtaining the stay time of each target person, the stay time is compared with the preset time threshold. If the stay time is greater than the preset time threshold, it can be determined that a detention event is detected in the video data in the target area; if the stay time of all target persons is less than or equal to the preset time threshold, it can be determined that no detention event is detected in the video data in the target area.
[0075] In an embodiment of the present invention, the first number of persons and the second number of persons can be used to comprehensively judge whether there is a target person to be analyzed in the target area, and the retention analysis of the target area can be performed in combination with the target person's stay duration, thereby improving the analysis accuracy of retention events in video data.
[0076] Optionally, when a detention event is detected in the video data within the target area, in the step of obtaining the video data to be processed within a preset time period in the video data, when a detention event is detected in the video data within the target area, the detention duration of the detention event can be obtained; and a video clip within the detention duration can be intercepted in the video data as the video data to be processed.
[0077] In an embodiment of the present invention, the above-mentioned detention duration may be the duration after exceeding the normal detention duration, for example, if the normal detention duration is 10 minutes, but the target person's detention duration is 20 minutes, then the first 10 minutes are the normal detention duration, and the last 10 minutes are the detention duration. In some possible embodiments, the above-mentioned detention duration may also be directly the total detention duration of the target person in the target area.
[0078] After determining the retention time, the video clips within the retention time are intercepted from the video data in the target area as the video data to be processed. By intercepting the video data to be processed from the video data according to the retention time, the pertinence of the retention event analysis can be improved, the amount of analysis data can be reduced, and the efficiency of the retention event analysis can be improved.
[0079] In a possible embodiment, after a detention event is detected in the video data in the target area, the detention event information of the detention event can be generated as alarm information, and the alarm information can be sent to the relevant management terminal. Specifically, when a detention event is analyzed, the detention event information can be immediately pushed to the on-duty personnel according to the push authority of the set task. The detention event information includes the time and place of the detention, the detention duration, and the detention event scene diagram, so that the on-duty personnel can handle it in time. The on-duty personnel can make early warning event judgments based on the scene diagram, video and event information in the alarm information. If a detention event does occur, manual intervention can be immediately carried out. The on-duty personnel can immediately take the stranded person out of the target area through the system interface operation or remote voice call.
[0080] Optionally, the status data includes emotional status data. In the step of determining the status data of the stranded persons in the stranded event based on the video data to be processed, the facial video data of the stranded persons can be extracted from the video data to be processed; emotion recognition processing is performed on the facial video data to obtain the emotional status data of the stranded persons in the stranded event.
[0081] In the embodiment of the present invention, the above-mentioned emotional state data can help the on-duty personnel understand the evolution of the emotional state of the stranded personnel during the detention period, and then evaluate the impact of the detention event on the stranded personnel or the detention motivation of the stranded personnel.
[0082] Specifically, after obtaining the video data to be processed, face detection processing can be performed on the video data to be processed, and the face frame image in each frame of the video data to be processed can be obtained through face detection processing, and then the continuous frame face images are used as face video data. Emotion recognition processing is performed on the face video data through pattern recognition to obtain the emotional state data of the stranded person in the detention event. The above-mentioned pattern recognition can be a neural network recognition method based on a recurrent neural network (RNN) or a long short-term memory network (LSTM). Image features in the face video data are extracted through pattern recognition, the image features are converted into semantic features, and the semantic features are decoded into emotional states, thereby obtaining emotional state data.
[0083] The above-mentioned emotional state data may include low mood, emotional breakdown, normal mood, emotional excitement, and emotional excitement.
[0084] Optionally, the status data includes behavioral status data. In the step of determining the status data of the stranded person in the stranded event based on the video data to be processed, the human body video data of the stranded person can be extracted from the video data to be processed; behavior recognition processing is performed on the human body video data to obtain the behavioral status data of the stranded person in the stranded event.
[0085] In the embodiment of the present invention, the above-mentioned behavior status data can help the on-duty personnel understand the behavioral changes of the stranded personnel during the detention period, and then evaluate whether the stranded personnel have abnormal behavior or unusual activity patterns during the detention event.
[0086] Specifically, after obtaining the video data to be processed, human body detection processing can be performed on the video data to be processed, and the human body frame image in each frame of the video data to be processed can be obtained through human body detection processing, and then the continuous frame human body image is used as human body video data. Behavior recognition processing is performed on the human body video data through pattern recognition to obtain the behavior state data of the stranded person in the stranded event. The above-mentioned pattern recognition can be a neural network recognition method based on a recurrent neural network (RNN) or a long short-term memory network (LSTM). The posture features in the human body video data are extracted through pattern recognition, the posture features are converted into behavioral semantic features, and the behavioral semantic features are decoded into behavioral states, thereby obtaining behavioral state data.
[0087] The above-mentioned behavior status data may include abnormal behavior or unusual activity patterns, etc. The normal behavior or usual activity pattern of the historical personnel can be analyzed from the historical behavior of the stranded personnel, and then the normal behavior or usual activity model can be used to determine whether the stranded personnel have abnormal behavior or unusual activity patterns.
[0088] Optionally, in the step of determining the detention management strategy of the target area based on the status data of the stranded personnel, the impact of the detention event on the stranded personnel can be determined according to the status data of the stranded personnel; based on the mapping relationship between the impact result and the detention management strategy, the detention management strategy of the target area is matched using the impact result of the detention event on the stranded personnel.
[0089] In an embodiment of the present invention, the impact of the detention time on the emotions of the persons involved can be evaluated by comparing the emotional changes of the persons before and after the detention. The movement trajectory, detention time, posture changes, etc. of the persons can be analyzed, and abnormal behaviors or unusual activity patterns can be analyzed. Through the evolution of emotional states and activity patterns, the detention situation analysis and impact assessment results can be carried out, and corresponding improvement measures can be formulated, such as optimizing management processes, improving management efforts, and adding notification reminders. Feedback and improvements can be made to the entire management system to improve the efficiency and humanized management of the management system. For example, if the stranded personnel are in a low mood or collapse, the process of detecting the physiological conditions of the stranded personnel should be increased, and changes in physiological indicators such as heart rate and respiratory rate should be observed to avoid the occurrence of malicious incidents. When it is detected that the leading personnel withdraw from the screen, the on-duty personnel will be notified immediately to intervene in the stranded personnel, take the stranded personnel away, improve management efforts, and avoid the occurrence of stranded incidents.
[0090] like Figure 3 As shown, Figure 3 Another regional detention management method provided by an embodiment of the present invention is applied to an interrogation room and includes the following steps:
[0091] Step 301: Data collection. Video analysis is performed through two camera devices in the interrogation room, which involves computer vision technology and machine learning algorithms. Computer vision technology is used to perform high-precision detection and tracking of people's heads, shoulders, necks, bodies, faces, etc. In this process, the video stream of each device is processed by an image processing algorithm to identify and mark the key features of each person, such as body contours and facial features. At the same time, the machine learning algorithm is used to learn and model the behavior patterns of people, including entry and exit times, length of stay, etc. While collecting data, the number of people in the screen of each device is counted.
[0092] Specifically, the total number of people in the picture generated by device 1 is M, and the total number of people in the picture generated by device 2 is N. For each device, by calculating the number of people appearing in the picture, we can get M and N. In this way, we can get the distribution of people in each device.
[0093] Step 302: Data processing. The collected data is deeply analyzed and processed. First, determine whether the number of people M+N in the picture is less than or equal to 2 and greater than or equal to 1 to start the personnel retention analysis. The purpose of this step is to exclude the situation where there is no one in the video and avoid the problem of underreporting of the visual algorithm under a single device video.
[0094] When the analysis conditions are met, it means that at least one person has stayed in the screen. Then, by analyzing the length of stay, if it is greater than the set threshold of x minutes, a person stay event is generated. The core of this step is to avoid false alarms of person stay events through collaborative analysis of the screens of the two devices.
[0095] Step 303: Generate an alarm. When a detention event is analyzed, the detention event information, including the time of detention, location of the interrogation room, detention duration, and detention event scene diagram, is immediately pushed to the on-duty personnel according to the push authority of the set task, so as to facilitate timely processing.
[0096] Step 304: Event processing. The on-duty personnel make a warning event judgment based on the scene map, video and event information of the alarm event. If a detention event does occur, human intervention can be immediately carried out. The on-duty personnel can operate through the system interface or remote voice call to immediately take the detained person out of the interrogation room. At the same time, the system processes and evaluates the event. Based on the expression analysis of the detained person when he leaves, the computer vision technology is used to analyze the subtle changes in facial expressions by collecting face videos, and the expression features under different emotional states are identified through image processing and feature point detection. According to the state tracking of emotional changes, detention analysis and evaluation are carried out. If the detained person is indeed depressed or collapsed, the physiological condition of the person should be detected in time, and the changes in physiological indicators such as heart rate and respiratory rate should be observed to avoid the occurrence of nausea. And subsequent improvement measures are taken to optimize the interrogation management rate link; for example, when the lawyer side screen and the dual equipment detect that the person has withdrawn from the screen, the police officer is immediately notified to intervene in the prisoner side personnel and take the person away to avoid detention events.
[0097] Step 305: Impact assessment. If a detention event does occur, the rights and interests of the persons involved, as well as the impact on the emotions of the persons involved, need to be assessed and handled. The impact of the detention time on the emotions of the persons involved can be assessed by comparing the emotional changes of the persons before and after the detention. The changing trend of the emotions of the persons involved can be identified and tracked through a sequence of continuous frame images or voice data to understand the evolution of the emotional state during the detention. And the behavior patterns of the persons in the interrogation room are modeled through the behavior patterns of the persons, such as recurrent neural networks (RNN) or long short-term memory networks (LSTM). The movement trajectory, detention time, posture changes of the persons, abnormal behaviors or unusual activity patterns, etc. (which can be combined with the historical behaviors of the persons) of the persons are analyzed to analyze the detention situation and the impact assessment results through the evolution of emotional states and activity patterns, and formulate corresponding improvement measures, such as optimizing the interrogation process, improving interrogation management, and adding notification reminders. This step involves feedback and improvement of the entire interrogation system to improve the efficiency and humanized management of the system.
[0098] like Figure 4 As shown, an embodiment of the present invention further provides a regional detention management device, including:
[0099] A first acquisition module 401 is used to acquire to-be-processed video data within a preset time period from the video data when a retention event is detected in the video data within the target area;
[0100] A first processing module 402 is used to determine the status data of the stranded person in the stranded event based on the video data to be processed;
[0101] The second processing module 403 is used to determine the detention management strategy of the target area based on the status data of the stranded personnel, and manage the target area according to the detention management strategy.
[0102] Optionally, the device further comprises:
[0103] A second acquisition module, used to acquire first video data in the target area through a first monitoring device and to acquire second video data in the target area through a second monitoring device, wherein the first monitoring device and the monitoring device are arranged in different positions;
[0104] A third acquisition module is used to perform detection and tracking processing on the first video data and the second video data respectively to obtain a first number of people and a second number of people;
[0105] The third processing module is used to determine whether a detention event is detected in the video data in the target area according to the first number of people and the second number of people.
[0106] Optionally, the third processing module is also used to determine the length of stay of each target person in the target area if the sum of the first number of persons and the second number of persons is greater than or equal to a first preset number of persons and less than or equal to a second preset number of persons, and the first preset number of persons is less than the second preset number of persons; if there is at least one target person whose length of stay is greater than a preset time threshold, it is determined that a detention event is detected in the video data within the target area; if there is no target person whose length of stay is less than or equal to the preset time threshold, it is determined that no detention event is detected in the video data within the target area.
[0107] Optionally, the first acquisition module 401 is further used to obtain the retention duration of the retention event when a retention event is detected in the video data in the target area; and to capture a video segment within the retention duration in the video data as the video data to be processed.
[0108] Optionally, the status data includes emotional status data, and the first processing module 402 is further used to extract facial video data of the stranded person from the video data to be processed; perform emotion recognition processing on the facial video data to obtain emotional status data of the stranded person in the stranded event.
[0109] Optionally, the status data includes behavioral status data, and the first processing module 402 extracts the human body video data of the stranded person from the video data to be processed; performs behavior recognition processing on the human body video data to obtain the behavioral status data of the stranded person in the stranded event.
[0110] Optionally, the second processing module 403 is also used to determine, based on the status data of the stranded person, the impact of the stranded event on the stranded person; based on the mapping relationship between the impact result and the stranded management strategy, the impact result of the stranded event on the stranded person is used to match the stranded management strategy of the target area.
[0111] It should be noted that the regional detention management device provided in the embodiment of the present invention can be applied to devices such as smart phones, computers, servers, etc. that can perform regional detention management methods.
[0112] The regional detention management device provided in the embodiment of the present invention can implement each process implemented by the regional detention method in the above method embodiment, and can achieve the same beneficial effect. To avoid repetition, it will not be described here.
[0113] like Figure 5 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any one of the above-mentioned regional detention management methods.
[0114] Specifically, it includes a processor 501 and a memory 502, and a computer program for executing the regional detention management method stored in the memory 502 and capable of running on the processor 501, wherein:
[0115] The processor 501 runs the computer program of the regional detention management method stored in the memory 502 and performs the following steps:
[0116] When a retention event is detected in the video data in the target area, obtaining the video data to be processed within a preset time period in the video data;
[0117] Determine the status data of the stranded person in the stranded event based on the video data to be processed;
[0118] A detention management strategy for the target area is determined based on the status data of the stranded personnel, and the target area is managed according to the detention management strategy.
[0119] Optionally, when a retention event is detected in the video data within the target area, before obtaining the video data to be processed within a preset time period from the video data, the method executed by the processor 501 further includes:
[0120] Acquiring first video data within the target area through a first monitoring device and acquiring second video data within the target area through a second monitoring device, wherein the first monitoring device and the monitoring device are arranged at different locations;
[0121] Performing detection and tracking processing on the first video data and the second video data respectively to obtain a first number of people and a second number of people;
[0122] According to the first number of people and the second number of people, it is determined whether a detention event is detected in the video data in the target area.
[0123] Optionally, the processor 501 performs the step of determining whether a retention event is detected in the video data in the target area according to the first number of people and the second number of people, including:
[0124] If the sum of the first number of people and the second number of people is greater than or equal to the first preset number of people and less than or equal to the second preset number of people, then determining the length of stay of each target person in the target area, and the first preset number of people is less than the second preset number of people;
[0125] If there is at least one of the target persons whose stay time is longer than a preset time threshold, determining that a stay event is detected in the video data in the target area;
[0126] If there is no target person whose stay time is less than or equal to the preset time threshold, it is determined that no stay event is detected in the video data in the target area.
[0127] Optionally, when a retention event is detected in the video data in the target area, the processor 501 executes the step of acquiring the video data to be processed within a preset time period from the video data, including:
[0128] When a retention event is detected in the video data within the target area, obtaining the retention duration of the retention event;
[0129] A video segment within the retention time is intercepted from the video data as the video data to be processed.
[0130] Optionally, the state data includes emotional state data, and the processor 501 determines the state data of the stranded person in the stranded event based on the video data to be processed, including:
[0131] Extracting facial video data of the stranded person from the video data to be processed;
[0132] Emotion recognition processing is performed on the face video data to obtain emotional state data of the stranded person in the stranded event.
[0133] Optionally, the state data includes behavior state data, and the processor 501 determines the state data of the stranded person in the stranded event based on the video data to be processed, including:
[0134] Extracting the human body video data of the stranded person from the video data to be processed;
[0135] The human body video data is processed for behavior recognition to obtain behavior status data of the stranded person in the stranded event.
[0136] Optionally, the determining of the detention management strategy of the target area based on the status data of the stranded personnel executed by the processor 501 includes:
[0137] Determine, based on the status data of the stranded person, the impact of the stranded event on the stranded person;
[0138] Based on the mapping relationship between the impact result and the detention management strategy, the detention management strategy of the target area is matched using the impact result of the detention event on the stranded personnel.
[0139] It should be noted that the electronic device provided in the embodiment of the present invention can be applied to smart phones, computers, servers and other devices that can perform regional detention management methods.
[0140] The electronic device provided in the embodiment of the present invention can implement each process implemented by the regional retention method in the above method embodiment and can achieve the same beneficial effect. To avoid repetition, it will not be described here.
[0141] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the regional detention management method provided by the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0143] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for regional detention management, It is characterized in that The method comprises the following steps: When a retention event is detected in the video data in the target area, obtaining the video data to be processed within a preset time period in the video data; Determine the status data of the stranded person in the stranded event based on the video data to be processed; A detention management strategy for the target area is determined based on the status data of the stranded personnel, and the target area is managed according to the detention management strategy.
2. The regional detention management method according to claim 1, It is characterized in that When a retention event is detected in the video data in the target area, before obtaining the video data to be processed within a preset time period in the video data, the method further includes: Acquiring first video data within the target area through a first monitoring device and acquiring second video data within the target area through a second monitoring device, wherein the first monitoring device and the monitoring device are arranged at different locations; Performing detection and tracking processing on the first video data and the second video data respectively to obtain a first number of people and a second number of people; According to the first number of people and the second number of people, it is determined whether a detention event is detected in the video data in the target area.
3. The regional detention management method according to claim 2, It is characterized in that The determining, according to the first number of people and the second number of people, whether a detention event is detected in the video data in the target area includes: If the sum of the first number of people and the second number of people is greater than or equal to the first preset number of people and less than or equal to the second preset number of people, then determining the length of stay of each target person in the target area, and the first preset number of people is less than the second preset number of people; If there is at least one of the target persons whose stay time is longer than a preset time threshold, determining that a stay event is detected in the video data in the target area; If there is no target person whose stay time is less than or equal to the preset time threshold, it is determined that no stay event is detected in the video data in the target area.
4. The regional detention management method according to claim 1, It is characterized in that When a retention event is detected in the video data in the target area, obtaining the video data to be processed within a preset time period from the video data includes: When a retention event is detected in the video data within the target area, obtaining the retention duration of the retention event; A video segment within the retention time is intercepted from the video data as the video data to be processed.
5. The regional detention management method according to claim 1, It is characterized in that The state data includes emotional state data, and the state data of the stranded person in the stranded event is determined based on the video data to be processed, including: Extracting facial video data of the stranded person from the video data to be processed; Emotion recognition processing is performed on the face video data to obtain emotional state data of the stranded person in the stranded event.
6. The regional detention management method according to claim 1, It is characterized in that The state data includes behavior state data, and the state data of the stranded person in the stranded event is determined based on the video data to be processed, including: Extracting the human body video data of the stranded person from the video data to be processed; The human body video data is processed for behavior recognition to obtain behavior status data of the stranded person in the stranded event.
7. The regional detention management method according to any one of claims 1 to 6, It is characterized in that The determining of the detention management strategy of the target area based on the status data of the stranded personnel includes: Determine, based on the status data of the stranded person, the impact of the stranded event on the stranded person; Based on the mapping relationship between the impact result and the detention management strategy, the detention management strategy of the target area is matched using the impact result of the detention event on the stranded personnel.
8. A regional detention management device, It is characterized in that The regional detention management device comprises: A first acquisition module is used to acquire to-be-processed video data within a preset time period from the video data when a retention event is detected in the video data within the target area; A first processing module, configured to determine the status data of the stranded person in the stranded event based on the video data to be processed; The second processing module is used to determine the detention management strategy of the target area based on the status data of the stranded personnel, and manage the target area according to the detention management strategy.
9. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the regional detention management method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the regional detention management method according to any one of claims 1 to 7 are implemented.
