CN115620228A - A video analysis-based early warning method for passengers entering the subway screen door - Google Patents
A video analysis-based early warning method for passengers entering the subway screen door Download PDFInfo
- Publication number
- CN115620228A CN115620228A CN202211251732.9A CN202211251732A CN115620228A CN 115620228 A CN115620228 A CN 115620228A CN 202211251732 A CN202211251732 A CN 202211251732A CN 115620228 A CN115620228 A CN 115620228A
- Authority
- CN
- China
- Prior art keywords
- door
- target
- passenger
- risk
- early warning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004458 analytical method Methods 0.000 title claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 11
- 238000012502 risk assessment Methods 0.000 claims description 10
- 238000013528 artificial neural network Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 7
- 230000009466 transformation Effects 0.000 claims description 6
- 230000006399 behavior Effects 0.000 abstract description 5
- 230000002411 adverse Effects 0.000 abstract description 3
- 230000000694 effects Effects 0.000 abstract description 3
- 238000011156 evaluation Methods 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 206010000117 Abnormal behaviour Diseases 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/52—Surveillance or monitoring of activities, e.g. for recognising suspicious objects
- G06V20/53—Recognition of crowd images, e.g. recognition of crowd congestion
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B61—RAILWAYS
- B61K—AUXILIARY EQUIPMENT SPECIALLY ADAPTED FOR RAILWAYS, NOT OTHERWISE PROVIDED FOR
- B61K13/00—Other auxiliaries or accessories for railways
- B61K13/04—Passenger-warning devices attached to vehicles; Safety devices for preventing accidents to passengers when entering or leaving vehicles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/62—Extraction of image or video features relating to a temporal dimension, e.g. time-based feature extraction; Pattern tracking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/103—Static body considered as a whole, e.g. static pedestrian or occupant recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
- G06V40/23—Recognition of whole body movements, e.g. for sport training
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Mechanical Engineering (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
Description
技术领域technical field
本发明涉及城市轨道交通智慧车站,特别是一种基于视频分析进行屏蔽门临关门乘客闯门预警的方法。The invention relates to an urban rail transit smart station, in particular to a method for pre-warning a screen door for a passenger entering the door when the screen door is about to close based on video analysis.
背景技术Background technique
地铁由于安全、准点、快捷、舒适、环保等诸多优点,已经成为很多城市公共交通的主要工具和大力发展的领域。智慧地铁本质上是通过智能化赋能列车车辆、线网车站、站场、调度管理、运维保障等各系统,以达到提升运营效率、降低运营风险、提高乘客服务满意度等目标。基于云计算、物联网和人工智能等技术的智慧地铁技术和应用的发展如火如荼。近年来,人脸识别无感支付过闸,语音识别智慧客服、基于智能视频分析的车站运营等系统已在国内主要城市进行了示范应用并取得了实际成效。Due to many advantages such as safety, punctuality, fastness, comfort, and environmental protection, the subway has become the main tool and vigorously developed field of public transportation in many cities. The essence of smart subway is to intelligently empower train vehicles, network stations, station yards, dispatch management, operation and maintenance guarantee and other systems to achieve the goals of improving operational efficiency, reducing operational risks, and improving passenger service satisfaction. The development of smart subway technology and applications based on technologies such as cloud computing, Internet of Things and artificial intelligence is in full swing. In recent years, systems such as face recognition for non-inductive payment gates, voice recognition smart customer service, and station operation based on intelligent video analysis have been demonstrated and applied in major cities in China and have achieved practical results.
在智慧车站场景中,通过连接信号系统的CCTV进行智能视频分析可以对电扶梯逆行、楼梯拥挤、隔栏递物、乘客摔倒、物品遗漏等异常场景进行检测,提高了异常事件发现的主动性和及时性。在乘客乘车全过程中,临近关门时段的乘客闯门行为是危及乘客安全和行车安全的一种高危行为。通常屏蔽门和列车车门都配备了防加持的功能,但是这些功能仅对刚性且尺寸较大物体夹持有反馈,这使得大量的乘客闯门事件直接导致车门无法正常关闭,车辆无法正常运行的事故,更有严重导致乘客被夹持在屏蔽门和车门间导致身亡的重大事故。近年来,部分城市在屏蔽门和列车门的门缝之间的异物检测方面进行了基于可见光视觉和激光雷达等传感器的新设备的有益探索,但是依然只能解决已发生了夹人夹物的事后应急和联动处理,始终缺乏缺乏主动的闯门预警手段。传统在站台层配置的CCTV监控通常是采用平行与车轨的几组摄像头,不利视场和车站级的中高延迟视频分析无法应对每个门乘客闯门快速运动情况下的预警。In the smart station scenario, intelligent video analysis through CCTV connected to the signal system can detect abnormal scenes such as escalator retrograde, crowded stairs, delivery of objects on the fence, passengers falling, and missing items, which improves the initiative of abnormal event discovery and timeliness. During the whole process of passengers riding, the behavior of passengers breaking into the door near the closing time is a high-risk behavior that endangers the safety of passengers and driving. Usually screen doors and train doors are equipped with anti-bracketing functions, but these functions only have feedback on the clamping of rigid and large objects, which makes a large number of passenger break-in events directly cause the doors to fail to close normally, and the vehicle cannot operate normally. Accidents, more seriously cause passengers to be clamped between the screen door and the car door and cause fatal major accidents. In recent years, some cities have carried out beneficial exploration of new equipment based on sensors such as visible light vision and lidar in the detection of foreign objects between screen doors and train doors, but they still can only solve the problem of people and objects that have occurred. There has always been a lack of proactive means of early warning for door breaks in emergency and linkage processing after the event. The traditional CCTV monitoring at the platform level usually uses several sets of cameras parallel to the train tracks. The unfavorable field of view and the high-latency video analysis at the station level cannot cope with the early warning of the rapid movement of passengers entering each door.
本发明基于安装于每个屏蔽门门头的具有斜向下视角的摄像头和乘客闯门预警终端系统的现场计算能力,提供了一种基于视频分析的地铁屏蔽门临关门乘客闯门预警方法,以降低乘客闯门行为对行车和乘客安全造成不利影响。The present invention provides a video analysis-based early warning method for passengers entering the door of a subway screen door, based on a camera with an oblique downward viewing angle installed at the head of each screen door and the on-site computing capability of the passenger entry warning terminal system. In order to reduce the adverse impact of passengers' door-breaking behavior on driving and passenger safety.
发明内容Contents of the invention
发明目的:本发明的目的是提供一种基于视频分析的地铁屏蔽门临关门乘客闯门预警方法,从而通过主动闯门预警降低乘客闯门行为对行车和乘客安全造成不利影响。Purpose of the invention: The purpose of the present invention is to provide a video analysis-based early warning method for passengers entering the subway screen door when it is about to close, so as to reduce the adverse effects of passenger breaking behavior on driving and passenger safety through active door-breaking warnings.
技术方案:为解决上述技术问题,本发明采用的技术方案为:Technical solution: In order to solve the above-mentioned technical problems, the technical solution adopted in the present invention is:
第一方面,提供一种基于视频分析的地铁屏蔽门临关门乘客闯门预警方法,包括:In the first aspect, a video analysis-based early warning method for passengers entering the subway screen door when it is about to close is provided, including:
步骤S1:在距离关门时间还剩T秒,按照预设帧率R连续不断的获取视场F的视频帧I1、I2、....Ii、....;Step S1: With T seconds left before the closing time, continuously acquire the video frames I 1 , I 2 , ... I i , ... of the field of view F according to the preset frame rate R;
步骤S2:针对当前视频帧Ii,基于YOLOv5神经网络检测行人目标并基于Deepsort与前序视频帧中的检出目标进行关联,以实现对目标O1、O2、...、On的连续追踪,其中n为所有的行人目标的数量,通过透视变换将目标在视场F中的运动轨迹转换为对应门前区域H中的目标连续运动轨迹Tr1(t)、Tr2(t)、...Trn(t);Step S2: For the current video frame I i , detect the pedestrian target based on the YOLOv5 neural network and associate it with the detected target in the previous video frame based on Deepsort , so as to realize the detection of the target O 1 , O 2 , ..., On Continuous tracking, where n is the number of all pedestrian targets, and the movement trajectory of the target in the field of view F is converted into the continuous movement trajectory Tr 1 (t) and Tr 2 (t) of the target in the area H in front of the corresponding door through perspective transformation 、...Tr n (t);
步骤S3:利用行人目标O1、O2、...、On在门前区域H中的运动轨迹Tri(t)数据进行单目标闯门风险评估,计算每个目标的连续风险评估值R1(t)、R2(t)、...、Rn(t),并综合单目标风险生成该门面临的总乘客闯门风险RH(t);Step S3: Use the movement trajectory Tri (t) data of pedestrian targets O 1 , O 2 ,..., O n in the area H in front of the door to conduct single-target door-breaking risk assessment, and calculate the continuous risk assessment value of each target R 1 (t), R 2 (t), ..., R n (t), and synthesize the single-objective risk to generate the total risk RH(t) of passengers entering the door;
步骤S4:基于该门面临的总乘客闯门风险RH(t)和预设的二级阈值,进行分级闯门预警处置。Step S4: Based on the total passenger entry risk RH(t) faced by the door and the preset secondary threshold, carry out hierarchical door entry warning treatment.
在一些实施例中,所述步骤S1中,视场F的视频帧的采集方法包括:In some embodiments, in the step S1, the method for collecting video frames of the field of view F includes:
根据列车行车调度信号系统的时间计划,安装于屏蔽门门头的乘客闯门预警终端系统,在距离关门时间还剩T秒时开启临关门乘客闯门预警功能,系统的视频采集模块利用安装于屏蔽门正上方斜向下视角的摄像头进行视频帧的采集。According to the time plan of the train dispatching signal system, the passenger entry warning terminal system installed at the head of the screen door will start the warning function of the passenger entry warning function when there are T seconds left before the closing time of the door. The video acquisition module of the system utilizes the The camera with an oblique downward viewing angle right above the screen door collects video frames.
在一些实施例中,所述步骤S2包括:In some embodiments, the step S2 includes:
S201:对步骤S1采集的当前视频帧Ii,基于YOLOv5神经网络检测行人目标检测,检测输出O1、O2、...、On共n个行人目标,若未检测到行人目标则输出NULL;S201: For the current video frame I i collected in step S1, detect pedestrian targets based on the YOLOv5 neural network, and output n pedestrian targets O 1 , O 2 , ..., O n , if no pedestrian targets are detected, output NULL;
S202:若S201输出为NULL,则循环执行S201步骤对S1输出的下一帧Ii+1进行行人目标检测操作,直到当前时刻t=T;S202: If the output of S201 is NULL, execute step S201 in a loop to perform pedestrian target detection operation on the next frame I i+1 output by S1 until the current moment t=T;
若步骤S201检测到了行人目标则根据上一帧Ii-1记录的目标检测结果进行Deepsort目标关联追踪操作,形成O1、O2、...、On个目标在视场F中的运动轨迹K1(t)、K2(t)、...Kn(t);If the pedestrian target is detected in step S201, perform the Deepsort target association tracking operation according to the target detection result recorded in the last frame I i-1 , and form O 1 , O 2 ,..., O n target movements in the field of view F trajectories K 1 (t), K 2 (t), . . . K n (t);
S203:通过事先标定的透视变换矩阵,将K1(t)、K2(t)、...Kn(t)变换为门前区域H对应的俯视图坐标下的轨迹Tr1(t)、Tr2(t)、...Trn(t)。S203: Transform K 1 (t), K 2 (t), ... K n (t) into trajectories Tr 1 (t), Tr 2 (t), ... Tr n (t).
在一些实施例中,所述步骤S3包括:In some embodiments, the step S3 includes:
S301:对所有检出并生成了运动轨迹Tri(t)的目标Oi,连续估计其运动方向与Y轴的夹角ui,门前区域H的坐标系统定义为以中线向下方向为Y轴,以H区域上边线向右方向为X轴;S301: For all targets O i that have detected and generated motion trajectories T i (t), continuously estimate the angle u i between their motion direction and the Y axis, and define the coordinate system of the area H in front of the door as taking the downward direction of the center line as Y-axis, the X-axis is the rightward direction of the upper edge of the H area;
S302:对所有检出并生成了运动轨迹Tri(t)的目标Oi,连续估计其运动速度的Y轴分量vi,门前区域H的坐标系统定义为以中线向下方向为Y轴,以H区域上边线向右方向为X轴;S302: For all targets O i that have detected and generated motion trajectories Tri (t), continuously estimate the Y-axis component v i of their motion speeds , and define the coordinate system of the area H in front of the door as the Y-axis in the downward direction of the center line , taking the rightward direction of the upper edge of the H area as the X-axis;
S303:对所有检出并生成了运动轨迹Tri(t)的目标Oi,记目标Oi距离H区域底线的Y方向的距离为Di;S303: For all detected and generated objects O i with motion trajectories Tri (t ) , record the distance between the objects O i and the bottom line of the H area in the Y direction as D i ;
根据Ri(t)=max(cos(ui),0)×max(1.5-vi×(T-t)/Di,0)计算当前时刻t的目标Oi闯门风险;According to R i (t)=max(cos(u i ),0)×max(1.5-v i ×(Tt)/D i ,0), calculate the risk of the target O i breaking through the door at the current moment t;
S304:计算该门面临的总乘客闯门风险为:RH(t)=max(R1(t),R2(t),...,Rn(t))。S304: Calculate the total risk of passengers breaking through the door: RH(t)=max(R 1 (t), R 2 (t), . . . , R n (t)).
在一些实施例中,所述步骤S4包括:In some embodiments, the step S4 includes:
对总乘客闯门风险RH(t)超过第一阈值Th1的一级响应,通过安装于屏蔽门上方的声光告警装置对乘客进行提醒;The first-level response to the total passenger door-breaking risk RH(t) exceeding the first threshold Th 1 is to remind passengers through the sound and light alarm device installed above the screen door;
对总乘客闯门风险RH(t)超过第二阈值Th2的二级响应,保持声光告警的同时,联动屏蔽门和车门控制系统以保持屏蔽门和车门开启,直至该门总乘客闯门风险RH(t)归零后再联动屏蔽门和车门控制系统关闭屏蔽门和车门,其中第二阈值Th2大于第一阈值Th1。The secondary response to the total passenger entry risk RH(t) exceeding the second threshold Th 2 is to keep the acousto-optic alarm and at the same time link the screen door and the car door control system to keep the screen door and the car door open until the total number of passengers enter the door After the risk RH(t) returns to zero, the shielded door and the car door control system are linked to close the shielded door and the car door, wherein the second threshold Th 2 is greater than the first threshold Th 1 .
所述步骤S4还包括:The step S4 also includes:
在进行一级响应或二级响应的同时记录并生成并保存乘客闯门的视频记录。Record and generate and save a video recording of a passenger entering a door while performing a primary or secondary response.
在一些实施例中,第一阈值Th1为0.25,第二阈值Th2为0.5。In some embodiments, the first threshold Th 1 is 0.25, and the second threshold Th 2 is 0.5.
第二方面,本发明提供了一种基于视频分析的地铁屏蔽门临关门乘客闯门预警装置,包括处理器及存储介质;In a second aspect, the present invention provides a video analysis-based early warning device for passengers entering the door of a subway screen door that is about to close, including a processor and a storage medium;
所述存储介质用于存储指令;The storage medium is used to store instructions;
所述处理器用于根据所述指令进行操作以执行根据第一方面所述方法的步骤。The processor is configured to operate in accordance with the instructions to perform the steps of the method according to the first aspect.
第三方面,本发明提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述方法的步骤。In a third aspect, the present invention provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
有益效果:与现有技术相比,本发明具有如下优点:Beneficial effect: compared with the prior art, the present invention has the following advantages:
1、乘客闯门给车站安全运营和车辆安全有序运行造成了巨大风险,本发明解决了当前车站和列车均缺乏乘客闯门预警机制的问题,提供了一种降低乘客闯门发生率和极端情况下夹人夹物风险的有效方案;1. Passenger breaking the door has caused huge risks to the safe operation of the station and the safe and orderly operation of the vehicles. The present invention solves the problem that the current stations and trains lack an early warning mechanism for passenger breaking the door, and provides a method to reduce the incidence of passenger breaking the door and extreme risk. An effective solution for the risk of entrapment under certain circumstances;
2、相比于基于站厅已有视频监控的乘客异常行为检测,本发明基于安装配置于屏蔽门门头上的智能计算单元的有利视场和终端实时计算能力,可提供面向每个单门的乘客闯门预警,具备更高的实时性和可靠性。2. Compared with the abnormal behavior detection of passengers based on the existing video surveillance in the station hall, the present invention can provide information for each single door based on the favorable field of view and real-time computing capabilities of the intelligent computing unit installed on the screen door. Passengers break the door early warning, with higher real-time and reliability.
附图说明Description of drawings
图1为本发明实施例的基于视频分析的地铁屏蔽门临关门乘客闯门预警方法的流程图;Fig. 1 is the flow chart of the method for early warning of passenger break-in of the subway screen door near closing door based on the video analysis of the embodiment of the present invention;
图2为实施例中行人目标在门前区域的运动方向和速度示意图。Fig. 2 is a schematic diagram of the moving direction and speed of the pedestrian target in the area in front of the door in the embodiment.
具体实施方式detailed description
为使本发明实现的技术手段、创作特征、达成目的与功效易于明白了解,下面结合具体实施方式进一步阐述本发明。In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific embodiments.
在本发明的描述中,若干的含义是一个以上,多个的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, several means more than one, and multiple means more than two. Greater than, less than, exceeding, etc. are understood as not including the original number, and above, below, within, etc. are understood as including the original number. If the description of the first and second is only for the purpose of distinguishing the technical features, it cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features relation.
本发明的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the present invention, reference to the terms "one embodiment," "some embodiments," "exemplary embodiments," "examples," "specific examples," or "some examples" is intended to mean that the embodiments are A specific feature, structure, material, or characteristic described by or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
实施例1Example 1
一种基于视频分析的地铁屏蔽门临关门乘客闯门预警方法,包括:A video analysis-based early warning method for passengers entering a subway screen door when it is about to close, including:
步骤S1:在距离关门时间还剩T秒,按照预设帧率R连续不断的获取视场F的视频帧I1、I2、....Ii、....;Step S1: With T seconds left before the closing time, continuously acquire the video frames I 1 , I 2 , ... I i , ... of the field of view F according to the preset frame rate R;
步骤S2:针对当前视频帧Ii,基于YOLOv5神经网络检测行人目标并基于Deepsort与前序视频帧中的检出目标进行关联,以实现对目标O1、O2、...、On的连续追踪,其中n为所有的行人目标的数量,通过透视变换将目标在视场F中的运动轨迹转换为对应门前区域H中的目标连续运动轨迹Tr1(t)、Tr2(t)、...Trn(t);Step S2: For the current video frame I i , detect the pedestrian target based on the YOLOv5 neural network and associate it with the detected target in the previous video frame based on Deepsort , so as to realize the detection of the target O 1 , O 2 , ..., On Continuous tracking, where n is the number of all pedestrian targets, and the movement trajectory of the target in the field of view F is converted into the continuous movement trajectory Tr 1 (t) and Tr 2 (t) of the target in the area H in front of the corresponding door through perspective transformation 、...Tr n (t);
步骤S3:利用行人目标O1、O2、...、On在门前区域H中的运动轨迹Tri(t)数据进行单目标闯门风险评估,计算每个目标的连续风险评估值R1(t)、R2(t)、...、Rn(t),并综合单目标风险生成该门面临的总乘客闯门风险RH(t);Step S3: Use the movement trajectory Tri (t) data of pedestrian targets O 1 , O 2 ,..., O n in the area H in front of the door to conduct single-target door-breaking risk assessment, and calculate the continuous risk assessment value of each target R 1 (t), R 2 (t), ..., R n (t), and synthesize the single-objective risk to generate the total risk RH(t) of passengers entering the door;
步骤S4:基于该门面临的总乘客闯门风险RH(t)和预设的二级阈值,进行分级闯门预警处置。Step S4: Based on the total passenger entry risk RH(t) faced by the door and the preset secondary threshold, carry out hierarchical door entry warning treatment.
在一些实施例中,如图1所示,一种基于视频分析的地铁屏蔽门临关门乘客闯门预警方法,其步骤是:在临关门时刻启动安装于屏蔽门门头的乘客闯门预警终端系统,视频采集模块按照给定帧率连续采集视频帧;视频分析模块基于YOLOv5和Deepsort连续不断计算行人目标在门前区域的运动轨迹;闯门风险评估模块基于所有行人目标的运动轨迹计算该门面临的总乘客闯门风险;对评估风险超过给定阈值的情况,进行包括声光报警和门控联动的闯门预警处置。In some embodiments, as shown in FIG. 1 , a video analysis-based method for early warning of passenger entry of a subway screen door when it is about to close. System, the video acquisition module continuously collects video frames at a given frame rate; the video analysis module continuously calculates the movement trajectory of pedestrian targets in the area in front of the door based on YOLOv5 and Deepsort; The total risk of passengers entering the door; when the assessed risk exceeds a given threshold, a door entry warning including sound and light alarms and door control linkage is carried out.
在本实施例具体步骤如下:In this embodiment, the specific steps are as follows:
S1:根据列车行车调度信号系统的时间计划,安装于屏蔽门门头的乘客闯门预警终端系统,在距离关门时间还剩T秒(根据车站开启闯门和预警的具体配置,T值建议设置为10S)时开启临关门乘客闯门预警功能,该系统的视频采集模块利用安装于屏蔽门正上方斜向下视角的的摄像头按照帧率R(为保证运动检测的实时性,建议帧率不低于720@60fps)连续不断的获取视场F的视频帧I1、I2、....;S1: According to the time plan of the train dispatching signal system, the passenger entry warning terminal system installed at the head of the screen door has T seconds left before the door closing time (according to the specific configuration of the station opening entry and early warning, the T value is recommended to be set 10S) to enable the pre-warning function of the passenger entering the door when the door is closing. The video acquisition module of the system uses the camera installed directly above the screen door with an obliquely downward angle of view to follow the frame rate R (in order to ensure the real-time performance of motion detection, it is recommended that the frame rate be lower than lower than 720@60fps) to continuously acquire the video frames I 1 , I 2 , ... of the field of view F;
S2:针对当前帧Ii,基于YOLOv5神经网络检测行人目标并基于Deepsort与前序帧中的检出目标进行关联,以实现对目标O1、O2、...、On的连续追踪,其中n为所有的行人目标的数量,通过透视变换(透视变换矩阵基于相机镜头参数和安装位置等参数事先计算,并在保证安装精度的情况下全线共用统一的透视变换矩阵)将目标在视场F中的运动轨迹转换为对应门前区域H中的目标连续运动轨迹Tr1(t)、Tr2(t)、...Trn(t);S2: For the current frame I i , detect the pedestrian target based on the YOLOv5 neural network and associate it with the detected target in the previous frame based on Deepsort , so as to realize the continuous tracking of the target O 1 , O 2 ,..., On, Among them, n is the number of all pedestrian targets, through perspective transformation (the perspective transformation matrix is calculated in advance based on parameters such as camera lens parameters and installation positions, and the whole line shares a unified perspective transformation matrix under the condition of ensuring installation accuracy) to place the target in the field of view The motion trajectory in F is converted into the target continuous motion trajectory Tr 1 (t), Tr 2 (t), ... Tr n (t) in the area H in front of the corresponding door;
S3:利用行人目标O1、O2、...、On在门前区域H中的运动轨迹Tri(t)数据进行单目标闯门风险评估,计算每个目标的连续风险评估值R1(t)、R2(t)、...、Rn(t),并综合单目标风险生成该门面临的总乘客闯门风险RH(t);S3: Use the movement trajectory Tri (t) data of pedestrian targets O 1 , O 2 ,..., O n in the area H in front of the door to conduct single-target door-breaking risk assessment, and calculate the continuous risk assessment value R of each target 1 (t), R 2 (t), ..., R n (t), and the single-objective risk is combined to generate the total passenger entry risk RH(t) faced by the door;
S4:基于该门总乘客闯门风险RH(t)和设定的二级阈值,进行包括声光报警和门控联动的分级闯门预警处置。S4: Based on the total passenger entry risk RH(t) of the door and the set secondary threshold, carry out hierarchical door entry warning treatment including sound and light alarm and door control linkage.
在本实施例中,步骤S2具体包括以下步骤:In this embodiment, step S2 specifically includes the following steps:
S201:对S1步骤采集的当前帧Ii,基于YOLOv5神经网络检测行人目标检测,检测输出O1、O2、...、On共n个行人目标,若未检测到行人目标则输出NULL;S201: For the current frame I i collected in step S1, detect pedestrian targets based on the YOLOv5 neural network, and output n pedestrian targets O 1 , O 2 , ..., O n in total. If no pedestrian target is detected, output NULL ;
S202:若S201输出为NULL,则循环执行S201步骤对S1输出的下一帧Ii+1进行行人目标检测操作,直到t=T;若S201步骤检测到了行人目标则根据上一帧Ii-1记录的目标检测结果进行Deepsort目标关联追踪操作,形成O1、O2、...、On个目标在视场F中的运动轨迹K1(t)、K2(t)、...Kn(t);S202: If the output of S201 is NULL, execute step S201 in a loop to detect the pedestrian target on the next frame I i +1 output by S1 until t=T; 1 The recorded target detection results are subjected to the Deepsort target association tracking operation to form the motion trajectories K 1 (t), K 2 (t), ... of O 1 , O 2 , ..., O n targets in the field of view F .K n (t);
S203:通过事先标定的透视变换矩阵,将K1(t)、K2(t)、...Kn(t)转化为门前区域H对应的俯视图坐标下的轨迹Tr1(t)、Tr2(t)、...Trn(t);S203: Transform K 1 (t), K 2 (t), ... K n (t) into trajectories Tr 1 (t), Tr 2 (t), ... Tr n (t);
在本实施例中,步骤S2具体包括以下步骤:In this embodiment, step S2 specifically includes the following steps:
S301:对所有检出并生成了运动轨迹Tri(t)的目标Oi,连续估计其运动方向与Y轴的夹角ui,如图2所示,门前区域H的坐标系统定义为以中线向下方向为Y轴,以H区域上边线向右方向为X轴;S301: For all targets O i that have detected and generated motion trajectories T i (t), continuously estimate the angle u i between their motion direction and the Y axis, as shown in Figure 2, the coordinate system of the area H in front of the door is defined as Take the downward direction of the midline as the Y axis, and take the rightward direction of the upper edge of the H area as the X axis;
S302:对所有检出并生成了运动轨迹Tri(t)的目标Oi,连续估计其运动速度的Y轴分量vi,如图2所示,门前区域H的坐标系统定义为以中线向下方向为Y轴,以H区域上边线向右方向为X轴;S302: For all targets O i that have detected and generated motion trajectories T i (t), continuously estimate the Y-axis component v i of their motion speeds. As shown in Figure 2, the coordinate system of the area H in front of the door is defined as the center line The downward direction is the Y axis, and the rightward direction of the upper edge of the H area is the X axis;
S303:对所有检出并生成了运动轨迹Tri(t)的目标Oi,记目标Oi距离H区域底线的Y方向的距离为Di,根据Ri(t)=max(cos(ui),0)×max(1.5-vi×(T-t)/Di,0)计算当前时刻t的目标Oi闯门风险。S303: For all objects O i that have detected and generated motion trajectories Tri (t), record the distance between the objects O i and the bottom line of the H area in the Y direction as D i , according to R i ( t)=max(cos(u i ),0)×max(1.5-v i ×(Tt)/D i ,0) calculates the door-breaking risk of the target O i at the current moment t.
S304:计算该门位置的总乘客闯门风险为RH(t)=max(R1(t),R2(t),...,Rn(t))。S304: Calculate the total risk of passengers entering the door at the door position as RH(t)=max(R 1 (t), R 2 (t), . . . , R n (t)).
在本实施例中,步骤S4中具体包括以下步骤:In this embodiment, step S4 specifically includes the following steps:
S401:对总乘客闯门风险RH(t)超过阈值Th1的情况(根据闯门风险评估的灵敏度要求,Th1建议设置为0.25),通过安装于屏蔽门上方的声光告警装置进行提醒;S401: When the total passenger entry risk RH(t) exceeds the threshold Th 1 (according to the sensitivity requirements of the entry risk assessment, Th 1 is recommended to be set to 0.25), remind through the sound and light alarm device installed above the screen door;
S402:对总乘客闯门风险RH(t)超过比阈值Th1更高的阈值Th2的情况(根据闯门风险评估的灵敏度要求,Th2建议设置为0.5),保持声光告警,并联动屏蔽门和车门控制系统保持车门开启,直至该门总乘客闯门风险RH(t)归零后再联动屏蔽门和车门控制系统关闭屏蔽门和车门;S402: When the total passenger entry risk RH(t) exceeds the threshold Th 2 which is higher than the threshold Th 1 (according to the sensitivity requirements of the door entry risk assessment, Th 2 is recommended to be set to 0.5), maintain audible and visual alarms, and link them The screen door and car door control system keeps the car door open until the total passenger entry risk RH(t) of the door returns to zero, and then the screen door and car door control system is linked to close the screen door and car door;
S403:在进行一级和二级响应的同时记录并生成并保存乘客闯门的视频记录。S403: Recording and generating and saving a video record of the passenger breaking the door while performing the primary and secondary responses.
实施例2Example 2
第二方面,本实施例提供了一种基于视频分析的地铁屏蔽门临关门乘客闯门预警装置,包括处理器及存储介质;In the second aspect, the present embodiment provides a video analysis-based early warning device for passengers entering the subway screen door when the door is about to close, including a processor and a storage medium;
所述存储介质用于存储指令;The storage medium is used to store instructions;
所述处理器用于根据所述指令进行操作以执行根据实施例1所述方法的步骤。The processor is configured to operate according to the instructions to execute the steps of the method according to Embodiment 1.
实施例3Example 3
第三方面,本实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现实施例1所述方法的步骤。In a third aspect, this embodiment provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in Embodiment 1 are implemented.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow diagram procedure or procedures and/or block diagram procedures or blocks.
由技术常识可知,本发明可以通过其它的不脱离其精神实质或必要特征的实施方案来实现。因此,上述公开的实施方案,就各方面而言,都只是举例说明,并不是仅有的。所有在本发明范围内或在等同于本发明的范围内的改变均被本发明包含。It can be known from common technical knowledge that the present invention can be realized through other embodiments without departing from its spirit or essential features. Accordingly, the above-disclosed embodiments are, in all respects, illustrative and not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are embraced by the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211251732.9A CN115620228B (en) | 2022-10-13 | 2022-10-13 | A video analysis-based early warning method for passengers entering the subway screen door |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211251732.9A CN115620228B (en) | 2022-10-13 | 2022-10-13 | A video analysis-based early warning method for passengers entering the subway screen door |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115620228A true CN115620228A (en) | 2023-01-17 |
CN115620228B CN115620228B (en) | 2023-05-23 |
Family
ID=84863445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211251732.9A Active CN115620228B (en) | 2022-10-13 | 2022-10-13 | A video analysis-based early warning method for passengers entering the subway screen door |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115620228B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103198605A (en) * | 2013-03-11 | 2013-07-10 | 成都百威讯科技有限责任公司 | Indoor emergent abnormal event alarm system |
CN106219367A (en) * | 2016-08-05 | 2016-12-14 | 沈阳聚德视频技术有限公司 | A kind of elevator O&M based on intelligent vision light curtain monitoring method |
CN206298233U (en) * | 2016-11-07 | 2017-07-04 | 何桂尧 | A kind of Elevator Monitoring is saved oneself disposal device |
CN108001460A (en) * | 2017-12-12 | 2018-05-08 | 徐薇 | Subway shield door gauge area intelligent anti-clip detection warning device and method |
CN110008867A (en) * | 2019-03-25 | 2019-07-12 | 五邑大学 | A kind of early warning method, device and storage medium based on abnormal behavior of people |
CN209765074U (en) * | 2018-12-27 | 2019-12-10 | 上海仁童电子科技有限公司 | Platform shield door foreign matter detection device |
CN110895861A (en) * | 2018-09-13 | 2020-03-20 | 杭州海康威视数字技术股份有限公司 | Abnormal behavior early warning method and device, monitoring equipment and storage medium |
CN112509190A (en) * | 2021-02-08 | 2021-03-16 | 南京信息工程大学 | Subway vehicle section passenger flow statistical method based on shielded gate passenger flow counting |
CN113343960A (en) * | 2021-08-06 | 2021-09-03 | 南京信息工程大学 | Method for estimating and early warning passenger flow retained in subway station in real time |
CN113658192A (en) * | 2021-07-08 | 2021-11-16 | 华南理工大学 | A multi-target pedestrian trajectory acquisition method, system, device and medium |
CN114663390A (en) * | 2022-03-22 | 2022-06-24 | 平安普惠企业管理有限公司 | Intelligent anti-pinch method, device, equipment and storage medium for automatic door |
CN115063730A (en) * | 2022-07-13 | 2022-09-16 | 山东建筑大学 | Early warning method and system for workers intruding into marginal area based on video trajectory analysis |
CN115131821A (en) * | 2022-06-29 | 2022-09-30 | 大连理工大学 | A detection method for campus personnel crossing the cordon based on improved YOLOv5+DeepSort |
-
2022
- 2022-10-13 CN CN202211251732.9A patent/CN115620228B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103198605A (en) * | 2013-03-11 | 2013-07-10 | 成都百威讯科技有限责任公司 | Indoor emergent abnormal event alarm system |
CN106219367A (en) * | 2016-08-05 | 2016-12-14 | 沈阳聚德视频技术有限公司 | A kind of elevator O&M based on intelligent vision light curtain monitoring method |
CN206298233U (en) * | 2016-11-07 | 2017-07-04 | 何桂尧 | A kind of Elevator Monitoring is saved oneself disposal device |
CN108001460A (en) * | 2017-12-12 | 2018-05-08 | 徐薇 | Subway shield door gauge area intelligent anti-clip detection warning device and method |
CN110895861A (en) * | 2018-09-13 | 2020-03-20 | 杭州海康威视数字技术股份有限公司 | Abnormal behavior early warning method and device, monitoring equipment and storage medium |
CN209765074U (en) * | 2018-12-27 | 2019-12-10 | 上海仁童电子科技有限公司 | Platform shield door foreign matter detection device |
CN110008867A (en) * | 2019-03-25 | 2019-07-12 | 五邑大学 | A kind of early warning method, device and storage medium based on abnormal behavior of people |
CN112509190A (en) * | 2021-02-08 | 2021-03-16 | 南京信息工程大学 | Subway vehicle section passenger flow statistical method based on shielded gate passenger flow counting |
CN113658192A (en) * | 2021-07-08 | 2021-11-16 | 华南理工大学 | A multi-target pedestrian trajectory acquisition method, system, device and medium |
CN113343960A (en) * | 2021-08-06 | 2021-09-03 | 南京信息工程大学 | Method for estimating and early warning passenger flow retained in subway station in real time |
CN114663390A (en) * | 2022-03-22 | 2022-06-24 | 平安普惠企业管理有限公司 | Intelligent anti-pinch method, device, equipment and storage medium for automatic door |
CN115131821A (en) * | 2022-06-29 | 2022-09-30 | 大连理工大学 | A detection method for campus personnel crossing the cordon based on improved YOLOv5+DeepSort |
CN115063730A (en) * | 2022-07-13 | 2022-09-16 | 山东建筑大学 | Early warning method and system for workers intruding into marginal area based on video trajectory analysis |
Non-Patent Citations (3)
Title |
---|
LING F等: "Infrared multi-target tracking based on Deep-Sort optimization algorithm", 《2021 INTERNATIONAL CONFERENCE ON CONTROL, AUTOMATION AND INFORMATION SCIENCES (ICCAIS)》 * |
张梦华: "基于Yolov5和DeepSort的视频行人识别与跟踪探究", 《现代信息科技》 * |
汪晓臣等: "物联网设备的深度学习故障预测方法", 《小型微型计算机系统》 * |
Also Published As
Publication number | Publication date |
---|---|
CN115620228B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104809887B (en) | A kind of retrograde detection method of vehicle on expressway and autoalarm | |
CN100585656C (en) | A rule-based all-weather intelligent video analysis and monitoring method | |
CN102945603B (en) | Method for detecting traffic event and electronic police device | |
CN110473402A (en) | A kind of accident detection early warning system based on target abnormal behaviour trajectory analysis | |
CN106934752A (en) | A kind of KXG based on bus | |
CN109087474A (en) | A kind of rail traffic security maintenance method based on big data | |
CN105744232A (en) | Method for preventing power transmission line from being externally broken through video based on behaviour analysis technology | |
KR101101860B1 (en) | Real time traffic detection system | |
CN110503802A (en) | Driving accident judgment method and system based on automobile data recorder | |
GB2556942A (en) | Transport passenger monitoring systems | |
CN106529496A (en) | Locomotive driver real-time video fatigue detection method | |
CN110780356A (en) | Subway platform clearance foreign matter detecting system | |
CN104049281A (en) | Device and method for automatically detecting foreign matter between screen door of curve subway platform and train | |
CN110288738B (en) | Intelligent comprehensive management and control system and method for bicycle lane | |
CN114566056B (en) | Highway tunnel driving safety risk identification, prevention and control method and system | |
CN110222596A (en) | A kind of driving behavior analysis anti-cheating method of view-based access control model | |
CN113538968B (en) | Method and apparatus for outputting information | |
Zheng et al. | Toward real-time congestion measurement of passenger flow on platform screen doors based on surveillance videos analysis | |
CN115620228A (en) | A video analysis-based early warning method for passengers entering the subway screen door | |
Golder et al. | Automated railway crossing system: a secure and resilient approach | |
CN118155148A (en) | Intelligent detection method and system for emergencies in tunnel in operation | |
CN112422672A (en) | Electronic escorting system and escorting method | |
CN112037484A (en) | Intelligent early warning system for railway freight yard anti-intrusion safety | |
WO2023171068A1 (en) | Surveillance system | |
CN208393387U (en) | A kind of motor-car based on camera monitoring with being put in storage alarm system out |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |