CN110414360A - Abnormal behavior detection method and detection equipment - Google Patents
Abnormal behavior detection method and detection equipment Download PDFInfo
- Publication number
- CN110414360A CN110414360A CN201910589840.9A CN201910589840A CN110414360A CN 110414360 A CN110414360 A CN 110414360A CN 201910589840 A CN201910589840 A CN 201910589840A CN 110414360 A CN110414360 A CN 110414360A
- Authority
- CN
- China
- Prior art keywords
- target object
- target
- behavior
- information
- size
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2411—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/246—Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
-
- 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
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- 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)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Alarm Systems (AREA)
Abstract
本发明实施例公开了一种异常行为的检测方法及检测设备,用于检测家庭中老人摔倒和小孩乱爬等异常行为,从而可以及时处理家庭中由于异常行为的发生,降低异常行为的损伤。本发明实施例方法包括:获取关于目标对象的视频数据;根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。
The embodiment of the present invention discloses a detection method and detection equipment for abnormal behaviors, which are used to detect abnormal behaviors such as falling of the elderly and children crawling in the family, so that the occurrence of abnormal behaviors in the family can be dealt with in time and the damage caused by abnormal behaviors can be reduced . The method in the embodiment of the present invention includes: acquiring video data about the target object; obtaining the position information, size and area information of the target object through the processing of the updated Gaussian background modeling method according to the video data; according to the position of the target object Information, size and area information, the target object is tracked by the target tracking algorithm based on KCF and TLD, and the characteristics of the target object are obtained; when the characteristics of the target object and the preset SVM classifier are used for the The first behavior of the target object is detected, and when it is determined that the first behavior of the target object is abnormal, an alarm prompt message is issued.
Description
技术领域technical field
本发明涉及图像处理领域,具体涉及一种异常行为的检测方法及检测设备。The invention relates to the field of image processing, in particular to a detection method and detection equipment for abnormal behavior.
背景技术Background technique
伴随着信息社会的发展,安全成为人们越来越关注的问题,越来越多的视频监控产品在安全领域已被广泛使用。但是目前大多数的监控系统,不能智能分析视频的内容,需要靠人去分析,这样的监控系统只能用来存储和记录视频,当异常行为发生后才能用相关视频来查证,不可以预先判断异常行为的发生,进而避免异常行为的发生。同时由于科学技术日新月异,视频监控系统越来越高清化和智能化,智能监控系统是指在没有人为的操作下,系统可以对监控视频中的异常行为作出分析判断。With the development of the information society, security has become an issue that people pay more and more attention to, and more and more video surveillance products have been widely used in the security field. However, most of the current monitoring systems cannot intelligently analyze the content of the video, and need to be analyzed by humans. Such a monitoring system can only be used to store and record the video. When abnormal behavior occurs, the relevant video can be used to verify it, and it cannot be judged in advance. The occurrence of abnormal behavior, and then avoid the occurrence of abnormal behavior. At the same time, due to the rapid development of science and technology, the video surveillance system is becoming more and more high-definition and intelligent. The intelligent surveillance system means that the system can analyze and judge the abnormal behavior in the surveillance video without human operation.
因为智能监控系统在安全领域体现出越来越大的作用,因此国内外很多安防和监控公司已经开始研发相关方面的产品。现在,国内外市场已经出现了智能视频监控产品。智能视频监控主要对视频进行自动分析,从视频序列中提取关键的信息,发现和识别感兴趣的异常行为,从而能够代替人为监控或者协助人为监控,视频的分析与识别系统可以通过分析实时或者记录的视频流,检测出异常行为。视频监控的智能化是指在不需要人为操作的情况下,通过对视频序列图像进行自动分析,从而对监控场景中的变化进行定位、识别、跟踪,并及时做出预警或报警。Because the intelligent monitoring system plays an increasingly important role in the security field, many security and monitoring companies at home and abroad have begun to develop related products. Now, intelligent video surveillance products have appeared in domestic and foreign markets. Intelligent video surveillance mainly automatically analyzes videos, extracts key information from video sequences, discovers and identifies abnormal behaviors of interest, and thus can replace or assist human surveillance. The video analysis and recognition system can analyze real-time or record of video streams, abnormal behavior is detected. The intelligence of video surveillance refers to the automatic analysis of video sequence images without human operation, so as to locate, identify, track changes in the monitoring scene, and make early warnings or alarms in time.
目前在很多场所的监控系统都还是传统设备,只进行记录的工作而不能对场景内的行为做出判断,通常需要值班的人员不间断的进行看守,耗费大量的人力物力,最重要的是有时因为疲劳或者疏忽的问题,并不能实现无错误无漏报,当异常行为发生之后,还需要从大量的视频资源里搜寻证据。At present, the monitoring systems in many places are still traditional equipment, which only record the work and cannot make judgments on the behavior in the scene. Usually, the on-duty personnel are required to guard continuously, which consumes a lot of manpower and material resources. The most important thing is sometimes Because of fatigue or negligence, it is impossible to achieve no errors and no missed reports. When abnormal behaviors occur, it is necessary to search for evidence from a large number of video resources.
发明内容Contents of the invention
本发明实施例提供了一种异常行为的检测方法及检测设备,用于检测家庭中老人摔倒和小孩乱爬等异常行为,从而可以及时处理家庭中由于异常行为的发生,降低异常行为的损伤。The embodiment of the present invention provides a detection method and detection equipment for abnormal behaviors, which are used to detect abnormal behaviors such as falling of the elderly and children crawling around in the family, so that the occurrence of abnormal behaviors in the family can be dealt with in time and the damage caused by abnormal behaviors can be reduced .
有鉴于此,本发明第一方面提供了一种异常行为的检测方法,可以包括:In view of this, the first aspect of the present invention provides a method for detecting abnormal behavior, which may include:
获取关于目标对象的视频数据;Obtain video data about the target object;
根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;According to the processing of the updated Gaussian background modeling method according to the video data, the position information, size and area information of the target object are obtained;
根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;According to the position information, size and area information of the target object, the target object is tracked by a target tracking algorithm based on KCF and TLD to obtain the characteristics of the target object;
当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。When the first behavior of the target object is detected according to the characteristics of the target object and the preset SVM classifier, and the abnormal behavior of the first behavior of the target object is determined, an alarm prompt message is issued.
可选的,在本发明的一些实施例中,所述根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息,可以包括:Optionally, in some embodiments of the present invention, the obtaining the position information, size and area information of the target object through the processing of the updated Gaussian background modeling method according to the video data may include:
根据所述视频数据通过更新的高斯背景建模方法的处理,将目标对象从背景中分割出来,所述分割出来的目标对象包括目标对象的位置信息、大小和区域信息。The target object is segmented from the background according to the processing of the updated Gaussian background modeling method based on the video data, and the segmented target object includes position information, size and area information of the target object.
可选的,在本发明的一些实施例中,所述根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征,可以包括:Optionally, in some embodiments of the present invention, according to the location information, size and area information of the target object, the target object is tracked through a target tracking algorithm based on KCF and TLD to obtain the target Object characteristics, which can include:
根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,获取所述目标对象在目标时间内的目标特征。According to the position information, size and area information of the target object, the target object is tracked through the target tracking algorithm based on KCF and TLD, and the target features of the target object within the target time are acquired.
可选的,在本发明的一些实施例中,所述获取所述目标对象在目标时间内的目标特征,可以包括:Optionally, in some embodiments of the present invention, the acquiring the target features of the target object within the target time may include:
通过基于滑动窗口方法获取所述目标对象在目标时间内的目标特征。The target features of the target object within the target time are obtained by using a sliding window method.
可选的,在本发明的一些实施例中,所述确定所述目标对象的第一行为异常行为时,发出报警提示信息,可以包括:Optionally, in some embodiments of the present invention, when the first behavior of the target object is determined to be abnormal, sending an alarm message may include:
向终端设备发送报警提示信息,所述报警提示信息包括关于异常行为的文字提示信息,或者关于异常行为的语音提示信息。Sending alarm prompt information to the terminal device, where the alarm prompt information includes text prompt information about abnormal behavior, or voice prompt information about abnormal behavior.
本发明第二方面提供一种检测设备,可以包括:A second aspect of the present invention provides a detection device, which may include:
获取模块,用于获取关于目标对象的视频数据;An acquisition module, configured to acquire video data about the target object;
处理模块,用于根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。The processing module is used to obtain the position information, size and area information of the target object through the processing of the updated Gaussian background modeling method according to the video data; according to the position information, size and area information of the target object, through KCF based and the target tracking algorithm of TLD to track the target object to obtain the characteristics of the target object; when the first behavior of the target object is detected according to the characteristics of the target object and the preset SVM classifier, it is determined When the first behavior of the target object is abnormal, an alarm prompt message is issued.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
所述处理模块,具体用于根据所述视频数据通过更新的高斯背景建模方法的处理,将目标对象从背景中分割出来,所述分割出来的目标对象包括目标对象的位置信息、大小和区域信息。The processing module is specifically used to segment the target object from the background according to the processing of the updated Gaussian background modeling method according to the video data, and the segmented target object includes the position information, size and area of the target object information.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
所述处理模块,具体用于根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,获取所述目标对象在目标时间内的目标特征。The processing module is specifically used to track the target object through the target tracking algorithm based on KCF and TLD according to the position information, size and area information of the target object, and obtain the target object within the target time. feature.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
所述处理模块,具体用于通过基于滑动窗口方法获取所述目标对象在目标时间内的目标特征。The processing module is specifically configured to acquire target features of the target object within a target time by using a sliding window method.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
所述处理模块,具体用于向终端设备发送报警提示信息,所述报警提示信息包括关于异常行为的文字提示信息,或者关于异常行为的语音提示信息。The processing module is specifically configured to send alarm prompt information to the terminal device, and the alarm prompt information includes text prompt information about abnormal behavior, or voice prompt information about abnormal behavior.
本发明第三方面提供一种检测设备,可以包括:A third aspect of the present invention provides a detection device, which may include:
收发器,处理器,存储器,其中,所述收发器,所述处理器和所述存储器通过总线连接;a transceiver, a processor, and a memory, wherein the transceiver, the processor, and the memory are connected through a bus;
所述存储器,用于存储操作指令;The memory is used to store operation instructions;
所述收发器,用于获取关于目标对象的视频数据;The transceiver is used to obtain video data about the target object;
所述处理器,用于调用所述操作指令,执行如本发明第一方面及第一方面任一可选实现方式中所述的异常行为的检测方法的步骤。The processor is configured to invoke the operation instruction to execute the steps of the abnormal behavior detection method described in the first aspect of the present invention and any optional implementation manner of the first aspect.
本发明第四方面提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如本发明第一方面及第一方面任一可选实现方式中所述的异常行为的检测方法的步骤。A fourth aspect of the present invention provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it can implement the first aspect of the present invention and any optional implementation manner of the first aspect. The steps of the detection method for abnormal behavior.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
在本发明实施例中,获取关于目标对象的视频数据;根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。采用了改进的高斯背景建模方法和基于KCF的TLD目标跟踪算法对摄像头视频的人体运动目标分割出来并进行稳定的跟踪,首先对高斯背景建模方法做出了改进,改进后的高斯背景建模方法在室内背景变化和室内光照条件变化的情况下仍然可以非常有效且高精度地提取人体运动目标。基于KCF的TLD目标跟踪算法也是对KCF算法和TLD算法做出了改进,提高了算法的处理帧率,同时保持检测模块的在线训练,提升了算法的重检测能力,从而实现了对目标的快速跟踪。利用SVM分类器实现对异常行为的检测,检测家庭中老人摔倒和小孩乱爬等异常行为,从而可以及时处理家庭中由于异常行为的发生,降低异常行为的损伤。In the embodiment of the present invention, the video data about the target object is obtained; according to the processing of the updated Gaussian background modeling method according to the video data, the position information, size and area information of the target object are obtained; according to the position of the target object Information, size and area information, the target object is tracked by the target tracking algorithm based on KCF and TLD, and the characteristics of the target object are obtained; when the characteristics of the target object and the preset SVM classifier are used for the The first behavior of the target object is detected, and when it is determined that the first behavior of the target object is abnormal, an alarm prompt message is issued. The improved Gaussian background modeling method and the KCF-based TLD target tracking algorithm are used to segment the human moving target in the camera video and perform stable tracking. First, the Gaussian background modeling method is improved. The improved Gaussian background modeling method The modulo method can still extract human moving objects very effectively and with high precision even when the indoor background changes and the indoor lighting conditions change. The KCF-based TLD target tracking algorithm also improves the KCF algorithm and the TLD algorithm, improves the processing frame rate of the algorithm, and maintains the online training of the detection module at the same time, which improves the re-detection ability of the algorithm, thereby realizing the rapid detection of the target. track. Use the SVM classifier to detect abnormal behaviors, detect abnormal behaviors such as falling of the elderly and children crawling in the family, so that the occurrence of abnormal behaviors in the family can be dealt with in time and the damage caused by abnormal behaviors can be reduced.
附图说明Description of drawings
为了更清楚地说明本发明实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that are required in the description of the embodiments and prior art. Obviously, the accompanying drawings in the following description are only some implementations of the present invention For example, other drawings can also be obtained from these drawings.
图1为本发明实施例中异常行为检测系统的一个实施例示意图;Fig. 1 is a schematic diagram of an embodiment of an abnormal behavior detection system in an embodiment of the present invention;
图2为本发明实施例在异常行为检测系统所应用的原理示意图;Fig. 2 is a schematic diagram of the principle applied in the abnormal behavior detection system according to the embodiment of the present invention;
图3为本发明实施例中检测异常行为的方法的一个实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a method for detecting abnormal behavior in an embodiment of the present invention;
图4为本发明实施例中所使用的KCF-TLD算法的框架图;Fig. 4 is the frame diagram of the KCF-TLD algorithm used in the embodiment of the present invention;
图5为本发明实施例中基于KCF的TLD目标跟踪算法流程图;Fig. 5 is the TLD target tracking algorithm flowchart based on KCF in the embodiment of the present invention;
图6为本发明实施例中分类检测的具体流程示意图;6 is a schematic diagram of a specific flow chart of classification and detection in an embodiment of the present invention;
图7为本发明实施例中检测设备的一个实施例示意图;Fig. 7 is a schematic diagram of an embodiment of the detection device in the embodiment of the present invention;
图8为本发明实施例中检测设备的另一个实施例示意图。Fig. 8 is a schematic diagram of another embodiment of the detection device in the embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种异常行为的检测方法及检测设备,用于检测家庭中老人摔倒和小孩乱爬等异常行为,从而可以及时处理家庭中由于异常行为的发生,降低异常行为的损伤。The embodiment of the present invention provides a detection method and detection equipment for abnormal behaviors, which are used to detect abnormal behaviors such as falling of the elderly and children crawling around in the family, so that the occurrence of abnormal behaviors in the family can be dealt with in time and the damage caused by abnormal behaviors can be reduced .
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the following will describe the technical solution in the embodiment of the present invention in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the present invention Examples, but not all examples. All embodiments based on the present invention shall belong to the protection scope of the present invention.
如图1所示,为本发明实施例中异常行为检测系统的一个实施例示意图,异常行为检测系统可以包括:摄像头模块、云台、无线保真(Wireless Fidelity,WIFI)模块、通信模块、嵌入式系统、语音报警模块、热静电红外模块、手机应用程序(Application,APP)、异常行为算法模块。其中,需要说明的是,Ardroid嵌入式系统通过WIFI通信模块或者通信模块连接网络,如果出现其中一种模块网络信号差时,可以进行连接网络方式的切换,尽可能保证网络传输数据的稳定。通信模块可以是4G通信模块,也可以是5G通信模块,也可以是更高级别的通信模块,具体不做限定。嵌入式系统可以包括安卓(Android)嵌入式系统或者其他类型的嵌入式系统,本发明实施例对此不做限定。在下述实施例中,通信模块可以以4G通信模块为例进行说明,嵌入式系统可以以Android嵌入式系统为例进行说明。As shown in Figure 1, it is a schematic diagram of an embodiment of the abnormal behavior detection system in the embodiment of the present invention. system, voice alarm module, thermal static infrared module, mobile application (Application, APP), abnormal behavior algorithm module. Among them, it should be noted that the Ardroid embedded system is connected to the network through the WIFI communication module or the communication module. If the network signal of one of the modules is poor, the network connection mode can be switched to ensure the stability of the network transmission data as much as possible. The communication module may be a 4G communication module, a 5G communication module, or a higher-level communication module, which is not specifically limited. The embedded system may include an Android (Android) embedded system or other types of embedded systems, which is not limited in this embodiment of the present invention. In the following embodiments, the communication module may be described by taking a 4G communication module as an example, and the embedded system may be described by taking an Android embedded system as an example.
Ardroid嵌入式系统内的APP接收摄像头模块传来的数据,通过异常行为检测算法模块检测到异常行为后通过通信模块向个人手机终端报警(报警方式可以通过在手机终端APP显示信息,或者,直接向手机终端发短信来实现,或者,在手机终端上进行报警声音提示等方式),个人手机终端通过APP实现通过嵌入式系统调用摄像头拍摄的数据确认异常行为的信息是否属实。异常行为检测系统也可以通过语音报警模块播放警报信息,让室内的其他人第一时间知道发生了意外。The APP in the Ardroid embedded system receives the data from the camera module, detects the abnormal behavior through the abnormal behavior detection algorithm module, and sends an alarm to the personal mobile phone terminal through the communication module (the alarm method can be displayed on the mobile terminal APP, or directly to The mobile phone terminal sends text messages to realize, or, on the mobile phone terminal, carries out alarm sound prompting etc.), and the personal mobile phone terminal realizes through the APP and calls the data taken by the camera through the embedded system to confirm whether the information of the abnormal behavior is true. The abnormal behavior detection system can also play alarm information through the voice alarm module, so that other people in the room can know that an accident happened at the first time.
因此,智能化的异常行为检测系统不仅可以预先判断异常行为,提高安全能力,并且不需要耗费太多的人力和物力资源,节省成本,蕴藏着巨大的商机和经济效益,所以具有很大的现实意义和应用价值。Therefore, the intelligent abnormal behavior detection system can not only pre-judge abnormal behavior and improve security capabilities, but also does not need to consume too much manpower and material resources, saves costs, and contains huge business opportunities and economic benefits, so it has great reality. significance and application value.
如今的家庭监控系统大部分只针对小偷的入室偷盗,而老人和小孩也会在家发生意外,而且发生意外的概率不低,普通的监控系统精度不够高,导致各种误判。异常行为检测系统是针对家庭中的各种意外信息,能够准确快速地检测出老人摔倒以及小孩乱爬等异常行为,当检测到老人摔倒和小孩乱爬等异常行为时,会通过通信模块向个人手机终端报警,或者通过语音报警模块播放警报信息,从而对老人和小孩在家中的安全性有了一定的保障。Most of today's home monitoring systems are only aimed at burglars, and the elderly and children will also have accidents at home, and the probability of accidents is not low. The accuracy of ordinary monitoring systems is not high enough, leading to various misjudgments. The abnormal behavior detection system is aimed at various unexpected information in the family. It can accurately and quickly detect abnormal behaviors such as falling of the elderly and children crawling randomly. Send an alarm to the personal mobile phone terminal, or play the alarm information through the voice alarm module, so as to ensure the safety of the elderly and children at home.
其中,异常行为检测算法的流程框图如下:如图2所示,为本发明实施例在异常行为检测系统所应用的原理示意图。在图2所示中,首先,摄像头模块读取到视频数据后,通过改进的高斯背景建模方法和基于KCF(High-Speed Tracking with KernelizedCorrelation Filters)的TLD(Tracking-Learning-Detection)目标跟踪算法实现对人体运动目标的分割和跟踪,而且可以非常准确的得到人体运动目标的位置信息、人体运动目标的大小和区域信息。然后建立好人体运动目标的标识状态,再通过滑动窗口提取人体运动目标的特征,接着用训练好的支持向量机(Support Vector Machine,SVM)分类器对人体运动目标的行为进行分类,当SVM分类器对行为分类正确且未发生误判时,就会发出异常信息。而当发生误判的时候就会降这次的错误数据存储到嵌入式系统中,下次再遇到这样的行为就不会再出现误判了。这样通过长期的使用,该异常行为检测系统的精度就会越来越高,达到比较高的精确度。这样的异常行为检测系统让家庭中的异常行为造成的伤害降到最低。Wherein, the flowchart of the abnormal behavior detection algorithm is as follows: as shown in FIG. 2 , it is a schematic diagram of the principles applied in the abnormal behavior detection system according to the embodiment of the present invention. As shown in Figure 2, first, after the camera module reads the video data, it uses the improved Gaussian background modeling method and the TLD (Tracking-Learning-Detection) target tracking algorithm based on KCF (High-Speed Tracking with Kernelized Correlation Filters) Realize the segmentation and tracking of human moving objects, and can obtain the position information, size and area information of human moving objects very accurately. Then establish the identification state of the human moving object, and then extract the characteristics of the human moving object through the sliding window, and then use the trained support vector machine (Support Vector Machine, SVM) classifier to classify the behavior of the human moving object, when the SVM classification When the device classifies the behavior correctly and no misjudgment occurs, it will send out an abnormal message. When a misjudgment occurs, the erroneous data will be stored in the embedded system, and the misjudgment will not occur again when such behavior is encountered next time. In this way, through long-term use, the accuracy of the abnormal behavior detection system will become higher and higher, reaching a relatively high accuracy. Such an abnormal behavior detection system minimizes the harm caused by abnormal behavior in the family.
在本发明实施例中,提供了一种异常行为检测系统,通过摄像头的长期扫描,能够实现例如对家庭中的老人摔倒、幼童乱爬这样的异常行为检测,发生异常行为时可以对家中的其他人进行语音报警或使对外出的人发送警报短信和APP警报提示等,从而让室内的其他人或者外出的人第一时间知道家中老人和小孩是否发生异常行为。在这样的异常行为检测系统系统下,可以把家庭中由异常行为造成的伤害降低了,对家中老人和小孩的安全有了一定的保障。In the embodiment of the present invention, an abnormal behavior detection system is provided. Through the long-term scanning of the camera, it can detect abnormal behaviors such as falling of the elderly in the family and young children crawling around. Other people in the room can make voice alarms or send alarm text messages and APP alarm prompts to people who go out, so that other people in the room or people who go out can know whether there are abnormal behaviors of the elderly and children at home at the first time. Under such an abnormal behavior detection system, the damage caused by abnormal behavior in the family can be reduced, and the safety of the elderly and children at home can be guaranteed to a certain extent.
下面以实施例的方式对本发明技术方案做进一步的说明,如图3所示,为本发明实施例中检测异常行为的方法的一个实施例示意图,可以包括:The technical solution of the present invention will be further described in the form of an embodiment. As shown in FIG. 3, it is a schematic diagram of an embodiment of the method for detecting abnormal behavior in the embodiment of the present invention, which may include:
301、获取关于目标对象的视频数据。301. Acquire video data about a target object.
在本发明实施例中,Android嵌入式系统通过WIFI通信模块或4G通信模块连接网络。Android嵌入式系统通过调用WIFI通信模块连接家庭网关接入网络,实现上网功能。4G通信模块上网功能通过点对点协议(Point to Point Protocol,PPP)拨号提供的接口连接网络,拨号成功后(执行PPP拨号脚本),内核会生成PPP网络设备,通过创建套接字就可以访问网络。4G通信模块需要额外连接天线和用户身份识别卡(Subscriber IdentificationModule,SIM)卡,保证以使能4G通信模块能成功入网。嵌入式系统会通过命令实现短信发送、电话接听和拨打,对应的嵌入式设备通过向串口发送相应的命令调用4G通信模块就可以实现短信发送以及电话的接听和拨打。In the embodiment of the present invention, the Android embedded system is connected to the network through a WIFI communication module or a 4G communication module. The Android embedded system realizes the Internet access function by calling the WIFI communication module to connect the home gateway to access the network. The Internet access function of the 4G communication module connects to the network through the interface provided by the Point to Point Protocol (PPP) dial-up. After the dial-up is successful (execute the PPP dial-up script), the kernel will generate a PPP network device, and the network can be accessed by creating a socket. The 4G communication module needs to be additionally connected to an antenna and a Subscriber Identification Module (SIM) card to ensure that the 4G communication module can successfully access the network. The embedded system will send text messages, answer calls and dial through commands, and the corresponding embedded device can send text messages and receive and dial calls by calling the 4G communication module by sending corresponding commands to the serial port.
摄像头模块连接云台再连接热静电红外模块,也可以称为热释电红外感应模块,热静电红外模块通过串口中断连接到系统板上,连接了热静电的摄像头无人时能自动休眠停止工作,云台可控制摄像头自由旋转,覆盖更广阔的视角。摄像头在系统连接电源后开始工作,获取视频数据。The camera module is connected to the gimbal and then connected to the thermal static infrared module, which can also be called the pyroelectric infrared sensor module. The thermal static infrared module is connected to the system board through the serial port interrupt, and the camera connected to the thermal static can automatically sleep and stop working when there is no one there. , the gimbal can control the camera to rotate freely, covering a wider viewing angle. The camera starts to work after the system is connected to the power supply, and acquires video data.
302、根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息。302. Obtain the position information, size and area information of the target object by processing the video data through an updated Gaussian background modeling method.
所述根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息,可以包括:根据所述视频数据通过更新的高斯背景建模方法的处理,将目标对象从背景中分割出来,所述分割出来的目标对象包括目标对象的位置信息、大小和区域信息。The process of obtaining the position information, size and area information of the target object through the updated Gaussian background modeling method according to the video data may include: according to the video data through the updated Gaussian background modeling method, converting The target object is segmented from the background, and the segmented target object includes position information, size and area information of the target object.
示例性的,摄像头对室内的人进行扫描,当摄像头扫描到人时,通过改进的高斯背景建模方法将运动目标(例如人)分割出来,该算法是把视频图像中的每个像素点的值都认为是服从高斯分布的随机变量,并且每个像素点的高斯分布都是独立的,通过判断像素点的颜色值是否此像素的高斯分布来判断是否属于背景像素,高斯公式如下所示:Exemplarily, the camera scans the people in the room. When the camera scans the people, the moving target (such as people) is segmented through the improved Gaussian background modeling method. Values are considered to be random variables that obey the Gaussian distribution, and the Gaussian distribution of each pixel is independent. By judging whether the color value of the pixel is Gaussian distributed for this pixel, it can be judged whether it belongs to the background pixel. The Gaussian formula is as follows:
其中,It(x,y)为t时刻的视频图像,μ(x,y)和σ2(x,y)为像素值的均值和方差。公式(1-1)表示从时间上,每点像素颜色值都服从高斯分布函数。Wherein, I t (x, y) is the video image at time t, μ (x, y) and σ 2 (x, y) are the mean and variance of the pixel values. Formula (1-1) indicates that from time to time, the color value of each pixel obeys the Gaussian distribution function.
需要说明的是,改进的高斯背景建模方法的具体过程如下:It should be noted that the specific process of the improved Gaussian background modeling method is as follows:
步骤1:将输入的视频帧分成M*N个区域,每个区域包含10*10像素,统计其灰度像素直方图Ht(i,j),并计算前视频帧同区域的巴氏距离,将结果保存到二维数组Dt(i,j)中:Step 1: Divide the input video frame into M*N regions, each region contains 10*10 pixels, count its grayscale pixel histogram H t (i,j), and calculate the Bhattacharyachian distance of the same region of the previous video frame , and save the result into a two-dimensional array D t (i,j):
步骤2:初始化,当读入第一帧图像后,先给每个位置建立一个高斯分布,均值为第一帧对应位置的像素值,处理新的一帧图像时,如果新读入的像素值能与原有的高斯分布相匹配,则仅更新那个原有的高斯分布,否则以新读入的像素值的均值和方差建立一个新的高斯分布,如此进行下去,直到高斯分布的个数达到K为止。Step 2: Initialization. After the first frame of image is read in, a Gaussian distribution is first established for each position, and the mean value is the pixel value of the corresponding position of the first frame. When processing a new frame of image, if the newly read pixel value If it can match the original Gaussian distribution, only the original Gaussian distribution is updated, otherwise a new Gaussian distribution is established with the mean and variance of the newly read pixel values, and so on until the number of Gaussian distributions reaches K up to.
步骤3:对于t时刻图像中的每点进行如下判断,输出outputt(x,y)图像,可以得到前景像素,其中k为固定系数,一般取2。Step 3: Make the following judgment for each point in the image at time t, and output the output t (x, y) image to obtain foreground pixels, where k is a fixed coefficient, generally 2.
步骤4:使用公式(1-1)进行判断,如果判断为0,则需使用以下公式对背景执行更新操作:Step 4: Use the formula (1-1) to judge, if the judgment is 0, you need to use the following formula to update the background:
μt(x,y)=(1-α)μt-1(x,y)+αXt (1-5)μ t (x,y)=(1-α)μ t-1 (x,y)+αX t (1-5)
其中,Xt为t时刻该点的像素值,σ值范围为0<α<1,它的作用是控制背景更新的速度,σ值设置较大时背景的更新速度快,反之则更新慢。Among them, X t is the pixel value of the point at time t, and the range of σ value is 0<α<1. Its function is to control the speed of background update. When the value of σ is set larger, the background update speed is faster, otherwise, the update speed is slower.
步骤5:对每一个新的图像程序重新执行上述步骤2、3。Step 5: Repeat the above steps 2 and 3 for each new image program.
前景检测按照公式(1-4)进行计算,而对于背景更新区域则根据公式(1-3)进行判断,对于区域为Dt(i,j)=1时进行高斯背景更新,对于Dt(i,j)=0时不进行高斯背景更新,其中T=0.25。The foreground detection is calculated according to the formula (1-4), and the background update area is judged according to the formula (1-3). For the area, the Gaussian background update is performed when D t (i, j) = 1, and for D t ( No Gaussian background update is performed when i,j)=0, where T=0.25.
通过上述的改进的高斯背景建模方法将人体目标提取出来。示例性的,老人摔倒和小孩乱爬是一个连续的动态过程,即人体目标会在一段连续的视频中出现,于是接下来可以采用一种基于KCF的TLD目标跟踪算法来跟踪人体目标,使得系统能够连续地获取人体目标的运动特征,提高老人摔倒和小孩乱爬检测的准确率。The human target is extracted by the above-mentioned improved Gaussian background modeling method. Exemplarily, the falling of an old man and the crawling of a child are a continuous dynamic process, that is, the human target will appear in a continuous video, so a KCF-based TLD target tracking algorithm can be used to track the human target, so that The system can continuously acquire the motion characteristics of the human target, and improve the accuracy of the detection of the elderly falling and children crawling.
303、根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征。303 . According to the position information, size and area information of the target object, track the target object through a target tracking algorithm based on KCF and TLD, to obtain features of the target object.
所述根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征,可以包括:根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,获取所述目标对象在目标时间内的目标特征。According to the position information, size and area information of the target object, the target object is tracked through the target tracking algorithm based on KCF and TLD, and the characteristics of the target object are obtained, which may include: according to the target object Position information, size and area information, track the target object through the target tracking algorithm based on KCF and TLD, and obtain the target characteristics of the target object within the target time.
上面已经通过改进的高斯背景建模方法获取了人体目标的位置、大小以及区域信息。由于人体目标的姿态多变,而且容易出现人体目标被遮挡,人体目标出现尺度变化等现象,所以使用了一种基于KCF的TLD目标跟踪算法,该方法对于人体目标的尺度变化的适应性强,而且该算法具有重检测能力,在人体目标出现后能迅速检测并进行跟踪,而且可以很好地处理人体目标遮挡问题,在目标短暂丢失后可以迅速重新捕获目标,继续跟踪目标。The position, size and area information of the human target have been obtained through the improved Gaussian background modeling method above. Because the posture of the human target is changeable, and it is easy to appear that the human target is blocked, and the scale of the human target changes, etc., so a TLD target tracking algorithm based on KCF is used. This method has strong adaptability to the scale change of the human target. Moreover, the algorithm has re-detection ability, can quickly detect and track the human target after it appears, and can handle the occlusion problem of the human target very well, and can quickly recapture the target after the target is lost for a short time, and continue to track the target.
如图4所示,为本发明实施例中所使用的KCF-TLD算法的框架图。在图4所示的KCF-TLD算法中包含跟踪、检测、学习三个模块,各自的功能如下所示:As shown in FIG. 4, it is a frame diagram of the KCF-TLD algorithm used in the embodiment of the present invention. The KCF-TLD algorithm shown in Figure 4 includes three modules: tracking, detection, and learning, and their respective functions are as follows:
检测模块:以TLD算法中的级联分类器作为检测器,在图像中遍历获取目标特定区域,分别经过方差分类器、集合分类器和最近邻分类器对其进行判断,筛选后得到的就是最终的检测结果。Detection module: use the cascade classifier in the TLD algorithm as the detector, traverse the image to obtain the specific target area, and judge it through the variance classifier, set classifier and nearest neighbor classifier respectively, and the final result is obtained after screening test results.
跟踪模块:以改进后KCF(即对KCF进行多尺度改进,额外选取比目标略小的区域以及比目标略大的区域,这样就可以获得原尺寸、较小尺度和较大尺度的搜索区域,分别在这三个尺度来跟踪目标,然后选择最佳的目标响应,可以得到目标的位置和尺寸)算法作为跟踪器。在基于KCF的TLD算法中,是以跟踪模块为主,因为跟踪模块耗时较短,可以提高算法的处理效率。视频输入后,首先进入跟踪模块,跟踪算法根据其模型计算目标响应结果,根据响应值的大小,可以判断跟踪的可靠性,若响应值大,认为跟踪准确,将跟踪结果作为算法的最终结果;若响应值较小。即认为跟踪失败,并激活检测模块进行重检测,若检测模块找到目标位置,则利用目标对跟踪模块进行训练。Tracking module: with the improved KCF (that is, multi-scale improvement of KCF, additionally select an area slightly smaller than the target and an area slightly larger than the target, so that the search area of the original size, smaller scale and larger scale can be obtained, To track the target in these three scales, and then choose the best target response, you can get the position and size of the target) algorithm as the tracker. In the TLD algorithm based on KCF, the tracking module is the main one, because the tracking module takes less time and can improve the processing efficiency of the algorithm. After the video is input, it first enters the tracking module, and the tracking algorithm calculates the target response result according to its model. According to the size of the response value, the reliability of the tracking can be judged. If the response value is large, the tracking is considered accurate, and the tracking result is taken as the final result of the algorithm; If the response value is small. That is, it is considered that the tracking has failed, and the detection module is activated for re-detection. If the detection module finds the target position, the target is used to train the tracking module.
学习模块:学习模块负责检测器的训练和跟踪器参数的更新。跟踪成功后,学习模块根据算法得到的目标最终位置,提取正、负样本对检测模块中的分类器进行训练,正样本就是从目标区域提取的样本。负样本就是在背景区域提取的样本,同时以目标为中心,提取搜索区域,更新跟踪模块中的相关滤波参数和目标外观模型,学习模块还会降算法的最终结果传递给跟踪模块,用于下一次的跟踪。Learning module: The learning module is responsible for the training of the detector and the update of the tracker parameters. After the tracking is successful, the learning module extracts positive and negative samples to train the classifier in the detection module according to the final position of the target obtained by the algorithm. The positive sample is the sample extracted from the target area. Negative samples are samples extracted from the background area. At the same time, centering on the target, extract the search area, update the relevant filter parameters and target appearance model in the tracking module, and the learning module will also pass the final result of the algorithm to the tracking module for the next step. One time tracking.
如图5所示,为本发明实施例中基于KCF的TLD目标跟踪算法流程图。如下:As shown in FIG. 5 , it is a flow chart of the KCF-based TLD target tracking algorithm in the embodiment of the present invention. as follows:
基于KCF的TLD目标跟踪算法的具体步骤如下:The specific steps of the KCF-based TLD target tracking algorithm are as follows:
首先,是算法的初始化阶段,读取视频序列,然后利用改进的高斯背景建模方法将人体运动目标从背景中分割出来,然后将分割出来的人体运动目标作为跟踪的初始信息,算法根据获得的信息,训练跟踪模块中的相关滤波器,同时,在视频序列中提取正负样本,获得正负样本后,对检测模块中的集合分类器和最近分类器进行初始化训练。跟踪模块与检测模块初始化完成之后,初始化阶段结束。First, it is the initialization stage of the algorithm, read the video sequence, and then use the improved Gaussian background modeling method to segment the human moving target from the background, and then use the segmented human moving target as the initial information for tracking. Information, train the correlation filter in the tracking module, at the same time, extract the positive and negative samples in the video sequence, after obtaining the positive and negative samples, initialize the set classifier and the nearest classifier in the detection module. After the initialization of the tracking module and the detection module is completed, the initialization phase ends.
在跟踪阶段,对于视频的每一帧的处理经过以下步骤:In the tracking phase, the processing of each frame of the video goes through the following steps:
(a)判断在上一帧中,算法是否成功跟踪到目标?若跟踪成功,则转步骤(b),否则,转至步骤(c)。(a) Judging whether the algorithm successfully tracked the target in the previous frame? If the tracking is successful, go to step (b), otherwise, go to step (c).
(b)根据上一帧得到的目标状态,选择搜索区域,利用改进后KCF算法进行跟踪,若目标对应的响应值大于预设的阈值,则认为跟踪成功,转至步骤(e),否则转至步骤(c)。(b) Select the search area according to the target state obtained in the previous frame, and use the improved KCF algorithm to track. If the corresponding response value of the target is greater than the preset threshold, it is considered that the tracking is successful, and go to step (e), otherwise go to Go to step (c).
(c)启动检测模块,利用不同的尺度对图像进行全局搜素,通过级联分类器对得到目标候选区域进行筛选,通过分类器的作为检测结果保留,转至步骤(d)。(c) Start the detection module, use different scales to search the image globally, filter the obtained target candidate regions through the cascade classifier, and save the result of the classifier as the detection result, and go to step (d).
(d)对检测结果进行融合,将重叠度高的多个目标框融合为一个,对聚类后的检测结果进行分析。若结果数为0,则跳转至步骤(f),若结果数为1,则检测到的即为目标,跳转至步骤(e);若检测到的结果为多个,则认为检测失败,跳转至步骤(f)。(d) Fusion of the detection results, merging multiple target frames with a high degree of overlap into one, and analyzing the clustered detection results. If the number of results is 0, then jump to step (f), if the number of results is 1, then the detected object is the target, and jump to step (e); if there are multiple detected results, the detection is considered a failure , jump to step (f).
(e)根据得到的目标位置,利用目标的相对相似度计算跟踪模块的自适应学习参数,提取搜索区域特征,更新相关滤波器的参数和外观模型;提取正负样本,训练检测模块中的分类器;标记当前帧成功跟踪到目标,转至步骤(g)。(e) According to the obtained target position, use the relative similarity of the target to calculate the adaptive learning parameters of the tracking module, extract the search area features, update the parameters of the correlation filter and the appearance model; extract positive and negative samples, and train the classification in the detection module device; mark that the current frame has successfully tracked the target, and go to step (g).
(f)标记当前帧跟踪失败,转至步骤(g)。(f) mark the current frame tracking failure, go to step (g).
(g)判断是否达到序列的最后一帧,如果是,则算法结束,退出跟踪;否则,转至步骤(a)。(g) Judging whether the last frame of the sequence is reached, if yes, the algorithm ends and the tracking exits; otherwise, go to step (a).
从上面的算法工作流程可以知道,基于KCF的TLD算法首先启动跟踪模块,若跟踪成功则继续处理下一帧。只有跟踪模块失败的时候,才会启动检测模块,即只有目标丢失或被遮挡时,才会进行重检测。所以该算法的运行效率非常高,而且当人体运动目标被遮挡后,会通过重检测机制重新捕获目标,实现长时目标跟踪的效果。From the above algorithm workflow, it can be known that the KCF-based TLD algorithm first starts the tracking module, and continues to process the next frame if the tracking is successful. Only when the tracking module fails, will the detection module be activated, that is, only when the target is lost or blocked, will re-detection be performed. Therefore, the operation efficiency of the algorithm is very high, and when the human moving target is blocked, the target will be recaptured through the re-detection mechanism to achieve the effect of long-term target tracking.
通过以上方法可以实现对分割出来的人体目标进行准确和稳定的跟踪,接下来需要对人体目标进行特征提取,这样做既能降低原始数据的维度,同时能保留人体的关键信息,从而保证老人摔跤和小孩乱爬这些异常行为识别的实时性和准确性。特征选择和提取的主要目的是通过选取最少的特征来有效的区分不同的行为类别。在智能视频监控系统中,选择的特征向量越多,特征向量空间维度就越高,分类器设计越复杂,系统的实时性越差,但是如果特征越少,分类精确度越低,识别率也越低,因此需要选择合适的特征数量,从而保证系统的准确性和性能。Through the above method, the segmented human target can be tracked accurately and stably. Next, the feature extraction of the human target is required. This can not only reduce the dimension of the original data, but also retain the key information of the human body, so as to ensure that the elderly wrestle Real-time and accurate recognition of these abnormal behaviors. The main purpose of feature selection and extraction is to effectively distinguish different behavior categories by selecting the fewest features. In an intelligent video surveillance system, the more feature vectors selected, the higher the dimension of the feature vector space, the more complex the design of the classifier, the worse the real-time performance of the system, but if there are fewer features, the lower the classification accuracy and the lower the recognition rate. The lower, so it is necessary to choose the appropriate number of features to ensure the accuracy and performance of the system.
在进行特征提取之前,需要了解老人和小孩在室内常见的行为,才能选出有效的特征,将正常行为与摔跤行为以及乱爬行为区分,室内人体运动正常行为有行走、慢跑、弯腰、蹲下、起床、躺下、跳、坐下以及起身等。Before feature extraction, it is necessary to understand the common behaviors of the elderly and children indoors in order to select effective features and distinguish normal behaviors from wrestling behaviors and random crawling behaviors. Normal indoor human movement behaviors include walking, jogging, bending, squatting Get down, get up, lie down, jump, sit down, get up, etc.
室内摔倒分为两种类型,分别是原地摔倒和行走中摔倒,第一类摔倒在x方向移动不明显,而第二类摔倒在x方向上有移动。对于这两类摔倒行为,主要区别在于人在水平上是否有移动,而对于外形特征和y方向上变化特征基本一样,因此选择特征即选择与x坐标变化有关的特征,而小孩乱爬在x方向上变化不明显,在y方向上有移动,因此选择特征即选择与y坐标变化有关的特征,但需要从正常行为中识别出摔倒行为和乱爬行为,必须提取行为的多特征,才能有效识别老人摔倒和小孩乱爬等异常行为。Indoor falls are divided into two types, namely falling in place and falling while walking. The first type of fall does not move significantly in the x direction, while the second type of fall has movement in the x direction. For these two types of falling behaviors, the main difference lies in whether the person moves horizontally, and the shape features are basically the same as the change features in the y direction, so selecting features means selecting features related to x-coordinate changes, and children crawling in The change in the x direction is not obvious, and there is movement in the y direction. Therefore, selecting features means selecting features related to the change in the y coordinate. However, it is necessary to identify falling behavior and crawling behavior from normal behavior, and multiple features of the behavior must be extracted. In order to effectively identify abnormal behaviors such as falling of the elderly and children crawling.
所以,可以定义质心位置为人体的最小矩形区域的对角线交点位置,假设矩形框的左上方和右下方为(xl,yl),(xr,yr),则人体质心(xc,yc)可以通过以下公式获得:Therefore, the position of the center of mass can be defined as the intersection of the diagonals of the smallest rectangular area of the human body. Assuming that the upper left and lower right of the rectangular frame are (x l , y l ), (x r , y r ), then the center of mass of the human body ( x c , y c ) can be obtained by the following formula:
显然可以看出当老人出现摔跤行为时,质心在y坐标方向下降明显:而当小孩出现乱爬行为时,质心在y坐标方向上升明显。It can be clearly seen that when the old man wrestles, the center of mass drops significantly in the y-coordinate direction; while when the child crawls randomly, the center of mass rises significantly in the y-coordinate direction.
同时为了避免不同人的身高不同引起误差,需要对质心在y方向上进行归一化,见如下公式:At the same time, in order to avoid errors caused by different heights of different people, it is necessary to normalize the center of mass in the y direction, see the following formula:
ync=(yc-yb)/H (1-11)y nc =(y c -y b )/H (1-11)
其中,H为人体的最大高度,通过上述的目标跟踪可以获得,yb为人体运动时质点的最低点。此特征能有效地将行走和摔倒行为以及乱爬行为分类,但是需要将其他行为与摔倒行为和乱爬行为进行区分,还需要人体宽高比、水平垂直投影直方图以及人体运动特征等行为特征。Among them, H is the maximum height of the human body, which can be obtained through the above-mentioned target tracking, and y b is the lowest point of the particle when the human body is moving. This feature can effectively classify walking and falling behaviors and random crawling behaviors, but it needs to distinguish other behaviors from falling behaviors and random crawling behaviors, as well as human body aspect ratio, horizontal and vertical projection histograms, and human motion characteristics. Behavioral characteristics.
人体宽高比定义为人体宽度和高度的比值,用来判断人体是站立还是躺下。在前景检测得到目标二值图像后,计算其水平和垂直投影直方图来表示人体的轮廓特征,水平和垂直投影直方图就是计算目标的横向像素数量和纵向像素数量:The human body aspect ratio is defined as the ratio of the width and height of the human body, which is used to judge whether the human body is standing or lying down. After the foreground detection obtains the target binary image, calculate its horizontal and vertical projection histograms to represent the outline features of the human body. The horizontal and vertical projection histograms are to calculate the number of horizontal pixels and vertical pixels of the target:
HZ(y)=|(xp,yp)∈F,yp=y| (1-12)H Z (y)=|(x p ,y p )∈F,y p =y| (1-12)
Vt(x)=|(xp,yp)∈F,xp=x| (1-13)V t (x)=|(x p ,y p )∈F,x p =x| (1-13)
由于投影直方图会随着目标的位置不同而不同,所以在得到人体目标后,先对得到的轮廓进行归一化处理,最常用的方法是将人体目标的尺寸重新调整到固定长度M,但是归一化参数M对于不同场景需要不同的实验得到,因为它对人体姿态依赖度高,并且十分敏感,为了避免这些问题,可以使用傅里叶变换来进行归一化,具体做法如下:Since the projection histogram will vary with the position of the target, after obtaining the human target, first normalize the obtained contour. The most common method is to readjust the size of the human target to a fixed length M, but The normalization parameter M requires different experiments for different scenarios, because it is highly dependent on human body posture and is very sensitive. In order to avoid these problems, Fourier transform can be used for normalization. The specific method is as follows:
傅里叶系数随着k和v的增大而衰弱,不同的姿势的区别在最初部分,设置的变换区间长度为30,得到直方图的傅里叶变换数据后通过以下公式进行归一化:The Fourier coefficient weakens with the increase of k and v. The difference between different postures is in the initial part. The length of the transformation interval is set to 30. After obtaining the Fourier transform data of the histogram, it is normalized by the following formula:
选取(归一化的水平直方图)作为摔倒检测的特征,选取(归一化的垂直直方图)作为攀爬检测的特征这样特可以减少征数据冗余,而且提取此特征能有效区分摔跤和其他行为以及攀爬和其他行为。select (normalized horizontal histogram) as features for fall detection, select (Normalized vertical histogram) as a feature of climbing detection can reduce feature data redundancy, and extracting this feature can effectively distinguish wrestling from other behaviors and climbing from other behaviors.
前面分析的是人体的外形特征,能从人体姿态上有效地区分摔倒行为和非摔倒行为,以及有效区分攀爬行为和非攀爬行为,但是人体非摔倒行为和非攀爬行为有许多,一些行为容易出现在外形姿态上与摔倒行为或者攀爬行为相似,上述特征不能完全精确地区分,比如,人在摔倒后躺在地上与人自动躺下通过上述特征很难区分,人在弹跳后时可能和攀爬行为通过上述特征很难区分,所以添加了人体运动特征来增加分类器的精确性。The previous analysis is about the appearance characteristics of the human body, which can effectively distinguish the falling behavior from the non-falling behavior, and effectively distinguish the climbing behavior from the non-climbing behavior from the posture of the human body, but the non-falling behavior and non-climbing behavior of the human body have Many, some behaviors are likely to appear similar to falling behavior or climbing behavior in terms of appearance and posture. The above-mentioned features cannot be completely and accurately distinguished. It may be difficult to distinguish people from climbing behaviors through the above features after bouncing, so human motion features are added to increase the accuracy of the classifier.
摔倒、躺下、下蹲、跳以及攀爬等行为,其质点都会在y上的速度和加速度有明显的区别,其中攀爬的加速度与摔倒、躺下、下蹲的加速度方向相反,很容易区分攀爬行为与其他行为,然后摔倒与下蹲。躺下等行为在y上的速度和加速度有明显的区别,摔倒行为中y变化的速度明显大于下蹲,而跳的加速度明显大于攀爬的加速度。定义相邻两帧的质心为(xi,yi),(xi+1,yi+1),然后定义第i+1帧的人体目标运动的速度vi+1:Falling down, lying down, squatting down, jumping and climbing, etc., the velocity and acceleration of the particle on y will be obviously different, and the acceleration direction of climbing is opposite to that of falling down, lying down and squatting down. It is easy to distinguish climbing behavior from other behaviors, and falling from squatting. There is a clear difference between the speed and acceleration of y in behaviors such as lying down. The speed of y change in falling behavior is significantly greater than that of squatting, and the acceleration of jumping is significantly greater than that of climbing. Define the centroids of two adjacent frames as (x i , y i ), (x i+1 , y i+1 ), and then define the speed v i+1 of the human target movement in frame i+1 :
vi+1=(yi+1-yi)/t (1-18)v i+1 =(y i+1 -y i )/t (1-18)
其中,t为两图像帧的时间间隔,定义i+1时刻人体目标运动的加速度ai+1:Among them, t is the time interval between two image frames, and the acceleration a i+1 of the human target movement at time i+1 is defined:
ai+1=(vi+1-v)/t (1-19)a i+1 =(v i+1 -v)/t (1-19)
通过以上两步可以得到每帧中人体目标在y轴方向的加速度,通过此特征有精确区分人体摔倒、躺下、蹲下、跳和攀爬行为。Through the above two steps, the acceleration of the human target in the y-axis direction in each frame can be obtained. Through this feature, the behaviors of falling, lying down, squatting, jumping and climbing can be accurately distinguished.
其中,所述获取所述目标对象在目标时间内的目标特征,可以包括:通过基于滑动窗口方法获取所述目标对象在目标时间内的目标特征。Wherein, the acquiring the target features of the target object within the target time may include: acquiring the target features of the target object within the target time based on a sliding window method.
以上详细介绍了选择提取了哪些有效特征,但是摔倒行为和攀爬行为实际上是一个连续动作,不能只通过识别一帧中人体目标的特征来判断是否摔倒以及是否攀爬。否则,容易导致误检或漏检,摔倒和攀爬检测其实是一个时间序列的分类问题,通过获取一段时间的人体目标特征,来判断行为是摔倒行为还是攀爬行为还是非摔倒攀爬行为,对于摔倒和攀爬检测时间序列问题使用一种基于滑动窗口方法来提取特征。The above describes in detail which effective features are selected and extracted, but the falling behavior and climbing behavior are actually a continuous action, and it is not possible to judge whether to fall and whether to climb only by recognizing the characteristics of the human target in one frame. Otherwise, it is easy to cause false detection or missed detection. Falling and climbing detection is actually a time-series classification problem. By obtaining the characteristics of human targets for a period of time, it is judged whether the behavior is falling behavior, climbing behavior or non-falling climbing behavior. For crawling behavior, a sliding window based approach is used to extract features for fall and climb detection time series problems.
滑动窗口方法也就是系统采用一个固定大小的滑动窗口来存储时间序列数据,然后随着时间推移,滑动窗口向左移动,新进入的序列数据放入窗口末尾,左侧的序列被移出窗口,滑动窗口向左移动,新进入的序列数据放入窗口末尾,左侧的序列被移出窗口,滑动窗口实际上和常用的队列性质相同。提取摔倒行为特征和攀爬行为特征模型就是把滑动窗口中的连续的人体目标特征融合构造成特征向量空间,然后把此特征向量空间送入SVM分类器检测摔倒、攀爬行为。The sliding window method means that the system uses a fixed-size sliding window to store time series data, and then as time goes by, the sliding window moves to the left, the newly entered sequence data is placed at the end of the window, and the sequence on the left is moved out of the window, sliding The window moves to the left, the newly entered sequence data is placed at the end of the window, and the sequence on the left is moved out of the window. The sliding window is actually the same as the commonly used queue. The feature extraction model of falling behavior and climbing behavior is to fuse the continuous human target features in the sliding window into a feature vector space, and then send this feature vector space to the SVM classifier to detect falling and climbing behaviors.
304、当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。304 . When the first behavior of the target object is detected according to the characteristics of the target object and the preset SVM classifier, and it is determined that the first behavior of the target object is abnormal, send an alarm message.
所述确定所述目标对象的第一行为异常行为时,发出报警提示信息,可以包括:向终端设备发送报警提示信息,所述报警提示信息包括关于异常行为的文字提示信息,或者关于异常行为的语音提示信息。When determining the abnormal behavior of the first behavior of the target object, sending out alarm prompt information may include: sending alarm prompt information to the terminal device, the alarm prompt information including text prompt information about abnormal behavior, or information about abnormal behavior Voice prompt information.
需要说明的是,SVM分类的摔倒攀爬检测方法分为两个部分;摔倒行为样本和攀爬行为样本离线训练和摔倒行为和攀爬行为在线检测,如图6所示,为本发明实施例中分类检测的具体流程示意图。在图6所示中,主要包括在线监测模块和离线训练模块,分别进行说明,如下所示:It should be noted that the falling and climbing detection method of SVM classification is divided into two parts: offline training of falling behavior samples and climbing behavior samples and online detection of falling behavior and climbing behavior, as shown in Figure 6. Schematic diagram of a specific flow chart of classification and detection in the embodiment of the invention. As shown in Figure 6, it mainly includes an online monitoring module and an offline training module, which are explained separately, as follows:
离线训练:该过程就是需要用大量老人摔倒行为样本数据和小孩乱爬行为样本数据以及非摔倒攀爬行为样本数据送入到SVM中,通过训练这些样本数据集得到老人摔倒、小孩乱爬的分类器。Offline training: This process requires a large number of sample data of falling behavior of the elderly, sample data of children's crawling behavior and non-falling and climbing behavior sample data to be sent to the SVM. Climbing classifier.
在线检测:该过程是把视频提取的连续视频帧中人体目标特征放入滑动窗口,然后将特征进行融合提取,然后送入到已经训练完成的摔倒攀爬行为分类器中,进行决策。Online detection: This process is to put the human target features in the continuous video frames extracted from the video into the sliding window, and then fuse and extract the features, and then send them to the trained falling and climbing behavior classifier for decision-making.
最后,当嵌入式系统接收到老人摔倒和小孩乱爬的异常行为信息之后,就会通过各个模块发送串口信息,当语音模块收到异常信息之后,会立即在室内播放警报语音,让室内的人第一时间知道发生了意外;4G通信模块也会就收到异常信息,然后会通过给手机发送警报信息,也可以在手机的监控APP上警报,这样的话可以让外出的人能够查看信息,判断是否真的发生意外。这样的话就可以在很大程度保障了老人和小孩在家里的安全。Finally, when the embedded system receives the abnormal behavior information of the old man falling and the child crawling, it will send the serial port information through each module. When the voice module receives the abnormal information, it will immediately play the alarm voice indoors to let the indoor People know that an accident has happened at the first time; the 4G communication module will also receive abnormal information, and then send an alarm message to the mobile phone, or it can be alarmed on the monitoring APP of the mobile phone, so that people who go out can view the information. Determine if an accident really happened. In this way, the safety of the elderly and children at home can be guaranteed to a large extent.
在本发明实施例中,采用了改进的高斯背景建模方法和基于KCF的TLD目标跟踪算法对摄像头视频的人体运动目标分割出来并进行稳定的跟踪,首先对高斯背景建模方法做出了改进,改进后的高斯背景建模方法在室内背景变化和室内光照条件变化的情况下仍然可以非常有效且高精度地提取人体运动目标。基于KCF的TLD目标跟踪算法也是对KCF算法和TLD算法做出了改进,提高了算法的处理帧率,同时保持检测模块的在线训练,提升了算法的重检测能力,从而实现了对目标的快速跟踪。而且当人体运动目标被遮挡或者出现尺度变化时,该算法仍然可以稳定准确实时的跟踪人体运动目标。In the embodiment of the present invention, the improved Gaussian background modeling method and the KCF-based TLD target tracking algorithm are used to segment the human body moving target in the camera video and perform stable tracking. First, the Gaussian background modeling method is improved. , the improved Gaussian background modeling method can still extract human moving objects very effectively and with high precision even when the indoor background changes and the indoor lighting conditions change. The KCF-based TLD target tracking algorithm also improves the KCF algorithm and the TLD algorithm, improves the processing frame rate of the algorithm, and maintains the online training of the detection module at the same time, which improves the re-detection ability of the algorithm, thereby realizing the rapid detection of the target. track. Moreover, when the human moving target is blocked or scale changes, the algorithm can still track the human moving target stably and accurately in real time.
进一步的,本发明实施例利用基于滑动窗口的特征提取和SVM分类器实现对异常行为的检测,这样不但减少了数据冗余,而且可以合理的提取有效的特征,然后将其组合成特征向量将其送入训练好的SVM分类器进行分类。这样可以快速准确的对人体运动目标的行为进行分类,而且泛化能力也非常好。还通过以上方法来检测家庭中老人摔倒和小孩乱爬等异常行为,并搭建了完整的家庭异常行为检测系统,而且该系统通过摄像头的长期扫描,通过收集数据和存储数据,从而使得数据越来越完善,这样可以不断的提高对老人摔倒和小孩乱爬等行为检测的精度,从而使得家庭中由于异常行为造成的伤害降到了最低。Further, the embodiment of the present invention utilizes sliding window-based feature extraction and SVM classifier to detect abnormal behavior, which not only reduces data redundancy, but also can reasonably extract effective features, and then combine them into feature vectors to It is sent to the trained SVM classifier for classification. In this way, the behavior of human moving objects can be quickly and accurately classified, and the generalization ability is also very good. The above methods are also used to detect abnormal behaviors such as falling of the elderly and children crawling in the family, and a complete family abnormal behavior detection system has been built, and the system collects and stores data through long-term scanning of the camera, so that the data becomes more and more It is becoming more and more perfect, so that the accuracy of behavior detection such as falling of the elderly and children crawling can be continuously improved, so that the damage caused by abnormal behavior in the family is minimized.
如图7所示,为本发明实施例中检测设备的一个实施例示意图,可以包括:As shown in Figure 7, it is a schematic diagram of an embodiment of the detection device in the embodiment of the present invention, which may include:
获取模块701,用于获取关于目标对象的视频数据;An acquisition module 701, configured to acquire video data about the target object;
处理模块702,用于根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。The processing module 702 is used to obtain the position information, size and area information of the target object through the processing of the updated Gaussian background modeling method according to the video data; according to the position information, size and area information of the target object, based on The target tracking algorithm of KCF and TLD tracks the target object to obtain the characteristics of the target object; when the first behavior of the target object is detected according to the characteristics of the target object and the preset SVM classifier, When it is determined that the first behavior of the target object is abnormal, an alarm prompt message is issued.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理模块702,具体用于根据所述视频数据通过更新的高斯背景建模方法的处理,将目标对象从背景中分割出来,所述分割出来的目标对象包括目标对象的位置信息、大小和区域信息。The processing module 702 is specifically configured to segment the target object from the background according to the processing of the video data through an updated Gaussian background modeling method, and the segmented target object includes position information, size and area information of the target object .
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理模块702,具体用于根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,获取所述目标对象在目标时间内的目标特征。The processing module 702 is specifically configured to track the target object through the target tracking algorithm based on KCF and TLD according to the position information, size and area information of the target object, and obtain the target features of the target object within the target time .
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理模块702,具体用于通过基于滑动窗口方法获取所述目标对象在目标时间内的目标特征。The processing module 702 is specifically configured to acquire target features of the target object within a target time by using a sliding window method.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理模块702,具体用于向终端设备发送报警提示信息,所述报警提示信息包括关于异常行为的文字提示信息,或者关于异常行为的语音提示信息。The processing module 702 is specifically configured to send alarm prompt information to the terminal device, where the alarm prompt information includes text prompt information about abnormal behavior, or voice prompt information about abnormal behavior.
如图8所示,为本发明实施例中检测设备的另一个实施例示意图,可以包括:As shown in Figure 8, it is a schematic diagram of another embodiment of the detection device in the embodiment of the present invention, which may include:
收发器801,处理器802,存储器803,其中,收发器801,处理器802和存储器803通过总线连接;A transceiver 801, a processor 802, and a memory 803, wherein the transceiver 801, the processor 802, and the memory 803 are connected through a bus;
存储器803,用于存储操作指令;Memory 803, for storing operation instructions;
收发器801,用于获取关于目标对象的视频数据;Transceiver 801, used to obtain video data about the target object;
处理器802,用于调用所述操作指令,根据所述视频数据通过更新的高斯背景建模方法的处理,得到目标对象的位置信息、大小和区域信息;根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,得到所述目标对象的特征;当根据所述目标对象的特征和预置的SVM分类器对所述目标对象的第一行为进行检测,确定所述目标对象的第一行为异常行为时,发出报警提示信息。The processor 802 is configured to invoke the operation instruction, and obtain the position information, size and area information of the target object according to the processing of the video data through an updated Gaussian background modeling method; and area information, the target object is tracked by the target tracking algorithm based on KCF and TLD to obtain the characteristics of the target object; when the characteristics of the target object and the preset SVM classifier are used to The first behavior is detected, and when it is determined that the first behavior of the target object is abnormal, an alarm prompt message is issued.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理器802,具体用于根据所述视频数据通过更新的高斯背景建模方法的处理,将目标对象从背景中分割出来,所述分割出来的目标对象包括目标对象的位置信息、大小和区域信息。The processor 802 is specifically configured to segment the target object from the background by processing the video data through an updated Gaussian background modeling method, and the segmented target object includes position information, size and area information of the target object .
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理器802,具体用于根据所述目标对象的位置信息、大小和区域信息,通过基于KCF和TLD的目标跟踪算法对所述目标对象进行跟踪,获取所述目标对象在目标时间内的目标特征。The processor 802 is specifically configured to track the target object through the target tracking algorithm based on KCF and TLD according to the position information, size and area information of the target object, and obtain the target characteristics of the target object within the target time .
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理器802,具体用于通过基于滑动窗口方法获取所述目标对象在目标时间内的目标特征。The processor 802 is specifically configured to acquire target features of the target object within a target time based on a sliding window method.
可选的,在本发明的一些实施例中,Optionally, in some embodiments of the present invention,
处理器802,具体用于向终端设备发送报警提示信息,所述报警提示信息包括关于异常行为的文字提示信息,或者关于异常行为的语音提示信息。The processor 802 is specifically configured to send alarm prompt information to the terminal device, where the alarm prompt information includes text prompt information about abnormal behavior, or voice prompt information about abnormal behavior.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589840.9A CN110414360A (en) | 2019-07-02 | 2019-07-02 | Abnormal behavior detection method and detection equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589840.9A CN110414360A (en) | 2019-07-02 | 2019-07-02 | Abnormal behavior detection method and detection equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110414360A true CN110414360A (en) | 2019-11-05 |
Family
ID=68358672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910589840.9A Pending CN110414360A (en) | 2019-07-02 | 2019-07-02 | Abnormal behavior detection method and detection equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110414360A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113065500A (en) * | 2021-04-15 | 2021-07-02 | 电子科技大学 | Abnormal behavior control system for special actions |
CN113158858A (en) * | 2021-04-09 | 2021-07-23 | 苏州爱可尔智能科技有限公司 | Behavior analysis method and system based on deep learning |
CN113518201A (en) * | 2020-07-14 | 2021-10-19 | 阿里巴巴集团控股有限公司 | Video processing method, device and equipment |
CN114187666A (en) * | 2021-12-23 | 2022-03-15 | 中海油信息科技有限公司 | Identification method and system for watching mobile phone while walking |
CN114821688A (en) * | 2021-01-21 | 2022-07-29 | 阿里巴巴集团控股有限公司 | State detection method, device and system |
CN116386275A (en) * | 2023-04-07 | 2023-07-04 | 重庆电子工程职业学院 | Old person's monitoring system that tumbles based on visual identification |
CN117541980A (en) * | 2023-11-03 | 2024-02-09 | 湖北公众信息产业有限责任公司 | Video monitoring method for indoor working state |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718857A (en) * | 2016-01-13 | 2016-06-29 | 兴唐通信科技有限公司 | Human body abnormal behavior detection method and system |
US20170206423A1 (en) * | 2014-07-22 | 2017-07-20 | S-1 Corporation | Device and method surveilling abnormal behavior using 3d image information |
CN108509938A (en) * | 2018-04-16 | 2018-09-07 | 重庆邮电大学 | A kind of fall detection method based on video monitoring |
CN109670396A (en) * | 2018-11-06 | 2019-04-23 | 华南理工大学 | A kind of interior Falls Among Old People detection method |
-
2019
- 2019-07-02 CN CN201910589840.9A patent/CN110414360A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170206423A1 (en) * | 2014-07-22 | 2017-07-20 | S-1 Corporation | Device and method surveilling abnormal behavior using 3d image information |
CN105718857A (en) * | 2016-01-13 | 2016-06-29 | 兴唐通信科技有限公司 | Human body abnormal behavior detection method and system |
CN108509938A (en) * | 2018-04-16 | 2018-09-07 | 重庆邮电大学 | A kind of fall detection method based on video monitoring |
CN109670396A (en) * | 2018-11-06 | 2019-04-23 | 华南理工大学 | A kind of interior Falls Among Old People detection method |
Non-Patent Citations (5)
Title |
---|
JIA DONGYAO 等: "A method of detecting human body falling action in a complex background", 《2016 IEEE 20TH JUBILEE INTERNATIONAL CONFERENCE ON INTELLIGENT ENGINEERING SYSTEMS》 * |
禹明娟: "基于视频的室内老人摔倒检测研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
艾达等: "基于监控视频的行人异常行为检测技术研究", 《电视技术》 * |
郭娅祥: "多目标跟踪系统的关键技术研究及实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
阿斯雅 等: "一种结合区域直方 图比较的单高斯背景建模算法的改进", 《计算机光盘软件与应用》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113518201A (en) * | 2020-07-14 | 2021-10-19 | 阿里巴巴集团控股有限公司 | Video processing method, device and equipment |
CN114821688A (en) * | 2021-01-21 | 2022-07-29 | 阿里巴巴集团控股有限公司 | State detection method, device and system |
CN113158858A (en) * | 2021-04-09 | 2021-07-23 | 苏州爱可尔智能科技有限公司 | Behavior analysis method and system based on deep learning |
CN113065500A (en) * | 2021-04-15 | 2021-07-02 | 电子科技大学 | Abnormal behavior control system for special actions |
CN114187666A (en) * | 2021-12-23 | 2022-03-15 | 中海油信息科技有限公司 | Identification method and system for watching mobile phone while walking |
CN116386275A (en) * | 2023-04-07 | 2023-07-04 | 重庆电子工程职业学院 | Old person's monitoring system that tumbles based on visual identification |
CN117541980A (en) * | 2023-11-03 | 2024-02-09 | 湖北公众信息产业有限责任公司 | Video monitoring method for indoor working state |
CN117541980B (en) * | 2023-11-03 | 2025-03-28 | 湖北公众信息产业有限责任公司 | Video monitoring method for indoor working status |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110414360A (en) | Abnormal behavior detection method and detection equipment | |
US11004209B2 (en) | Methods and systems for applying complex object detection in a video analytics system | |
CN110287923B (en) | Human body posture acquisition method, device, computer equipment and storage medium | |
US9530221B2 (en) | Context aware moving object detection | |
US20190130583A1 (en) | Still and slow object tracking in a hybrid video analytics system | |
CN109154976B (en) | System and method for training object classifier through machine learning | |
CN108446630B (en) | Intelligent monitoring method for airport runway, application server and computer storage medium | |
US20190304102A1 (en) | Memory efficient blob based object classification in video analytics | |
US9396400B1 (en) | Computer-vision based security system using a depth camera | |
US8619135B2 (en) | Detection of abnormal behaviour in video objects | |
US9734404B2 (en) | Motion stabilization and detection of articulated objects | |
US20150262068A1 (en) | Event detection apparatus and event detection method | |
WO2014081687A1 (en) | Method and system for counting people using depth sensor | |
US20230386185A1 (en) | Statistical model-based false detection removal algorithm from images | |
KR102762704B1 (en) | Method to prevent intrusion object false detection using object motion and size information, apparatus therefor and recording medium therefor | |
CN117671799B (en) | Human body falling detection method, device, equipment and medium combining depth measurement | |
CN116129523A (en) | Action recognition method, device, terminal and computer readable storage medium | |
KR102427690B1 (en) | Apparatus and method for classification based on deep learning | |
CN111325937B (en) | Method, device and electronic system for detecting crossing behavior | |
CN118609171B (en) | Vision-based pet biting behavior recognition method, device, equipment and medium | |
CN109583396A (en) | A kind of region prevention method, system and terminal based on CNN two stages human testing | |
CN116597501A (en) | Video analysis algorithm and edge device | |
CN110572618B (en) | A method, device and system for monitoring illegal photographing behavior | |
CN116416565A (en) | A method and system for detecting pedestrians following and overtaking in a specific area | |
CN115424207B (en) | Adaptive monitoring system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |
|
RJ01 | Rejection of invention patent application after publication |