TW201430721A - Method for detecting violent behavior of persons - Google Patents

Method for detecting violent behavior of persons Download PDF

Info

Publication number
TW201430721A
TW201430721A TW102103518A TW102103518A TW201430721A TW 201430721 A TW201430721 A TW 201430721A TW 102103518 A TW102103518 A TW 102103518A TW 102103518 A TW102103518 A TW 102103518A TW 201430721 A TW201430721 A TW 201430721A
Authority
TW
Taiwan
Prior art keywords
person
behavior
detecting
image
current image
Prior art date
Application number
TW102103518A
Other languages
Chinese (zh)
Inventor
Ming-Tang Hsu
Chih-Heng Fang
Wei-Hsiung Huang
Original Assignee
Utechzone Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Utechzone Co Ltd filed Critical Utechzone Co Ltd
Priority to TW102103518A priority Critical patent/TW201430721A/en
Publication of TW201430721A publication Critical patent/TW201430721A/en

Links

Landscapes

  • Image Analysis (AREA)
  • Alarm Systems (AREA)

Abstract

A method for detecting violent behavior of persons is executed by a monitor system, and includes: recognizing whether a person /persons enters a target zone in accordance with images delivered form a camera; comparing a present image with prior sequential images and calculating a motion value representing a variation between each two images; determining whether the motion value is greater than a default threshold, if yes, adding 1 to an abnormal count and recording the time representing the present image; determining whether an interval between the time representing the present image and a first abnormal time or a last abnormal time is not greater than a default time period, if not, setting the abnormal count to zero, if yes, determining whether the abnormal count greater than a default count, and if yes, outputting information corresponding to the occurrence of violent behavior of a person. Thus, violent behavior of a person can be detected precisely and promptly.

Description

人員激烈行為偵測方法 Personnel behavior detection method

本發明是有關於一種影像辨識方法,特別是指一種人員激烈行為偵測方法。 The invention relates to an image recognition method, in particular to a method for detecting a strong behavior of a person.

舉凡大樓大廳、電梯、ATM提款機、巷口等場所往往需要安裝監視器,監視器拍攝的監視畫面傳送至遠端的保全公司或管理室,以遠端監看的方式進行保全管理。 In the halls of buildings, elevators, ATMs, and alleys, it is often necessary to install monitors. The surveillance screens of the monitors are transmitted to the remote security company or management office for security management by remote monitoring.

隨著影像辨識技術演進,近年來陸續發展出多種人員行為偵測技術,偵測出異常狀況時發出警報,藉此減輕人工監看的負擔。其中,移動歷史影像(Motion History Images,MHI)技術可記錄運動之人體在時間與空間中所發生的資訊,利用MHI資訊可進一步分析人員行為。 With the evolution of image recognition technology, various human behavior detection technologies have been developed in recent years, and alarms are issued when abnormal conditions are detected, thereby reducing the burden of manual monitoring. Among them, Motion History Images (MHI) technology can record the information of the human body in time and space, and use MHI information to further analyze the behavior of people.

現有MHI資訊處理方式,大多是詳細區分出肢體,並事先定義各種動作與姿勢,再以比對特徵的方式辨識動作。然而現實生活中,人體高矮胖瘦、肢體動作十分多樣,並不容易作出精準又通用的定義,以致於現有技術對於異常狀況的辨識效果不佳,經常誤發警報或因無法偵測異常狀況而未能及時發出警報。 The existing MHI information processing methods mostly distinguish the limbs in detail, and define various actions and postures in advance, and then identify the actions in a manner of comparing features. However, in real life, the human body is tall and thin, and the body movements are very diverse. It is not easy to make a precise and universal definition, so that the prior art has poor recognition effect on abnormal conditions, often false alarms or unable to detect abnormal conditions. Failure to issue an alert in a timely manner.

因此,本發明之目的,即在提供一種可精確辨識人員激烈行為而及時進行相關輸出的人員激烈行為偵測方法。 Therefore, the object of the present invention is to provide a method for detecting a strong behavior of a person who can accurately recognize the intense behavior of a person and perform relevant output in time.

於是,本發明人員激烈行為偵測方法,由一監視系統執行,該監視系統包括一朝一目標區域取像的攝影機,及 一接收來自該攝影機之影像的處理單元。該方法包含以下由該處理單元執行的步驟: Therefore, the method for detecting a strong behavior of the present invention is performed by a monitoring system including a camera that takes an image toward a target area, and A processing unit that receives images from the camera. The method comprises the following steps performed by the processing unit:

(A)依據該攝影機傳送之影像辨識出有人員進入該目標區域,設定一異常次數為0。 (A) According to the image transmitted by the camera, it is recognized that a person enters the target area, and the number of abnormal times is set to zero.

(B)針對一目前影像與先前複數張序列影像分別比較,計算一代表變化程度的動量值。 (B) Calculating a momentum value representative of the degree of change for comparing a current image with a previous plurality of sequence images.

(C)判斷該動量值是否大於一預設閾值,若是則進行步驟(D)。 (C) determining whether the momentum value is greater than a predetermined threshold, and if so, performing step (D).

(D)令該異常次數加1,並紀錄該目前影像對應的時間。 (D) Add 1 to the number of abnormalities and record the time corresponding to the current image.

(E)判斷目前影像對應的時間與第一次異常時間或上一次異常時間的間距是否不超過一預設時間長度,若是則進行步驟(F),若否則回到步驟(A)。 (E) determining whether the time corresponding to the current image and the interval between the first abnormal time or the last abnormal time does not exceed a predetermined length of time, and if yes, proceeding to step (F), otherwise returning to step (A).

(F)判斷該異常次數是否大於一預設次數,若是則進行步驟(G),若否則回到步驟(B)。 (F) determining whether the abnormal number of times is greater than a predetermined number of times, if yes, proceeding to step (G), and if not, returning to step (B).

(G)判斷為發生人員激烈行為並進行相關輸出。 (G) It is judged that a person's intense behavior occurs and relevant output is performed.

其中,該步驟(B)是針對該目前影像分別與前一張、與再前一張影像比較而分別得到代表兩兩影像之間變化程度的值,再予以加總而得到該動量值。所謂兩兩影像之間變化程度的值,例如是利用各像素的RGB分量值相減計算得知。其中,該步驟(C)還可以進一步判斷該目前影像是否存在手部特徵,若該二判斷條件皆成立,才進行步驟(D);該步驟(F)是判斷為發生人員進行破壞之行為。 In the step (B), the current image is compared with the previous image and the previous image, and the values representing the degree of change between the two images are respectively obtained, and then added to obtain the momentum value. The value of the degree of change between the two images is, for example, calculated by subtracting the RGB component values of the respective pixels. The step (C) may further determine whether the current image has a hand feature, and if the two determination conditions are all satisfied, the step (D) is performed; the step (F) is an action of determining that a person is performing the destruction.

或者,該步驟(C)還判斷該目前影像中人員輪廓是否 重疊,若該二判斷條件皆成立,才進行步驟(D);甚至,該步驟(C)還針對該目前影像辨識手部區域,並判斷該手部區域的輪廓的水平邊是否多於垂直邊,若該三判斷條件皆成立,才進行步驟(D)。 Alternatively, the step (C) also determines whether the contour of the person in the current image is Overlap, if the two determination conditions are met, step (D) is performed; even, the step (C) identifies the hand region for the current image, and determines whether the horizontal edge of the contour of the hand region is more than the vertical edge If the three judgment conditions are satisfied, the step (D) is performed.

本發明之功效在於,利用影像變化程度與時間等參數進行綜合性邏輯判斷,可在不耗費龐大演算資源的情況下精準地發現人員激烈行為之異常狀況。 The utility model has the advantages that the comprehensive logical judgment is made by using parameters such as the degree of image change and time, and the abnormal situation of the intense behavior of the personnel can be accurately found without consuming a large amount of calculation resources.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一個較佳實施例的詳細說明中,將可清楚的呈現。 The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.

參閱圖1及圖2,本發明人員激烈行為偵測方法由一監視系統100執行,當人員進入一目標區域,可啟動偵測人員破壞設備之激烈行為,當複數人員進入目標區域,還可啟動偵測是否有打架之激烈行為。該監視系統100包括一朝該目標區域取像的攝影機1,及一接收來自該攝影機1之影像的處理單元2。前述目標區域例如擺放提款機的房間。 Referring to FIG. 1 and FIG. 2, the method for detecting the intense behavior of the inventor of the present invention is executed by a monitoring system 100. When a person enters a target area, the detecting personnel can initiate a fierce behavior of destroying the device. When multiple personnel enter the target area, the user can also start. Detect if there is a fierce behavior of fighting. The monitoring system 100 includes a camera 1 that captures images of the target area, and a processing unit 2 that receives images from the camera 1. The aforementioned target area is, for example, a room in which the cash dispenser is placed.

該方法包含以下步驟: The method includes the following steps:

步驟S11-該攝影機1持續對該目標區域取像,取得序列影像。 Step S11 - The camera 1 continues to take images of the target area to obtain a sequence image.

以下步驟由該處理單元2依據該攝影機1傳送之影像進行處理。 The following steps are processed by the processing unit 2 in accordance with the image transmitted by the camera 1.

步驟S12-偵測是否有人員進入,也就是辨識是否有單一或複數人員進入該目標區域。本步驟具體技術手段不以 特定手段為限,可以利用現有技術例如前景追蹤或區域式追蹤(Region-Based Tracking),以目前影像與背景影像相減來偵測出變化區域再進一步設定規則做篩選;或者利用輪廓追蹤(Contour-Based Tracking),找出輪廓線並依據輪廓線的改變進行追蹤;或者利用特徵追蹤(Feature-Based Tracking),先針對要追蹤的物體擷取特徵,例如重心、面積等,在比對連續影像間的特徵來追蹤物體;又或者利用模型追蹤(Model-Based Tracking),首先建立物體模型、建立運動模型,再搜尋從連續影像中比對而找出物體。若有人員進入則進入步驟S13,若無則重複執行步驟S12。 Step S12 - detecting whether a person enters, that is, whether a single or plural person enters the target area. The specific technical means of this step are not The specific means are limited, and the prior art, such as foreground tracking or region-based tracking, can be used to detect the changed region by subtracting the current image from the background image, and further setting rules for screening; or using contour tracking (Contour) -Based Tracking), find the contour line and track it according to the change of the contour line; or use Feature-Based Tracking to first extract features for the object to be tracked, such as center of gravity, area, etc. The feature is used to track the object; or Model-Based Tracking is used to first build the object model, build the motion model, and then search for objects from the continuous image. If there is a person entering, the process proceeds to step S13, and if not, the process proceeds to step S12.

步驟S13-設定一異常次數為0、計數參數i為0。接著進行步驟S14之動量條件判斷,以及步驟S15之特徵條件判斷,並且在步驟S16針對條件判斷結果綜合判斷。其中步驟S14包括步驟S141及步驟S142。 Step S13 - setting an abnormal number of times to 0 and counting parameter i to be 0. Next, the momentum condition determination in step S14 and the characteristic condition determination in step S15 are performed, and the condition judgment result is comprehensively judged in step S16. Step S14 includes step S141 and step S142.

步驟S141-針對一目前影像分別與前一張、與再前一張影像比較而分別得到代表兩兩影像之間變化程度的值,再予以加總而得到一本發明新定義之動量值。具體計算方式詳述如下。在本實施例,針對第一張及第二張影像執行到本步驟時,由於不存在前一張或再前一張影像,因此流程會回到步驟S13之後,取下一張影像重新進行步驟S14及S15之條件判斷。 In step S141, a value representing the degree of change between the two images is obtained separately from the previous image and the previous image, and then added to obtain a newly defined momentum value of the invention. The specific calculation method is detailed below. In this embodiment, when the first and second images are executed in this step, since there is no previous or previous image, the process returns to step S13, and the next image is taken again. The conditions of S14 and S15 are judged.

以第三張影像之後的處理狀況舉例來說,該攝影機每30毫秒(ms)擷取一張影像,本步驟首先針對時間為1分10秒00毫秒的影像F3與時間為1分09秒30毫秒的進行各 像素的RGB分量值差異化比對-如果有人員移動,影像F3會有部分像素的RGB分量值(各為0~255)與影像F2不一樣,這些RGB分量值差異程度大於一像素變化閾值的像素,在影像F3直接定為255,RGB分量值差異程度小於等於該像素變化閾值的像素,在影像F3則定為0。 For example, in the processing situation after the third image, the camera captures an image every 30 milliseconds (ms). This step firstly targets the image F3 with a time of 1 minute 10 seconds 00 milliseconds and the time is 1 minute 09 seconds 30 Milliseconds of each The RGB component values of the pixels are differentiated and compared - if there is a person moving, the image F3 will have RGB component values of some pixels (0 to 255 each) which are different from the image F2, and the difference of these RGB component values is greater than a pixel variation threshold. The pixel is directly set to 255 in the image F3, and the pixel whose value of the RGB component value is less than or equal to the pixel change threshold is set to 0 in the image F3.

接著,鎖定一有興趣的取樣區域,本實施例是由監測人員預設選取該等影像中RGB分量值為255的像素可能密集出現的矩形區塊為取樣區域。找出該取樣區域中,RGB分量值為255的像素數量作為分子,整個取樣區域的像素數量為分母,得到一介於0~1之間的數值,定義為一初始動量值,此即為代表該二影像間變化程度的值,藉此把行為激烈程度數值化。 Then, an interesting sampling area is locked. In this embodiment, the monitoring person presets to select a rectangular block in which the RGB component value of the image is 255, which may be densely populated as a sampling area. Find the number of pixels in the sampling area with RGB component value of 255 as the numerator. The number of pixels in the whole sampling area is the denominator, and obtain a value between 0 and 1, which is defined as an initial momentum value. The value of the degree of change between the two images is used to quantify the intensity of the behavior.

同時,也利用上述方法針對時間為1分10秒00毫秒的影像F3與時間為1分09秒00毫秒的影像F1進行各像素的RGB分量值進行相同的差異化比對以及初始動量值計算;再進行加總而得到前述動量值供後續計算使用。 At the same time, the same method for the RGB component values of each pixel and the initial momentum value calculation are performed by using the above method for the image F3 with a time of 1 minute 10 seconds and 00 milliseconds and the image F1 with a time of 1 minute 09 seconds 00 milliseconds. And then summed to obtain the aforementioned momentum value for subsequent calculation.

步驟S142-判斷該動量值是否大於一預設閾值,並記錄此步驟之判斷結果,也就是動量條件判斷結果。 Step S142 - determining whether the momentum value is greater than a predetermined threshold, and recording the judgment result of the step, that is, the momentum condition judgment result.

步驟S15-針對該目前影像辨識是否存在手部特徵,並記錄特徵條件判斷結果。本實施例手部特徵是定義為前景的突出點;因此本步驟首先利用現有前景偵測技術找出前景,接著利用輪廓偵測突出部位。若偵測得突出部位,則判斷為存在手部特徵。 Step S15 - Identify whether there is a hand feature for the current image, and record the feature condition judgment result. The hand feature of this embodiment is defined as a prominent point of the foreground; therefore, this step first uses the existing foreground detection technology to find the foreground, and then uses the contour to detect the protruding portion. If the protruding portion is detected, it is determined that there is a hand feature.

步驟S16-針對步驟S142之動量條件判斷結果與步驟 S15的特徵條件判斷結果,分析是否兩條件皆成立?若是,則表示在該目前影像擷取當時人員手部有快速運動,因此進行步驟S17,若否,則回到步驟S13之後,取下一張影像進行步驟S14及S15之條件判斷。 Step S16 - The momentum condition judgment result and step for step S142 S15 characteristic condition judgment result, analyze whether both conditions are true? If so, it means that there is a rapid movement of the hand in the current image capturing, so step S17 is performed. If not, the process returns to step S13, and the next image is taken to determine the conditions of steps S14 and S15.

步驟S17-令該異常次數加1、令該計數參數i加1,並紀錄時間Ti為該目前影像對應的時間。 Step S17 - Adding the number of abnormalities by 1, incrementing the counting parameter i by 1, and recording the time T i as the time corresponding to the current image.

步驟S18-判斷目前影像對應的時間Ti與第一次異常時間T1或上一次異常時間Ti-1的間距是否不超過一預設時間長度,若是則代表人員手部快速運動可能是持續的,而非偶發暫態,因此接著進行步驟S19,若否則回到步驟S13進行歸零,重新起算異常次數。本實施例是以Ti-T1舉例說明,預設時間長度為3秒,但本發明不以此為限。 Step S18 - determining whether the time T i corresponding to the current image and the interval between the first abnormal time T 1 or the last abnormal time T i-1 does not exceed a preset time length, and if so, the rapid movement of the representative hand may be continuous , instead of the occasional transient, therefore proceeding to step S19, if otherwise returning to step S13 to return to zero, the number of abnormalities is restarted. This embodiment is exemplified by T i -T 1 , and the preset time length is 3 seconds, but the invention is not limited thereto.

步驟S19-判斷目前該異常次數是否大於一預設次數,若是則表示該目前影像擷取當時人員手部持續快速運動,可能正在進行破壞之激烈行為,因此進行步驟S20,若否則回到步驟S13之後,取下一張影像進行步驟S14及S15之條件判斷。 Step S19 - determining whether the abnormal number of times is greater than a preset number of times, if yes, indicating that the current image captures a rapid movement of the hand of the person at the time, and may be subjected to a violent behavior of destruction, so step S20 is performed, otherwise, returning to step S13 Thereafter, the next image is taken and the condition determinations of steps S14 and S15 are performed.

步驟S20-判斷為發生人員激烈行為並進行相關輸出,例如使該目標區域的警報器發出警鳴聲,或者在配合的保全管理中心的顯示幕提示有異常狀況。 In step S20, it is determined that a person's intense behavior occurs and relevant output is performed, for example, the alarm of the target area is sounded, or the display screen of the coordinated security management center indicates an abnormal condition.

利用上述演算技術,針對如圖3所示的序列影像,處理過程中每當流程進行到步驟S17,異常次數大多有累積,當累積到預設次數,即發出警報。針對如圖4所示的序列影像,由於人員領錢行為沒有手部快速運動,每當流程進 行到步驟S17,異常次數不會累積,因此不會發出警報。 With the above calculation technique, for the sequence image shown in FIG. 3, each time the flow proceeds to step S17 during the process, the number of abnormalities is mostly accumulated, and when the preset number of times is accumulated, an alarm is issued. For the sequence image shown in Figure 4, since the person is not able to move quickly, there is no rapid movement of the hand. Proceeding to step S17, the number of abnormalities does not accumulate, so no alarm is issued.

參閱圖5,當步驟S12偵測到複數人員進入該目標區域,則另外執行打架之激烈行為偵測。 Referring to FIG. 5, when step S12 detects that a plurality of people enter the target area, the fierce behavior detection of the fight is additionally performed.

步驟S21-設定一異常次數為0、計數參數j為0。接著進行步驟S22之人員接觸條件判斷、步驟S23之動量條件判斷,以及步驟S24之特徵條件判斷,並且在步驟S25針對條件判斷結果綜合判斷。其中步驟S23包括步驟S231及步驟S232;步驟S24包括步驟S241及步驟S242。但本發明不以本實施例三個條件綜合判斷為限,也可以當中任兩個條件,例如僅判斷人員是否接觸以及是否滿足動量條件。 Step S21 - setting an abnormal number of times to 0 and counting parameter j to be 0. Next, the person contact condition determination in step S22, the momentum condition determination in step S23, and the characteristic condition determination in step S24 are performed, and the condition judgment result is comprehensively judged in step S25. Step S23 includes step S231 and step S232; step S24 includes step S241 and step S242. However, the present invention is not limited to the comprehensive judgment of the three conditions of the embodiment, and may be any two of the conditions, for example, only determining whether the person is in contact and whether the momentum condition is satisfied.

步驟S22-判斷人員輪廓是否重疊。 Step S22 - It is judged whether the contours of the persons overlap.

本實施例具體計算手段為針對移動的物體,也就是在步驟S12針對偵測到進入目標區域的人員,例如利用構件記號(component labeling)演算法個別框選移動物體形成追蹤框,本步驟即判斷該等追蹤框是否相連,或者說是否使用了相同的前景-意即進行構件記號演算法時是否有同一像素同時被複數個追蹤框標記納入。 The specific calculation means in this embodiment is for moving objects, that is, in step S12, for detecting the person entering the target area, for example, using a component labeling algorithm to individually select the moving object to form a tracking frame, this step is judged. Whether the tracking frames are connected, or whether the same foreground is used - meaning whether the same pixel is included in the component symbol algorithm at the same time by multiple tracking frame tags.

步驟S231-針對一目前影像分別與前一張、與再前一張影像比較而分別得到代表兩兩影像之間變化程度的值,再予以加總而得到該動量值。具體技術手段請參考前述步驟S141,在此不重複贅述。 In step S231, a value representing the degree of change between the two images is obtained separately from the previous image and the previous image, and then added to obtain the momentum value. For specific technical means, please refer to the foregoing step S141, and the details are not repeated here.

步驟S232-判斷該動量值是否大於一預設閾值,並記錄動量條件判斷結果。 Step S232 - determining whether the momentum value is greater than a predetermined threshold, and recording the momentum condition determination result.

步驟S241-針對該目前影像辨識手部區域。具體技術手段為利用步驟S22的相連的追蹤框,設定上半部區域為手部區域。 Step S241 - Identify the hand area for the current image. The specific technical means is to set the upper half area as the hand area by using the connected tracking frame of step S22.

步驟S242-判斷手部區域的輪廓的水平邊是否多於垂直邊,並記錄條件判斷結果。詳細來說是先對該手部區域進行16×16的區塊切割,再針對每一區塊中,手部輪廓線計算水平邊以及垂直邊。本實施例詳細來說,輪廓當中,介於+45°~-45°之間以及-135°~+135°之間者歸類為水平邊,介於+45°~+135°之間以及-45°~-135°之間者歸類為垂直邊,並且比較水平邊與垂直邊的多寡。 Step S242 - It is judged whether or not the horizontal side of the outline of the hand area is more than the vertical side, and the condition judgment result is recorded. Specifically, the hand region is first cut into 16×16 blocks, and then the horizontal edge and the vertical edge are calculated for the hand contour in each block. In this embodiment, in detail, between +45°~-45° and -135°~+135° in the contour are classified as horizontal edges, between +45° and +135°, and Between -45° and -135° is classified as a vertical side, and the horizontal and vertical sides are compared.

步驟S25-針對步驟S22之人員接觸條件判斷結果、步驟S232之動量條件判斷結果,以及步驟S242的特徵條件判斷結果,分析是否三條件皆成立?若是,則表示在該目前影像擷取當時複數人員接觸且有抬起手的快速運動,因此進行步驟S26,若否,則回到步驟S21之後,取下一張影像進行步驟S22、S23及S24之條件判斷。 Step S25 - For the human contact condition determination result of step S22, the momentum condition determination result of step S232, and the characteristic condition determination result of step S242, it is analyzed whether all three conditions are satisfied. If yes, it means that the current image captures the rapid movement of the plurality of people at the time and has the raised hand, so step S26 is performed, and if not, the process returns to step S21, and the next image is taken to perform steps S22, S23 and S24. The condition is judged.

步驟S26-令該異常次數加1、令該計數參數j加1,並紀錄時間Tj為該目前影像對應的時間。 Step S26 - incrementing the number of abnormalities by one, incrementing the counting parameter j by one, and recording the time Tj as the time corresponding to the current image.

步驟S27-判斷目前影像對應的時間Tj與第一次異常時間T1或上一次異常時間Tj-1的間距是否不超過一預設時間長度,若是則代表複數人員接觸且有抬起手的快速運動可能是持續的,而非偶發暫態,因此接著進行步驟S28,若否則回到步驟S21進行歸零,重新起算異常次數。本實施例是以Tj-T1舉例說明,預設時間長度為5秒,但本發明不 以此為限。 Step S27 - determining whether the time T j corresponding to the current image and the interval between the first abnormal time T 1 or the last abnormal time T j-1 does not exceed a preset time length, and if so, the plurality of people are in contact and have a raised hand The fast motion may be continuous, rather than an accidental transient, so that step S28 is followed, and if otherwise, returning to step S21 for zeroing, the number of abnormalities is restarted. This embodiment is exemplified by T j -T 1 , and the preset time length is 5 seconds, but the invention is not limited thereto.

步驟S28-判斷目前異常次數是否大於一預設次數,若是則表示該目前影像擷取當時複數人員接觸且有抬起手的快速運動是持續的,可能正在進行打架之激烈行為,因此進行步驟S29,若否則回到步驟S21之後,取下一張影像進行步驟S22、S23及S24之條件判斷。 Step S28 - determining whether the current abnormal number is greater than a preset number of times, if yes, indicating that the current image captures the plurality of people at the time and the rapid movement of the raised hand is continuous, and the intense behavior of the fight may be ongoing, so step S29 is performed. If not, after returning to step S21, the next image is taken to perform the condition determination of steps S22, S23 and S24.

步驟S29-判斷為發生人員激烈行為並進行相關輸出,例如使該目標區域的警報器發出警鳴聲,或者在配合的保全管理中心的顯示幕提示有異常狀況。 In step S29, it is determined that a person's intense behavior occurs and relevant output is performed, for example, the alarm of the target area is sounded, or the display screen of the coordinated security management center indicates an abnormal condition.

綜上所述,本發明人員激烈行為偵測方法的較佳實施例,利用影像變化程度與時間等參數,甚至特徵辨識等手段進行綜合性邏輯判斷,可在不耗費龐大演算資源的情況下精準地發現人員激烈行為之異常狀況,故確實能達成本發明之目的。 In summary, the preferred embodiment of the method for detecting a strong behavior of the present invention utilizes parameters such as image change degree and time, and even feature identification to perform comprehensive logical judgment, which can be accurately performed without consuming large computational resources. The abnormal situation of the personnel's fierce behavior is found, and the object of the present invention can be achieved.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

100‧‧‧監視系統 100‧‧‧Monitoring system

1‧‧‧攝影機 1‧‧‧ camera

2‧‧‧處理單元 2‧‧‧Processing unit

S11~S20‧‧‧步驟 S11~S20‧‧‧Steps

S141、S142‧‧‧步驟 S141, S142‧‧‧ steps

S21~S29‧‧‧步驟 S21~S29‧‧‧Steps

S231、S232‧‧‧步驟 S231, S232‧‧‧ steps

S241、S242‧‧‧步驟 S241, S242‧‧‧ steps

圖1是一方塊圖,示意說明執行本發明人員激烈行為偵測方法的硬體;圖2是一流程圖,說明本發明人員激烈行為偵測方法的較佳實施例中,破壞之激烈行為的偵測流程;圖3及圖4分別是一序列影像圖,說明有破壞行為及 正常領錢行為的偵測結果;及圖5是一流程圖,說明該較佳實施例中,打架之激烈行為的偵測流程。 1 is a block diagram schematically illustrating hardware for performing a method for detecting a strong behavior of a person of the present invention; FIG. 2 is a flowchart illustrating a fierce behavior of a preferred embodiment of the method for detecting a strong behavior of a person of the present invention Detection process; Figure 3 and Figure 4 are a sequence of image images showing the damage behavior and The detection result of the normal money-collection behavior; and FIG. 5 is a flowchart illustrating the detection process of the fierce behavior of the fight in the preferred embodiment.

S11~S20‧‧‧步驟 S11~S20‧‧‧Steps

Claims (10)

一種人員激烈行為偵測方法,由一監視系統執行,該監視系統包括一朝一目標區域取像的攝影機,及一接收來自該攝影機之影像的處理單元,該方法包含以下由該處理單元執行的步驟:(A)依據該攝影機傳送之影像辨識出有人員進入該目標區域,設定一異常次數為0;(B)針對一目前影像與先前複數張序列影像分別比較,計算一代表變化程度的動量值;(C)判斷該動量值是否大於一預設閾值,若是則進行步驟(D);(D)令該異常次數加1,並紀錄該目前影像對應的時間;(E)判斷目前影像對應的時間與第一次異常時間或上一次異常時間的間距是否不超過一預設時間長度,若是則進行步驟(F),若否則回到步驟(A);(F)判斷該異常次數是否大於一預設次數,若是則進行步驟(G),若否則回到步驟(B);及(G)判斷為發生人員激烈行為並進行相關輸出。 A method for detecting a person's intense behavior is performed by a monitoring system including a camera that takes an image toward a target area, and a processing unit that receives an image from the camera, the method comprising the following steps performed by the processing unit : (A) According to the image transmitted by the camera, it is recognized that a person enters the target area, and an abnormal number of times is set to 0; (B) for a current image and a previous plurality of sequence images, respectively, a momentum representative of the degree of change is calculated. (C) determining whether the momentum value is greater than a predetermined threshold, if yes, performing step (D); (D) incrementing the abnormal number by one, and recording the time corresponding to the current image; (E) determining the current image Whether the interval between the corresponding time and the first abnormal time or the last abnormal time does not exceed a preset time length, if yes, proceed to step (F), if not, return to step (A); (F) determine whether the abnormal number of times is If it is greater than a preset number of times, if yes, proceed to step (G), if otherwise, return to step (B); and (G) determine that a person's intense behavior occurs and perform relevant output. 如請求項1所述之人員激烈行為偵測方法,其中,該步驟(C)還判斷該目前影像是否存在手部特徵,若該二判斷條件皆成立,才進行步驟(D);該步驟(F)是判斷為發生人員進行破壞之行為。 The method for detecting a strong behavior of a person as claimed in claim 1, wherein the step (C) further determines whether the current image has a hand feature, and if the two determination conditions are met, the step (D) is performed; F) is an act of judging that a person has committed damage. 如請求項2所述之人員激烈行為偵測方法,其中,該手 部特徵之判斷,是利用前景偵測技術找出前景,接著利用輪廓偵測突出部位並定義為手部。 The method for detecting a strong behavior of a person as claimed in claim 2, wherein the hand The judgment of the feature is to use the foreground detection technology to find the foreground, and then use the contour to detect the protruding part and define it as the hand. 如請求項1所述之人員激烈行為偵測方法,其中,該步驟(A)辨識出有複數人員進入該目標區域,則該步驟(C)還判斷該目前影像中人員輪廓是否重疊,若該二判斷條件皆成立,才進行步驟(D)。 The method for detecting a violent behavior of a person as claimed in claim 1, wherein the step (A) identifies that a plurality of persons enter the target area, and the step (C) further determines whether the contours of the person in the current image overlap. The second judgment condition is established, and step (D) is performed. 如請求項4所述之人員激烈行為偵測方法,其中,人員輪廓重疊之判斷,是利用構件記號演算法個別框選移動物體形成追蹤框,並判斷是否有同一像素同時被複數個追蹤框標記納入,若是則輪廓重疊。 The method for detecting a strong behavior of a person as claimed in claim 4, wherein the judging of the overlapping of the contours of the person is to use a component symbol algorithm to individually select the moving object to form a tracking frame, and determine whether the same pixel is simultaneously marked by the plurality of tracking frames. Incorporate, if it is, the contours overlap. 如請求項4所述之人員激烈行為偵測方法,其中,該步驟(C)還針對該目前影像辨識手部區域,並判斷該手部區域的輪廓的水平邊是否多於垂直邊,若該三判斷條件皆成立,才進行步驟(D)。 The method for detecting a strong behavior of a person as claimed in claim 4, wherein the step (C) further identifies a hand region for the current image, and determines whether a horizontal edge of the contour of the hand region is more than a vertical edge, if The third judgment condition is established, and step (D) is performed. 如請求項6所述之人員激烈行為偵測方法,其中,該手部區域的輪廓的水平邊是否多於垂直邊之判斷,是先對該手部區域進行區塊切割,再針對每一區塊中的手部輪廓線計算水平邊以及垂直邊,介於+45°~-45°之間以及-135°~+135°之間者歸類為水平邊,介於+45°~+135°之間以及-45°~-135°之間者歸類為垂直邊,並且比較水平邊與垂直邊的多寡。 The method for detecting a strong behavior of a person according to claim 6, wherein the determination of whether the horizontal edge of the outline of the hand region is more than the vertical edge is to first block the hand region and then for each region. The hand outline in the block calculates the horizontal and vertical edges, between +45° and -45° and between -135° and +135°, which is classified as horizontal, between +45° and +135. Between ° and between -45° and -135° are classified as vertical edges, and the horizontal and vertical sides are compared. 如請求項1至7中任一項所述之人員激烈行為偵測方法,其中,該步驟(B)是針對該目前影像的各像素RGB分量值與較早的影像的各像素RGB分量值比較而得到代 表兩兩影像之間變化程度的值而得到該動量值。 The method for detecting a strong behavior of a person according to any one of claims 1 to 7, wherein the step (B) is to compare the RGB component values of the pixels of the current image with the RGB component values of the pixels of the earlier image. And get the generation The momentum value is obtained by the value of the degree of change between the two images. 如請求項8所述之人員激烈行為偵測方法,其中,兩兩影像之間變化程度的值,是利用各像素的RGB分量值相減並與一像素變化閾值比較,大於該像素變化閾值的像素,在該目前影像設定分量值為255,小於等於該像素變化閾值的像素在該目前影像設定分量值為0,並以該分量值為255的像素數量為分子,整體像素數量為分母而得到該代表兩兩影像之間變化程度的值。 The method for detecting a strong behavior of a person according to claim 8, wherein the value of the degree of change between the two images is subtracted by using the RGB component values of each pixel and compared with a pixel change threshold, which is greater than the pixel change threshold. a pixel, wherein the current image setting component value is 255, and the pixel having the pixel change threshold is less than or equal to the current image setting component value of 0, and the number of pixels whose component value is 255 is a numerator, and the total pixel number is a denominator. This represents the value of the degree of change between the two images. 如請求項9所述之人員激烈行為偵測方法,其中,該步驟(B)是針對該目前影像與前一張影像、再前一張影像分別求得代表兩兩影像之間變化程度之值,並加總而得到該動量值。 The method for detecting a strong behavior of a person according to claim 9, wherein the step (B) is to determine a value of the degree of change between the current image and the previous image and the previous image respectively. And add the total to get the momentum value.
TW102103518A 2013-01-30 2013-01-30 Method for detecting violent behavior of persons TW201430721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102103518A TW201430721A (en) 2013-01-30 2013-01-30 Method for detecting violent behavior of persons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102103518A TW201430721A (en) 2013-01-30 2013-01-30 Method for detecting violent behavior of persons

Publications (1)

Publication Number Publication Date
TW201430721A true TW201430721A (en) 2014-08-01

Family

ID=51796928

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102103518A TW201430721A (en) 2013-01-30 2013-01-30 Method for detecting violent behavior of persons

Country Status (1)

Country Link
TW (1) TW201430721A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI577627B (en) * 2015-03-18 2017-04-11 由田新技股份有限公司 Monitoring system for elevator equipment and monitoring method thereof
TWI650662B (en) * 2016-10-26 2019-02-11 行政院原子能委員會核能硏究所 Wearable operator behavior realtime classified recording apparatus and method using the same
US10733743B2 (en) 2017-08-03 2020-08-04 Qisda Corporation Object displacement detection method for detecting object displacement by means of difference image dots

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI577627B (en) * 2015-03-18 2017-04-11 由田新技股份有限公司 Monitoring system for elevator equipment and monitoring method thereof
TWI650662B (en) * 2016-10-26 2019-02-11 行政院原子能委員會核能硏究所 Wearable operator behavior realtime classified recording apparatus and method using the same
US10733743B2 (en) 2017-08-03 2020-08-04 Qisda Corporation Object displacement detection method for detecting object displacement by means of difference image dots

Similar Documents

Publication Publication Date Title
CN103473791B (en) Abnormal speed event automatic identifying method in monitor video
CN107679471B (en) Indoor personnel air post detection method based on video monitoring platform
Liao et al. Slip and fall event detection using Bayesian Belief Network
CN104866827B (en) Personnel based on video monitoring platform cross the detection method of behavior
WO2017130252A1 (en) Unattended object monitoring device, unattended object monitoring system equipped with same, and unattended object monitoring method
KR101541272B1 (en) Apparatus and method for detecting terrorism using irregular motion of peoples
US20080186191A1 (en) Smoke detecting method and device
JP6233624B2 (en) Information processing system, information processing method, and program
CN106981163A (en) A kind of personnel invade abnormal event alarming method
WO2018056355A1 (en) Monitoring device
TWI493510B (en) Falling down detection method
Salehi et al. An automatic video-based drowning detection system for swimming pools using active contours
CN113887445A (en) Method and system for identifying standing and loitering behaviors in video
CN103150736A (en) Camera motion detecting method based on video monitoring
EP2000998B1 (en) Flame detecting method and device
TW201430721A (en) Method for detecting violent behavior of persons
CN110633681A (en) Bed-leaving detection method based on video
JP6617015B2 (en) Flame detection apparatus and flame detection method
US20130322690A1 (en) Situation recognition apparatus and method using object energy information
CN104392201A (en) Human fall identification method based on omnidirectional visual sense
JP2012212238A (en) Article detection device and stationary-person detection device
KR101581162B1 (en) Automatic detection method, apparatus and system of flame, smoke and object movement based on real time images
CN103974028A (en) Method for detecting fierce behavior of personnel
Deepak et al. Design and utilization of bounding box in human detection and activity identification
JP2012208850A (en) Abnormality detection apparatus