Campus violence monitoring method, device, and electronic equipment
By combining the recognition technology of image and audio information in the campus surveillance system, it detects students entering unmonitored areas and determines students who are prone to violence. This solves the problem of untimely detection of violent behaviors in surveillance blind spots and realizes real-time monitoring of surveillance blind spots. and early warning, improving the response capabilities of campus security management.
Patent Information
- Application Number
- CN202111363671.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-28
- Filing Date
- 2021-11-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-11-17
AI Technical Summary
The existing campus surveillance system is unable to monitor and provide early warning for campus violence occurring in surveillance blind areas in real time, resulting in the failure to detect and stop violence in unmonitored areas in a timely manner.
By detecting the target student entering the unmonitored area from a monitored area, and using image and audio information, combined with face recognition, target tracking, attribute recognition and voice recognition technology, it is determined whether the student is vulnerable to violence and sends a message to the campus management center warning.
It realizes screen-free monitoring of blind spots, can promptly detect and warn against campus violence in blind spots, and improves the response speed and effectiveness of security management.
Smart Images

Figure CN114694344B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart campuses, and in particular to a campus violence monitoring method, device, electronic equipment and storage medium. Background Art
[0002] School violence often occurs in primary and secondary schools. In most cases, students intentionally abuse their physical strength to physically assault one or more students in teaching buildings, dormitories, and remote corners of the campus. This kind of violence can cause serious physical and psychological harm to the students being assaulted. In many cases, school teachers and security personnel could have discovered this kind of violence in time through surveillance cameras and stopped it, but there are no surveillance cameras in some blind spots, such as toilets and groves. For students who often commit violence, they will also know how to avoid surveillance cameras. Therefore, the existing campus surveillance cannot monitor campus violence that occurs in blind spots. Summary of the invention
[0003] The embodiment of the present invention provides a campus violence monitoring method, which can monitor students who enter blind spots in monitoring, and analyze the students who enter blind spots in monitoring to determine whether there are students who are prone to violence. If there are students who are prone to violence, an alert is sent to the campus management center, thereby realizing screenless monitoring of blind spots in monitoring, and timely discovering campus violence in blind spots in monitoring.
[0004] In a first aspect, an embodiment of the present invention provides a method for monitoring campus violence, the method comprising:
[0005] Detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time;
[0006] When the second target student is detected to be present in the second specific area at the second time, determining whether the second target student enters the third specific area;
[0007] If the second target student enters the third specific area, obtaining a character portrait of the second target student;
[0008] According to the character portrait of the second target student, determining whether the second target student is a student who is prone to violence;
[0009] If the second target student is a student who is vulnerable to violence, alert the campus management center;
[0010] Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
[0011] Optionally, the detecting whether there is a first target student entering the third specific area from the first specific area includes:
[0012] Taking a snapshot of the first specific area in real time to obtain a snapshot image;
[0013] Performing target detection on the captured image to determine whether the captured image includes a first target student;
[0014] If the captured image includes a first target student, target tracking is performed on the first target student to obtain a tracking trajectory of the first target student;
[0015] Based on the tracking trajectory of the first target student, determine whether the first target student enters the third specific area.
[0016] Optionally, the method further includes:
[0017] When the first target student is detected to appear in the first specific area at the first time, audio information of the first target student is acquired, and speech recognition is performed on the audio information to obtain speech content of the first target student;
[0018] Determining whether a preset keyword appears in the voice content;
[0019] If the preset keywords appear, after determining that the second target student is a student who is prone to violence, an alert is sent to the campus management center, and the alert information includes audio information.
[0020] Optionally, the preset keywords include behavior keywords and person name keywords, and before determining whether the preset keywords appear in the voice content, the method further includes:
[0021] Collecting language content before and during school violence, and extracting behavioral keywords related to school violence from the language content;
[0022] Collect the names of all students in the current school as name keywords;
[0023] The preset keywords are constructed according to the behavior keywords and the person name keywords.
[0024] Optionally, the determining whether a preset keyword appears in the voice content includes:
[0025] Determining whether a person's name keyword appears in the voice content;
[0026] The method further comprises:
[0027] If a person's name keyword appears in the voice content, extract the person's name keyword;
[0028] When a second target student is detected to appear in the second specific area at the second time, the second target student is identified to obtain student information of the second target student, wherein the student information includes the student name;
[0029] Determining whether the name keyword is the same as the name of the second target student;
[0030] If the name keyword is the same as the name of the second target student, an alert is sent to the campus management center, and the alert information includes the student information of the second target student.
[0031] Optionally, obtaining the character portrait of the second target student includes:
[0032] When a second target student is detected to appear in the second specific area at a second time, acquiring an image of the second target student;
[0033] Performing attribute recognition on the image of the second target student by using the trained attribute recognition model to obtain attribute information of the second target student;
[0034] According to the attribute information of the second target student, the character portrait of the second target student is evaluated.
[0035] Optionally, obtaining the character portrait of the second target student includes:
[0036] When the second target student is detected to appear in the second specific area at the second time, the identity of the second target student is identified to obtain the student information of the second target student, wherein the student information includes a portrait of the student;
[0037] The student portrait is obtained by evaluating the student's admission information, family information, psychological assessment information, and historical campus behavior information.
[0038] In a second aspect, an embodiment of the present invention further provides a campus violence monitoring device, the device comprising:
[0039] A first detection module is used to detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time;
[0040] A second detection module, configured to determine whether a second target student enters the third specific area when a second target student is detected in the second specific area at a second time;
[0041] A first acquisition module, configured to acquire a character portrait of the second target student if the second target student enters the third specific area;
[0042] A first judgment module is used to judge whether the second target student is a student who is prone to violence according to the character portrait of the second target student;
[0043] A first warning module, used to warn the campus management center if the second target student is a student who is prone to violence;
[0044] Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
[0045] 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 campus violence monitoring method provided by the embodiment of the present invention when executing the computer program.
[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the campus violence monitoring method provided by the embodiment of the invention are implemented.
[0047] In an embodiment of the present invention, it is detected whether there is a first target student entering a third specific area from a first specific area. If there is, the first time is recorded; when the second target student is detected to appear in the second specific area at the second time, it is determined whether the second target student enters the third specific area; if the second target student enters the third specific area, a character portrait of the second target student is obtained; according to the character portrait of the second target student, it is determined whether the second target student is a student who is prone to violence; if the second target student is a student who is prone to violence, an alert is given to the campus management center; wherein the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area. It is possible to monitor students entering the monitoring blind spot, and to analyze the students entering the monitoring blind spot to determine whether there are students who are prone to violence. In the case of students who are prone to violence, an alert is given to the campus management center, realizing non-screen monitoring of the monitoring blind spot, and timely discovering campus violence in the monitoring blind spot. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] 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.
[0049] Figure 1 is a flow chart of a campus violence monitoring method provided by an embodiment of the present invention;
[0050] Figure 2 is a flow chart of another method for monitoring campus violence provided by an embodiment of the present invention;
[0051] Figure 3 is a schematic structural diagram of a campus violence monitoring device provided by an embodiment of the present invention;
[0052] Figure 4 is a structural schematic diagram of a first detection module provided by an embodiment of the present invention;
[0053] Figure 5 is a schematic structural diagram of another campus violence monitoring device provided by an embodiment of the present invention;
[0054] Figure 6 is a schematic structural diagram of another campus violence monitoring device provided by an embodiment of the present invention;
[0055] Figure 7 is a schematic structural diagram of another campus violence monitoring device provided by an embodiment of the present invention;
[0056] Figure 8 is a structural schematic diagram of a first acquisition module provided by an embodiment of the present invention;
[0057] Fig. 9 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] 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.
[0059] See also Figure 1 , Figure 1 is a flow chart of a campus violence monitoring method provided by an embodiment of the present invention. Figure 1 As shown, the following steps are included:
[0060] 101. Detect whether there is a first target student entering the third specific area from the first specific area. If so, record the first time.
[0061] In the embodiment of the present invention, the first specific area is a monitored area where a monitoring camera is installed, and the third specific area is a non-monitored area where no monitoring camera is installed, also known as a monitoring blind spot area, and the first specific area and the third specific area are adjacent areas. The first specific area can be monitored by the first monitoring camera.
[0062] The first target student may be any student in the school. Furthermore, the first target student may be a student who has been a perpetrator of violence in a school violence incident. The first target student entering the third specific area from the first specific area may be understood as the first target student entering the non-monitored area from the monitored area.
[0063] The above-mentioned detection can be performed using image technology. For example, target detection technology can be used to detect whether the captured image of the first specific area includes students, face recognition technology can be used to identify whether the captured image includes the first target student, and target tracking technology can be used to track the first target student, so as to determine whether the first target student enters the unmonitored area from the monitored area.
[0064] Among them, the above-mentioned first target students can be one or more.
[0065] Optionally, the first specific area can be captured in real time to obtain a captured image; target detection can be performed on the captured image to determine whether the captured image includes the first target student; if the captured image includes the first target student, the first target student is tracked to obtain the tracking trajectory of the first target student; based on the tracking trajectory of the first target student, it is determined whether the first target student has entered the third specific area. Specifically, face detection can be performed on the captured image through a trained face detection model. When a face is detected, the face image is input into a trained face recognition model for face recognition to obtain student information corresponding to the face. The student information is structured or semi-structured data. A student information includes the identity information and face image of the corresponding student. The identity information can be name, ID number, student number, grade, class, height, disciplinary record, psychological assessment information, etc. The student information corresponding to the face can be used to determine whether it is the first target student. For example, if the disciplinary record records campus violence, it can be considered to be the first target student. Of course, the above-mentioned first target student may also be a student with no disciplinary record, for example, the first target student determined based on height, or the first target student determined based on psychological assessment information, etc.
[0066] After the first target student is detected, the first target student is tracked. Specifically, the surveillance video of the first specific area can be obtained, and the surveillance video can be detected and tracked frame by frame through a trained human body model to obtain the tracking trajectory of the first target student. When the tracking trajectory of the first target student disappears at the location of the third specific area, it means that the first target student is detected to enter the third specific area from the first specific area.
[0067] The above-mentioned first time may be the time when the first target student enters the third specific area. By recording the time when the first target student enters the third specific area, the time the first target student stays in the third specific area can be determined.
[0068] 102. When the second target student is detected to appear in the second specific area at the second time, it is determined whether the second target student enters the third specific area.
[0069] In an embodiment of the present invention, the second time is separated from the first time by a preset time interval, for example, the preset time interval may be [0, 300], in seconds. The second specific area and the third specific area are adjacent areas. In some possible embodiments, the second specific area may be the first specific area. The first specific area and the second specific area refer to the monitoring area where the first target person appears and the monitoring area where the second target person appears, and the first specific area and the second specific area are not limited to different areas. Furthermore, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area. The second specific area may be monitored by a second surveillance camera.
[0070] The second target student may be any student in the school. Furthermore, the second target student may be a student who has been the victim of violence in a school violence incident. The second target student entering the third specific area from the second specific area may be understood as the second target student entering the unmonitored area from the monitored area. Specifically, the method for determining whether the second target student enters the third specific area may refer to the method for determining whether the first target student enters the third specific area.
[0071] 103. If the second target student enters the third specific area, a character portrait of the second target student is obtained.
[0072] In an embodiment of the present invention, the second target student enters the third specific area from the second specific area, and the second time and the first time do not exceed a preset time interval, which can indicate that the second target student and the first target student are in the third specific area at the same time, that is, the second target student and the first target student are in the unmonitored area at the same time.
[0073] The above-mentioned character portrait of the second target student can represent certain character traits of the second target student, such as self-confidence, inferiority, eccentricity, thinness, single parent, and eccentricity.
[0074] Optionally, the character portrait of the second target student can be determined by an image captured in the second specific area, or by a tracking trajectory of the second target student, or by static information of the student.
[0075] Specifically, determining the character portrait of the second target student by capturing an image in the second specific area can be that when the second target student is detected to appear in the second specific area at the second time, the image of the second target student is acquired; the attribute information of the second target student is acquired by performing attribute recognition on the image of the second target student through a trained attribute recognition model; and the character portrait of the second target student is evaluated based on the attribute information of the second target student. The above-mentioned attribute information may include attribute information such as age, gender, height, and bowing of the head. For example, a student who is younger, shorter, and walks with his head bowed is likely to be a student who is vulnerable to violence.
[0076] Optionally, the character portrait of the second target student determined through the tracking trajectory of the second target student can be obtained according to the duration of the tracking trajectory of the second target student in the second specific area. If the second target student knows that he is asked by the first target student to go to the third specific area, the second target student will usually hesitate and wander before arriving at the third specific area. This hesitation and wandering can be reflected in the duration of the tracking trajectory. The longer the duration of the tracking trajectory, the more hesitant the second target student is, and the more it can be said that the second target student is a student who is prone to violence, and the second target student can be determined to be the target of violence by the first target student.
[0077] Optionally, it can be determined through the static information of the students, and the static information of the students can be static information such as enrollment information, family information, psychological assessment information, historical campus behavior information, etc. The character portrait of the students can be portrayed based on the static information such as enrollment information, family information, psychological assessment information, historical campus behavior information, etc. For example, in the enrollment information, the second target student is a transfer student from another place, or in the family information, the second target student is from a single-parent family, or in the psychological assessment information, the second target student's personality is assessed as timid, introverted, inferior, and unsociable, etc., then the character portrait of the second target student can be determined as a student who is prone to violence.
[0078] 104. Based on the character portrait of the second target student, determine whether the second target student is a student who is prone to violence.
[0079] In the embodiment of the present invention, it is understandable that students with certain characteristics are more likely to be the target of violence, for example, students with characteristics such as inferiority, thinness, single parent, and loneliness are more likely to be the target of violence. Therefore, it is possible to determine whether the second target student is a student who is prone to violence by determining whether the character portrait of the second target student includes one or more characteristics of inferiority, thinness, single parent, and loneliness.
[0080] 105. If the second target student is a student who is vulnerable to violence, a warning should be issued to the campus management center.
[0081] In an embodiment of the present invention, if the second target student is a student who is vulnerable to violence, it can be roughly determined that the second target student is at risk of being subjected to violence in the third specific area. The above-mentioned campus management center can be understood as a department in charge of campus affairs, which can be a security department, a student affairs department, etc. The above-mentioned warning can be a corresponding warning message sent to the campus management center, and the above-mentioned warning information can include the third specific area location, the first target student information, and the second target student information.
[0082] In an embodiment of the present invention, it is detected whether there is a first target student entering the third specific area from the first specific area. If there is, the first time is recorded; when the second target student is detected in the second specific area at the second time, it is determined whether the second target student enters the third specific area; if the second target student enters the third specific area, a character portrait of the second target student is obtained; according to the character portrait of the second target student, it is determined whether the second target student is a student who is prone to violence; if the second target student is a student who is prone to violence, an alert is given to the campus management center; wherein the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area. It is possible to monitor students entering the monitoring blind spot, and analyze the students entering the monitoring blind spot to determine whether there are students who are prone to violence. In the case of students who are prone to violence, an alert is given to the campus management center, realizing non-screen monitoring of the monitoring blind spot, and timely discovering campus violence in the monitoring blind spot.
[0083] It should be noted that the campus violence monitoring method provided in the embodiment of the present invention can be applied to mobile phones, monitors, computers, servers and other devices that can perform campus violence monitoring.
[0084] Optional, see Figure 2 , Figure 2 is another flow chart of a method for monitoring campus violence provided by an embodiment of the present invention. Figure 2 As shown, in Figure 1 Based on the embodiment, the following steps are also included:
[0085] 201. When it is detected that a first target student appears in a first specific area, audio information of the first target student is acquired, and speech recognition is performed on the audio information to obtain speech content of the first target student.
[0086] In an embodiment of the present invention, the above-mentioned audio information can be obtained through a sound sensor, and the above-mentioned sound sensor can be integrated on the above-mentioned first monitoring camera, that is, the above-mentioned first monitoring camera collects both the captured image of the first specific area and the audio information of the first specific area.
[0087] After obtaining the audio information of the first target student, the audio information of the first target student may be input into a speech recognition model to perform semantic recognition on the audio information to obtain the speech content of the first target student.
[0088] 202. Determine whether a preset keyword appears in the voice content.
[0089] In an embodiment of the present invention, the above-mentioned preset keywords may be words commonly used when school violence occurs, such as "make him pay", "clean up", "vent out", "rob", "beat" and the like.
[0090] In a possible embodiment, the above-mentioned preset keywords may include behavioral keywords and name keywords. The above-mentioned behavioral keywords refer to the description of violent behavior, such as "let him look good", "clean up", "vent out", "rob", "beat", etc. The above-mentioned name keywords may be the names of all students in the school. Specifically, the language content before and during the occurrence of campus violence can be collected first. The above-mentioned language content before and during the occurrence of campus violence can be collected by various schools and collected on the Internet. Extract behavioral keywords related to campus violence from the collected language content, such as "let him look good", "clean up", "vent out", "rob", "beat"; collect the names of all students in the current school as name keywords; construct the preset keywords based on the behavioral keywords and name keywords. The above-mentioned preset keywords can be understood as a keyword vocabulary.
[0091] 203. If the preset keywords appear, after determining that the second target student is a student who is vulnerable to violence, an alert will be sent to the campus management center.
[0092] In an embodiment of the present invention, when preset keywords appear in the voice content of the first target student, it can be indicated that the first target student has the intention to commit violence, and an alert can be sent to the campus management center. In an embodiment of the present invention, the above-mentioned warning information can include audio information and corresponding voice content.
[0093] In the embodiment of the present invention, the audio information of the first target student can be collected to obtain the voice content of the first target student, so as to more accurately determine whether school violence will occur in the third specific area.
[0094] Furthermore, it can be determined whether the name keyword appears in the speech content of the first target student. If the name keyword appears in the speech content of the first target student, it can be determined whether the student corresponding to the name keyword is the second target student. If the student corresponding to the name keyword is the second target student, it means that the first target student has the intention to commit violence, and the target of violence is the second target student.
[0095] Specifically, if a name keyword appears in the voice content of the first target student, the name keyword can be extracted; when the second target student is detected to appear in the second specific area at the second time, the second target student is identified to obtain the student information of the second target student, and the above student information includes the student name; it is determined whether the above name keyword is the same as the student name of the above second target student; if the above name keyword is the same as the student name of the above second target student, it means that the first target student has the intention to commit violence, and the target of the violence is the second target student, then a warning is issued to the campus management center, and the above warning information may include the student information of the second target student.
[0096] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a campus violence monitoring device provided by an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0097] The first detection module 301 is used to detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time;
[0098] The second detection module 302 is used to determine whether the second target student enters the third specific area when the second target student is detected in the second specific area at the second time;
[0099] A first acquisition module 303, configured to acquire a character portrait of the second target student if the second target student enters the third specific area;
[0100] A first judgment module 304 is used to judge whether the second target student is a student who is prone to violence according to the character portrait of the second target student;
[0101] A first warning module 305 is used to warn the campus management center if the second target student is a student who is prone to violence;
[0102] Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
[0103] Optional, such as Figure 4 As shown, the first detection module 301 includes:
[0104] The first acquisition submodule 3011 is used to capture the first specific area in real time to obtain a captured image;
[0105] The target detection submodule 3012 is used to perform target detection on the captured image to determine whether the captured image includes the first target student;
[0106] The target tracking submodule 3013 is used to track the first target student if the captured image includes the first target student, so as to obtain a tracking trajectory of the first target student;
[0107] The first judgment submodule 3014 is used to judge whether the first target student enters the third specific area according to the tracking trajectory of the first target student.
[0108] Optional, such as Figure 5 As shown, the device also includes:
[0109] The second acquisition module 306 is used to acquire audio information of the first target student when the first target student is detected to appear in the first specific area at the first time, and perform speech recognition on the audio information to obtain the speech content of the first target student;
[0110] The second judgment module 307 is used to judge whether a preset keyword appears in the voice content;
[0111] The second warning module 308 is used to warn the campus management center if a preset keyword appears and after determining that the second target student is a student who is prone to violence, the warning information includes audio information.
[0112] Optional, such as Figure 6 As shown, the preset keywords include behavior keywords and name keywords, and the device also includes:
[0113] A first collection module 309 is used to collect language content before and during campus violence, and extract behavioral keywords related to campus violence from the language content;
[0114] The second collection module 310 is used to collect the names of all students in the current school as name keywords;
[0115] The construction module 311 is used to construct the preset keywords according to the behavior keywords and the person name keywords.
[0116] Optional, such as Figure 7As shown, the second judgment module 307 is also used to judge whether the voice content contains a name keyword;
[0117] The device also includes:
[0118] An extraction module 312, configured to extract a name keyword if the voice content contains a name keyword;
[0119] The identification module 313 is used to identify the second target student when detecting the second target student in the second specific area at the second time, and obtain the student information of the second target student, wherein the student information includes the student name;
[0120] The third judgment module 314 is used to judge whether the name keyword is the same as the name of the second target student;
[0121] The third warning module 315 is used to warn the campus management center if the name keyword is the same as the name of the second target student, and the warning information includes the student information of the second target student.
[0122] Optional, such as Figure 8 As shown, the first acquisition module 303 includes:
[0123] The second acquisition submodule 3031 is used to acquire the image of the second target student when detecting the presence of the second target student in the second specific area at the second time;
[0124] The attribute recognition submodule 3032 is used to perform attribute recognition on the image of the second target student by using the trained attribute recognition model to obtain attribute information of the second target student;
[0125] The evaluation submodule 3033 is used to evaluate the character portrait of the second target student according to the attribute information of the second target student.
[0126] Optionally, the first acquisition module 303 is further configured to, when detecting the presence of a second target student in the second specific area at the second time, identify the second target student and obtain student information of the second target student, wherein the student information includes a student portrait;
[0127] The student portrait is obtained by evaluating the student's admission information, family information, psychological assessment information, and historical campus behavior information.
[0128] It should be noted that the campus violence monitoring device provided in the embodiment of the present invention can be applied to mobile phones, monitors, computers, servers and other devices that can perform campus violence monitoring.
[0129] The campus violence monitoring device provided in the embodiment of the present invention can implement each process implemented by the campus violence monitoring method in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0130] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig. 9 As shown, it includes: a memory 902, a processor 901, and a computer program stored in the memory 902 and executable on the processor 901, wherein:
[0131] The processor 901 is used to call the computer program stored in the memory 902 and execute the following steps:
[0132] Detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time;
[0133] When the second target student is detected to be present in the second specific area at the second time, determining whether the second target student enters the third specific area;
[0134] If the second target student enters the third specific area, obtaining a character portrait of the second target student;
[0135] According to the character portrait of the second target student, determining whether the second target student is a student who is prone to violence;
[0136] If the second target student is a student who is vulnerable to violence, alert the campus management center;
[0137] Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
[0138] Optionally, the detecting whether there is a first target student entering the third specific area from the first specific area performed by the processor 901 includes:
[0139] Taking a snapshot of the first specific area in real time to obtain a snapshot image;
[0140] Performing target detection on the captured image to determine whether the captured image includes a first target student;
[0141] If the captured image includes a first target student, target tracking is performed on the first target student to obtain a tracking trajectory of the first target student;
[0142] Based on the tracking trajectory of the first target student, determine whether the first target student enters the third specific area.
[0143] Optionally, the method executed by the processor 901 further includes:
[0144] When the first target student is detected to appear in the first specific area at the first time, audio information of the first target student is acquired, and speech recognition is performed on the audio information to obtain speech content of the first target student;
[0145] Determining whether a preset keyword appears in the voice content;
[0146] If the preset keywords appear, after determining that the second target student is a student who is prone to violence, an alert is sent to the campus management center, and the alert information includes audio information.
[0147] Optionally, the preset keywords include behavior keywords and name keywords. Before determining whether the preset keywords appear in the voice content, the method executed by the processor 901 further includes:
[0148] Collecting language content before and during school violence, and extracting behavioral keywords related to school violence from the language content;
[0149] Collect the names of all students in the current school as name keywords;
[0150] The preset keywords are constructed according to the behavior keywords and the person name keywords.
[0151] Optionally, the determining whether a preset keyword appears in the voice content performed by the processor 901 includes:
[0152] Determining whether a person's name keyword appears in the voice content;
[0153] The method executed by the processor 901 further includes:
[0154] If a person's name keyword appears in the voice content, extract the person's name keyword;
[0155] When a second target student is detected to appear in the second specific area at the second time, the second target student is identified to obtain student information of the second target student, wherein the student information includes the student name;
[0156] Determining whether the name keyword is the same as the name of the second target student;
[0157] If the name keyword is the same as the name of the second target student, an alert is sent to the campus management center, and the alert information includes the student information of the second target student.
[0158] Optionally, the obtaining of the character portrait of the second target student performed by the processor 901 includes:
[0159] When a second target student is detected to appear in the second specific area at a second time, acquiring an image of the second target student;
[0160] Performing attribute recognition on the image of the second target student by using the trained attribute recognition model to obtain attribute information of the second target student;
[0161] According to the attribute information of the second target student, the character portrait of the second target student is evaluated.
[0162] Optionally, the obtaining of the character portrait of the second target student performed by the processor 901 includes:
[0163] When the second target student is detected to appear in the second specific area at the second time, the identity of the second target student is identified to obtain the student information of the second target student, wherein the student information includes a portrait of the student;
[0164] The student portrait is obtained by evaluating the student's admission information, family information, psychological assessment information, and historical campus behavior information.
[0165] It should be noted that the above-mentioned electronic devices may be mobile phones, monitors, computers, servers and other devices that can be used for campus violence monitoring.
[0166] The electronic device provided in the embodiment of the present invention can implement each process implemented by the campus violence monitoring method in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0167] An embodiment of the present invention further 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 campus violence monitoring 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 described here.
[0168] 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 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. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0169] 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 campus violence monitoring method, characterized in that: The following steps are involved: Detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time; The first target students are students who have been the perpetrators of violence in campus violence incidents; When the second target student is detected to appear in the second specific area at the second time, it is determined whether the second target student has entered the third specific area; the second target student is a student who has been the victim of violence in a campus violence incident; If the second target student enters the third specific area, obtaining a character portrait of the second target student; According to the character portrait of the second target student, determining whether the second target student is a student who is prone to violence; If the second target student is a student who is vulnerable to violence, alert the campus management center; Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
2. The method according to claim 1, characterized in that The detecting whether there is a first target student entering the third specific area from the first specific area includes: Taking a snapshot of the first specific area in real time to obtain a snapshot image; Performing target detection on the captured image to determine whether the captured image includes a first target student; If the captured image includes a first target student, target tracking is performed on the first target student to obtain a tracking trajectory of the first target student; Based on the tracking trajectory of the first target student, determine whether the first target student enters the third specific area.
3. The method according to claim 2, characterized in that The method further comprises: When the first target student is detected to be present in the first specific area, audio information of the first target student is acquired, and speech recognition is performed on the audio information to obtain speech content of the first target student; Determining whether a preset keyword appears in the voice content; If the preset keywords appear, after determining that the second target student is a student who is prone to violence, an alert is sent to the campus management center, and the alert information includes audio information.
4. The method according to claim 3, characterized in that The preset keywords include behavior keywords and name keywords. Before determining whether the preset keywords appear in the voice content, the method further includes: Collecting language content before and during school violence, and extracting behavioral keywords related to school violence from the language content; Collect the names of all students in the current school as name keywords; The preset keywords are constructed according to the behavior keywords and the person name keywords.
5. The method according to claim 4, characterized in that The determining whether a preset keyword appears in the voice content includes: Determining whether a person's name keyword appears in the voice content; The method further comprises: If a person's name keyword appears in the voice content, extract the person's name keyword; When a second target student is detected to appear in the second specific area at the second time, the second target student is identified to obtain student information of the second target student, wherein the student information includes the student name; Determining whether the name keyword is the same as the name of the second target student; If the name keyword is the same as the name of the second target student, an alert is sent to the campus management center, and the alert information includes the student information of the second target student.
6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the character portrait of the second target student includes: When a second target student is detected to appear in the second specific area at a second time, acquiring an image of the second target student; Performing attribute recognition on the image of the second target student by using the trained attribute recognition model to obtain attribute information of the second target student; According to the attribute information of the second target student, the character portrait of the second target student is evaluated.
7. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the character portrait of the second target student includes: When the second target student is detected to appear in the second specific area at the second time, the identity of the second target student is identified to obtain the student information of the second target student, wherein the student information includes a portrait of the student; The student portrait is obtained by evaluating the student's admission information, family information, psychological assessment information, and historical campus behavior information.
8. A campus violence monitoring device, characterized in that: The device comprises: The first detection module is used to detect whether there is a first target student entering the third specific area from the first specific area, and if so, record the first time; the first target student is a student who has been a violent party in a campus violence incident; The second detection module is used to determine whether the second target student has entered the third specific area when the second target student is detected in the second specific area at the second time; the second target student is a student who has been the victim of violence in a campus violence incident; A first acquisition module, configured to acquire a character portrait of the second target student if the second target student enters the third specific area; A first judgment module is used to judge whether the second target student is a student who is prone to violence according to the character portrait of the second target student; A first warning module, used to warn the campus management center if the second target student is a student who is prone to violence; Among them, the first time and the second time do not exceed a preset time interval, the first specific area and the second specific area are both adjacent to the third specific area, the first specific area and the second specific area are monitoring areas, and the third specific area is a non-monitoring area.
9. An electronic device, 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 campus violence monitoring method as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, 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 campus violence monitoring method according to any one of claims 1 to 7 are implemented.
