Escalator passenger-carrying accident monitoring and early warning method and device based on visual detection
Through the escalator accident monitoring method based on visual detection, image recognition and target tracking algorithms are used to automatically identify the status of targets on the escalator, solving the problems of high cost and low automation in the existing technology, and achieving efficient accident warning and safety monitoring.
Patent Information
- Application Number
- CN202411260742.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-09-10
AI Technical Summary
Existing escalator accident monitoring relies on mechanical sensors and visual monitoring, which is costly and has a low degree of automation. Untimely manual participation will lead to increased injuries.
Using a method based on visual detection, the bounding box, posture information and category information of the target are obtained through the image recognition algorithm, combined with the target tracking algorithm and coordinate conversion, to determine the movement information and correlation of the target on the escalator, issue early warning information and perform early warning actions. Such as the control room alarm or the escalator stops.
It realizes automatic identification and early warning of passengers falling, items being stranded or slipping on the escalator, etc., improving monitoring efficiency and safety, reducing equipment costs, and does not require additional hardware integration.
Smart Images

Figure CN118803400A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of escalator safety monitoring, and in particular to a method and device for monitoring and warning of escalator passenger accidents based on visual detection. Background Art
[0002] As a common means of transportation in public places, escalators are becoming more and more common. Along with this, some safety issues and smooth operation issues of escalators are attracting more and more attention. At present, cameras are installed at the entrances and exits of escalators to observe the status of passengers or objects on the escalator, such as whether the passenger flow at the escalator entrance is congested, whether passengers have fallen, and whether large items are stranded or slipped. If the above accidents occur during the operation of the escalator, it may cause panic or injury to the passengers. At present, the accident monitoring of escalators mainly relies on integrated mechanical sensors, infrared sensors or visual monitoring, but these methods often need to be integrated and coupled with the escalator system, and the cost is uncontrollable. In addition, visual monitoring still relies on manual warnings, and the degree of automation is not high. Once manual participation is not timely, the degree of injury will be aggravated. Summary of the invention
[0003] In order to overcome the above-mentioned deficiencies of the prior art, the present application provides a method and device for monitoring and warning of escalator passenger accidents based on visual detection, which specifically adopts the following technical solutions: A method for monitoring and warning of escalator passenger accidents based on visual detection comprises the following steps: Based on the image recognition algorithm, the bounding box, posture information and category information of each target in the video stream are respectively obtained; the category information of the target includes at least passengers and carried objects; Based on the target tracking algorithm, the image coordinate position of the same target in the video stream is obtained respectively; Based on the camera with calibrated internal and external parameters and combined with the image coordinate position of the target, the world coordinates of each target are obtained: issuing a first warning message based on a change in a bounding box of the same object in adjacent frames in a video stream; Acquire motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, and issue a second warning information based on the target motion information; Determining the relevance between the passenger and the belongings based on the posture information and world coordinates of the passenger and the belongings, and issuing a third warning message based on the relevance between the passenger and the belongings; A warning action is performed according to the first warning information, the second warning information or the third warning information, and the warning action at least includes a control room alarm, an escalator alarm or an escalator stop.
[0004] Optional: When obtaining the world coordinates of each target based on the camera with calibrated internal and external parameters combined with the image coordinate position of the target, the coordinate conversion method used is: ; Obtain the homogeneous equation corresponding to target j based on the coordinate transformation method of target j; ; by As a scaling factor for homogeneous coordinates, we solve for: ; The world coordinates of the target are: ; in and The target in the video frame j The image coordinate position, The target in the video frame j The column position of the pixel. The target in the video frame j The horizontal column position of the pixel; K is the intrinsic parameter matrix of the camera, K -1 is the inverse matrix of the camera's intrinsic parameter matrix; R is the rotation matrix; t is the translation vector; , and For the goal j The world coordinates of For the goal j of X To world coordinates, For the goal j of Y To world coordinates, For the goal j of Z To world coordinates, For the goal j The known Z Towards world coordinate value; , and For the goal j The homogeneous coordinates of For the goal j of X To world coordinates The homogeneous coordinates of For the goal j of Y To world coordinates The homogeneous coordinates of For the goalj of Z To world coordinates The homogeneous coordinates of .
[0005] Optionally, the step of obtaining the first warning information based on the change of the bounding box of the same target in adjacent frames in the video stream includes: Get video frame i At least one set of diagonal coordinates of the bounding box of the object in A i,cor , B i,cor )and( a i,cor , b i,cor ); and according to the video frame i The diagonal coordinates of the bounding box of the target in the video frame are calculated i The bounding box area of the target in Get video frame i-1 At least one set of diagonal coordinates of the bounding box of the object in A i-1,cor , B i-1,cor )and( a i-1,cor , b i-1,cor ), and according to the video frame i-1 The diagonal coordinates of the bounding box of the target in the video frame are calculated i-1 The bounding box area of the target in Get the rate of change of the target's bounding box area based on the target's bounding box area in adjacent video frames: ; in is the rate of change of the bounding box area of the target; For video frames i The bounding box area of the target in For video frames i-1 The bounding box area of the target in For video frames i With video frame i-1 time interval between Determine the rate of change of the target bounding box area in adjacent video frames With preset threshold Size, if , it indicates that the target on the escalator has fallen, and the first warning information is issued; if , it indicates that there is no fall on the escalator, and the first warning information will not be issued at this time.
[0006] Optional: When acquiring the motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, a Kalman filter algorithm is used to calculate the motion speed of the target in the vertical direction, and the calculation steps include: Identify your goals j The initial state vector, the target j The state vector includes the target position and target speed , and based on the goal j The initial state vector establishes the state transfer equation: ; The observation equation is established based on the initial state vector of target j: ; in For the goal j exist k+1 The state vector at the moment; For the goal j exist k The state vector at the moment; For the goal j exist k The observation vector at the moment; A is the state transfer matrix; H is the observation matrix; is the process noise; is the observation noise; For the goal j State transition time interval; Predict the state vector of the target at the next moment based on the target's state transfer equation, and calculate the state vector of the target at the current moment based on the target's observation equation; Using the state vector at the current moment to correct the predicted state vector at the next moment, to obtain a corrected state vector; The target speed of the target at the next moment is obtained based on the corrected state vector.
[0007] Optional: When acquiring the motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, the world coordinates of the same target in adjacent video frames are used to calculate the motion speed of the target in the world coordinate system, and the calculation steps include: Get video frames separately i and video frames i-1 Medium Target j The world coordinates of Based on video frame i and video frames i-1 Medium Target j The world coordinates of the target j in adjacent video frames are calculated as follows: ; in For video frames i and video frames i-1 The linear motion distance of the target; It is the calculation function of the straight-line distance between two points in the world coordinate system; For video frames i Medium Target j The world coordinates of For video frames i-1 Medium Target j The world coordinates of Based on the target in adjacent video frames j Linear motion distance And the frame interval Calculate the target j The speed of movement in world coordinates.
[0008] Optionally, the step of issuing a second warning message based on the target motion information includes: Get the target in sequence j The speed of motion between adjacent video frames; Target-based j Get the target by changing the speed of movement j Movement trend of the target j: if the difference in movement speed of the target j at adjacent moments is greater than or equal to the preset threshold, it is judged that the target has slipped on the escalator, and a second warning message is issued at this time; if the difference in movement speed of the target j at adjacent moments is less than the preset threshold, it is judged that the target has not slipped on the escalator, and no second warning message is issued at this time.
[0009] Optionally, the step of issuing a second warning message based on the target motion information includes: Get the target in sequence j The motion speed between adjacent video frames and the escalator operation status are obtained; If the escalator is in the stopped state, determine the target j If the moving speed is 0 or the target stays on the escalator for more than 1 minute, it is judged that the target is staying on the escalator, and the second warning information is issued; If the escalator is in normal operation, the target j The movement speed is less than the normal operating speed or target speed of the escalator. j If the moving direction of the target is inconsistent with the normal operating direction of the escalator, it is judged that the target is moving in the reverse direction on the escalator, and a second warning message is issued.
[0010] Optionally, the step of determining the relevance between the passenger and the carried object based on the posture information and world coordinates of the passenger and the carried object includes: Get the world coordinates of passengers and objects respectively; Taking the coordinates of the luggage as the center, obtain the straight-line distance between different passengers and the same luggage; Setting the maximum safe distance for the luggage, which is the maximum distance range within which the luggage can be controlled by the passenger, and determining whether the straight-line distance between different passengers and the same luggage exceeds the maximum safe distance; Selecting passengers whose straight-line distance from the same object does not exceed the maximum safe distance, and determining posture information of the selected passengers, the posture information including the frequency of contact between the passenger and the object and the duration of contact between the passenger and the object; Based on the passenger's posture information, it is determined whether there is one or more passengers who meet the characteristics of the owner of the belongings within the maximum safe distance of the belongings. If so, it is determined that the passenger and the belongings are strongly correlated; if not, it is determined that the passenger and the belongings are weakly correlated.
[0011] Optionally, the step of issuing a third warning message based on the correlation between the passenger and the carried items includes: When it is determined that the passenger and the carried item are strongly correlated, the carried item is under the control of at least one passenger, and there is no risk of the carried item being separated, and the third warning information is not issued at this time; When it is determined that the passenger and the carried items are weakly correlated, the carried items are not under the control of the passenger and there is a risk of the carried items being out of the passenger's control, and at this time, a third warning message is issued.
[0012] Furthermore, the present application also discloses a visual detection-based escalator passenger accident monitoring and early warning device, the device comprising: An image recognition module, used to obtain the bounding box, posture information and category information of each target in the video stream based on an image recognition algorithm; the category information of the target includes at least passengers and carried objects; A target tracking module, used to obtain the image coordinate position of the same target in the video stream based on the target tracking algorithm; The coordinate conversion module is used to obtain the world coordinates of each target based on the camera with calibrated internal and external parameters and the image coordinate position of the target: A first warning module, configured to issue a first warning message based on a change in a bounding box of the same object in adjacent frames in a video stream; A second warning module is used to obtain motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, and issue a second warning information based on the target motion information; A third warning module, used to determine the relevance between the passenger and the belongings based on the passenger's posture information and the coordinate position of the belongings, and issue a third warning message based on the relevance between the passenger and the belongings; The warning execution module is used to perform warning actions according to the first warning information, the second warning information or the third warning information, and the warning actions at least include control room alarm, escalator alarm or escalator stop.
[0013] Beneficial Effects The technical solution of this application has the following beneficial effects: (1) The escalator passenger accident monitoring and early warning method of the present application can obtain the target state on the escalator by using the image information collected by the camera, and distinguish and warn based on the target state, so as to realize automatic identification of passengers falling, objects being trapped or slipping, crowded conditions, etc. on the escalator, and timely warning, thereby improving the escalator monitoring efficiency and ensuring the safety of escalator operation. In addition, the method can perform corresponding warning actions based on different warning information, such as control room alarm, escalator alarm or escalator stop, etc., to realize intelligent monitoring.
[0014] (2) The escalator passenger accident monitoring and early warning method of the present application utilizes existing surveillance cameras to monitor whether the escalator is operating abnormally when carrying people or goods, and does not require additional hardware integration, thereby greatly reducing equipment costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Flow chart of the escalator passenger accident monitoring and early warning method in an embodiment of the present application.
[0016] Figure 2 1 is a structural diagram of an escalator passenger accident monitoring and early warning device in an embodiment of the present application.
[0017] Figure 3 This is a structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The present application is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and cannot be used to limit the scope of protection of the present application. It should be noted that the following detailed descriptions are all exemplary and are intended to provide further explanation of the present application.
[0019] At present, the common way to monitor escalators is to use visual sensors, such as cameras, by setting up multiple cameras at the entrance, exit and middle of the escalator to collect image data of passengers or objects on the escalator, and then transmit the image data to the central control room to manually monitor the status of each escalator. However, this method relies on manual accident identification and judgment. Once the control personnel are negligent and fail to find a certain monitoring image in time, serious accidents will occur. Therefore, this application is based on the image data obtained by the original camera for further processing, and part or all of the data that needs to be manually identified is converted to a computer for automatic processing. Without increasing the cost of equipment, the image data is processed by the computer's internal algorithm, escalator accidents are automatically identified, and warnings are issued to the central control or escalator passengers.
[0020] Combination Figure 1 As shown, the embodiment of the present application specifically discloses a method for monitoring and warning of escalator passenger accidents based on visual detection, which includes the following steps: Step 1: Based on the image recognition algorithm, the bounding box, posture information and category information of each target in the video stream are obtained respectively; the category information of the target includes at least passengers and carrying objects; preferably, the embodiment of the present application adopts the NanoDet lightweight target detection network to detect targets on the escalator in real time to ensure fast and accurate target recognition.
[0021] Step 2: Based on the target tracking algorithm, the image coordinate positions of the same target in the video stream are obtained respectively; the embodiment of the present application preferably adopts the BoTSORT algorithm to continuously track the same target in the video stream, and obtains the coordinate positions of the same target in different video frames respectively.
[0022] Step 3: Based on the camera with calibrated internal and external parameters and combined with the image coordinate position of the target, the world coordinates of each target are obtained: Specifically, in the step 3, when obtaining the world coordinates of each target based on the camera with calibrated internal and external parameters combined with the image coordinate position of the target, the coordinate conversion method used is: ; Obtain the homogeneous equation corresponding to target j based on the coordinate transformation method of target j; ; by As a scaling factor for homogeneous coordinates, we solve for: ; The world coordinates of the target are: ; in and The target in the video frame j The image coordinate position, The target in the video frame j The column position of the pixel. The target in the video frame j The horizontal column position of the pixel; K is the intrinsic parameter matrix of the camera, K -1 is the inverse matrix of the camera's intrinsic parameter matrix; R is the rotation matrix; t is the translation vector; , and For the goal j The world coordinates of For the goal j of X To world coordinates, For the goal j of Y To world coordinates, For the goal j of Z To world coordinates, For the goal j The known Z Towards world coordinate value; , and For the goal j The homogeneous coordinates of For the goal j of X To world coordinates The homogeneous coordinates of For the goal j of Y To world coordinates The homogeneous coordinates of For the goal j of Z To world coordinates The homogeneous coordinates of .
[0023] It should be noted that in the process of calculating the world coordinates of the target in step three, the longitudinal coordinate of the target, that is, the Z-direction world coordinate value is a known constant. Since the height of the escalator in the longitudinal direction is fixed, by determining the longitudinal position (Z direction) of the target on the escalator in advance, the coordinates in other directions can be obtained by reverse calculation based on the longitudinal position (Z direction).
[0024] Step 4: Issue a first warning message based on the change of the bounding box of the same target in adjacent frames in the video stream.
[0025] Specifically, the specific process of obtaining the first warning information based on the change of the bounding box of the same target in adjacent frames in the video stream in step 4 includes: First get the video frame iAt least one set of diagonal coordinates of the bounding box of the object in A i,cor , B i,cor )and( a i,cor , b i,cor ); and according to the video frame i The diagonal coordinates of the bounding box of the target in the video frame are calculated i The bounding box area of the target in Then get the video frame i-1 At least one set of diagonal coordinates of the bounding box of the object in A i-1,cor , B i-1,cor )and( a i-1,cor , b i-1,cor ), and according to the video frame i-1 The diagonal coordinates of the bounding box of the target in the video frame are calculated i-1 The bounding box area of the target in The change rate of the target's bounding box area is obtained again based on the target's bounding box area in adjacent video frames: ; in is the rate of change of the target’s bounding box area; For video frames i The bounding box area of the target in For video frames i-1 The bounding box area of the target in For video frames i With video frame i-1 the time interval between Determine the rate of change of the target bounding box area in adjacent video frames With preset threshold Size, if , it indicates that the target on the escalator has fallen, and the first warning information is issued; if , it indicates that there is no fall on the escalator, and the first warning information will not be issued at this time.
[0026] It should be noted that step 4 uses the rate of change of the target bounding box to determine whether the target has fallen on the escalator. Generally, passengers or their belongings are in a stationary standing or uniform motion state when riding an escalator. At this time, the size of the bounding box of the target identified by the image recognition algorithm does not change much, that is, the area change of the target bounding box fluctuates little or does not fluctuate. Once a passenger or their belongings falls, the area of the target bounding box will change significantly in a short period of time. Therefore, by monitoring the rate of change of the target bounding box area, it is possible to determine whether the target on the escalator has fallen, and then issue a first warning message.
[0027] Step 5: Obtain motion information of the corresponding target based on the change in the world coordinate position of each target in the video stream, and issue a second warning message based on the target motion information.
[0028] As an implementation mode, in step 5, the moving speed of the target in the vertical direction is calculated by using a Kalman filter algorithm, and the calculation steps include: Identify your goals j The initial state vector, the target j The state vector includes the target position and target speed , and based on the goal j The initial state vector establishes the state transfer equation: ; The observation equation is established based on the initial state vector of target j: ; in For the goal j exist k+1 The state vector at the moment; For the goal j exist k The state vector at the moment; For the goal j exist k The observation vector at the moment; A is the state transfer matrix; H is the observation matrix; is the process noise; is the observation noise; For the goal j State transition time interval; Predict the state vector of the target at the next moment based on the target's state transfer equation, and calculate the state vector of the target at the current moment based on the target's observation equation; Using the state vector at the current moment to correct the predicted state vector at the next moment, to obtain a corrected state vector; The target speed of the target at the next moment is obtained based on the corrected state vector.
[0029] Based on the above method, it is only necessary to analyze the change in the target's moving speed in the longitudinal direction to determine whether the current target is in a sliding state on the escalator. When the target is stationary or walking at a constant speed, the target speed obtained by adjacent video frames will not change significantly within a certain period of time; when the target has a sliding accident, the target speed will change significantly in a short period of time. Therefore, by analyzing the change in the target speed, it is possible to accurately determine whether the target on the escalator has a sliding accident. Once a sliding accident occurs, a second warning message is issued in time to remind the central control personnel or passengers on the escalator.
[0030] As another feasible implementation, in step 5, the world coordinates of the same target in adjacent video frames may be used to calculate the moving speed of the target in the world coordinate system, and the calculation steps include: Get video frames separately i and video frames i-1 Medium Target j The world coordinates of Based on video frame i and video frames i-1 Medium Target j The world coordinates of the target j in adjacent video frames are calculated as follows: ; in For video frames i and video frames i-1 The linear motion distance of the target; It is the calculation function of the straight-line distance between two points in the world coordinate system; For video frames i Medium Target j The world coordinates of For video frames i-1 Medium Target j The world coordinates of Based on the target in adjacent video frames j Linear motion distance And the frame interval Calculate the target j The speed of movement in world coordinates.
[0031] After obtaining the world coordinates of the same target in each video frame, the coordinate trajectory of the corresponding target in the real space is determined. Based on the world coordinates of the target in the video frame, the average movement speed of the target between adjacent video frames can be calculated. By analyzing the change in the average movement speed of the target in a certain number of video frames, for example, when the target is stationary or walking at a constant speed, the average movement speed of the target obtained by adjacent video frames will not change significantly within a certain period of time; when the target slips, the average movement speed of the target will change significantly in a short period of time. Therefore, by analyzing the change in the average movement speed, it is possible to accurately determine whether the target on the escalator has slipped. Once a slip occurs, a second warning message is issued in time to remind the personnel in the control center or the passengers on the escalator.
[0032] Furthermore, the specific steps of issuing the second warning information based on the target motion information in step 5 include: Get the target in sequence j The speed of motion between adjacent video frames; Target-based j Get the target by changing the speed of movement j Movement trend: If the target j If the difference in speed at adjacent moments is greater than or equal to the preset threshold, it is determined that the target has slipped on the escalator, and a second warning message is issued; if the target j If the difference in movement speed at adjacent moments is less than a preset threshold, it is determined that the target has not slipped on the escalator, and the second warning information is not issued at this time.
[0033] In order to further avoid misjudgment caused by human running or stopping on the escalator in the embodiment of the present application, a specific threshold value can be pre-set when analyzing the target movement trend. When analyzing the change in the difference in the movement speed of the target at adjacent moments, generally when a person runs or stops, the movement speed change will have a certain time buffer (that is, the target speed does not suddenly increase or decrease in a short period of time, but slowly increases or decreases over a period of time), which is manifested in the small movement speed difference at adjacent moments. By setting a specific threshold value, human factors can be excluded, and the situation where the movement speed changes due to unexpected factors is retained as much as possible, so as to correctly warn of escalator accidents.
[0034] Furthermore, the step of issuing the second warning information based on the target motion information in step 5 further includes: Get the target in sequence j The motion speed between adjacent video frames and the escalator operation status are obtained; If the escalator is in the stopped state, determine the target j If the moving speed is 0 or the target stays on the escalator for more than 1 minute, it is judged that the target is staying on the escalator, and the second warning information is issued; If the escalator is in normal operation, the target j The movement speed is less than the normal operating speed or target speed of the escalator. j If the moving direction of the target is inconsistent with the normal operating direction of the escalator, it is judged that the target is moving in the reverse direction on the escalator, and a second warning message is issued.
[0035] The above method can be used to judge the target that is stranded on the escalator or the target that is moving in the reverse direction, so as to increase the types of escalator accident warnings of the method, expand the warning range, and improve the warning efficiency.
[0036] Step 6: determining the correlation between the passenger and the belongings based on the posture information and world coordinates of the passenger and the belongings, and issuing a third warning message based on the correlation between the passenger and the belongings; Specifically, the purpose of determining the correlation between the passenger and the object based on the posture information and world coordinates of the passenger and the object in step 6 is to further avoid the potential risk of objects on the escalator getting out of control and to issue an early warning for objects with a risk of getting out of control. The specific steps include: According to the process of steps 1 to 3, the world coordinates of the passenger and the carried objects can be obtained respectively; it should be noted that at this time, the world coordinates of the passenger and the carried objects can use the center coordinates of the bounding box as the world coordinates of the corresponding target, ignoring the difference in volume.
[0037] At this time, taking the coordinates of each carried object as the center, the straight-line distances between different passengers and the same carried object can be obtained respectively, and the straight-line distances can be obtained from the world coordinates of the passenger and the carried object; Setting the maximum safe distance for the luggage, which is the maximum distance range within which the luggage can be controlled by the passenger, and determining whether the straight-line distance between different passengers and the same luggage exceeds the maximum safe distance; Selecting passengers whose straight-line distance from the same object does not exceed the maximum safe distance, and determining posture information of the selected passengers, the posture information including the frequency of contact between the passenger and the object and the duration of contact between the passenger and the object; Based on the passenger's posture information, it is determined whether there is one or more passengers who meet the characteristics of the owner of the belongings within the maximum safe distance of the belongings. If so, it is determined that the passenger and the belongings are strongly correlated; if not, it is determined that the passenger and the belongings are weakly correlated.
[0038] Further, when it is judged that the passenger and the carried object are strongly correlated, the carried object is under the control of at least one passenger, and there is no risk of the carried object being separated, and the third warning information is not issued at this time; when it is judged that the passenger and the carried object are weakly correlated, the carried object is not under the control of the passenger, and there is a risk of the carried object being separated, and the third warning information is issued at this time.
[0039] Step 7: Perform an early warning action according to the first early warning information, the second early warning information or the third early warning information, wherein the early warning action at least includes a control room alarm, an escalator alarm or an escalator stop. It should be noted that the early warning actions executed by different early warning information can be automatically executed according to the pre-setting of the central control room personnel, or manually controlled by the central control room personnel.
[0040] In addition, combined Figure 2 As shown, the present application also discloses a visual detection-based escalator passenger accident monitoring and early warning device, the device comprising: An image recognition module, used to obtain the bounding box, posture information and category information of each target in the video stream based on an image recognition algorithm; the category information of the target includes at least passengers and carried objects; A target tracking module, used to obtain the image coordinate position of the same target in the video stream based on the target tracking algorithm; The coordinate conversion module is used to obtain the world coordinates of each target based on the camera with calibrated internal and external parameters and the image coordinate position of the target: A first warning module, configured to issue a first warning message based on a change in a bounding box of the same object in adjacent frames in a video stream; A second warning module is used to obtain motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, and issue a second warning information based on the target motion information; A third warning module, used to determine the relevance between the passenger and the belongings based on the passenger's posture information and the coordinate positions of the belongings, and issue a third warning message based on the relevance between the passenger and the belongings; The warning execution module is used to perform warning actions according to the first warning information, the second warning information or the third warning information, and the warning actions at least include control room alarm, escalator alarm or escalator stop.
[0041] The device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment will not be described again here.
[0042] like Figure 3 As shown, the embodiment of the present application also provides an electronic device, including a processor and a memory, a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the following is achieved: Figure 1 The various processes of the method embodiment shown in the figure can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0043] The embodiment of the present application also provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the above Figure 1The various processes of the method embodiments described above can achieve the same technical effect, and will not be described again here to avoid repetition.
[0044] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiments described above can achieve the same technical effect, and will not be described again here to avoid repetition.
[0045] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0046] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0047] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another device, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0048] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0049] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0050] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0051] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a terminal or a platform, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0052] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for monitoring and early warning of escalator passenger accidents based on visual detection, characterized in that: The steps include: Based on the image recognition algorithm, the bounding box, posture information and category information of each target in the video stream are respectively obtained; the category information of the target includes at least passengers and carried objects; Based on the target tracking algorithm, the image coordinate position of the same target in the video stream is obtained respectively; Based on the camera with calibrated internal and external parameters and combined with the image coordinate position of the target, the world coordinates of each target are obtained: issuing a first warning message based on a change in a bounding box of the same object in adjacent frames in a video stream; Acquire motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, and issue a second warning information based on the target motion information; Determining the relevance between the passenger and the belongings based on the posture information and world coordinates of the passenger and the belongings, and issuing a third warning message based on the relevance between the passenger and the belongings; A warning action is performed according to the first warning information, the second warning information or the third warning information, and the warning action at least includes a control room alarm, an escalator alarm or an escalator stop.
2. The escalator passenger accident monitoring and early warning method according to claim 1 is characterized in that: When the world coordinates of each target are obtained based on the camera with calibrated internal and external parameters combined with the image coordinate position of the target, the coordinate conversion method used is: ; Target-based j The coordinate transformation method obtains the corresponding target j The homogeneous equation for : ; by As a scaling factor for homogeneous coordinates, we solve for: ; The world coordinates of the target are: ; in and The target in the video frame j The image coordinate position, The target in the video frame j The column position of the pixel. The target in the video frame j The horizontal column position of the pixel; K is the intrinsic parameter matrix of the camera, K -1 is the inverse matrix of the camera's intrinsic parameter matrix; R is the rotation matrix; t is the translation vector; , and For the goal j The world coordinates of For the goal j of X To world coordinates, For the goal j of Y To world coordinates, For the goal j of Z To world coordinates, For the goal j The known Z Towards world coordinate value; , and For the goal j The homogeneous coordinates of For the goal j of X To world coordinates The homogeneous coordinates of For the goal j of Y To world coordinates The homogeneous coordinates of For the goal j of Z To world coordinates The homogeneous coordinates of .
3. The escalator passenger accident monitoring and early warning method according to claim 2 is characterized in that: The step of obtaining the first warning information based on the change of the bounding box of the same target in adjacent frames in the video stream includes: Get video frame i At least one set of diagonal coordinates of the bounding box of the object in A i,cor , B i,cor )and( a i,cor , b i,cor ); and according to the video frame i The diagonal coordinates of the bounding box of the target in the video frame are calculated i The bounding box area of the target in Get video frame i-1 At least one set of diagonal coordinates of the bounding box of the object in A i-1,cor , B i-1,cor )and( a i-1,cor , b i-1,cor ), and according to the video frame i-1 The diagonal coordinates of the bounding box of the target in the video frame are calculated i-1 The bounding box area of the target in Get the rate of change of the target's bounding box area based on the target's bounding box area in adjacent video frames: ; in is the rate of change of the target’s bounding box area; For video frames i The bounding box area of the target in For video frames i-1 The bounding box area of the target in For video frames i With video frame i-1 the time interval between Determine the rate of change of the target bounding box area in adjacent video frames With preset threshold Size, if , it indicates that the target on the escalator has fallen, and the first warning information is issued; if , it indicates that there is no fall on the escalator, and the first warning information will not be issued at this time.
4. The escalator passenger accident monitoring and early warning method according to claim 2 is characterized in that: When obtaining the motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, the Kalman filter algorithm is used to calculate the vertical motion speed of the target. The calculation steps include: Identify your goals j The initial state vector, the target j The state vector includes the target position and target speed , and based on the goal j The initial state vector establishes the state transfer equation: ; The observation equation is established based on the initial state vector of target j: ; in For the goal j exist k+1 The state vector at the moment; For the goal j exist k The state vector at the moment; For the goal j exist k The observation vector at the moment; A is the state transfer matrix; H is the observation matrix; is the process noise; is the observation noise; For the goal j State transition time interval; Predict the state vector of the target at the next moment based on the target's state transfer equation, and calculate the state vector of the target at the current moment based on the target's observation equation; Using the state vector at the current moment to correct the predicted state vector at the next moment, to obtain a corrected state vector; The target speed of the target at the next moment is obtained based on the corrected state vector.
5. The escalator passenger accident monitoring and early warning method according to claim 2 is characterized in that: When obtaining the motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, the world coordinates of the same target in adjacent video frames are used to calculate the motion speed of the target in the world coordinate system. The calculation steps include: Get video frames separately i and video frames i-1 Medium Target j The world coordinates of Based on video frame i and video frames i-1 Medium Target j The world coordinates of the target j in adjacent video frames are calculated as follows: ; in For video frames i and video frames i-1 The linear motion distance of the target; It is the calculation function of the straight-line distance between two points in the world coordinate system; For video frames i Medium Target j The world coordinates of For video frames i-1 Medium Target j The world coordinates of Based on the target in adjacent video frames j Linear motion distance And the frame interval Calculate the target j The speed of movement in world coordinates.
6. The escalator passenger accident monitoring and early warning method according to claim 4 or 5, characterized in that: The step of issuing the second warning information based on the target motion information comprises: Get the target in sequence j The speed of motion between adjacent video frames; Target-based j Get the target by changing the speed of movement j Movement trend of the target j: if the difference in movement speed of the target j at adjacent moments is greater than or equal to the preset threshold, it is judged that the target has slipped on the escalator, and a second warning message is issued at this time; if the difference in movement speed of the target j at adjacent moments is less than the preset threshold, it is judged that the target has not slipped on the escalator, and no second warning message is issued at this time.
7. The escalator passenger accident monitoring and early warning method according to claim 4 or 5, characterized in that: The step of issuing the second warning information based on the target motion information comprises: Get the target in sequence j The motion speed between adjacent video frames and the escalator operation status are obtained; If the escalator is in the stopped state, determine the target j If the moving speed is 0 or the target stays on the escalator for more than 1 minute, it is judged that the target is staying on the escalator, and the second warning information is issued; If the escalator is in normal operation, the target j The movement speed is less than the normal operating speed or target speed of the escalator. j If the moving direction of the target is inconsistent with the normal operating direction of the escalator, it is judged that the target is moving in the reverse direction on the escalator, and a second warning message is issued.
8. The escalator passenger accident monitoring and early warning method according to claim 1 is characterized in that: The step of determining the relevance between the passenger and the carried object based on the posture information and world coordinates of the passenger and the carried object comprises: Get the world coordinates of passengers and objects respectively; Taking the coordinates of the luggage as the center, obtain the straight-line distance between different passengers and the same luggage; Setting the maximum safe distance for the luggage, which is the maximum distance range within which the luggage can be controlled by the passenger, and determining whether the straight-line distance between different passengers and the same luggage exceeds the maximum safe distance; Selecting passengers whose straight-line distance from the same object does not exceed the maximum safe distance, and determining posture information of the selected passengers, the posture information including the frequency of contact between the passenger and the object and the duration of contact between the passenger and the object; Based on the passenger's posture information, it is determined whether there is one or more passengers who meet the characteristics of the owner of the belongings within the maximum safe distance of the belongings. If so, it is determined that the passenger and the belongings are strongly correlated; if not, it is determined that the passenger and the belongings are weakly correlated.
9. The escalator passenger accident monitoring and early warning method according to claim 8 is characterized in that: The step of issuing the third warning information based on the correlation between the passenger and the carried objects comprises: When it is determined that the passenger and the carried item are strongly correlated, the carried item is under the control of at least one passenger, and there is no risk of the carried item being separated, and the third warning information is not issued at this time; When it is determined that the passenger and the carried items are weakly correlated, the carried items are not under the control of the passenger and there is a risk of the carried items being out of the passenger's control, and at this time, a third warning message is issued.
10. An escalator passenger accident monitoring and early warning device based on visual detection, characterized in that: The device comprises: An image recognition module, used to obtain the bounding box, posture information and category information of each target in the video stream based on an image recognition algorithm; the category information of the target includes at least passengers and carried objects; A target tracking module, used to obtain the image coordinate position of the same target in the video stream based on the target tracking algorithm; The coordinate conversion module is used to obtain the world coordinates of each target based on the camera with calibrated internal and external parameters and the image coordinate position of the target: A first warning module, configured to issue a first warning message based on a change in a bounding box of the same object in adjacent frames in a video stream; A second warning module is used to obtain motion information of the corresponding target based on the change of the world coordinate position of each target in the video stream, and issue a second warning information based on the target motion information; A third warning module, used to determine the relevance between the passenger and the belongings based on the passenger's posture information and the coordinate position of the belongings, and issue a third warning message based on the relevance between the passenger and the belongings; The warning execution module is used to perform warning actions according to the first warning information, the second warning information or the third warning information, and the warning actions at least include control room alarm, escalator alarm or escalator stop.
Citation Information
Patent Citations
Escalator passenger dangerous behavior monitoring system and method based on visual analysis
CN110188644A
Escalator passenger safety early warning device and method
CN110294397A
Escalator detection method, escalator accident early warning method, electronic equipment and storage medium
CN117809237A
Escalator anti-collision early warning method and system and medium
CN118306882A
Speed detection system of passenger conveyor and speed detection method thereof
US20180029839A1
