Safety helmet wearing event detection method and device, electronic equipment and computer program product
Through the method of combining Hall sensor and six-axis sensor, the Hall voltage and attitude angle of the safety helmet are detected, which solves the problems of inaccurate wear detection and privacy violations in the prior art, and realizes accurate detection and deception of the wear status of the safety helmet Protection.
Patent Information
- Application Number
- CN202411427201.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-17
Smart Images

Figure CN119322376A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of posture detection, and in particular to a method, device, electronic equipment and computer program product for detecting a helmet wearing event. Background Art
[0002] In the communication installation and maintenance scenario, the installation and maintenance personnel usually perform tasks alone. The operation process involves various high-altitude operations such as climbing ladders and poles, which are dangerous. Correctly wearing a helmet can effectively reduce the probability of accidents and reduce the risk of personal injury. In order to standardize the correct wearing of helmets by installation and maintenance personnel during operation, a system is needed that can effectively identify the wearing status of helmets, and after identifying the behavior of not wearing or wearing in an irregular manner, it can remind the wearer in real time and feedback information to the safety officer. At present, conventional helmet wearing detection methods mainly include image analysis technology based on neural networks and pressure detection technology.
[0003] Image analysis technology mainly collects photos of helmet wearing through video surveillance devices, manually marks the photos to generate a training data set, uses the data to train a neural network model, and then inputs the collected video stream into the model to obtain the results of wearing detection.
[0004] Pressure detection technology mainly involves installing a pressure sensor in the lining of a safety helmet. When the safety helmet is worn, the sensor sends the pressure data to the detection module of the host system in real time, and the detection module gives the wearing detection result based on the pressure.
[0005] However, the main working scenario of communication installation and maintenance personnel is in the customer's home, and the collection of video data by cameras can easily violate the customer's privacy and cause customer dissatisfaction; and safety helmets often cause discomfort to the wearer, who may take some measures to deceive the detection system, making the detection system think that they are wearing it normally, and the pressure-based detection system is more easily deceived.
[0006] With respect to the above-mentioned problem of being unable to accurately detect the wearing event of a helmet, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a method, device, electronic device and computer program product for detecting a helmet wearing event, so as to at least solve the technical problem that a helmet wearing event cannot be accurately detected.
[0008] According to one aspect of an embodiment of the present invention, there is provided a method for detecting a helmet wearing event, comprising: in a case where it is detected that the helmet wearing event is a hooded event, collecting the current posture angle of the helmet at a preset time interval, wherein the wearing event includes at least: the hooded event; among a plurality of historical posture angles recorded in a preset storage space, querying a target posture angle closest to a current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the helmet collected at a plurality of historical collection moments; determining a posture angle difference between a current posture angle and a target posture angle; and in a case where the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from the hooded event to the abnormal event.
[0009] Optionally, the method further includes: collecting the Hall voltage generated by a Hall sensor in a safety helmet, wherein the Hall sensor and a connecting rod mechanism are pre-installed in the safety helmet, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to a hat rope of the safety helmet, and when the hat rope is tightened, the hat rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor, and when the hat rope is loosened, the hat rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor; when a voltage change occurs in the Hall voltage, the wearing event is generated.
[0010] Optionally, when a voltage change occurs in the Hall voltage, generating the wearing event includes: when the Hall voltage is greater than a first voltage threshold, determining the wearing event as a cap-taking event; when the Hall voltage is less than a second voltage threshold, determining the wearing event as a cap-wearing event; wherein the first voltage threshold is greater than the second voltage threshold.
[0011] Optionally, the method also includes: when the Hall voltage is less than a second voltage threshold, collecting the event attitude angle of the safety helmet by means of a six-axis sensor in the safety helmet; detecting whether the event attitude angle is greater than a preset attitude angle threshold; when the event attitude angle is not greater than the preset attitude angle threshold, determining that the wearing event is the hat-wearing event; when the event attitude angle is greater than the preset attitude angle threshold, determining that the wearing event is the abnormal event.
[0012] Optionally, the method also includes: based on the wearing event, storing the event posture angle and the angle collection time of the event posture angle into the preset storage space, wherein, when the wearing event is the hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is the abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
[0013] Optionally, when the Hall voltage is less than a second voltage threshold, collecting the event attitude angle of the safety helmet through the six-axis sensor in the safety helmet includes: when the Hall voltage is less than the second voltage threshold, collecting the event angular velocity and event acceleration of the safety helmet in the current wearing event through the six-axis sensor in the safety helmet; using the event angular velocity and the event acceleration, calculating the event roll angle and event pitch angle of the safety helmet in the current wearing event; determining the event roll angle and the event pitch angle as the event attitude angle.
[0014] Optionally, detecting whether the event attitude angle is greater than a preset attitude angle threshold includes: detecting whether the event pitch angle is greater than a preset pitch angle threshold, and detecting whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: the event pitch angle and the event roll angle, and the preset attitude angle threshold includes: the preset pitch angle threshold and the preset roll angle threshold; when the event pitch angle is not greater than the preset pitch angle threshold, and the event roll angle is not greater than the preset roll angle threshold, determining that the event attitude angle is not greater than the preset attitude angle threshold; when the event pitch angle is greater than the preset pitch angle threshold, and / or the event roll angle is greater than the preset roll angle threshold, determining that the event attitude angle is greater than the preset attitude angle threshold.
[0015] According to another aspect of an embodiment of the present invention, there is also provided a device for detecting a helmet wearing event, comprising: a collection module for collecting a current posture angle of the helmet at a preset time interval when it is detected that the helmet wearing event is a hooded event, wherein the wearing event includes at least the hooded event; a query module for querying a target posture angle closest to a current collection moment among a plurality of historical posture angles recorded in a preset storage space, wherein the preset storage space is at least used to record the historical posture angles of the helmet collected at a plurality of historical collection moments; a first determination module for determining a posture angle difference between a current posture angle and a target posture angle; and a second determination module for determining that the wearing event has changed from the hooded event to the abnormal event when the posture angle difference is less than a preset difference threshold.
[0016] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned method for detecting a helmet wearing event through the computer program.
[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, comprising computer instructions, which implement the steps of the above-mentioned method for detecting a helmet wearing event when executed by a processor.
[0018] In an embodiment of the present invention, when it is detected that a wearing event of a safety helmet is a hooded event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying a target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determining the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event, thereby being triggered by the hooded event, and combined with the change in the posture angle of the safety helmet, the purpose of anti-fraud detection of the wearing event of the safety helmet is achieved, thereby achieving the technical effect of accurately detecting the wearing event of the safety helmet, and further solving the technical problem of being unable to accurately detect the wearing event of the safety helmet. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a flow chart of a method for detecting a helmet wearing event according to an embodiment of the present invention;
[0021] Figure 2 is a schematic diagram of a worker posture detection scenario according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of a human posture detection system according to an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of a Hall sensor and a connecting rod mechanism in a safety helmet according to an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of a main process of helmet wearing detection according to an embodiment of the present invention;
[0025] Figure 6 is a schematic diagram of a wearing event detection process according to an embodiment of the present invention;
[0026] Figure 7 is a schematic diagram of a fraud detection process according to an embodiment of the present invention;
[0027] Figure 8 is a schematic diagram of a detection device for a helmet wearing event according to an embodiment of the present invention;
[0028] Fig. 9 It is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. 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 necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0032] Hall effect: When current passes through a conductor perpendicular to the external magnetic field, an electric potential difference will appear between the two end faces of the conductor perpendicular to the magnetic field and the direction of current. This phenomenon is the Hall effect.
[0033] Six-axis sensor: A six-axis motion tracking sensor that integrates a three-axis gyroscope and a three-axis accelerometer to accurately detect and measure the angular velocity and acceleration of an object.
[0034] According to an embodiment of the present invention, a method embodiment for detecting a helmet wearing event is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Figure 1 is a flow chart of a method for detecting a helmet wearing event according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0036] Step S102, when it is detected that the wearing event of the helmet is a hood-on event, collecting the current posture angle of the helmet at a preset time interval, wherein the wearing event at least includes: a hood-on event;
[0037] Step S104, searching for a target posture angle closest to the current acquisition moment among multiple historical posture angles recorded in a preset storage space, wherein the preset storage space is at least used to record the historical posture angles of the helmet acquired at multiple historical acquisition moments;
[0038] Step S106, determining the attitude angle difference between the current attitude angle and the target attitude angle;
[0039] Step S108: When the posture angle difference is less than a preset difference threshold, it is determined that the wearing event changes from a cap-wearing event to an abnormal event.
[0040] In an embodiment of the present invention, when it is detected that a wearing event of a safety helmet is a hooded event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying a target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determining the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event, thereby being triggered by the hooded event, and combined with the change in the posture angle of the safety helmet, the purpose of anti-fraud detection of the wearing event of the safety helmet is achieved, thereby achieving the technical effect of accurately detecting the wearing event of the safety helmet, and further solving the technical problem of being unable to accurately detect the wearing event of the safety helmet.
[0041] In the above step S102, the wearing event at least includes: a hat-wearing event and a hat-removing event, wherein the hat-wearing event is triggered by the action of wearing a safety helmet, and the hat-removing event is triggered by the action of taking off a safety helmet.
[0042] It should be noted that both the hat-wearing event and the hat-removing event are events triggered by instantaneous actions. After triggering the event, the user may not actually wear the helmet. Therefore, in order to accurately detect the helmet wearing event, after the wearing event is triggered, it is necessary to further use the helmet's posture angle to perform anti-fraud detection of the wearing event.
[0043] Optionally, since the posture angle of the safety helmet will change with the head movement of the wearer after the person wears it, anti-fraud detection of the safety helmet wearing event can be achieved by monitoring the changes in the posture angle of the safety helmet.
[0044] In the above step S104, the posture angle of the helmet collected at preset time intervals can be recorded in a preset storage space. When a helmet-wearing event is triggered, the posture angle can be further recorded in combination with the historical posture angle recorded in the preset storage space to determine the change in the posture angle of the helmet.
[0045] In the above step S104, the historical collection time is the time point at which the attitude angle is collected at a preset time interval within the historical period.
[0046] In the above step S104, the target posture angle is the historical posture angle closest to the current posture angle of the helmet collected at the current moment.
[0047] Optionally, the target posture angle may be a historical posture angle collected during a most recent correct wearing event.
[0048] In the above step S106, the posture angle difference is less than the preset difference threshold, which means that after wearing the helmet, the posture angle change of the helmet does not conform to the human body wearing the helmet, and there is a situation of false wearing of the helmet, that is, there is fraudulent wearing of the helmet.
[0049] In the above step S108, the wearing event also includes: abnormal events and normal events, wherein the abnormal event is triggered by the wearing event, but the change of the posture angle of the safety helmet does not conform to the situation of the human body wearing the safety helmet, that is, the situation of false wearing of the safety helmet; the normal event is triggered by the wearing event, and the change of the posture angle of the safety helmet conforms to the situation of the human body wearing the safety helmet, that is, the correct wearing event of the safety helmet.
[0050] Figure 2 is a schematic diagram of a worker posture detection scenario according to an embodiment of the present invention, such as Figure 2As shown, the application scenario can be that telecommunications installation and maintenance personnel are working at a customer's home. The hardware equipment that their posture detection relies on at least includes: a helmet wearing detection device and a detection device management platform. The helmet wearing detection device is installed on the helmet. When the installation and maintenance personnel wear the helmet, the data collection device can be realized. The wearing detection management platform is deployed in a public cloud or data center (such as a management platform).
[0051] Optionally, the helmet wearing detection device communicates with the management platform through the operator's 4G network and the internet. The helmet wearing detection device is equipped with a Hall sensor and a six-axis sensor. The detection program in the helmet wearing detection device obtains the sensor data, calculates the Hall voltage and the Euler angle of the helmet posture, and determines whether the Hall voltage and the Euler angle exceed the preset threshold range to generate an alarm event. The detection program reports the generated alarm event to the management platform, and the management platform records the alarm event, regularly analyzes the data reported by the equipment to derive the behavior of the installation and maintenance personnel wearing the helmet improperly, and notifies the guardian according to the strategy. The guardian reminds and educates the installation and maintenance personnel to reduce the risk of the operation.
[0052] Figure 3 is a schematic diagram of a human posture detection system according to an embodiment of the present invention. Figure 3 As shown, it at least includes: a management platform and a data acquisition device, wherein the management platform and the data acquisition device use message queue telemetry transmission MQTT for transmission.
[0053] Alternatively, if Figure 3 As shown, the management platform includes at least: device management, alarm management, service specifications, as well as user management, system management, relational database, time series database, message bus, speech recognition SDK, cloud voice SDK and instant messaging SDK (such as WeChat SDK).
[0054] Alternatively, if Figure 3 As shown, device management includes at least registration / authentication, status, and upgrade; alarm management includes at least event storage, query, and event generation; service specifications include at least audio management, text conversion, and event generation.
[0055] Alternatively, if Figure 3 As shown, the data acquisition equipment at least includes: data acquisition, algorithm, alarm / heartbeat, 4G / CAT, software upgrade, file management, battery management, and real-time operating system RTOS.
[0056] As an optional embodiment, the method also includes: collecting the Hall voltage generated by the Hall sensor in the safety helmet, wherein a Hall sensor and a connecting rod mechanism are pre-installed in the safety helmet, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to the hat rope of the safety helmet, when the hat rope is tightened, the hat rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor, and when the hat rope is loosened, the hat rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor; when the Hall voltage changes, a wearing event is generated.
[0057] Figure 4 is a schematic diagram of a Hall sensor and a connecting rod mechanism in a safety helmet according to an embodiment of the present invention, such as Figure 4 As shown, a magnet 411 is provided at the first end of the connecting rod mechanism 41, and the second end of the connecting rod mechanism is connected to the cap rope 43 of the safety helmet. When the cap rope is tightened, the cap rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor 43, thereby reducing the Hall voltage generated by the Hall sensor. When the cap rope is loosened, the cap rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor. When the Hall voltage changes, a wearing event is generated.
[0058] Optionally, the safety helmet is also provided with a limiting component of the connecting rod mechanism, which is used to limit the moving direction of the connecting rod mechanism, wherein the limiting component can be a limiting groove, which allows the connecting rod mechanism to slide in the limiting groove; the limiting component can also be a limiting pin, which passes through the limiting hole in the middle section of the connecting rod mechanism, so that the connecting rod mechanism can rotate around the limiting pin.
[0059] In the above-mentioned embodiment of the present application, a Hall sensor and a connecting rod mechanism used in conjunction with the Hall sensor are installed in the safety helmet, one end of the connecting rod mechanism is provided with a magnet, and the other end is connected to the hat rope of the safety helmet. When the hat rope is tightened, the hat rope drives the connecting rod mechanism to move, so that the magnet provided on the connecting rod mechanism deviates from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor; when the hat rope is loosened, the hat rope drives the connecting rod structure to move, so that the magnet is reset to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor, and then according to the change of the Hall voltage, the hat-wearing event and the hat-removing event can be detected, thereby generating a wearing event.
[0060] As an optional embodiment, when the Hall voltage changes, generating a wearing event includes: when the Hall voltage is greater than a first voltage threshold, determining the wearing event as a cap-off event; when the Hall voltage is less than a second voltage threshold, determining the wearing event as a cap-on event; wherein the first voltage threshold is greater than the second voltage threshold.
[0061] In the above-mentioned embodiments of the present application, when triggered by a cap-off event, the Hall voltage generated by the Hall sensor will increase, and when triggered by a cap-on event, the Hall voltage generated by the Hall sensor will decrease. Therefore, by comparing the Hall voltage with the preset voltage threshold, the detection of the cap-off event and the cap-on event can be achieved. In order to avoid false detection under critical conditions, different preset voltage thresholds can be set for the cap-off event and the cap-on event, that is, the first voltage threshold is used to detect the cap-off event, and the second voltage threshold is used to detect the cap-on event, and the first voltage threshold is made greater than the second voltage threshold, so as to avoid false detection under critical conditions.
[0062] As an optional embodiment, the method also includes: when the Hall voltage is less than a second voltage threshold, collecting the event posture angle of the safety helmet through a six-axis sensor in the safety helmet; detecting whether the event posture angle is greater than a preset posture angle threshold; when the event posture angle is not greater than the preset posture angle threshold, determining that the wearing event is a hat-wearing event; when the event posture angle is greater than the preset posture angle threshold, determining that the wearing event is an abnormal event.
[0063] In the above embodiment of the present application, when the Hall voltage is less than the second voltage threshold, the six-axis sensor is triggered to collect the event posture angle of the safety helmet. Furthermore, when the event posture angle is greater than the preset posture angle threshold, it means that the current event posture angle of the safety helmet does not conform to the posture angle that can be generated by a human body wearing the safety helmet, and the current wearing event of the safety helmet is determined to be an abnormal event. On the contrary, when the event posture angle is not greater than the preset posture angle threshold, it means that the current event posture angle of the safety helmet conforms to the posture angle that can be generated by a human body wearing the safety helmet, and the current wearing event of the safety helmet can be further verified to be a correct wearing event of the safety helmet.
[0064] As an optional embodiment, the method also includes: based on the wearing event, storing the event posture angle and the angle collection time of the event posture angle into a preset storage space, wherein, when the wearing event is a hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is an abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
[0065] In the above-mentioned embodiment of the present application, when collecting the event posture angle of the safety helmet, the event posture angle collected each time and the angle collection time of the event posture angle can be stored in a preset storage space. Furthermore, since the event posture angle can preliminarily detect abnormalities in wearing events, the collected event posture angles can be classified and stored to obtain the historical posture angles and historical collection times in the case of wearing helmets, as well as the abnormal posture angles and abnormal collection times in the case of abnormal events.
[0066] As an optional embodiment, when the Hall voltage is less than a second voltage threshold, collecting the event attitude angle of the safety helmet through the six-axis sensor in the safety helmet includes: when the Hall voltage is less than the second voltage threshold, collecting the event angular velocity and event acceleration of the safety helmet in the current wearing event through the six-axis sensor in the safety helmet; using the event angular velocity and event acceleration, calculating the event roll angle and event pitch angle of the safety helmet in the current wearing event; determining the event roll angle and event pitch angle as the event attitude angle.
[0067] In the above-mentioned embodiment of the present application, the six-axis sensor in the safety helmet is used to collect the event angular velocity and event acceleration of the safety helmet in the current wearing event, and then based on the event angular velocity and event acceleration, the event roll angle and event pitch angle of the safety helmet in the previous wearing event can be calculated, and the event roll angle and event pitch angle can be determined as the event attitude angle, thereby realizing the determination of the event attitude angle.
[0068] As an optional embodiment, detecting whether the event attitude angle is greater than a preset attitude angle threshold includes: detecting whether the event pitch angle is greater than a preset pitch angle threshold, and detecting whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: an event pitch angle and an event roll angle, and the preset attitude angle threshold includes: a preset pitch angle threshold and a preset roll angle threshold; when the event pitch angle is not greater than the preset pitch angle threshold, and the event roll angle is not greater than the preset roll angle threshold, it is determined that the event attitude angle is not greater than the preset attitude angle threshold; when the event pitch angle is greater than the preset pitch angle threshold, and / or the event roll angle is greater than the preset roll angle threshold, it is determined that the event attitude angle is greater than the preset attitude angle threshold.
[0069] In the above embodiments of the present application, the event attitude angle at least includes: an event pitch angle and an event roll angle. Only when the event pitch angle and the event roll angle both meet the preset attitude angle threshold, that is, when the event pitch angle is not greater than the preset pitch angle threshold, and the event roll angle is not greater than the preset roll angle threshold, the wearing event is determined to be a correct hooded event, otherwise the wearing event is determined to be an abnormal event.
[0070] The present invention also provides an optional embodiment, which provides a helmet wearing detection method based on a six-axis sensor and a Hall sensor, which can not only effectively detect the wearing of a helmet, but also avoid customer privacy issues and enhance the anti-fraud capability of the detection system, and can solve the problems of infringement of customer privacy and fraud of the detection means container involved in the existing helmet wearing detection.
[0071] Optionally, the helmet wearing detection method can be implemented based on a helmet wearing detection device, which integrates a Hall sensor and a six-axis sensor.
[0072] As an optional embodiment, a pull rod is installed above the Hall sensor, a magnet is installed at one end of the pull rod close to the Hall sensor, and a spring is installed on the pull rod. After the external force on the pull rod is eliminated, the spring can restore the pull rod to its initial position (the magnet end of the pull rod is suspended directly above the Hall sensor). The safety helmet rope is connected to one end of the pull rod. When worn correctly, the hat rope pulls the pull rod to cause displacement, and the magnet deviates from directly above the Hall sensor. The Hall voltage output by the Hall sensor drops sharply, and the detection program detects the voltage change, generates a hat-on event, and sends it to the platform. When the hat is taken off or the hat rope is not tied, the spring resets one end of the pull rod magnet to directly above the Hall sensor, and the voltage output by the Hall sensor rises rapidly. The detection program detects the voltage rise change, generates a hat-off event, and sends it to the platform. The above detection is mainly completed by relying on the Hall effect. The Hall effect refers to the fact that in an electrical conductor, when the current flows perpendicular to the external magnetic field, a lateral voltage will be generated on both sides of the conductor, and the voltage will change with the change of the magnetic field strength.
[0073] It should be noted that, in the above-mentioned detection of helmet wearing events based on Hall sensors, the displacement of the magnet is easy to be forged to deceive the detection system, so it is necessary to combine with a six-axis sensor to enhance the anti-deception capability.
[0074] As an optional embodiment, during the operation, the posture of the personnel's head is consistent with the posture of the detection device on the helmet. By collecting and calculating the posture of the helmet wearing detection device, the head posture of the operator can be determined. The angle between the six-axis sensor coordinate system and the ground coordinate system in the helmet wearing detection device is the head posture of the operator. This angle is called the Euler angle in the navigation system. The Euler angle includes pitch angle, yaw angle, and roll angle. The helmet wearing detection device collects the angular velocity and acceleration in the six axes in real time. The Euler angle can be obtained by using the navigation system Euler angle calculation method to determine the helmet posture (the Euler angle calculation method will not be described in detail). During the normal operation of the operator, the Euler angle of the head posture has a certain range of values. If it exceeds this range, the detection system will issue an abnormal wearing alarm to prevent the operator from deceiving the system.
[0075] As an optional example, the detection device based on Hall sensor and six-axis sensor can only detect the instantaneous behavior of wearing, and there is still the possibility of being deceived. To reduce the probability of being deceived, it is necessary to regularly collect statistics on data within a period of time to analyze whether there is system deception. The detection device regularly reports the Hall sensor voltage and Euler angle to the platform, and the platform stores the data reported by the device. The wearing detection program counts the Hall voltage and Euler angle of the device in a given time period. If the Euler angle changes less than a given threshold within the time period, and the Hall voltage is less than a given threshold, it is determined that the hat is stationary and there is system deception. The wearing detection program records the device, start and end time, and detection time of the system deception event, and sends an alarm message to the guardian, who will stop the unsafe behavior in time.
[0076] Figure 5 is a schematic diagram of the main process of helmet wearing detection according to an embodiment of the present invention, such as Figure 5 The specific steps are described as follows:
[0077] Step S501, obtaining the Hall voltage, six-axis sensor angular velocity and acceleration of the helmet wearing detection device.
[0078] Specifically, the hardware of the helmet wearing detection device includes at least: MCU, Hall sensor, six-axis sensor, 4G communication module and connecting rod mechanism, and the wearing detection program runs on the hardware.
[0079] Optionally, the helmet wearing detection device sends a registration request to the management platform, the platform authenticates through the SN of the device, and the device and the platform periodically send heartbeats to keep the connection alive.
[0080] Optionally, when the maintenance personnel wear a helmet, they pull the cap rope, which drives the connecting rod to move, and the magnet on the connecting rod moves accordingly. The displacement of the magnet causes the magnetic field strength of the Hall sensor to change, causing the voltage across the Hall sensor to change.
[0081] It should be noted that when the magnet is far away from the Hall sensor, the magnetic field strength around the Hall sensor decreases and the Hall voltage decreases; when the magnet is close to the Hall sensor, the magnetic field strength around the Hall sensor increases and the Hall voltage increases.
[0082] In this embodiment, when the hat rope is tightened, the hat rope drives the connecting rod to make the magnet on the connecting rod deviate from the top of the Hall sensor, so that the Hall voltage of the Hall sensor is reduced; when the hat rope is loosened, the hat rope drives the connecting rod to reset the magnet on the connecting rod to the top of the Hall sensor, so that the Hall voltage of the Hall sensor is increased.
[0083] Optionally, the Hall sensor communicates with the MCU through the SPI interface, and the sensor sends the Hall voltage to the wearing detection program. If the wearing detection program determines that the Hall voltage is less than a given voltage threshold, a cap-on event is generated; if the Hall voltage is greater than a given voltage threshold, a cap-off event is generated. However, this event and voltage value are easy to forge, and using only this data is prone to misjudgment of helmet wearing, and further judgment needs to be made in combination with the posture angle.
[0084] Step S502, calculating the posture Euler angle of the helmet wearing detection device.
[0085] Optionally, after receiving the Hall voltage change event, the wearing detection program collects the angular velocity and acceleration of the six-axis sensor in the XYZ axis direction in real time to calculate the pitch angle and roll angle of the posture. The specific formula is as follows:
[0086] Roll Angle:
[0087] Pitch angle: p = arcsin(2(q0q2-q1q3));
[0088] Yaw angle:
[0089] In the above formula, q0, q1, q2, q3 are quaternions, which are introduced to facilitate the acquisition of Euler angles through angular velocity. Here, the first-order Runge-Kutta method is used to calculate the quaternion.
[0090]
[0091] Substituting in, we get:
[0092]
[0093] Among them, the initial value of q is q0=1, q1=0, q2=0, q3=0. is the angular velocity of the X-axis, Y-axis, and Z-axis in the six-axis sensor coordinate system. T is the sampling period.
[0094] Step S503: combining the Hall voltage and the Euler angle, based on a preset conditional threshold, generates a helmet wearing event.
[0095] Optionally, the condition threshold for determining a helmet wearing event includes: a voltage threshold and an angle threshold, and the angle threshold includes at least: a pitch angle threshold and a roll angle threshold. After the wearing detection program receives a Hall voltage change event, the detection process is described as follows:
[0096] When it is judged that the Hall voltage is greater than the voltage threshold 1 (high voltage threshold), and the pitch angle is less than the pitch angle threshold, and the roll angle is less than the roll angle threshold, an incorrect wearing alarm is generated;
[0097] When it is determined that the Hall voltage is less than voltage threshold 2 (low voltage threshold), and the pitch angle is less than the pitch angle threshold, and the roll angle is less than the roll angle threshold, a correct wearing event is generated;
[0098] When it is determined that the Hall voltage is less than the voltage threshold 2, and the pitch angle is greater than the pitch angle threshold or the roll angle is greater than the roll angle threshold, an incorrect wearing event is generated.
[0099] Figure 6 is a schematic diagram of a wearing event detection process according to an embodiment of the present invention. Figure 6 As shown, the helmet wearing detection device (i.e., data acquisition device) includes a Hall sensor / six-axis sensor, and a detection system. The detection system can run a wearing detection program. The specific steps for determining a wearing event are described as follows:
[0100] Step S601: The data acquisition device registers with the management platform through the detection system.
[0101] Step S602: The helmet wearer wears the helmet, and the helmet rope is tightened to cause the connecting rod to move, so that the magnet on the connecting rod deviates from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor.
[0102] Step S603: The Hall sensor generates a voltage change and sends the Hall voltage via SPI.
[0103] Step S603.1: The Hall sensor sends a Hall voltage to the detection system.
[0104] Step S604: the detection system generates a wearing event.
[0105] Step S604.1: The detection system sends a collection instruction to the six-axis sensor to collect angular velocity and acceleration.
[0106] Step S605: The detection system calculates the pitch angle and the roll angle according to the collected angular velocity and acceleration, and determines whether they exceed the threshold (such as detecting whether the pitch angle exceeds the pitch angle threshold, detecting whether the roll angle exceeds the roll angle threshold).
[0107] Step S605.1: When the pitch angle is less than the pitch angle threshold and the roll angle is less than the roll angle threshold, the detection system sends a capped event to the management platform, and the management platform stores the event.
[0108] Step S606: The person wearing the helmet takes off the helmet, and the hat strap loosens, causing the connecting rod to move, so that the magnet on the connecting rod is reset to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor.
[0109] Step S607: The Hall sensor generates a voltage change, and the Hall voltage is sent via SPI.
[0110] Step S607.1: The Hall sensor sends a Hall voltage to the detection system.
[0111] Step S608: the detection system generates a cap-off event.
[0112] Step S608.1: The detection system sends a cap removal event to the management platform, and the management platform stores the event.
[0113] Step S604: generating a wearing event based on statistical analysis of relevant data of the wearing event.
[0114] As an optional embodiment, the management platform's wearing detection and anti-fraud program regularly verifies sensor data related to the correct wearing of the helmet. If it is found that the posture of the helmet has not changed or the change amplitude is less than a given threshold during the verification period, it is considered that system deception has occurred, the deception event is recorded, and the guardian is notified.
[0115] Figure 7 is a schematic diagram of a fraud detection process according to an embodiment of the present invention. Figure 7 As shown in the figure, the management platform anti-spoofing detection program traverses all devices every 5 minutes. The specific steps are described as follows:
[0116] Step S701: The management platform obtains the latest correct wearing event information of the device.
[0117] Specifically, the management platform obtains the device's most recent correct wearing event and the device's pitch angle and roll angle when the event occurs, which are subsequently referred to as event pitch angle and event roll angle.
[0118] Step S702: The management platform obtains the current pitch angle and roll angle from the detection system.
[0119] Specifically, the management platform runs the anti-fraud program to send a request to the wearing detection program (that is, the detection system running the wearing detection program) of the safety helmet wearing detection device (that is, the data acquisition device) to obtain the pitch angle and the roll angle.
[0120] Step S703: the detection system sends a data request to the six-axis sensor in the helmet wearing detection device (ie, the data acquisition device).
[0121] Step S704: The detection system calculates the pitch angle and the roll angle.
[0122] Step S705: The detection system sends the pitch angle and the roll angle to the management platform.
[0123] Specifically, the wearing detection program obtains the angular velocity and acceleration of the six-axis sensor, calculates the current pitch angle and the current roll angle, and sends the current pitch angle and the current roll angle to the management platform.
[0124] Step S706: If the calculated pitch angle and roll angle changes are less than a given threshold, it is considered as cheating and the event is recorded.
[0125] Specifically, the anti-spoofing program run by the management platform calculates the pitch angle difference between the event pitch angle and the current pitch angle, and the roll angle difference between the event roll angle and the current roll angle. If the pitch angle difference is less than the pitch angle change threshold or the roll angle difference is less than the roll angle change threshold, the anti-spoofing program generates a system deception event and notifies the guardian; if the pitch angle change and the roll angle change are both greater than the threshold, the wearer is normal and the next device is processed.
[0126] Step S707, notify the guardian of the system fraud event.
[0127] Since mainstream helmet wearing detection technologies are all trained and analyzed based on video data, and due to the special nature of installation and maintenance work, most of the work is done in privacy-protected scenarios such as inside the customer's room, methods using video data are likely to infringe on customer privacy and will be rejected and complained by customers. However, this application uses a Hall sensor, and the hat rope triggers the displacement of the magnet on the pull rod, causing the magnetic field of the Hall sensor to change, and the output voltage of the Hall sensor changes. The detection program uses this voltage value for wearing detection. This method only collects data from installation and maintenance personnel and does not involve customer data, thus protecting customer privacy and improving customer acceptance. In addition, the wearing detection system calculates the helmet posture through the data collected by the six-axis sensor, and then the detection system combines the voltage value of the Hall sensor and the Euler angle of the helmet posture to perform wearing detection and judgment, thereby reducing the probability of human deception of the system. In addition, the detection equipment regularly uploads the Hall voltage value and the Euler angle of the posture, and the platform regularly analyzes the historical data of the equipment. It can count and detect the wearing status of the helmet from a long-term dimension, and can effectively analyze whether there is any deception of the system. In addition to providing safety reminders to the wearer through the built-in speaker, it also sends alarm information to the guardian responsible for safety responsibilities, thereby reducing the safety risks of the wearer during operation. Therefore, compared with the video solution, the use of microcontrollers, Hall sensors and six-axis sensors are all low-cost devices, which effectively reduces the ownership cost of the detection system.
[0128] According to an embodiment of the present invention, an embodiment of a detection device for a helmet wearing event is also provided. It should be noted that the detection device for a helmet wearing event can be used to execute the detection method for a helmet wearing event in the embodiment of the present invention, and the detection method for a helmet wearing event in the embodiment of the present invention can be executed in the detection device for a helmet wearing event.
[0129] Figure 8is a schematic diagram of a detection device for a helmet wearing event according to an embodiment of the present invention. Figure 8 As shown, the device may include: a collection module 82, which is used to collect the current posture angle of the safety helmet at a preset time interval when it is detected that the wearing event of the safety helmet is a hooded event, wherein the wearing event at least includes: a hooded event; a query module 84, which is used to query the target posture angle closest to the current collection moment among multiple historical posture angles recorded in a preset storage space, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; a first determination module 86, which is used to determine the posture angle difference between the current posture angle and the target posture angle; a second determination module 88, which is used to determine that the wearing event has changed from a hooded event to an abnormal event when the posture angle difference is less than a preset difference threshold.
[0130] It should be noted that the acquisition module 82 in this embodiment can be used to execute step S102 in the embodiment of the present application, the query module 84 in this embodiment can be used to execute step S104 in the embodiment of the present application, the first determination module 86 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the second determination module 88 in this embodiment can be used to execute step S108 in the embodiment of the present application. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0131] In an embodiment of the present invention, when it is detected that a wearing event of a safety helmet is a hooded event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying a target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determining the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event, thereby being triggered by the hooded event, and combined with the change in the posture angle of the safety helmet, the purpose of anti-fraud detection of the wearing event of the safety helmet is achieved, thereby achieving the technical effect of accurately detecting the wearing event of the safety helmet, and further solving the technical problem of being unable to accurately detect the wearing event of the safety helmet.
[0132] As an optional embodiment, the device also includes: a collection submodule, used to collect the Hall voltage generated by the Hall sensor in the safety helmet, wherein a Hall sensor and a connecting rod mechanism are pre-installed in the safety helmet, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to the hat rope of the safety helmet. When the hat rope is tightened, the hat rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor. When the hat rope is loosened, the hat rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor; a generation submodule, used to generate a wearing event when the Hall voltage changes.
[0133] As an optional embodiment, the generating submodule includes: a first determination unit, used to determine that the wearing event is a cap-off event when the Hall voltage is greater than a first voltage threshold; a second determination unit, used to determine that the wearing event is a cap-on event when the Hall voltage is less than a second voltage threshold; wherein the first voltage threshold is greater than the second voltage threshold.
[0134] As an optional embodiment, the device also includes: a collection unit, which is used to collect the event posture angle of the safety helmet through a six-axis sensor in the safety helmet when the Hall voltage is less than a second voltage threshold; a detection unit, which is used to detect whether the event posture angle is greater than a preset posture angle threshold; a third determination unit, which is used to determine that the wearing event is a hat-wearing event when the event posture angle is not greater than the preset posture angle threshold; and a fourth determination unit, which is used to determine that the wearing event is an abnormal event when the event posture angle is greater than the preset posture angle threshold.
[0135] As an optional embodiment, the device also includes: a storage unit, used to store the event posture angle and the angle collection time of the event posture angle into a preset storage space based on the wearing event, wherein, when the wearing event is a hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is an abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
[0136] As an optional embodiment, the acquisition unit includes: an acquisition subunit, which is used to collect the event angular velocity and event acceleration of the safety helmet in the current wearing event through a six-axis sensor in the safety helmet when the Hall voltage is less than a second voltage threshold; a calculation subunit, which is used to calculate the event roll angle and event pitch angle of the safety helmet in the current wearing event using the event angular velocity and event acceleration; and a first determination subunit, which is used to determine the event roll angle and event pitch angle as the event posture angle.
[0137] As an optional embodiment, the detection unit includes: a detection subunit, used to detect whether the event pitch angle is greater than a preset pitch angle threshold, and to detect whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: an event pitch angle and an event roll angle, and the preset attitude angle threshold includes: a preset pitch angle threshold and a preset roll angle threshold; a second determination subunit, used to determine that the event attitude angle is not greater than the preset attitude angle threshold when the event pitch angle is not greater than the preset pitch angle threshold and the event roll angle is not greater than the preset roll angle threshold; a third determination subunit, used to determine that the event attitude angle is greater than the preset attitude angle threshold when the event pitch angle is greater than the preset pitch angle threshold, and / or the event roll angle is greater than the preset roll angle threshold.
[0138] An embodiment of the present invention may provide an electronic device, which may be a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal.
[0139] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0140] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the safety helmet wearing event method: when it is detected that the safety helmet wearing event is a hooded event, collecting the current posture angle of the safety helmet at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying the target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determining the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event.
[0141] Fig. 9 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Fig. 9 As shown, the computer terminal 90 may include: one or more (only one is shown in the figure) processors 92 , and a memory 94 .
[0142] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the helmet wearing event method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the above-mentioned helmet wearing event method is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal 80 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The processor can call the information and application stored in the memory through the transmission device to execute the following steps: when it is detected that the wearing event of the safety helmet is a hood-on event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: a hood-on event; among multiple historical posture angles recorded in a preset storage space, query the target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determine the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determine that the wearing event has changed from a hood-on event to an abnormal event.
[0144] Optionally, the processor may also execute the program code of the following steps: collecting the Hall voltage generated by the Hall sensor in the safety helmet, wherein a Hall sensor and a connecting rod mechanism are pre-installed in the safety helmet, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to the hat rope of the safety helmet, and when the hat rope is tightened, the hat rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor; when the hat rope is loosened, the hat rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor; when the Hall voltage changes, a wearing event is generated.
[0145] Optionally, the processor may also execute the program code of the following steps: when the Hall voltage is greater than a first voltage threshold, determining that the wearing event is a cap-off event; when the Hall voltage is less than a second voltage threshold, determining that the wearing event is a cap-on event; wherein the first voltage threshold is greater than the second voltage threshold.
[0146] Optionally, the processor may also execute the program code of the following steps: when the Hall voltage is less than a second voltage threshold, collecting the event attitude angle of the helmet through the six-axis sensor in the helmet; detecting whether the event attitude angle is greater than a preset attitude angle threshold; when the event attitude angle is not greater than the preset attitude angle threshold, determining that the wearing event is a hat-wearing event; when the event attitude angle is greater than the preset attitude angle threshold, determining that the wearing event is an abnormal event.
[0147] Optionally, the processor may also execute the program code of the following steps: based on the wearing event, storing the event posture angle and the angle collection time of the event posture angle into a preset storage space, wherein, when the wearing event is a hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is an abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
[0148] Optionally, the processor may also execute the program code of the following steps: when the Hall voltage is less than a second voltage threshold, collecting the event angular velocity and event acceleration of the safety helmet in the current wearing event through the six-axis sensor in the safety helmet; calculating the event roll angle and event pitch angle of the safety helmet in the current wearing event using the event angular velocity and event acceleration; and determining the event roll angle and event pitch angle as the event attitude angle.
[0149] Optionally, the processor may also execute the program code of the following steps: detecting whether the event pitch angle is greater than a preset pitch angle threshold, and detecting whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: an event pitch angle and an event roll angle, and the preset attitude angle threshold includes: a preset pitch angle threshold and a preset roll angle threshold; when the event pitch angle is not greater than the preset pitch angle threshold, and the event roll angle is not greater than the preset roll angle threshold, determining that the event attitude angle is not greater than the preset attitude angle threshold; when the event pitch angle is greater than the preset pitch angle threshold, and / or the event roll angle is greater than the preset roll angle threshold, determining that the event attitude angle is greater than the preset attitude angle threshold.
[0150] In an embodiment of the present invention, when it is detected that a wearing event of a safety helmet is a hooded event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying a target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the safety helmet collected at multiple historical collection moments; determining the posture angle difference between the current posture angle and the target posture angle; when the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event, thereby being triggered by the hooded event, and combined with the change in the posture angle of the safety helmet, the purpose of anti-fraud detection of the wearing event of the safety helmet is achieved, thereby achieving the technical effect of accurately detecting the wearing event of the safety helmet, and further solving the technical problem of being unable to accurately detect the wearing event of the safety helmet.
[0151] It can be understood by those skilled in the art that Fig. 9 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig. 9 The structure of the electronic device is not limited. For example, the computer terminal 90 may also include Fig. 9 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig. 9 Different configurations are shown.
[0152] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a computer program. The computer program can be stored in a non-volatile medium. The non-volatile storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0153] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the helmet wearing event method provided in the above embodiment.
[0154] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0155] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: in case it is detected that the wearing event of the safety helmet is a hooded event, collecting the current posture angle of the safety helmet at a preset time interval, wherein the wearing event at least includes: a hooded event; among multiple historical posture angles recorded in a preset storage space, querying a target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record historical posture angles of the safety helmet collected at multiple historical collection moments; determining a posture angle difference between the current posture angle and the target posture angle; in case the posture angle difference is less than a preset difference threshold, determining that the wearing event has changed from a hooded event to an abnormal event.
[0156] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: collecting the Hall voltage generated by the Hall sensor in the safety helmet, wherein a Hall sensor and a connecting rod mechanism are pre-installed in the safety helmet, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to the hat rope of the safety helmet, and when the hat rope is tightened, the hat rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor; when the hat rope is loosened, the hat rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor; when the Hall voltage changes, a wearing event is generated.
[0157] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: when the Hall voltage is greater than a first voltage threshold, determining that the wearing event is a cap-off event; when the Hall voltage is less than a second voltage threshold, determining that the wearing event is a cap-on event; wherein the first voltage threshold is greater than the second voltage threshold.
[0158] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: when the Hall voltage is less than a second voltage threshold, collecting the event attitude angle of the safety helmet by means of a six-axis sensor in the safety helmet; detecting whether the event attitude angle is greater than a preset attitude angle threshold; when the event attitude angle is not greater than the preset attitude angle threshold, determining that the wearing event is a hat-wearing event; when the event attitude angle is greater than the preset attitude angle threshold, determining that the wearing event is an abnormal event.
[0159] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the wearing event, storing the event posture angle and the angle collection time of the event posture angle into a preset storage space, wherein, when the wearing event is a hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is an abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
[0160] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: when the Hall voltage is less than a second voltage threshold, collecting the event angular velocity and event acceleration of the safety helmet in the current wearing event through the six-axis sensor in the safety helmet; calculating the event roll angle and event pitch angle of the safety helmet in the current wearing event using the event angular velocity and event acceleration; and determining the event roll angle and event pitch angle as the event attitude angle.
[0161] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: detecting whether the event pitch angle is greater than a preset pitch angle threshold, and detecting whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: an event pitch angle and an event roll angle, and the preset attitude angle threshold includes: a preset pitch angle threshold and a preset roll angle threshold; when the event pitch angle is not greater than the preset pitch angle threshold, and the event roll angle is not greater than the preset roll angle threshold, determining that the event attitude angle is not greater than the preset attitude angle threshold; when the event pitch angle is greater than the preset pitch angle threshold, and / or the event roll angle is greater than the preset roll angle threshold, determining that the event attitude angle is greater than the preset attitude angle threshold.
[0162] The embodiment of the present invention further provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the steps of the helmet wearing event method provided in the above embodiment are implemented.
[0163] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0164] In the above embodiments of the present invention, 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.
[0165] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0166] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0167] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0168] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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. The computer software product is stored in a non-volatile storage medium, including 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 the method described in each embodiment of the present invention. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0169] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting a helmet wearing event, characterized in that: include: In the case where it is detected that the wearing event of the safety helmet is a hood-on event, the current posture angle of the safety helmet is collected at a preset time interval, wherein the wearing event at least includes: the hood-on event; Among the multiple historical posture angles recorded in the preset storage space, query the target posture angle closest to the current collection moment, wherein the preset storage space is at least used to record the historical posture angles of the helmet collected at multiple historical collection moments; Determine the attitude angle difference between the current attitude angle and the target attitude angle; When the posture angle difference is less than a preset difference threshold, it is determined that the wearing event changes from the cap-wearing event to the abnormal event.
2. The method according to claim 1, characterized in that: The method further comprises: The Hall voltage generated by the Hall sensor in the helmet is collected, wherein the helmet is pre-equipped with the Hall sensor and a connecting rod mechanism, a magnet is provided at the first end of the connecting rod mechanism, and the second end of the connecting rod mechanism is connected to the cap rope of the helmet. When the cap rope is tightened, the cap rope drives the connecting rod structure to make the magnet deviate from the top of the Hall sensor, thereby reducing the Hall voltage generated by the Hall sensor. When the cap rope is loosened, the cap rope drives the connecting rod structure to reset the magnet to the top of the Hall sensor, thereby increasing the Hall voltage generated by the Hall sensor. When a voltage change occurs in the Hall voltage, the wearing event is generated.
3. The method according to claim 2, characterized in that When the Hall voltage changes, generating the wearing event includes: When the Hall voltage is greater than a first voltage threshold, determining that the wearing event is a hat-off event; When the Hall voltage is less than a second voltage threshold, determining that the wearing event is the cap-wearing event; Wherein, the first voltage threshold is greater than the second voltage threshold.
4. The method according to claim 3, characterized in that: The method further comprises: When the Hall voltage is less than a second voltage threshold, collecting an event attitude angle of the safety helmet by a six-axis sensor in the safety helmet; Detecting whether the event attitude angle is greater than a preset attitude angle threshold; When the event posture angle is not greater than the preset posture angle threshold, determining that the wearing event is the cap-wearing event; When the event posture angle is greater than the preset posture angle threshold, the wearing event is determined to be the abnormal event.
5. The method according to claim 4, characterized in that The method further comprises: Based on the wearing event, the event posture angle and the angle collection time of the event posture angle are stored in the preset storage space, wherein, when the wearing event is the hooded event, the event posture angle is used as the historical posture angle, and the angle collection time is used as the historical collection time, and stored in the preset storage space; when the wearing event is the abnormal event, the event posture angle is used as the abnormal posture angle, and the angle collection time is used as the abnormal collection time, and stored in the preset storage space.
6. The method according to claim 4, characterized in that When the Hall voltage is less than the second voltage threshold, collecting the event attitude angle of the helmet by using the six-axis sensor in the helmet includes: When the Hall voltage is less than a second voltage threshold, collecting an event angular velocity and an event acceleration of the safety helmet in the current wearing event through a six-axis sensor in the safety helmet; Calculating an event roll angle and an event pitch angle of the helmet in the current wearing event by using the event angular velocity and the event acceleration; The event roll angle and the event pitch angle are determined as the event attitude angle.
7. The method according to claim 4, characterized in that Detecting whether the event attitude angle is greater than a preset attitude angle threshold includes: Detecting whether the event pitch angle is greater than a preset pitch angle threshold, and detecting whether the event roll angle is greater than a preset roll angle threshold, wherein the event attitude angle includes: the event pitch angle and the event roll angle, and the preset attitude angle threshold includes: the preset pitch angle threshold and the preset roll angle threshold; When the event pitch angle is not greater than a preset pitch angle threshold, and the event roll angle is not greater than a preset roll angle threshold, determining that the event attitude angle is not greater than the preset attitude angle threshold; In a case where the event pitch angle is greater than a preset pitch angle threshold, and / or the event roll angle is greater than a preset roll angle threshold, it is determined that the event attitude angle is greater than the preset attitude angle threshold.
8. A device for detecting a helmet wearing event, characterized in that: include: A collection module, used for collecting the current posture angle of the safety helmet at a preset time interval when it is detected that the wearing event of the safety helmet is a hood-on event, wherein the wearing event at least includes: the hood-on event; A query module, used to query the target posture angle closest to the current collection moment from a plurality of historical posture angles recorded in a preset storage space, wherein the preset storage space is at least used to record the historical posture angles of the helmet collected at a plurality of historical collection moments; A first determination module is used to determine the attitude angle difference between the current attitude angle and the target attitude angle; The second determining module is used to determine that the wearing event changes from the cap-wearing event to the abnormal event when the posture angle difference is less than a preset difference threshold.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the method for detecting a helmet wearing event according to any one of claims 1 to 7 through the computer program.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method for detecting a helmet wearing event described in any one of claims 1 to 7 are implemented.