Disclosure of Invention
The application provides a field monitoring method for ice and snow sports, which comprises the following steps:
the method comprises the steps that a field monitoring device collects a depth video of an ice and snow sports field, determines a target person with potential safety hazards from the depth video, and sends a safety instruction to a management server;
after receiving the safety instruction, the management server takes the current depth camera for acquiring the target character as a central point, acquires all site monitoring equipment within a preset radius, and sends a target character query instruction to all site monitoring equipment within the radius area;
each site monitoring device receiving the command of inquiring the target person inquires a video before the potential safety hazard occurs, determines a previous site monitoring device for shooting the previous motion track of the target person from the video, and sends the video to the management server;
the management server determines the motion state of a target character when the potential safety hazard occurs according to the videos shot by the last site monitoring device and the current site monitoring device, inputs the motion state of the target character and the physical quality of the target character into a pre-created model, determines the severity of the potential safety hazard of the target character, and selectively sends an alarm instruction to the terminal device of a manager according to the severity of the potential safety hazard of the target character.
The field monitoring method for the ice and snow sports as described above, wherein the target person with the potential safety hazard is determined from the depth video, specifically includes the following sub-steps:
the site monitoring equipment extracts a target person depth image from the depth video and extracts a target person skeleton coordinate from an image frame;
the site monitoring equipment preliminarily identifies the initial potential safety hazard degree of the target person according to the target human body proportion and the target person skeleton coordinate in the human body depth image, and sends the human body depth image and the shooting time to the management server;
the management server takes the depth camera for acquiring the falling target as a central point, acquires images of all depth cameras within a preset radius before an accident occurs, and sends instructions to all the depth cameras;
each depth camera extracts an image frame with a target person from a video shot by the depth camera, the depth camera extracted with the target person is used as a previous depth camera, and the accurate potential safety hazard degree of the target person is identified based on the motion trend of the target person in the image frames of the current depth camera and the previous depth camera.
The above field monitoring method for the ice and snow sports, wherein the extracting of the depth image of the target person from the depth video specifically includes the following substeps:
graying the human body depth image to obtain a relatively soft gray image;
carrying out difference processing on the current gray level image and a preset background image and carrying out mathematical morphology processing to obtain a motion framework of the moving target:
the method comprises the steps of storing an original image of an unmanned object in an ice and snow field in a depth camera, using the original image as a preset background image, carrying out filtering pretreatment on a gray image, carrying out background difference treatment on the gray image and the preset background image to extract a target area, and increasing the contrast of the target area.
The method for monitoring the field for the ice and snow sports comprises the steps of defining all possible gesture sets in advance according to the height-width ratio of a rectangular frame where the position of a human body is located, determining the area combination according to each gesture, marking the rectangular frame where the human body is located from a human body depth image, extracting the height and width of a target human body from the rectangular frame, and preliminarily identifying the initial potential safety hazard degree of the target person according to the height-width ratio.
According to the field monitoring method for the ice and snow sports, the skeleton coordinates of the target person and the height and width of the rectangular frame of the human body are obtained from the depth video shot by the last depth camera, the human body pose is determined, the pose change of the target person in a short time is determined according to the comparison between the human body pose of the camera and the human body pose shot during falling, and the accurate potential safety hazard degree of the target person is determined.
The field monitoring method for the ice and snow sports is characterized in that the model is obtained by training a human body motion state, a human body quality and an impact force which can be born by the human body in a large quantity.
The method for monitoring the field for the ice and snow sports comprises the steps of obtaining images of all cameras within a preset radius before an accident occurs by taking the above one-depth camera as a central point after obtaining the last motion track of a target person, determining another last motion track of the target person shot from the images, and repeatedly searching the track.
The application also provides a site monitoring system for the ice and snow sports, which is characterized by comprising site monitoring equipment, a management server and manager terminal equipment, wherein the system executes any one of the site monitoring methods for the ice and snow sports.
The field monitoring system for the ice and snow sports as described above, wherein the field monitoring device includes a plurality of side-by-side monitoring piles symmetrically installed at both ends of the field, a cableway is installed between each opposing set of monitoring piles, a monitoring cable car is slidably connected on the cableway, the monitoring cable car slides between the set of monitoring piles at a preset speed, and a depth camera is installed at the bottom of the monitoring cable car.
As above, the site monitoring system for the ice and snow sports, wherein the depth camera arranged at the bottom of the monitoring cable car is used for shooting the video of the ice and snow sports site, the optical cables for data are connected between all monitoring piles and on the cableway, the depth camera is used for preliminarily identifying the shot site video, then the video of the ice and snow sports site shot by the depth camera is transmitted to the management server through the optical cables for analyzing and monitoring the ice and snow sports site, and whether an alarm instruction is sent to the terminal equipment of a manager or not is determined according to the monitoring result.
The beneficial effect that this application realized is as follows: by adopting the technical scheme, the site monitoring equipment is used for preliminarily checking the potential safety hazard, and the management server is used for further confirming the potential safety hazard, so that the image data can be distributed in different equipment for processing, the data processing speed is increased, and the monitoring safety of the ice and snow site is improved.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the application provides a site monitoring method for ice and snow sports, which is applied to a site monitoring system, wherein the site monitoring system comprises site monitoring equipment, a management server and manager terminal equipment; the field monitoring equipment comprises a plurality of side-by-side monitoring piles symmetrically installed at two ends of a field, a cableway is installed between every two opposite groups of monitoring piles, a monitoring cable car is connected on the cableway in a sliding mode and slides between the groups of monitoring piles at a preset speed, a depth camera arranged at the bottom of the monitoring cable car is used for shooting a video of the ice and snow sports field, optical cables of data are connected between all the monitoring piles and the cableway, and the video of the ice and snow sports field shot by the depth camera is transmitted to a server through the optical cables to analyze and monitor the ice and snow sports field; and determining whether to send an alarm instruction to the manager terminal equipment or not according to the monitoring result.
Specifically, a depth camera acquires a first depth video, performs preliminary analysis on the first depth video, and sends a safety instruction to a management server if a potential safety hazard target is determined to exist; the management server takes the depth camera as a central point, acquires all depth cameras within a preset radius, and sends query instructions to all depth cameras within the radius area; each depth camera receiving the query instruction searches a motion track of the potential safety hazard target from the depth video shot by the depth camera, and sends a second depth video shot by the depth camera which finds the potential safety hazard target to the management server; and the management server determines the severity of the target potential safety hazard according to the first depth video and the second depth video, and selectively sends an alarm instruction to the terminal equipment of the manager according to the severity of the potential safety hazard of the target person.
As shown in fig. 1, the method for monitoring a field for ice and snow sports specifically includes the following steps:
step 110, collecting a depth video of an ice and snow sports field by field monitoring equipment, determining a target person with potential safety hazards from the depth video, and sending a safety instruction to a management server;
specifically, in the field monitoring system, a depth video in a field is shot in real time by a depth camera installed at the bottom of a monitoring cable car on a cableway, and the video shot in a preset time length and shooting time are recorded for searching a target person from the shot video subsequently and determining the state of the target person before an accident occurs;
the method for determining the target person with the potential safety hazard from the depth video specifically comprises the following substeps:
111, extracting a target person depth image from the depth video and extracting a target person skeleton coordinate from an image frame by using site monitoring equipment;
creating a skeleton event in a depth camera, opening a skeleton tracking function, and acquiring a human body depth image and an RGB (red, green and blue) image containing skeleton data; specifically, the human body depth image is grayed firstly: in the color model RGB, when R ═ G ═ B, then the color (R, G, B) is represented as a black and white color; the process of making the R, G, B component values of the color equal is graying; because the value ranges of R, G and B are 0-255, the gray level is only 256 levels, and the gray image is calculated by adopting the following formula: r ═ G ═ B ═ R + G + B)/3, and a relatively soft grayscale image was obtained. Then, carrying out difference processing on the current gray level image and a preset background image, and carrying out mathematical morphology processing to obtain a motion framework of the moving target: the method comprises the steps of storing an original image of an unmanned object in an ice and snow field in a depth camera, using the original image as a preset background image, carrying out filtering pretreatment on a gray image, carrying out background difference treatment on the gray image and the preset background image to extract a target area, and increasing the contrast of the target area.
Step 112, the site monitoring equipment preliminarily identifies the initial potential safety hazard degree of the target person according to the target human body proportion and the target person skeleton coordinate in the human body depth image, and sends the human body depth image and the shooting time to a management server;
in the embodiment of the application, all possible gesture sets are defined in advance according to the height-width ratio of a rectangular frame where a human body is located, a regional combination of the gesture sets is determined according to each gesture, the rectangular frame where the human body is located is marked out of a human body depth image, then the height and width of a target human body are extracted from the rectangular frame, the normal ratio of the height to the width of the normal human body is 3-5 when the normal human body stands, and if the height-width ratio of the target human body of the current human body depth image is calculated to be 0.2-1, the possibility that the target person falls down is preliminarily identified; and the possibility of falling of the target person can be preliminarily identified by comparing the bone coordinates of the target person with the bone coordinates of the standard human body.
Step 113, the management server takes the depth camera for obtaining the falling target as a central point, obtains images of all depth cameras within a preset radius before an accident occurs, and sends instructions to all depth cameras;
the method comprises the steps that positions of all depth cameras are stored in a management server, unique identification is marked for each depth camera, when the depth cameras within a preset radius need to be determined, an instruction is sent to the corresponding depth cameras, and the instruction comprises the unique identification of the depth cameras, the shooting time of the current depth cameras and a target person image frame.
Step 114, each depth camera extracts an image frame with a target person from a video shot by the depth camera, the depth camera extracted with the target person is used as a previous depth camera, and the accurate potential safety hazard degree of the target person is identified based on the motion trend of the target person in the image frames of the current depth camera and the previous depth camera;
after receiving the instruction of the management server, each depth camera searches for a video (generally within 10 s) shot by itself before the shooting time of the current depth camera, and searches whether a target person exists in the video, wherein the depth camera with the target person is a motion state shot at the last moment of the target person.
Because the depth camera preliminarily judges whether the human body falls down or not, the possibility that the target person independently squats down may exist, and whether the target person falls down or not needs to be further accurately identified according to the pose change of the target human body within a certain short time period (for example, if the first 3s shooting is a standing pose, and if the current shooting is a falling pose, the target person is determined to fall down), a depth video before an accident is taken by all cameras within a circle is taken as a central point, the cameras shooting the target person are found out from the depth video shot by the cameras, the bone coordinates of the target person and the height and width of a rectangular frame of the human body are obtained, the pose of the human body is determined, and the pose change of the target person within a short time period is determined according to the comparison between the pose of the cameras and the pose of the human body shot during the falling down, and determining that the target person has a falling event.
Step 120, after receiving the safety instruction, the management server takes the current depth camera for acquiring the target person as a central point, acquires all site monitoring devices within a preset radius, and sends a target person query instruction to all site monitoring devices within the radius area;
step 130, inquiring videos before potential safety hazards occur by each site monitoring device receiving the command of inquiring the target person, determining a last site monitoring device for shooting a last motion track of the target person, and sending the videos to a management server;
step 140, the management server determines the motion state of the target person when the potential safety hazard occurs according to the videos shot by the previous site monitoring device and the current site monitoring device, inputs the motion state of the target person and the physical quality of the target person into a pre-created model, determines the severity of the potential safety hazard of the target person, and selectively sends an alarm instruction to the terminal device of the manager according to the severity of the potential safety hazard of the target person;
in the embodiment of the application, determining the severity of the potential safety hazard of the target person specifically comprises the following substeps:
141, acquiring different motion conditions of different body qualities and bearable impact force to obtain feature vectors, inputting the feature vectors into a classification model, training the classification model to obtain different sub-classification models, classifying a feature vector set by using each sub-classification model respectively, and estimating a set of weights of each sub-classification model according to a classification result;
specifically, a large amount of data of different physical qualities such as different sexes, heights and widths in historical falling events are collected, the movement conditions of the people with different physical qualities during falling, such as the speed and the acceleration during falling, and the impact force born by the people, namely the force rangeWhen the parameters are different, the data are combined into a feature vector set A { (x)1,y1,z1,t1),(x2,y2,z2,t2),(x3,y3,z3,t3)…(xn,yn,zn,t4) In which x1,x2…xnFor sex characteristics (1 and 2 only, 1 for male and 2 for female), y1,y2…ynTo correspond to aspect ratio features, z1,z2…znCorresponding to the speed characteristic when the person falls down, t is the impact force which can be born correspondingly, and n is the number of collected samples; inputting the feature vector set into the classification model, and training a sub-classification model f by using the feature vector sett(t); reuse sub-classification model ft(t) classifying the feature vector set to obtain a classification result, and adopting a formula according to the classification result
Estimating a set of weights for a sub-classification model { μ }
1,μ
2,μ
3......μ
T}; wherein argmin is
The set of μ with the minimum value.
Step 142, searching an optimal value corresponding to each weight in the weight set, and determining the severity of the potential safety hazard through the combination of each sub-classification model and the optimal value of the weight corresponding to the sub-classification model to obtain a potential safety hazard identification model;
calculating each sub-classification model f by particle swarm optimization algorithmtSet of weights of (t) { μ }1,μ2,μ3......μTIn the method, each weight corresponds to an optimal value; by each sub-classification model { f1(t)、f2(t)、f3(t)......fT(t) } and its corresponding optimal value of weight [ mu ]1,μ2,μ3......μTGroup (u) }And (4) determining the severity of the potential safety hazard to obtain a potential safety hazard identification model.
Step 243, determining the physical quality of the target person from the video shot by the previous depth camera, calculating the movement state of the target person when the target person falls down from the video shot by the current depth camera and the video shot by the previous depth camera, inputting the movement state and the physical quality of the target person into a potential safety hazard identification model, and outputting the severity of the potential safety hazard;
preferably, the height and the width of the target person can be determined from the video of the last depth camera, the gender of the target person can be determined according to bone data in the depth video, the video shot by the current depth camera and the last depth camera is used for calculating the falling speed of the target person, the height, the width and the gender of the target person and the falling speed of the target person are input into a potential safety hazard recognition model, the falling impact force of the target person is calculated, if the falling impact force of the target person is higher than the maximum impact force which can be borne by the human body, the high-numerical potential safety hazard severity is output, an alarm instruction is sent to a manager after the high-numerical potential safety hazard severity is output, and the manager is instructed to rescue in time.
Example two
The second embodiment of the application provides a site monitoring system for ice and snow sports, which comprises site monitoring equipment, a management server and manager terminal equipment, wherein the system executes the site monitoring method for ice and snow sports in the first embodiment.
The site monitoring equipment comprises a plurality of side-by-side monitoring piles symmetrically installed at two ends of a site, a cableway is installed between every two opposite groups of monitoring piles, a monitoring cable car is connected on the cableway in a sliding mode and slides at a preset speed between the groups of monitoring piles, and a depth camera is installed at the bottom of the monitoring cable car.
The method comprises the steps that a depth camera arranged at the bottom of a monitoring cable car is used for shooting a video of the ice and snow sports field, optical cables of data are connected between all monitoring piles and on a cableway, the depth camera is used for preliminarily recognizing the shot field video, then the ice and snow sports field video shot by the depth camera is transmitted to a management server through the optical cables to be analyzed and monitored in the ice and snow sports field, and whether an alarm instruction is sent to a terminal device of a manager or not is determined according to a monitoring result.
The above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.