School health automatic management method and device, electronic equipment and storage medium
The campus sanitation management method that collects video and data information through cameras and sensors, automatically scores and displays it on smart screens, solves the problem of insufficient objectivity and accuracy of manual inspections in the prior art, and achieves more efficient sanitation management.
Patent Information
- Application Number
- CN202411113926.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-08
AI Technical Summary
The existing campus sanitation management methods rely on manual inspections, and insufficient objectivity and accuracy lead to insufficient management.
Video information in public health areas and sensors collect data information in private health areas. Based on these information, they are automatically scored and displayed on the smart screen to realize the automated management of class health scores.
It improves the objectivity and accuracy of health management, saves human resources, reduces manual participation, and directly manages scoring based on objective data.
Smart Images

Figure CN118917740A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of health management, and in particular to a method, device, electronic equipment and storage medium for automatic school health management. Background Art
[0002] At present, in order to cultivate students' labor ability, each class will be assigned a corresponding sanitation area to clean, and the school will organize corresponding inspectors to inspect and score the sanitation conditions of the sanitation areas responsible for each class. This sanitation management method relies on the subjective judgment of inspectors, which is not objective and accurate enough, and reduces the accuracy of school sanitation management. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and storage medium for automatic school hygiene management. By scoring and managing the first hygiene area and the second hygiene area based on the first video information and the data information, that is, directly scoring and managing each class based on objective data, the accuracy of the school's hygiene management can be improved.
[0004] In a first aspect, an embodiment of the present application provides a method for automatic school hygiene management, the method comprising:
[0005] Acquire first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school;
[0006] Acquire data information of a second sanitary area that the first class is responsible for, where the second sanitary area is a private sanitary area of the school, and the data information is collected by the sensor at the preset time;
[0007] determining a first score for the first sanitary area based on the first video information;
[0008] determining a second score for the second sanitary area based on the data information;
[0009] determining a target score for the class based on the first score and the second score;
[0010] The target score of the class is displayed through the school’s smart screen.
[0011] In a second aspect, an embodiment of the present application provides a school health automatic management device, the device comprising: a transceiver unit and a processing unit;
[0012] The transceiver unit is used to obtain first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school;
[0013] The transceiver unit is used to obtain data information of a second sanitary area that the first class is responsible for, the second sanitary area is a private sanitary area of the school, and the data information is collected by the sensor at the preset time;
[0014] The processing unit is configured to determine a first score of the first sanitary area based on the first video information;
[0015] The processing unit is used to determine a second score of the second sanitary area based on the data information;
[0016] The processing unit is configured to determine a target score for the class based on the first score and the second score;
[0017] The transceiver unit is used to display the target score of the class through the school's smart screen.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device executes the method of the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0021] Implementing the embodiments of the present application has the following beneficial effects:
[0022] It can be seen that in the embodiment of the present application, by obtaining the first video information of the first sanitary area that the first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area by the first camera within a preset time period, and the first sanitary area is the public health area of the school; obtaining the data information of the second sanitary area that the first class is responsible for, the second sanitary area is the privacy sanitary area of the school, and the data information is collected by the sensor at a preset time; determining the first score of the first sanitary area based on the first video information; determining the second score of the second sanitary area based on the data information; determining the target score of the class based on the first score and the second score; and displaying the target score of the class through the school's smart screen. By automatically collecting the first video information of the first sanitary area and the data information of the second sanitary area of the first class, the first sanitary area and the second sanitary area are scored based on the first video information and the data information, respectively, so as to obtain the target score of the first class, and display the target score of the first class on the smart screen. No human intervention is required in the entire process of health management of the first class, which can save human resources and improve the objectivity of health management; further, the first health area and the second health area are scored based on the first video information and the data information, that is, each class is scored directly based on objective data, which can improve the accuracy of the school's health management. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A schematic diagram of a school health automatic management system provided in an embodiment of the present application;
[0025] Figure 2 A flow chart of a method for automatic school hygiene management provided in an embodiment of the present application;
[0026] Figure 3 A display schematic diagram of a smart screen provided in an embodiment of the present application;
[0027] Figure 4 A block diagram of the functional units of a school health automatic management device provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] 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 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.
[0030] The terms "first", "second", "third" and "fourth" etc. in the specification, claims and drawings of the present application 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.
[0031] Reference to "embodiments" herein means that a particular feature, result, 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 herein may be combined with other embodiments.
[0032] In order to facilitate understanding of the technical solution of the present application, the relevant technical terms involved in the present application are first explained.
[0033] Smart screen: It is an advanced intelligent hardware device that integrates multiple interactive modes. It combines the latest technologies such as artificial intelligence and the Internet of Things. The function of the smart screen is not limited to providing entertainment content. Its design concept emphasizes becoming a diversified information sharing platform and control management center that can be interconnected with other smart devices. In this application, the smart screen can receive the target score sent by the server and display the target score in the corresponding class score area.
[0034] See also Figure 1 , Figure 1 A schematic diagram of a school health automatic management system provided in an embodiment of the present application. The school health automatic management system includes a first camera 101, a server 102, a sensor 103 and a smart screen 104.
[0035] The first camera 101 captures the first video information of the first sanitary area that the first class is responsible for, wherein the first video information is obtained by capturing the first sanitary area by the first camera within a preset time period, and the first sanitary area is the public sanitary area of the school; the first camera 101 sends the first video information to the server 102; the sensor 103 collects data information of the second sanitary area that the first class is responsible for, and the second sanitary area is the private sanitary area of the school, and the data information is collected by the sensor 103 at a preset time, wherein the sensor 103 may include a gas sensor, a humidity sensor, etc., which are not limited in this application; the sensor 103 sends the data information to the server 102; the server 102 determines the first score of the first sanitary area based on the first video information; the server 102 determines the second score of the second sanitary area based on the data information; the server 102 determines the target score of the class based on the first score and the second score; the server 102 sends the target score to the smart screen 104; the school's smart screen 104 displays the target score of the class.
[0036] It can be seen that in the embodiment of the present application, by obtaining the first video information of the first sanitary area that the first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area by the first camera within a preset time period, and the first sanitary area is the public health area of the school; obtaining the data information of the second sanitary area that the first class is responsible for, the second sanitary area is the privacy sanitary area of the school, and the data information is collected by the sensor at a preset time; determining the first score of the first sanitary area based on the first video information; determining the second score of the second sanitary area based on the data information; determining the target score of the class based on the first score and the second score; and displaying the target score of the class through the school's smart screen. By automatically collecting the first video information of the first sanitary area and the data information of the second sanitary area of the first class, the first sanitary area and the second sanitary area are scored based on the first video information and the data information, respectively, so as to obtain the target score of the first class, and the target score of the first class is displayed on the smart screen. No human intervention is required in the entire process of health management of the first class, which can save human resources and improve the objectivity of health management; further, the first health area and the second health area are scored based on the first video information and the data information, that is, each class is scored directly based on objective data, which can improve the accuracy of the school's health management.
[0037] See also Figure 2 , Figure 2 A flow chart of a school health automatic management method provided in an embodiment of the present application, the method includes but is not limited to steps 201-209:
[0038] 201: The first camera captures the first video information of the first sanitary area that the first class is responsible for.
[0039] It should be noted that the school will assign a first sanitary area and a second sanitary area to each class. This application does not limit the number of first sanitary areas and second sanitary areas. In this application, only one first sanitary area and one second sanitary area are used as an example.
[0040] Optionally, the first camera shoots the first video information of the first sanitary area that the first class is responsible for, and the first video information is obtained by shooting the first sanitary area by the first camera within a preset time period. The starting time of the preset time period can be determined according to the time when the first class finishes cleaning the first sanitary area, and the duration of the preset time period can be determined according to the size of the first sanitary area. The larger the first sanitary area, the longer the corresponding duration. For example, if the school stipulates that the first sanitary area must be cleaned before 8:30 in the morning, and the shooting time of the first sanitary area is 3 minutes, the starting time of the preset time period is 8:30 and the end time is 8:33. Among them, the first sanitary area is the public health area of the school. In this application, the public health area refers to the school's playground, cafeteria, classroom, corridor, etc., which can be directly photographed by the camera without infringing on the privacy of others.
[0041] 202: The first camera sends first video information to the server.
[0042] 203: The sensor collects data information of the second sanitary area that the first class is responsible for.
[0043] It should be noted that the second sanitary area is the school's private sanitary area, and the data information is collected by sensors at preset times. The private sanitary area refers to areas such as the school's toilets that cannot be photographed by cameras. The sensors may include humidity sensors, moisture sensors, and odor sensors.
[0044] 204: The sensor sends data information to the server.
[0045] 205: The server determines a first score of the first sanitary area based on the first video information.
[0046] Determine the first score of the first sanitary area based on the first video information, specifically, divide the first video information into multiple second video information based on multiple preset shooting angles, extract the video frames in each second video information at a preset time interval, and obtain multiple first video frames corresponding to each second video information, wherein the preset shooting angles corresponding to each second video information are different. Further, the first camera can be a rotatable intelligent monitoring camera, and multiple different shooting angles are determined according to the size of the first sanitary area, wherein the shooting angle refers to the angle of the first camera rotating in the horizontal direction, and multiple different shooting angles are determined based on the rotatable angle range of the first camera in the horizontal direction and the size of the first sanitary area. Multiple different shooting angles can be determined according to the mapping relationship between the size of the first sanitary area and the shooting angle. For example, taking the fulcrum of the rotation of the first camera as the origin, horizontal rotation to the right is the positive direction, horizontal rotation to the left is the negative direction, vertical downward rotation is the positive direction, and vertical upward rotation is the negative direction. In the present application, the vertical rotation angle of the first camera remains unchanged and can be 60°. If the number of shooting angles corresponding to the first sanitary area is 3, the multiple preset shooting angles can be: -30°, 0° and 30°. The multiple preset shooting angles refer to the horizontal rotation angles, that is, the first video information is divided into 3 second video information based on the three shooting angles. The example of the above preset time period starting at 8:30 and ending at 8:33 is continued. The duration of each second video information is one minute, and the shooting angles corresponding to the 3 second video information are -30°, 0° and 30° respectively.
[0047] Optionally, in order to avoid the first camera rotating during the shooting process, which may cause the video image clarity to be reduced, the video frames in each second video information are extracted at a preset time interval to obtain multiple first video frames corresponding to each second video information. Based on the multiple first video frames corresponding to each second video information, the first target video frame corresponding to each second video information is determined to obtain multiple first target video frames. Specifically, the human area in the first video frame can be identified based on image recognition. In order to avoid the human blocking the object in the first video frame, the first video frame that does not include the human should be determined as the first target video frame as much as possible. Furthermore, for the multiple first video frames corresponding to the i-th second video information, person regions are identified for the multiple first video frames corresponding to the i-th second video information; if there is at least one second video frame that does not include a person region among the multiple first video frames corresponding to the i-th second video information, any one of the at least one second video frames is used as the first target video frame of the i-th second video information, wherein the i-th second video information is any one of the multiple second video information; if there is no first video frame that does not include a person region among the multiple first video frames corresponding to the i-th second video information, the first video frame with the smallest proportion of person regions among the multiple first video frames corresponding to the i-th second video information is used as the first target video frame of the i-th second video information.
[0048] It can be seen that in the embodiment of the present application, for the multiple first video frames corresponding to the i-th second video information, the multiple first video frames corresponding to the i-th second video information are subjected to character region recognition; if there is at least one second video frame that does not include a character region among the multiple first video frames corresponding to the i-th second video information, any one of the at least one second video frames is used as the first target video frame of the i-th second video information, wherein the i-th second video information is any one of the multiple second video information; if there is no first video frame that does not include a character region among the multiple first video frames corresponding to the i-th second video information, the first video frame with the least proportion of character regions among the multiple first video frames corresponding to the i-th second video information is used as the first target video frame of the i-th second video information. The character region in the first video frame is identified according to image recognition. In order to avoid the occlusion of objects in the first video frame by the character, the first video frame that does not include a character region should be determined as the first target video frame as much as possible. However, if there are human areas in the first video frames corresponding to the second video information, the first video frame in which the human area accounts for the smallest proportion will be used as the first target video frame to minimize the occlusion of objects in the first video frame by the human body, so as to facilitate subsequent image recognition of the first target video frame and improve the accuracy of image recognition, thereby improving the accuracy of the school's health management.
[0049] Based on the first target video frame of the i-th second video information, the first target video frame of each second video information is determined to obtain multiple first target video frames. Specifically, the method for determining the first target video frame of each second video information is similar to the method for determining the first target video frame of the i-th second video information, and the first target video frame of each second video information can be determined based on the method for determining the first target video frame of the i-th second video information to obtain multiple first target video frames.
[0050] Based on multiple first target video frames, the first score is determined. Specifically, the third video information corresponding to the first video information is obtained, wherein the third video information is shot by a second camera installed opposite to the first camera, and at the same time, the target shooting range of the second camera is the same as the target shooting range of the first camera. It should be noted that the first camera and the second camera have the same height, corresponding installation positions, the same vertical rotation angle, the same horizontal rotation angle (the preset shooting angle of the second camera and the preset shooting angle of the first camera), and the same or opposite directions. If the horizontal rotation angle of the first camera is 0, the preset shooting angle of the second camera is consistent with the direction of the first camera. If the horizontal rotation angle of the first camera is not 0, the preset shooting angle of the second camera is opposite to the direction of the first camera, that is, if the first camera is rotated 30 degrees to the right horizontally, the second camera is rotated 30 degrees to the left horizontally, so as to ensure that the target shooting ranges of the first camera and the second camera are the same. In order to prevent the first camera from having a blind spot in the picture shot and affecting the score of the first target video frame, multiple second target video frames corresponding to the moment of each first target video frame are obtained in the third video information, that is, the second target video frame corresponding to the first target video frame at the same time in the third video information is obtained. For the jth moment corresponding to the i-th first target video frame, the i-th second target video frame corresponding to the j-th moment in the third video information is obtained. The target shooting ranges of the first camera and the second camera at the j-th moment are consistent, but since there may be objects blocking the target shooting range, the objects actually captured by the first camera and the second camera at the j-th moment are inconsistent. Therefore, the first camera and the second camera are set to shoot at the same time, and the pictures captured by the first camera and the second camera can complement each other's pictures blocked by objects, thereby preventing the occurrence of blind spots and affecting the score of the first target video frame. At the j-th moment, the preset shooting angle of the first camera is 30 degrees to the left, and the preset shooting angle of the second camera is 30 degrees to the right. At the j-th moment, the i-th first target video frame and the i-th second target video frame are obtained respectively. Based on the method for obtaining the i-th second target video frame, the second target video frame corresponding to the moment of each first target video frame can be obtained in the second video information.
[0051] It can be seen that in the embodiment of the present application, the third video information corresponding to the first video information is obtained, wherein the second video information is shot by the second camera installed directly opposite to the first camera; the second target video frame corresponding to the moment of each first target video frame is obtained in the third video information; for the i-th second target video frame corresponding to the moment of the i-th first target video frame in the i-th first target video frame and the second target video frame, wherein the i-th first target video frame is the first target video frame corresponding to the i-th second video information; based on the i-th first target video frame and the i-th second target video frame, the third score of the i-th second video information is determined; based on the third score of the i-th second video information, the third score of each second video information is determined; based on the third score of each second video information, the first score is determined. When determining the third score of the i-th second video information, it is determined in combination with the i-th first target video frame and the i-th second target video frame, which can reduce the incomplete health recognition caused by the blind spot of the first camera, improve the accuracy of the first score, and thus improve the accuracy of campus health management.
[0052] For the i-th first target video frame and the i-th second target video frame corresponding to the moment of the i-th first target video frame among the multiple second target video frames, wherein the i-th first target video frame is the first target video frame corresponding to the i-th second video information; based on the i-th first target video frame and the i-th second target video frame, determine the third score of the i-th second video information. Specifically, obtain the type of place corresponding to the first sanitary area, wherein the type of place refers to the type of place in the school, such as a classroom, a cafeteria, a playground, a basketball court, a football field, etc. Perform image recognition on the i-th first target video frame to determine the names of all objects in the i-th first target video frame. The names of all objects in the i-th first target video frame can be identified based on the image recognition technology of artificial intelligence. For example, if the type of place in the first sanitary area is a playground, according to the image recognition technology, it is identified that there is a football field, a basket of footballs, a flag-raising platform, 5 mineral water bottles and 3 plastic bags in the i-th first target video frame. Further, the relevance between the name of each object and the type of place is determined, and the names of the objects whose relevance is less than the first threshold among the names of all objects are taken as target names. The method for calculating the relevance between the name of each object and the type of place in the present application can be to vectorize the name and the type of place of each object, and calculate the relevance between the name of each object and the type of place. Vectorization is to convert symbolic information in the form of natural language into digital information in the form of vectors, and unstructured text can be expressed in a computer-recognizable vector form, thereby converting the processing of text into vector-to-vector operations. Determine the number of target names and the number of objects corresponding to the target names. Continuing with the above example, the relevance between a football field, a basket of footballs, and a flag-raising platform and a playground is greater than the first threshold, and the relevance between 5 mineral water bottles and 3 plastic bags and the playground is less than the first threshold. Therefore, mineral water bottles and plastic bags are taken as target names, and the number of target names is 2, and the number of objects corresponding to the target names is 8.
[0053] Further, based on the number of target names and the number of objects corresponding to the target names, a fourth score corresponding to the i-th first target video frame is determined. Specifically, based on the mapping relationship between the number of names, the number of objects, and the scores, a fourth score corresponding to the number of target names and the number of objects corresponding to the target names is determined.
[0054] A fifth score corresponding to the i-th second target video frame is determined based on the fourth score, wherein the method for determining the fifth score is similar to the method for determining the fourth score, and the present application will not repeat it here. A third score for the i-th second video information is determined based on the fourth score and the fifth score, and specifically, the average score of the fourth score and the fifth score can be used as the third score.
[0055] It can be seen that in the embodiment of the present application, the place type corresponding to the first sanitary area is obtained; image recognition is performed on the i-th first target video frame to determine the names of all objects in the i-th first target video frame; the correlation between the name of each object and the place type is determined, and the names of the objects whose correlation is less than the first threshold among the names of all objects are taken as target names; the number of target names and the number of objects corresponding to the target names are determined; based on the number of target names and the number of objects corresponding to the target names, the fourth score corresponding to the i-th first target video frame is determined; based on the fourth score, the fifth score corresponding to the i-th second target video frame is determined; and the third score of the i-th second video information is determined based on the fourth score and the fifth score. Through artificial intelligence image recognition technology, the i-th first target video frame is image recognized to obtain the name of the object, and by determining the correlation between the object name and the venue type, it is judged whether the object is garbage or debris. For example, the venue type is a playground, and the object names include football, flag-raising platform, mineral water bottle and plastic bag. Through correlation calculation, it can be determined that the correlation between football, flag-raising platform and playground is greater than the first threshold. Therefore, football and flag-raising platform are not debris or garbage. This recognition method can avoid misidentifying objects that can reasonably exist in the first sanitary area as garbage, thereby improving the accuracy of recognition.
[0056] Based on the third score of the i-th second video information, determine the third score of each second video information; wherein the third score of each second video information is similar to the method for determining the third score of the i-th second video information, and this application will not repeat it here. Based on the third score of each second video information, determine the first score. Specifically, the average score of the third score of each second video information is used as the first score.
[0057] 206: The server determines a second score for the second sanitary area based on the data information.
[0058] It should be noted that the second sanitary area is a private sanitary area, and the sanitary conditions of the second sanitary area cannot be identified by cameras or other video equipment. Therefore, the sanitary conditions of the second sanitary area can only be judged by sensors or other collection methods that do not involve privacy. The sensor may include a humidity sensor, which can measure the first humidity data of the second sanitary area. The humidity sensor can be placed in an area close to the ground. The first humidity data can represent whether the ground of the first sanitary area is wet and slippery, whether it needs to be cleaned, and the sanitary conditions. In addition, the sensor may also include a gas sensor, which can detect the gas content in the second sanitary area, and is used to measure the degree of irritation of the odor in the second sanitary area to people, so as to further determine the sanitary conditions of the second sanitary area.
[0059] The second score of the second sanitary area is determined based on the data information. The second score corresponding to the data information may be determined directly according to a mapping relationship between the data information and the score.
[0060] Optionally, the sensor includes a humidity sensor and a gas sensor, and the data information includes first humidity data and the concentration of multiple preset gases. Determining the second score of the second sanitary area based on the data information also includes: obtaining second humidity data corresponding to a preset time period, wherein the second humidity data refers to the humidity data of the outdoor area; if the second humidity data is greater than a third threshold, determining the humidity difference between the second sanitary area and the outdoor area based on the second humidity data and the first humidity data; and determining a sixth score based on the humidity difference. Determine the seventh score of the second sanitary area based on the concentration of each preset gas and the weight corresponding to the preset gas; determine the second score based on the sixth score and the seventh score. The sixth score and the seventh score are scores of the second sanitary area under the humidity dimension and the odor dimension, respectively.
[0061] Specifically, the second humidity data refers to the outdoor ambient humidity data. If the second humidity data is greater than the third threshold, it means that the weather corresponding to the preset time period is rainy. At this time, the ambient humidity is relatively high. The outdoor ambient humidity will affect the humidity of the second sanitary area. Therefore, the sixth score cannot be determined directly based on the first humidity data. Instead, the sixth score corresponding to the humidity difference between the second sanitary area and the outdoor area is determined based on the second humidity data and the humidity difference between the second sanitary area and the outdoor area determined by the first humidity data, and based on the mapping relationship between the temperature difference and the score.
[0062] Furthermore, if the humidity difference is greater than the second threshold, a prompt message is sent to the administrator, and the prompt message is used to remind the administrator to check the second sanitary area. If the humidity difference is greater than the second threshold, it indicates that there may be a water leak in the second sanitary area. Therefore, a prompt message is sent to remind the data administrator to check the second sanitary area of the data.
[0063] Furthermore, the concentration of multiple preset gases in the second sanitary area is collected by a gas sensor, wherein the multiple preset gases may include ammonia, hydrogen sulfide, and skatole, etc., which are not limited in this application; based on the concentration of each preset gas and the weight corresponding to the preset gas, the seventh score of the second sanitary area is determined. Wherein, a weight can be set for each preset gas based on medical research and experimental data, and the weight of the preset gas reflects the degree of stimulation of the preset gas to the human sense of smell. Based on the concentration of each preset gas and the weight corresponding to the preset gas, the odor index of the second sanitary area under the odor dimension can be obtained. The higher the odor index, the higher the degree of stimulation of the air in the second sanitary area to the human sense of smell, indicating that the score of the second sanitary area under the odor dimension is lower. Based on the mapping relationship between the odor index and the score, the seventh score corresponding to the odor index of the second sanitary area is determined. The second score is determined based on the sixth score and the seventh score, and the sum of the sixth score and the seventh score can be used as the second score.
[0064] It can be seen that in the embodiment of the present application, by determining the different scores of the second sanitary area in the humidity dimension and the odor dimension, and jointly determining the second score of the second sanitary area, the second score of the second sanitary area can be made more accurate. And when determining the sixth score, the weather conditions in the preset time period are determined by obtaining the environmental humidity. If the second humidity data is greater than the third threshold, it means that the weather corresponding to the preset time period is rainy. The humidity difference between the second sanitary area and the outdoor area is obtained, and the sixth score is determined based on the humidity difference, so as to avoid the influence of the humidity change on the humidity of the second sanitary area on rainy days, which causes the first humidity data to become higher, thereby affecting the second score, and improving the accuracy of determining the second score.
[0065] Furthermore, if the humidity difference is greater than the second threshold, a prompt message is sent to the administrator, and the prompt message is used to remind the administrator to check the second sanitary area. If the humidity difference is greater than the second threshold, it indicates that there may be a water leak in the second sanitary area. Therefore, a prompt message is sent to remind the data administrator to check the second sanitary area of the data, thereby improving the timeliness and safety of campus health management.
[0066] 207: The server determines a target score for the class based on the first score and the second score.
[0067] Specifically, the average score of the first score and the second score may be used as the target score.
[0068] 208: The server sends the target score to the smart screen.
[0069] 209: The smart screen displays the class’s target score.
[0070] The smart screen displays the target score of the class, specifically, Figure 3 As shown, the target score of each class in the school will be displayed on the smart screen, such as the "XX school class hygiene score announcement" on the smart screen, where the class and the corresponding score are announced. For example, the score of the first class is 90, and the score of the nth class is 75. The smart screen can also display the classes in order according to the score ranking of each class, where the announced score refers to the target score.
[0071] It can be seen that in the embodiment of the present application, by obtaining the first video information of the first sanitary area that the first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area by the first camera within a preset time period, and the first sanitary area is the public health area of the school; obtaining the data information of the second sanitary area that the first class is responsible for, the second sanitary area is the privacy sanitary area of the school, and the data information is collected by the sensor at a preset time; determining the first score of the first sanitary area based on the first video information; determining the second score of the second sanitary area based on the data information; determining the target score of the class based on the first score and the second score; and displaying the target score of the class through the school's smart screen. By automatically collecting the first video information of the first sanitary area and the data information of the second sanitary area of the first class, the first sanitary area and the second sanitary area are scored based on the first video information and the data information, respectively, so as to obtain the target score of the first class, and the target score of the first class is displayed on the smart screen. No human intervention is required in the entire process of health management of the first class, which can save human resources and improve the objectivity of health management; further, the first health area and the second health area are scored based on the first video information and the data information, that is, each class is scored directly based on objective data, which can improve the accuracy of the school's health management.
[0072] See also Figure 4 , Figure 4 This is a functional unit block diagram of a school health automatic management device provided in an embodiment of the present application. The school health automatic management device 400 includes: a transceiver unit 401 and a processing unit 402;
[0073] The transceiver unit 401 is used to obtain first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school;
[0074] The transceiver unit 401 is used to obtain data information of a second sanitary area that the first class is responsible for, the second sanitary area is a private sanitary area of the school, and the data information is collected by the sensor at the preset time;
[0075] The processing unit 402 is configured to determine a first score of the first sanitary area based on the first video information;
[0076] The processing unit 402 is configured to determine a second score of the second sanitary area based on the data information;
[0077] The processing unit 402 is configured to determine a target score for the class based on the first score and the second score;
[0078] The transceiver unit 401 is used to display the target score of the class through the school's smart screen.
[0079] In one embodiment of the present application, in determining a first score of the first sanitary area based on the first video information, the processing unit 402 is specifically configured to:
[0080] Dividing the first video information into a plurality of second video information based on a plurality of preset shooting angles, extracting a video frame in each second video information at a preset time interval to obtain a plurality of first video frames corresponding to each second video information, wherein the preset shooting angle corresponding to each second video information is different;
[0081] Based on the multiple first video frames corresponding to each second video information, determine the first target video frame corresponding to each second video information to obtain the multiple first target video frames;
[0082] The first score is determined based on the plurality of first target video frames.
[0083] In one embodiment of the present application, in terms of determining the first target video frame corresponding to each second video information based on the multiple first video frames corresponding to each second video information, and obtaining the multiple first target video frames, the processing unit 402 is specifically configured to:
[0084] For a plurality of first video frames corresponding to the i-th second video information, performing person region recognition on the plurality of first video frames corresponding to the i-th second video information;
[0085] If there is at least one second video frame that does not include a person area among the multiple first video frames corresponding to the i-th second video information, any one of the at least one second video frame is used as the first target video frame of the i-th second video information, wherein the i-th second video information is any one of the multiple second video information;
[0086] If there is no first video frame that does not include a human area among the multiple first video frames corresponding to the i-th second video information, taking the first video frame with the smallest proportion of human areas among the multiple first video frames corresponding to the i-th second video information as the first target video frame of the i-th second video information;
[0087] Based on the first target video frame of the i-th second video information, the first target video frame of each second video information is determined to obtain a plurality of first target video frames.
[0088] In one embodiment of the present application, in determining the first score based on the multiple first target video frames, the processing unit 402 is specifically configured to:
[0089] Acquire second video information corresponding to the first video information, wherein the second video information is shot by a second camera installed opposite to the first camera;
[0090] Acquire a second target video frame corresponding to a moment of each first target video frame in the second video information;
[0091] For the i-th second target video frame corresponding to the moment of the i-th first target video frame among the i-th first target video frame and the second target video frame, wherein the i-th first target video frame is the first target video frame corresponding to the i-th second video information;
[0092] Determining a third score of the i-th second video information based on the i-th first target video frame and the i-th second target video frame;
[0093] Determine a third score for each piece of second video information based on the third score of the i-th piece of second video information;
[0094] The first score is determined based on the third score of each second video information.
[0095] In one embodiment of the present application, in determining a third score of the i-th second video information based on the i-th first target video frame and the i-th second target video frame, the processing unit 402 is specifically configured to:
[0096] Obtaining the place type corresponding to the first sanitary area;
[0097] Performing image recognition on the i-th first target video frame to determine the names of all objects in the i-th first target video frame;
[0098] Determine the relevance between the name of each object and the place type, and use the names of the objects whose relevance is less than a first threshold among the names of all the objects as target names;
[0099] Determine the number of target names and the number of objects corresponding to the target names;
[0100] Determining a fourth score corresponding to the i-th first target video frame based on the number of the target names and the number of objects corresponding to the target names;
[0101] Determine a fifth score corresponding to the i-th second target video frame based on the fourth score;
[0102] A third score for the ith second video information is determined based on the fourth score and the fifth score.
[0103] In one embodiment of the present application, the sensor includes a humidity sensor, the data information includes first humidity data, and in determining the second score of the second sanitary area based on the data information, the processing unit 402 is specifically configured to:
[0104] Acquire second humidity data corresponding to the preset time period, wherein the second humidity data refers to humidity data of an outdoor area;
[0105] If the second humidity data is greater than a second threshold, obtaining first preset humidity data corresponding to the second sanitary area;
[0106] a humidity difference between the second sanitary area and the outdoor area determined based on the second humidity data and the first humidity data;
[0107] The second score is determined based on the humidity difference.
[0108] In one embodiment of the present application, after determining the humidity difference between the second sanitary area and the outdoor area based on the second humidity data and the first humidity data, the processing unit 402 is specifically configured to:
[0109] If the humidity difference is greater than a third threshold, a prompt message is sent to the manager, where the prompt message is used to prompt the manager to check the second sanitary area.
[0110] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 500 includes a transceiver 501, a processor 502 and a memory 503. They are connected via a bus 504. The memory 503 is used to store computer programs and data, and can transmit the data stored in the memory 503 to the processor 502.
[0111] The processor 502 is used to read the computer program in the memory 503 and perform the following operations:
[0112] The transceiver 501 obtains first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school;
[0113] The transceiver 501 obtains data information of a second sanitary area that the first class is responsible for, the second sanitary area is a private sanitary area of the school, and the data information is collected by the sensor at the preset time;
[0114] determining a first score for the first sanitary area based on the first video information;
[0115] determining a second score for the second sanitary area based on the data information;
[0116] determining a target score for the class based on the first score and the second score;
[0117] The transceiver 501 displays the target score of the class through the school's smart screen.
[0118] Specifically, the transceiver 501 may be Figure 4 The transceiver unit 401 of the school health automatic management device 400 of the embodiment, the processor 502 can be Figure 4 The processing unit 402 of the school health automatic management device 400 of the embodiment.
[0119] Specifically, the transceiver 501 may be Figure 4 The transceiver unit 401 of the school health automatic management device 400 of the embodiment, the processor 502 can be Figure 4 Therefore, the specific functions of the processor 502 can refer to the specific functions of the processing unit 402, and the specific functions of the transceiver 501 can refer to the specific functions of the transceiver unit 401.
[0120] It should be understood that the electronic devices in this application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, mobile Internet devices MID (Mobile Internet Devices, referred to as: MID) or wearable devices, etc. The above electronic devices are only examples, not exhaustive, and include but are not limited to the above electronic devices. In practical applications, the above electronic devices may also include: smart vehicle terminals, computer equipment, etc.
[0121] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any school health automatic management method recorded in the above method embodiments.
[0122] 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 is operable to cause a computer to execute part or all of the steps of any one of the automatic school health management methods recorded in the above method embodiments.
[0123] 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 optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0124] 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.
[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of 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 devices or units can be electrical or other forms.
[0126] 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.
[0127] In addition, each functional unit in each embodiment of the present 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 integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0128] 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, 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, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0129] A person skilled 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, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0130] 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 of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for automatic management of school hygiene, It is characterized in that The method is applied to a server, and the method comprises: Acquire first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school; Acquire data information of a second sanitary area that the first class is responsible for, where the second sanitary area is a private sanitary area of the school, and the data information is collected by a sensor at a preset time; determining a first score for the first sanitary area based on the first video information; determining a second score for the second sanitary area based on the data information; determining a target score for the class based on the first score and the second score; The target score of the class is displayed through the school’s smart screen.
2. The method according to claim 1, It is characterized in that The determining a first score of the first sanitary area based on the first video information comprises: Dividing the first video information into a plurality of second video information based on a plurality of preset shooting angles, extracting a video frame in each second video information at a preset time interval to obtain a plurality of first video frames corresponding to each second video information, wherein the preset shooting angle corresponding to each second video information is different; Based on the multiple first video frames corresponding to each second video information, determine the first target video frame corresponding to each second video information to obtain the multiple first target video frames; The first score is determined based on the plurality of first target video frames.
3. The method according to claim 2, It is characterized in that The method of determining the first target video frame corresponding to each second video information based on the multiple first video frames corresponding to each second video information to obtain the multiple first target video frames includes: For a plurality of first video frames corresponding to an i-th second video information, performing person region recognition on the plurality of first video frames corresponding to the i-th second video information, wherein the i-th second video information is any one of the plurality of second video information; If there is at least one second video frame that does not include a person area among the multiple first video frames corresponding to the i-th second video information, taking any one of the at least one second video frame as a first target video frame of the i-th second video information; If there is no first video frame that does not include a human area among the multiple first video frames corresponding to the i-th second video information, taking the first video frame with the smallest proportion of human areas among the multiple first video frames corresponding to the i-th second video information as the first target video frame of the i-th second video information; Based on the first target video frame of the i-th second video information, the first target video frame of each second video information is determined to obtain a plurality of first target video frames.
4. The method according to claim 3, It is characterized in that The determining the first score based on the plurality of first target video frames comprises: Acquire third video information corresponding to the first video information, wherein the third video information is shot by a second camera installed opposite to the first camera; Acquire a second target video frame corresponding to a moment of each first target video frame in the third video information; For the i-th second target video frame corresponding to the moment of the i-th first target video frame among the i-th first target video frame and the second target video frame, wherein the i-th first target video frame is the first target video frame corresponding to the i-th second video information; Determining a third score of the i-th second video information based on the i-th first target video frame and the i-th second target video frame; Determine a third score for each piece of second video information based on the third score of the i-th piece of second video information; The first score is determined based on the third score of each second video information.
5. The method according to claim 4, It is characterized in that The determining, based on the i-th first target video frame and the i-th second target video frame, a third score of the i-th second video information comprises: Obtaining the place type corresponding to the first sanitary area; Performing image recognition on the i-th first target video frame to determine the names of all objects in the i-th first target video frame; Determine the relevance between the name of each object and the place type, and use the names of the objects whose relevance is less than a first threshold among the names of all the objects as target names; Determine the number of target names and the number of objects corresponding to the target names; Determining a fourth score corresponding to the i-th first target video frame based on the number of the target names and the number of objects corresponding to the target names; Determine a fifth score corresponding to the i-th second target video frame based on the fourth score; A third score for the ith second video information is determined based on the fourth score and the fifth score.
6. The method according to claim 5, It is characterized in that The sensor includes a humidity sensor and a gas sensor, the data information includes first humidity data and concentrations of a plurality of preset gases, and determining a second score of the second sanitary area based on the data information includes: Acquire second humidity data corresponding to the preset time period, wherein the second humidity data refers to humidity data of an outdoor area; determining a humidity difference between the second sanitary area and the outdoor area based on the second humidity data and the first humidity data; determining a sixth score based on the humidity difference; Determining a seventh score of the second sanitary area based on the concentration of each preset gas and the weight corresponding to the preset gas; The second score is determined based on the sixth score and the seventh score.
7. The method according to claim 6, It is characterized in that After determining the humidity difference between the second sanitary area and the outdoor area based on the second humidity data and the first humidity data, the method further includes: If the humidity difference is greater than a second threshold, a prompt message is sent to the manager, where the prompt message is used to prompt the manager to check the second sanitary area.
8. An automatic school hygiene management device, It is characterized in that The device comprises: a transceiver unit and a processing unit; The transceiver unit is used to obtain first video information of a first sanitary area that a first class is responsible for, wherein the first video information is obtained by shooting the first sanitary area with a first camera within a preset time period, and the first sanitary area is a public health area of the school; The transceiver unit is used to obtain data information of a second sanitary area that the first class is responsible for, the second sanitary area is a private sanitary area of the school, and the data information is collected by the sensor at the preset time; The processing unit is configured to determine a first score of the first sanitary area based on the first video information; The processing unit is used to determine a second score of the second sanitary area based on the data information; The processing unit is configured to determine a target score for the class based on the first score and the second score; The transceiver unit is used to display the target score of the class through the school's smart screen.
9. An electronic device, It is characterized in that include: A processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.
