Corridor safety early warning method and related device
By analyzing the action information and movement characteristics of students in the corridor, and calculating the probability of accidents for safety warning, the problem of low accuracy of safety warning for campus corridors in the existing technology is solved, and higher warning accuracy is achieved.
Patent Information
- Application Number
- CN202111646103.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-30
AI Technical Summary
The accuracy of the existing technology for student safety warning in campus corridors is low, mainly because it relies on the number of students for warning and lacks effective analysis of student movement information.
By obtaining the target image of the corridor, the student's movement information is determined, the motion feature information is extracted, and the accident probability is calculated based on this information for safety warning, thereby improving the accuracy of the warning.
Through the extraction of action information and motion feature analysis, the accuracy of safety warnings for students in corridors is significantly improved, which is more accurate than quantity-based warning methods.
Smart Images

Figure CN114446028B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a corridor safety early warning method and related devices. Background Art
[0002] As the importance of campus safety increases, more and more considerations are given to the safety of students on campus. At present, the method of providing safety warnings when students are active in the corridor is usually to analyze the number of students in the corridor. The higher the number, the greater the danger, etc., which leads to low accuracy of safety warnings when students are active in the corridor. Summary of the invention
[0003] The embodiment of the present application provides a corridor safety warning method, which can issue safety warnings based on students' movement information in the corridor, thereby improving the accuracy of safety warnings for students when they are active in the corridor.
[0004] A corridor safety early warning method according to an embodiment of the present application comprises:
[0005] Acquire a target image including the corridor;
[0006] Determining motion information of a plurality of students in the corridor according to the target image;
[0007] Determining target motion feature information according to the motion information of the plurality of students;
[0008] Determining a first target probability of an accident occurring in the corridor according to the target motion characteristic information;
[0009] A safety warning is issued according to the first target probability.
[0010] In this example, by acquiring a target image including a corridor, determining motion information of multiple students in the corridor based on the target image, determining target motion feature information based on the motion information of the multiple students, determining a first target probability of an accident occurring in the corridor based on the target motion feature information, and making a safety warning based on the first target probability, the accident probability can be predicted based on the motion feature information determined based on the motion information of the students extracted from the image, and making a safety warning based on the accident probability, thereby greatly improving the accuracy of safety warnings compared to the method of making safety warnings based on the number of students.
[0011] In combination with the first aspect, in a possible embodiment, the motion information includes orientation information and body motion information, and determining target motion feature information according to the motion information of the plurality of students includes:
[0012] Determining interaction information between the multiple students according to the body movement information of the multiple students;
[0013] Determining first sub-motion feature information according to the interaction information;
[0014] Determining the motion track interaction information between the multiple students according to the orientation information of the multiple students;
[0015] Determining second sub-motion feature information according to the motion trajectory interaction information;
[0016] The target motion feature information is determined according to the first sub-motion feature information and the second sub-motion feature information.
[0017] In this example, the first sub-motion feature information associated with the target motion feature information is determined by the interaction information between students determined by the body motion information of multiple students, so that the target motion feature information can be determined at a deeper level based on the mutual actions between students, thereby improving the accuracy of determining the target motion feature information.
[0018] A second aspect of an embodiment of the present application provides a corridor safety warning device, the device comprising:
[0019] An acquisition unit, used for acquiring a target image including a corridor;
[0020] A first determining unit, configured to determine motion information of a plurality of students in the corridor according to the target image;
[0021] A second determining unit, configured to determine target motion feature information according to the motion information of the plurality of students;
[0022] A third determining unit is used to determine a first target probability of an accident occurring in the corridor according to the target motion characteristic information;
[0023] An early warning unit is used to issue a safety early warning according to the first target probability.
[0024] A third aspect of an embodiment of the present application provides an electronic device, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
[0025] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.
[0026] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of a corridor safety warning system is provided for an embodiment of the present application;
[0029] Figure 2 A flowchart of a corridor safety early warning method is provided for an embodiment of the present application;
[0030] Figure 3 A flowchart of another corridor safety early warning method is provided for the embodiment of the present application;
[0031] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0032] Figure 5 A structural schematic diagram of a corridor safety warning device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0035] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0036] In order to better understand a corridor safety warning method provided in an embodiment of the present application, the following first briefly introduces a corridor safety warning system that applies the corridor safety warning method.
[0037] See also Figure 1 , Figure 1 A schematic diagram of a corridor safety warning system is provided for an embodiment of the present application. The corridor safety warning system includes an image acquisition device and an electronic device, wherein the electronic device may be a server, etc. The image acquisition device includes a camera, which can acquire images in the corridor, and the corridor safety warning method is applied to the electronic device. The image acquisition device acquires a target image including the corridor, and the acquisition device can also preliminarily determine whether there are students in the target image. If there are no students, the target image is not sent, and if there are students, the target image is sent to the electronic device, the electronic device receives the target image, and determines the motion information of multiple students in the corridor according to the target image, the electronic device determines the target motion feature information according to the motion information of the multiple students, the electronic device determines the first target probability of an accident in the corridor according to the target motion feature information, and the electronic device performs a safety warning according to the first target probability. For example, if the first target probability is higher than the preset probability threshold, an alarm message is sent, otherwise an alarm message is not sent, therefore, the motion feature information can be determined according to the motion information of the students extracted from the image, the accident probability is predicted, and a safety warning is performed based on the accident probability, so as to greatly improve the accuracy of the safety warning when performing safety warning according to the number of students.
[0038] See also Figure 2 , Figure 2 The present invention provides a flow chart of a corridor safety warning method. Figure 2 As shown, applied to an electronic device, the method includes:
[0039] 201. Acquire a target image including a corridor.
[0040] The target image can be acquired through the acquisition device. For example, the acquisition device can periodically acquire the corridor image and send the corridor image as the target image to the electronic device, so that the electronic device acquires the target image. Of course, the electronic device can also acquire the target image by receiving the image including the corridor sent by the user through the Internet.
[0041] 202. Determine action information of a plurality of students in the corridor according to the target image.
[0042] The target image can be feature extracted to obtain feature data; the contour information of each student can be determined based on the feature data, and the action information can be determined based on the contour information. The feature data can be, for example, a grayscale value, an RGB value, etc. The method for extracting features from the target image can adopt a general feature extraction method, etc. The place where the grayscale value or RGB value jumps can be determined as the student's contour, and the closed contour can be determined as the student's contour, thereby obtaining contour information. The contour information indicates that there is a corresponding action, so that the student's action information can be obtained.
[0043] 203. Determine target motion feature information based on the motion information of the multiple students.
[0044] The target motion feature information can be understood as the student's motion trends, etc. The motion trends can include normal motion trends and abnormal motion trends. The normal motion trend can be understood as the student's normal walking motion trend, the motion trend without collision, and the motion trend with a low probability of accidents, for example, the motion trend of walking at a speed within a fixed speed range, and the fixed speed range is set by experience or historical data. The abnormal motion trend can be, for example, the motion trend when running, the motion trend when playing, the motion trend that may collide with others, etc.
[0045] The motion information may include orientation information and body motion information, so that the motion feature information of the students can be determined based on the orientation information and body motion information. Specifically, for example, the interaction information between students can be obtained based on the body motion information, and the trajectory interaction information can be determined based on the orientation information to determine the motion feature information. The interaction information can be understood as the interaction between students, for example, students can walk side by side, multiple people can walk in parallel, support each other, etc.
[0046] 204. Determine a first target probability of an accident occurring in the corridor according to the target motion characteristic information.
[0047] Different target motion feature information corresponds to different probabilities of accidents. For example, if the motion trend in the target motion feature is a running motion trend, the first target probability of an accident is higher. For another example, the first target probability corresponding to a normal motion trend is lower. Of course, the first target probability is different for different running speeds. The higher the speed, the higher the first target probability, and the lower the speed, the lower the first target probability.
[0048] 205. Issue a safety warning according to the first target probability.
[0049] The first target probability is compared with the preset warning probability. If the first target probability is less than the preset warning probability, the warning information for the safety warning is empty. If the first target probability is greater than or equal to the preset warning probability, the warning information for the safety warning can be the pre-set warning information. The warning information can be set by experience value or historical data, and its function is to provide a warning prompt.
[0050] In this example, by acquiring a target image including a corridor, determining motion information of multiple students in the corridor based on the target image, determining target motion feature information based on the motion information of the multiple students, determining a first target probability of an accident occurring in the corridor based on the target motion feature information, and making a safety warning based on the first target probability, the accident probability can be predicted based on the motion feature information determined based on the motion information of the students extracted from the image, and making a safety warning based on the accident probability, thereby greatly improving the accuracy of safety warnings compared to the method of making safety warnings based on the number of students.
[0051] In a possible implementation, the motion information includes orientation information and body motion information. A possible method for determining target motion feature information based on the motion information of the plurality of students includes:
[0052] A1. Determine the interaction information between the multiple students according to the body movement information of the multiple students;
[0053] A2. determining first sub-motion feature information according to the interaction information;
[0054] A3. Determine the motion track interaction information between the multiple students according to the orientation information of the multiple students;
[0055] A4. Determine second sub-motion feature information according to the motion trajectory interaction information;
[0056] A5. Determine the target motion feature information according to the first sub-motion feature information and the second sub-motion feature information.
[0057] The target motion feature information can be understood as the student's motion trend, etc. The motion trend can include normal motion trend and abnormal motion trend. The normal motion trend can be understood as the student's normal walking and low probability of accident, for example, the motion trend of walking at a speed within a fixed speed range, the fixed speed range is set by experience value or historical data, and the abnormal motion trend can be, for example, the motion trend when running, the motion trend when playing, etc.
[0058] Among them, the interactive action information between multiple students can be determined based on the hand action information and leg action information included in the body action information. For example, the interactive action information can be determined based on the contact information between the hand action information. Specifically, for example, whether there is an overlapping part between the hand actions can be used to determine the contact information. Therefore, it can be determined whether the student has a normal movement trend or an abnormal movement trend based on the contact information. For example, if the interactive action information is the interactive action information corresponding to walking with each other's support, then its movement trend can be determined as a normal movement trend. For another example, if the interactive action information is the interactive action information of multiple people walking in parallel, then its movement trend can be an abnormal movement trend, etc.
[0059] According to the orientation information, the intersection between the current orientations can be determined; the position information of the intersection can be determined as the motion trajectory interaction information. For example, the orientation can be extended to obtain the intersection between the straight lines where the orientations are located, and the intersection can be determined as the intersection between the orientations. Since students nowadays read while walking, they usually cannot actively find out whether they have collided with other people when walking. At the same time, the orientation can represent the direction of their movement. The intersection determined by the orientation information determines the intersection between the orientations, and it can be determined whether they have collided with other students in the corridor. If the position indicated by the position information of the intersection is in the corridor, the motion trajectory interaction information may be that there will be interaction. If the position indicated by the position information of the intersection is outside the corridor, the motion trajectory interaction information may be that there will be no interaction. Different trajectory interaction information may correspond to different second sub-motion feature information. For example, if the trajectory interaction information is that there will be interaction, the second sub-motion feature information may be an abnormal motion trend. If the trajectory interaction information is that there will be no interaction, the second sub-motion feature information may be a normal motion trend.
[0060] The first sub-motion feature information and the second sub-motion feature information can be OR-operated to obtain the target motion feature information. Specifically, it can be understood that: the first sub-motion feature information is an abnormal motion trend, and the second sub-motion feature information is a normal motion trend. After the OR-operation, the target motion feature information is an abnormal motion trend.
[0061] In this example, the target motion feature information is determined based on the first sub-motion feature information determined according to the interaction information between students and the second sub-motion feature information determined according to the orientation information of the students, which can improve the accuracy of determining the target motion feature information.
[0062] In a possible implementation, a possible method for determining the interaction information between the multiple students based on the body movement information of the multiple students includes:
[0063] B1. determining first hand movement information and first leg movement information of the first student from the body movement information of the first student, and determining second hand movement information and second leg movement information of the second student from the body movement information of the second student, wherein the first student and the second student are any two students among the multiple students;
[0064] B2. determining hand contact information between the first student and the second student according to the first hand motion information and the second hand motion information;
[0065] B3. Determine first sub-interaction action information according to the hand contact information;
[0066] B4. determining movement distance information between the first student and the second student according to the first leg movement information and the second leg movement information;
[0067] B5. Determine the second sub-interaction information according to the movement distance information;
[0068] B6. Determine the interaction information between the first student and the second student according to the first sub-interaction information and the second sub-interaction information;
[0069] B7. Repeat the above steps of obtaining the interaction information between the first student and the second student until the interaction information between the plurality of students is obtained.
[0070] The body movement information includes hand movements and leg movements, so the hand movements and leg movements of the students can be extracted from the body movement information.
[0071] Hand contact information can be determined based on the first hand motion information and the second hand motion information. The hand contact information can be, for example, passive contact and active contact. Passive contact can be understood as unconscious touch during walking. For example, when walking, after swinging an arm, touching any position of another arm, it can be determined as passive contact. Active contact can be understood as holding hands, holding hands, pulling arms, pulling wrists, etc. Different contact information can correspond to different interactive action information. For example, holding hands and holding hands correspond to different interactive action information.
[0072] The movement distance information between the first student and the second student can be understood as: the shortest distance between the adjacent feet of the first student and the second student. Different distance information corresponds to different interaction information, and the second sub-interaction information can be determined according to the movement distance information.
[0073] The union of the first sub-interaction information and the second sub-interaction information may be determined as the interaction information between the first student and the second student.
[0074] In this example, the first sub-interaction information is determined according to the student's hand movements, and the second sub-interaction information is determined according to the student's leg movements. The union of the first sub-interaction information and the second sub-interaction information is determined as the interaction information between the first student and the second student. The interaction information can be determined based on the hand and leg movements, thereby improving the accuracy of determining the interaction information.
[0075] In a possible implementation, after determining the first target probability of an accident occurring in the corridor according to the target motion characteristic information, the first target probability may be corrected. The specific correction method is:
[0076] C1. determining expression information of each of the plurality of students according to the target image;
[0077] C2, obtaining the acquisition time of the target image;
[0078] C3. determining a probability correction value according to the expression information of each of the plurality of students and the collection time;
[0079] C4. Correct the first target probability according to the probability correction value to obtain a second target probability.
[0080] The target image may be subjected to expression extraction to obtain expression information. The method for performing expression extraction may refer to the method for determining the student's motion information in the aforementioned embodiment, and will not be described in detail here.
[0081] Due to different time periods, students may have different expressions. For example, students may have different expressions on their way to outdoor classes. For example, students usually like to take outdoor classes, such as physical education classes, so their expressions may be excited and happy. For another example, when students need to go to the laboratory for experimental classes, they will also have different expressions. For example, students who like experimental classes will have happy and joyful expressions, and students who do not like experimental classes will have frustrated and melancholy expressions. Event information can be determined based on the collection time, so as to determine the probability correction value by combining event and expression information.
[0082] The method of correcting the first target probability according to the probability correction value to obtain the second target probability may be: multiplying the probability correction value by the first target probability to determine the second target probability value, etc.
[0083] In this example, the probability correction value is determined based on the student's facial expression information and the event corresponding to the image acquisition time, and the first target probability is modified to obtain the second target probability, thereby improving the accuracy of determining the second target probability.
[0084] In a possible implementation, a possible method for determining a probability correction value according to the expression information of each of the multiple students and the collection time includes:
[0085] D1. Determine dangerous expression information from the expression information of each student;
[0086] D2. Acquire event information corresponding to the collection time;
[0087] D3, determining a first correlation degree between the dangerous expression information and the event information;
[0088] D4. Determine the probability correction value according to the first correlation degree.
[0089] Among them, dangerous expressions can be very excited expressions, very happy expressions, expressions when running, etc. Since students usually have large body movements when they have very happy or excited expressions, it is easy to cause accidents in the corridor. Large body movements, for example, large hand movements and large leg movements. The movement amplitude can be understood as a large deviation between the hands, legs and torso, and the deviation can be understood as the distance between the palms, ankles and torso, etc.
[0090] The method for obtaining the event information corresponding to the collection time may be: the event information may be determined according to the class schedule or schedule of the day of the collection time. For example, if there is a sports meeting corresponding to the collection time in the schedule of the day, the event information may be the information of the sports meeting. Of course, the event corresponding to the event information may also be: outdoor courses, experimental classes, public welfare activities, etc.
[0091] The first correlation degree may be determined according to a preset correlation degree table between dangerous expressions and events, wherein the correlation degree table is set by empirical values or historical data.
[0092] The higher the first correlation is, the larger the correction amplitude corresponding to the probability correction value is, and the smaller the correlation is, the smaller the correction amplitude corresponding to the probability correction value is. The correction amplitude can be understood as the adjustment amplitude of the first target probability, for example, increasing the first target probability and decreasing the value of the first target probability.
[0093] In this example, by determining the dangerous expression information of the accident from the expression information and determining the probability correction value according to the first correlation between the event information corresponding to the collection time and the dangerous expression information, the accuracy of the obtained fault probability can be further improved.
[0094] In a possible implementation, a possible method for determining a probability correction value according to the expression information of each of the multiple students and the collection time includes:
[0095] E1. Obtain expression difference information between expression information of each of the multiple students;
[0096] E2. If the expression difference information is preset difference information, then obtaining event information corresponding to the acquisition time of the target image;
[0097] E3. If the event corresponding to the event information is a preset event, obtaining a second correlation degree between the expression information of each of the multiple students and the event corresponding to the event information;
[0098] E4. If there are K second correlations greater than a preset correlation threshold, determine the probability correction value according to the K second correlations, where K is a preset value.
[0099] Among them, expression values can be assigned to expression information, and different expression information corresponds to different expression values. The expression value assignment method can be: assigning values from sad expression to very happy expression in sequence, etc., and of course, random assignment can also be performed. Expression difference information can be represented by the difference between expression values.
[0100] The preset difference information may be a preset difference value, etc., and the preset difference value is set by an experience value or historical data. The method for obtaining the event information corresponding to the collection time may refer to the method for determining the event information in the above embodiment.
[0101] The preset events may be events that need to be performed outside the classroom, such as outdoor classes, experimental classes, public welfare activities, sports games, get out of class breaks, school starts, etc. Since more students tend to follow the preset events, the consistency of their expressions is high, and the difference in expression information is relatively small, which increases the probability of accidents.
[0102] The second correlation degree may be determined according to a correlation degree table between the expression information and the event information, wherein the correlation degree table is set by empirical values or historical data.
[0103] The probability correction value can be determined according to the average of the K second correlations. The specific method shown in the above step D4 can be referred to for implementation. Since there are K correlations that are all greater than the preset correlation threshold, the students in the corridor may appear to be more excited and happy, which will increase the probability of accidents.
[0104] In this example, by obtaining expression difference information between the expression information of each of the multiple students, if the expression difference information is the preset difference information, then the event information corresponding to the acquisition time of the target image is obtained, if the event corresponding to the event information is a preset event, then the second correlation between the expression information of each of the multiple students and the event corresponding to the event information is obtained, if there are K second correlations greater than the preset correlation threshold, then the probability correction value is determined according to the K second correlations, thereby improving the accuracy of obtaining the probability correction value.
[0105] See also Figure 3 , Figure 3 The present invention provides a flow chart of a corridor safety warning method. Figure 3 As shown, applied to an electronic device, the method includes:
[0106] 301. Acquire a target image including a corridor;
[0107] 302. Determine action information of a plurality of students in the corridor according to the target image;
[0108] Among them, the action information includes orientation information and body movement information
[0109] 303. Determine interaction information between the multiple students according to the body movement information of the multiple students;
[0110] 304. Determine first sub-motion feature information according to the interaction information;
[0111] 305. Determine the motion track interaction information between the multiple students according to the orientation information of the multiple students;
[0112] 306. Determine second sub-motion feature information according to the motion trajectory interaction information;
[0113] 307. Determine the target motion feature information according to the first sub-motion feature information and the second sub-motion feature information;
[0114] 308. Determine a first target probability of an accident occurring in the corridor according to the target motion characteristic information;
[0115] 309. Issue a safety warning according to the first target probability.
[0116] In this example, the target motion feature information is determined based on the first sub-motion feature information determined according to the interaction information between students and the second sub-motion feature information determined according to the orientation information of the students, which can improve the accuracy of determining the target motion feature information.
[0117] For the above embodiments, please refer to Figure 4 , Figure 4 A structural schematic diagram of an electronic device provided in an embodiment of the present application, as shown in the figure, includes a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps;
[0118] Acquire a target image including the corridor;
[0119] Determining motion information of a plurality of students in the corridor according to the target image;
[0120] Determining target motion feature information according to the motion information of the plurality of students;
[0121] Determining a first target probability of an accident occurring in the corridor according to the target motion characteristic information;
[0122] A safety warning is issued according to the first target probability.
[0123] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0124] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0125] In line with the above, see Figure 5 , Figure 5 The present invention provides a schematic diagram of the structure of a corridor safety warning device. Figure 5 As shown, the device comprises:
[0126] An acquisition unit 501 is used to acquire a target image including a corridor;
[0127] A first determining unit 502 is used to determine the motion information of multiple students in the corridor according to the target image;
[0128] A second determining unit 503 is used to determine target motion feature information according to the motion information of the plurality of students;
[0129] A third determining unit 504 is used to determine a first target probability of an accident occurring in the corridor according to the target motion characteristic information;
[0130] The warning unit 505 is used to issue a safety warning according to the first target probability.
[0131] In a possible implementation, the action information includes orientation information and body action information, and the second determining unit 503 is used to:
[0132] Determining interaction information between the multiple students according to the body movement information of the multiple students;
[0133] Determining first sub-motion feature information according to the interaction information;
[0134] Determining the motion track interaction information between the multiple students according to the orientation information of the multiple students;
[0135] Determining second sub-motion feature information according to the motion trajectory interaction information;
[0136] The target motion feature information is determined according to the first sub-motion feature information and the second sub-motion feature information.
[0137] In a possible implementation, in determining the interaction information between the multiple students according to the body movement information of the multiple students, the second determining unit 503 is used to:
[0138] Determining first hand movement information and first leg movement information of the first student from the body movement information of the first student, and determining second hand movement information and second leg movement information of the second student from the body movement information of the second student, wherein the first student and the second student are any two students among the multiple students;
[0139] determining hand contact information between the first student and the second student according to the first hand motion information and the second hand motion information;
[0140] Determining first sub-interaction action information according to the hand contact information;
[0141] Determine movement distance information between the first student and the second student according to the first leg movement information and the second leg movement information;
[0142] Determining the second sub-interaction action information according to the movement distance information;
[0143] Determining interaction information between the first student and the second student according to the first sub-interaction information and the second sub-interaction information;
[0144] Repeat the above step of obtaining the interaction information between the first student and the second student until the interaction information between the plurality of students is obtained.
[0145] In a possible implementation, after determining the first target probability of an accident occurring in the corridor according to the target motion characteristic information, the device is further configured to:
[0146] Determining expression information of each of the plurality of students according to the target image;
[0147] Acquiring the acquisition time of the target image;
[0148] Determining a probability correction value according to the expression information of each student among the plurality of students and the collection time;
[0149] The first target probability is corrected according to the probability correction value to obtain a second target probability.
[0150] In a possible implementation, in determining the probability correction value according to the expression information of each of the multiple students and the collection time, the device is further used to:
[0151] Determining dangerous expression information from the expression information of each student;
[0152] Acquire event information corresponding to the collection time;
[0153] Determining a first correlation degree between the dangerous expression information and the event information;
[0154] The probability correction value is determined according to the first degree of association.
[0155] In a possible implementation, in determining the probability correction value according to the expression information of each of the multiple students and the collection time, the device is further used to:
[0156] Acquire expression difference information between expression information of each student among the plurality of students;
[0157] If the expression difference information is preset difference information, then acquiring event information corresponding to the acquisition time of the target image;
[0158] If the event corresponding to the event information is a preset event, obtaining a second correlation degree between the expression information of each of the multiple students and the event corresponding to the event information;
[0159] If there are K second correlations greater than a preset correlation threshold, the probability correction value is determined according to the K second correlations, where K is a preset value.
[0160] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the corridor safety warning methods recorded in the above method embodiments.
[0161] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any corridor safety warning method recorded in the above method embodiments.
[0162] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0167] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0168] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0169] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A corridor safety early warning method, characterized in that: The method comprises: Acquire a target image including the corridor; Determining motion information of a plurality of students in the corridor according to the target image; Determining target motion feature information according to the motion information of the plurality of students; Determining a first target probability of an accident occurring in the corridor according to the target motion characteristic information; Providing a safety warning according to the first target probability; The motion information includes orientation information and body motion information, and determining target motion feature information according to the motion information of the plurality of students includes: Determining interaction information between the multiple students according to the body movement information of the multiple students; Determining first sub-motion feature information according to the interaction information; Determining the motion track interaction information between the multiple students according to the orientation information of the multiple students; Determining second sub-motion feature information according to the motion trajectory interaction information; The target motion feature information is determined according to the first sub-motion feature information and the second sub-motion feature information.
2. The method according to claim 1, characterized in that Determining the interaction information between the multiple students according to the body movement information of the multiple students includes: Determining first hand movement information and first leg movement information of the first student from the body movement information of the first student, and determining second hand movement information and second leg movement information of the second student from the body movement information of the second student, wherein the first student and the second student are any two students among the multiple students; determining hand contact information between the first student and the second student according to the first hand motion information and the second hand motion information; Determining first sub-interaction action information according to the hand contact information; Determine movement distance information between the first student and the second student according to the first leg movement information and the second leg movement information; Determining the second sub-interaction action information according to the movement distance information; Determining interaction information between the first student and the second student according to the first sub-interaction information and the second sub-interaction information; Repeat the above step of obtaining the interaction information between the first student and the second student until the interaction information between the plurality of students is obtained.
3. The method according to claim 1 or 2, characterized in that: After determining the first target probability of an accident occurring in the corridor according to the target motion characteristic information, the method further includes: Determining expression information of each of the plurality of students according to the target image; Acquiring the acquisition time of the target image; Determining a probability correction value according to the expression information of each student among the plurality of students and the collection time; The first target probability is corrected according to the probability correction value to obtain a second target probability.
4. The method according to claim 3, characterized in that The determining of the probability correction value according to the expression information of each of the plurality of students and the collection time includes: Determining dangerous expression information from the expression information of each student; Acquire event information corresponding to the collection time; Determining a first correlation degree between the dangerous expression information and the event information; The probability correction value is determined according to the first degree of association.
5. The method according to claim 3, characterized in that: The determining of the probability correction value according to the expression information of each of the plurality of students and the collection time includes: Acquire expression difference information between expression information of each student among the plurality of students; If the expression difference information is preset difference information, then acquiring event information corresponding to the acquisition time of the target image; If the event corresponding to the event information is a preset event, obtaining a second correlation degree between the expression information of each of the multiple students and the event corresponding to the event information; If there are K second correlations greater than a preset correlation threshold, the probability correction value is determined according to the K second correlations, where K is a preset value.
6. A corridor safety warning device, characterized in that: The device comprises: An acquisition unit, used for acquiring a target image including a corridor; A first determining unit, configured to determine motion information of a plurality of students in the corridor according to the target image; A second determining unit, configured to determine target motion feature information according to the motion information of the plurality of students; A third determining unit is used to determine a first target probability of an accident occurring in the corridor according to the target motion characteristic information; An early warning unit, configured to issue a safety early warning according to the first target probability; The action information includes orientation information and body action information, and the second determining unit is used to: Determining interaction information between the multiple students according to the body movement information of the multiple students; Determining first sub-motion feature information according to the interaction information; Determining the motion track interaction information between the multiple students according to the orientation information of the multiple students; Determining second sub-motion feature information according to the motion trajectory interaction information; The target motion feature information is determined according to the first sub-motion feature information and the second sub-motion feature information.
7. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5.
