TW201524188A - Detecting method of abnormality of image capturing by camera - Google Patents

Detecting method of abnormality of image capturing by camera Download PDF

Info

Publication number
TW201524188A
TW201524188A TW102145473A TW102145473A TW201524188A TW 201524188 A TW201524188 A TW 201524188A TW 102145473 A TW102145473 A TW 102145473A TW 102145473 A TW102145473 A TW 102145473A TW 201524188 A TW201524188 A TW 201524188A
Authority
TW
Taiwan
Prior art keywords
difference
pictures
absolute
value
pixels
Prior art date
Application number
TW102145473A
Other languages
Chinese (zh)
Other versions
TWI502964B (en
Inventor
Chao-Ho Chen
Tsong-Yi Chen
Bo-Cin Chen
Original Assignee
Univ Nat Kaohsiung Applied Sci
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 Univ Nat Kaohsiung Applied Sci filed Critical Univ Nat Kaohsiung Applied Sci
Priority to TW102145473A priority Critical patent/TWI502964B/en
Publication of TW201524188A publication Critical patent/TW201524188A/en
Application granted granted Critical
Publication of TWI502964B publication Critical patent/TWI502964B/en

Links

Abstract

The present invention discloses a detecting method of an abnormality of an image capturing by a camera. Two absolute backgrounds are set and quickly judging if a frame is shaking or not.If the frame is not shaking, the background subtraction is used to check if two absolute backgrounds obtained from different time have large difference or not. If there is a large difference, both grayscale histogram distribution and information of edges are utilized to judge if the abnormal image belongs to the frame shift, covering or paint spraying. If the difference is not large, both a luminance and an edge detail are employed for judging if there is fogging. Discrete cosine transform is performed in order to detect if there is defocus problem. Color cast is detected by analyzing histogram distribution of color channels (RGB). Change of the luminance is used to check if the frame is interfered. When the frame dose not has any abnormal condition, the absolute background will be updated. Otherwise, an alarm is given if any abnormal condition mentioned above is detected.

Description

攝影機畫面異常之檢測方法Camera screen abnormality detection method

本發明是有關於一種攝影機畫面異常之檢測方法,特別是有關於一種針對攝影機拍攝畫面是否遭遮蔽、噴漆、搖晃、鏡頭轉移、失焦、色偏、濃霧、畫面閃爍等現象進行檢測之攝影機畫面異常之檢測方法。
The invention relates to a camera screen abnormality detecting method, in particular to a camera screen for detecting whether a camera photographing screen is blocked, painted, shaken, lens shifted, out-focus, color shift, dense fog, screen flicker and the like. The detection method of abnormality.

近年來,大眾逐漸重視自身安全,進而電子安全器材之需求便逐年增加。此外,為了維繫治安及嚇阻犯罪,於城市街角、道路或大樓內裝設監視攝影機為較常見的方式,進而亦帶動智慧型視訊安控軟體快速發展。隨著科技演進,相關的安全監控產業也從早期的類比閉路電視系統,往數位錄影監視系統(Digital Video Recorder,DVR)及IP 網路視訊監控系統(Network Video Recorder,NVR)方向發展。In recent years, the public has gradually attached importance to its own safety, and the demand for electronic safety equipment has increased year by year. In addition, in order to maintain law and order and deter crime, it is a common way to install surveillance cameras on city corners, roads or buildings, which in turn will lead to the rapid development of smart video security software. With the evolution of technology, the related security surveillance industry has also evolved from the early stage of the closed-circuit television system to the Digital Video Recorder (DVR) and IP Network Video Recorder (NVR).

然,監控系統雖朝向數位化邁進,但在安全監控管理方面,仍須仰賴人員的管理,而往往造成安全管理人員須同時監看多個監視畫面。另,監視系統常面臨老化、異常或遭受到蓄意的破壞等問題,其中蓄意破壞更包含遮蔽、噴漆、失焦、色偏或畫面偏移等情況,導致無法攝錄正常影像,而產生監控死角,當事件需藉由監視畫面進行釐清時,很有可能造成莫大損失及憾事。However, although the monitoring system is moving toward digitalization, in terms of security monitoring and management, it still has to rely on the management of personnel, and often the security management personnel must monitor multiple monitoring screens at the same time. In addition, surveillance systems often face problems such as aging, abnormality, or deliberate destruction. Deliberate damage, including shadowing, painting, out-of-focus, color shift, or image shift, can result in the inability to record normal images and produce blind spots. When the incident needs to be clarified by the surveillance screen, it is likely to cause great losses and regrets.

而針對上述中各種異常狀況,習知技術之主要方法原理是先重建一張絕對背景,藉由絕對背景的資訊判斷畫面是否遭到轉向、位移,或者失焦的問題。攝影機遭到轉向或移位是藉由絕對背景更新延遲的方法判斷畫面遭轉向及位移,統計整張圖像素差異數,經由緩慢的更新,將在n張時的絕對背景與k張前的絕對背景判斷差異,而在當差異大於閥值時則判斷畫面遭到轉向。攝影機遭受遮蔽則是利用在攝影遭受遮蔽時,絕對背景的直方圖與當前影像的直方圖進行差異判斷,即可依據二條件判斷鏡頭遭受遮蔽;條件1係為當鏡頭遭到遮蔽則影像會偏暗,直方圖在某些範圍的數量分佈次數會變高,當影像直方圖次數最高及相鄰的灰階度數量總和大於閥值,則滿足此條件;條件2則為攝影機尚未被遮蔽時,其絕對背景的影像直方圖及當前影像直方圖相減之直方圖,暗部區域總和應小於當攝影機被遮蔽時的總和,當暗部區域i~32總和次數大於前i~k個灰階度總和,即滿足此條件;當兩條件皆為滿足時,則判斷攝影機遭遮蔽。For the above various abnormal conditions, the main method principle of the prior art is to reconstruct an absolute background, and judge whether the picture is subject to steering, displacement, or out of focus by the absolute background information. The camera is turned or shifted by the absolute background update delay method to judge the image is turned and displaced, and the number of pixel differences in the whole picture is counted. After a slow update, the absolute background at n sheets and the absolute before k sheets are absolute. The background judges the difference, and when the difference is greater than the threshold, it is judged that the picture is turned. When the camera is covered, the difference between the histogram of the absolute background and the histogram of the current image is judged by the difference between the histogram of the absolute image and the current image. The condition 1 is that the image is biased when the lens is blocked. Dark, the number of times the histogram is distributed in some ranges will become higher. When the number of image histograms is the highest and the sum of adjacent gray levels is greater than the threshold, this condition is satisfied; condition 2 is when the camera has not been obscured. The histogram of the absolute background image and the histogram of the subtraction of the current image histogram, the sum of the dark areas should be less than the sum of the cameras when they are obscured. When the sum of the dark areas i~32 is greater than the sum of the first i~k gray levels, That is, the condition is satisfied; when both conditions are satisfied, it is judged that the camera is obscured.

然,當攝影機被如白紙等透光性的物體所遮蔽時,畫面不一定屬於偏暗,將造成條件2的不成立,因而無法偵測出畫面遭受遮蔽。However, when the camera is obscured by a translucent object such as white paper, the screen does not necessarily belong to the darkness, which will cause the condition 2 to be unsuccessful, and thus the screen cannot be detected to be shielded.

接著,畫面失焦偵測是利用傅立葉轉換(Fourier Transform),分析當前影像高頻資訊與絕對背景高頻資訊進行差異比較,當當前影像高頻資訊小於絕對背景高頻資訊一定的比例,則判斷為畫面失焦。Then, the frame out-of-focus detection uses Fourier Transform (Fourier Transform) to analyze the difference between the current image high-frequency information and the absolute background high-frequency information. When the current image high-frequency information is smaller than the absolute background high-frequency information, the judgment is made. Out of focus for the picture.

然,該演算法的缺點係為若同時進行多樣異常檢測時,將可能造成時間複雜度過高,而無法達成即時偵測。

However, the shortcoming of this algorithm is that if multiple anomaly detections are performed at the same time, the time complexity may be too high, and instant detection cannot be achieved.

有鑒於上述習知技藝之問題,本發明之目的就是在提供一種攝影機畫面異常之檢測方法,以解決習知偵測攝影機畫面異常時所面臨之問題。In view of the above-mentioned problems of the prior art, it is an object of the present invention to provide a method for detecting an abnormality of a camera screen to solve the problems faced by conventional cameras for detecting abnormal images of a camera.

根據本發明之目的,提出一種攝影機畫面異常之檢測方法,其包含下列步驟:擷取連續之複數個畫面。藉由相鄰相減法判斷複數個畫面是否穩定。依據複數個畫面建立二絕對背景,二絕對背景相距時間差,且分別每隔預設時間進行更新。藉由背景相減法判斷更新後之各絕對背景及其對應之更新前之各絕對背景之間之差異。當更新前之至少一絕對背景與對應之更新後之絕對背景差異大於第一門檻值時,依據複數個畫面及二絕對背景之灰階直方圖分佈及邊緣像素,判斷攝影機是否具有影像移位或遭受遮蔽之異常狀態,並對應異常狀態發出警示訊息及執行對應異常狀態之故障排除步驟。當更新前之至少一絕對背景與對應之更新後之絕對背景差異小於第一門檻值時,包含下列步驟:依據複數個畫面之亮度(亦即灰階值)資訊及邊緣資訊,判斷攝影機畫面是否具有濃霧之異常狀態。依據複數個畫面之高頻資訊遺失量,判斷攝影機畫面是否具有失焦之異常狀態。依據複數個畫面之RGB各通道之平均亮度值及RGB各通道之局部區域平均亮度值,判斷攝影機畫面是否具有色偏之異常狀態。依據複數個畫面之平均亮度值,判斷攝影機畫面是否具有閃爍之異常狀態。當攝影機畫面未具有濃霧、失焦、色偏、閃爍或其組合之異常狀態時,則分別每隔預設時間更新各絕對背景,而當攝影機畫面具有異常狀態時,則發出警示訊息。According to an object of the present invention, a method for detecting an abnormality of a camera screen is provided, which comprises the steps of: capturing a plurality of consecutive pictures. Whether the plurality of pictures are stable is determined by the adjacent subtraction method. According to the plurality of pictures, the two absolute backgrounds are established, and the two absolute backgrounds are separated by time, and are updated every preset time. The background subtraction method is used to determine the difference between each updated absolute background and its corresponding absolute background before the update. When at least one absolute background before updating and the corresponding updated absolute background difference are greater than the first threshold, determining whether the camera has image shift or based on the grayscale histogram distribution and edge pixels of the plurality of pictures and the two absolute backgrounds The abnormal state of being obscured, and the warning message is sent corresponding to the abnormal state and the troubleshooting step of executing the corresponding abnormal state is performed. When the at least one absolute background before the update and the corresponding updated absolute background difference are less than the first threshold, the method includes the following steps: determining whether the camera screen is based on the brightness (ie, grayscale value) information and the edge information of the plurality of pictures It has an abnormal state of dense fog. According to the high frequency information loss amount of the plurality of pictures, it is determined whether the camera picture has an abnormal state of out of focus. According to the average brightness value of each of the RGB channels of the plurality of pictures and the local area average brightness value of each channel of the RGB, it is determined whether the camera picture has an abnormal state of color shift. According to the average brightness value of the plurality of pictures, it is determined whether the camera screen has an abnormal state of flicker. When the camera screen does not have an abnormal state of dense fog, out-of-focus, color shift, flicker or a combination thereof, each absolute background is updated every preset time, and when the camera screen has an abnormal state, a warning message is issued.

較佳地,判斷攝影機是否穩定更可包含下列步驟:藉由其中一畫面與相鄰之另一畫面取得差值影像。當差值影像中差值大之像素數量低於預設百分比之總像素數量時,則判斷該攝影機畫面係為穩定狀態,並進行建立二絕對背景。當差值影像中差值大之像素數量高於預設百分比之總像素數量時,則判斷該攝影機畫面係為晃動狀態,並發出警示訊息。Preferably, determining whether the camera is stable or more may include the step of obtaining a difference image by one of the pictures and another adjacent picture. When the number of pixels with a large difference in the difference image is lower than the total number of pixels of the preset percentage, it is determined that the camera picture is in a stable state, and a two absolute background is established. When the number of pixels with a large difference in the difference image is higher than the total number of pixels of the preset percentage, it is determined that the camera screen is in a shaking state and a warning message is issued.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:判斷複數個畫面之灰階直方圖在特定區間之像素總數是否大於各絕對背景之灰階直方圖之像素總數。當複數個畫面之灰階直方圖在特定區間之像素總數大於或等於二絕對背景之灰階直方圖之像素總數時,則判斷複數個畫面之邊緣像素總數是否小於或等於各絕對背景之預設比例之邊緣像素總數。Preferably, the detecting method of the abnormality of the camera screen may further comprise the step of: determining whether the total number of pixels of the grayscale histogram of the plurality of pictures in a specific section is greater than the total number of pixels of the grayscale histogram of each absolute background. When the total number of pixels of the grayscale histogram of the plurality of pictures is greater than or equal to the total number of pixels of the grayscale histogram of the two absolute backgrounds, it is determined whether the total number of edge pixels of the plurality of pictures is less than or equal to the preset of each absolute background. The total number of edge pixels in the scale.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:當絕對背景差異大,且複數個畫面之灰階直方圖在特定區間之像素總數小於各絕對背景之灰階直方圖之像素總數時,則判斷攝影機處於位移之異常狀態,並發出該警示訊息。當絕對背景差異大,且複數個畫面之灰階直方圖在特定區間之像素總數不小於各絕對背景之灰階直方圖之像素總數,而複數個畫面之邊緣像素總數大於各絕對背景之預設比例之邊緣像素總數時,則判斷攝影機處於位移之異常狀態,並發出警示訊息。當絕對背景差異大,且複數個畫面之灰階直方圖在特定區間之像素總數不小於各絕對背景之灰階直方圖之像素總數,而複數個畫面之邊緣像素總數不大於各絕對背景之預設比例之邊緣像素總數時,則判斷攝影機處於遭受遮蔽之異常狀態,並發出警示訊息。Preferably, the detection method of the abnormality of the camera picture may further include the following steps: when the absolute background difference is large, and the total number of pixels of the grayscale histogram of the plurality of pictures is smaller than the total number of pixels of the gray level histogram of each absolute background. , it is judged that the camera is in an abnormal state of displacement, and the warning message is issued. When the absolute background difference is large, and the total number of pixels of the grayscale histogram of a plurality of pictures in a specific section is not less than the total number of pixels of the grayscale histogram of each absolute background, and the total number of edge pixels of the plurality of pictures is greater than the preset of each absolute background. When the total number of edge pixels is proportional, the camera is judged to be in an abnormal state of displacement, and a warning message is issued. When the absolute background difference is large, and the total number of pixels of the grayscale histogram of a plurality of pictures in a specific section is not less than the total number of pixels of the grayscale histogram of each absolute background, the total number of edge pixels of the plurality of pictures is not greater than the absolute background. When the total number of edge pixels is set, it is judged that the camera is in an abnormal state of being shielded and a warning message is issued.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:判斷複數個畫面之平均亮度值之左邊最高峰峰值與平均亮度值之右邊最高峰峰值之差距是否小於預設差距閥值。判斷複數個畫面之邊緣影像灰階直方圖之250至255灰階值及255灰階值之數量是否小於預設數量閥值。藉由Sobel邊緣檢測取得邊緣影像灰階平均值,並依據複數個畫面之邊緣影像灰階平均值及原畫面之灰階影像標準差以判斷是否有霧及霧濃度,並發佈包含霧濃度之警示訊息。Preferably, the detecting method of the abnormality of the camera screen further comprises the following steps: determining whether the difference between the highest peak-to-peak value of the left side of the average brightness value of the plurality of pictures and the highest peak-to-peak value of the right side of the average brightness value is less than a preset gap threshold. It is determined whether the number of 250 to 255 grayscale values and 255 grayscale values of the edge image grayscale histogram of the plurality of pictures is less than a preset number threshold. Obtain the grayscale average value of the edge image by Sobel edge detection, and judge whether there is fog and fog concentration according to the grayscale average value of the edge image of the plurality of images and the grayscale image standard deviation of the original image, and issue a warning containing the fog concentration. message.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:當複數個畫面之灰階直方圖之平均亮度值之左邊最高峰峰值與右邊最高峰峰值之差距是小於預設差距閥值時,則初步判斷攝影機畫面處於起霧之異常狀態。Preferably, the detecting method of the abnormality of the camera screen may further include the following steps: when the difference between the highest peak value and the highest peak value of the right side of the average brightness value of the gray level histogram of the plurality of pictures is less than the preset gap threshold, Then, it is initially determined that the camera screen is in an abnormal state of fogging.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:當邊緣影像直方圖之250至255灰階值及255灰階值之數量皆小於預設數量閥值時,則判斷攝影機畫面處於起霧之異常狀態。Preferably, the detecting method of the camera screen abnormality further comprises the following steps: when the number of the 250 to 255 grayscale value and the 255 grayscale value of the edge image histogram are less than the preset number threshold, it is determined that the camera screen is in the starting position. The abnormal state of the fog.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:設定高頻資訊量基準值,再藉由高頻資訊量基準值設定預設遺失量。判斷複數個畫面之高頻資訊遺失量是否大於預設遺失量,當大於預設遺失量時,則判斷攝影機畫面處於失焦之異常狀態,並發佈警示訊息; 當不大於預設遺失量時,則更新高頻資訊基準值,進行下一次複數個畫面之高頻資訊遺失量及預設遺失量之比對判斷。Preferably, the detecting method of the camera screen abnormality further comprises the steps of: setting a high frequency information amount reference value, and setting a preset loss amount by using the high frequency information amount reference value. Determining whether the high-frequency information loss of the plurality of pictures is greater than the preset loss amount, and when it is greater than the preset loss amount, determining that the camera picture is in an abnormal state of out-of-focus, and issuing a warning message; when not greater than the preset loss amount, Then, the high frequency information reference value is updated, and the comparison of the high frequency information loss amount and the preset loss amount of the next plurality of pictures is performed.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:判斷複數個畫面之各色彩通道(RGB)之最大平均亮度與各色彩通道之最小平均亮度之差值是否大於預設平均亮度差值。判斷色彩偏移最大之色彩通道之亮部範圍之平均值與其他色彩通道之亮部範圍之平均值之差距是否大於一預設平均值差距。判斷色彩偏移最大之色彩通道之暗部範圍之平均值與其他色彩通道之暗部範圍之平均值之差距是否大於該預設平均值差距。當各色彩通道之最大平均亮度與最小平均亮度之差值大於該預設通道平均亮度差值,且色彩偏移最大之色彩通道之亮部範圍之平均值與其他色彩通道之亮部範圍之平均值之差距,及色彩偏移最大之色彩通道之暗部範圍之平均值與其他色彩通道之暗部範圍之平均值之差距皆大於預設平均值差距時,則判斷攝影機畫面處於色偏之異常狀態,並發佈警示訊息。Preferably, the method for detecting abnormality of the camera screen further comprises the steps of: determining whether a difference between a maximum average brightness of each color channel (RGB) of the plurality of pictures and a minimum average brightness of each color channel is greater than a preset average brightness difference. . The difference between the average value of the bright portion of the color channel that determines the maximum color shift and the average of the bright portion ranges of the other color channels is greater than a predetermined average difference. The difference between the average of the dark portion of the color channel that determines the maximum color shift and the average of the dark portion of the other color channels is greater than the preset average difference. When the difference between the maximum average brightness and the minimum average brightness of each color channel is greater than the average brightness difference of the preset channel, and the average of the bright portion range of the color channel with the largest color shift and the average of the bright portion of the other color channels If the difference between the value and the average of the dark portion of the color channel with the largest color shift and the average of the dark portion of the other color channels are greater than the preset average difference, the camera screen is judged to be in an abnormal state of the color shift. And issue a warning message.

較佳地,攝影機畫面異常之檢測方法更可包含下列步驟:判斷複數個畫面之相鄰影格之差異值。當相鄰影格之差異值大於第二門檻值時,則判斷影像狀態改變。當影像狀態改變之次數大於預設累加數時,則判斷攝影機畫面處於影像閃爍之異常狀態,並發佈警示訊息。Preferably, the detecting method of the abnormality of the camera screen further comprises the following steps: determining the difference value of the adjacent frames of the plurality of pictures. When the difference value of the adjacent frames is greater than the second threshold, it is determined that the image state changes. When the number of image state changes is greater than the preset accumulated number, it is determined that the camera screen is in an abnormal state of image flicker, and a warning message is issued.

承上所述,本發明之攝影機畫面異常之檢測方法可有效自動即時偵測大部分之異常畫面,以利後續監錄維護處理,並可確保監錄畫面品質,以能避免意外事件發生時,無法借助監錄畫面釐清事件經過之憾事發生;此外,本發明亦可節省大量人力管理成本,並可在第一時間針對異常畫面產生時作好適當的應對處理。

As described above, the detection method of the camera screen abnormality of the present invention can automatically and automatically detect most of the abnormal images in real time, so as to facilitate subsequent monitoring and maintenance processing, and can ensure the quality of the monitoring screen so as to avoid accidents. It is impossible to clarify the regrets of the event by means of the monitoring screen; in addition, the present invention can also save a lot of manpower management costs, and can properly handle the abnormal screen when the first time is generated.

S101至S111、S201至S204、S301至S307‧‧‧步驟Steps S101 to S111, S201 to S204, S301 to S307‧‧

第1圖係為本發明之攝影機畫面異常之檢測方法之第一流程圖。
第2圖係為本發明之攝影機畫面異常之檢測方法之第二流程圖。
第3圖係為本發明之攝影機畫面異常之檢測方法之第三流程圖。

Fig. 1 is a first flow chart showing a method for detecting an abnormality of a camera screen of the present invention.
Fig. 2 is a second flow chart showing a method for detecting an abnormality of a camera screen of the present invention.
Fig. 3 is a third flow chart showing a method for detecting an abnormality of a camera screen of the present invention.

為利貴審查員瞭解本發明之技術特徵、內容與優點及其所能達成之功效,茲將本發明配合圖式,並以實施例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍,合先敘明。The technical features, contents, and advantages of the present invention and the efficacies thereof can be understood by the present inventors. The present invention will be described in conjunction with the drawings and will be described in detail with reference to the embodiments. The subject matter is only for the purpose of illustration and description. It is not intended to be a true proportion and precise configuration after the implementation of the present invention. Therefore, the scope and configuration relationship of the attached drawings should not be interpreted or limited. First described.

請參閱第1至3圖;第1圖係為本發明之攝影機畫面異常之檢測方法之第一流程圖;第2圖係為本發明之攝影機畫面異常之檢測方法之第二流程圖;第3圖係為本發明之攝影機畫面異常之檢測方法之第三流程圖。如圖所示,本發明提出一種攝影機畫面異常之檢測方法,其包含下列步驟:Please refer to FIG. 1 to FIG. 3; FIG. 1 is a first flowchart of a method for detecting an abnormality of a camera screen according to the present invention; and FIG. 2 is a second flowchart of a method for detecting an abnormality of a camera screen according to the present invention; The figure is a third flow chart of the method for detecting an abnormality of a camera screen of the present invention. As shown in the figure, the present invention provides a method for detecting an abnormality of a camera screen, which comprises the following steps:

擷取連續之複數個畫面(步驟S101)。藉由相鄰相減法判斷複數個畫面是否穩定(步驟S102)。依據複數個畫面建立二絕對背景,二絕對背景具有時間差(步驟S103),且分別每隔預設時間進行更新。藉由背景相減法判斷更新後之各絕對背景及其對應之更新前之各絕對背景之間之差異(步驟S104)。當更新前之至少一絕對背景與對應之更新後之絕對背景差異大於第一門檻值時,依據複數個畫面及二絕對背景之灰階直方圖分佈及邊緣像素,判斷攝影機是否具有影像移位或遭受遮蔽之異常狀態(步驟S105),並對應異常狀態發出警示訊息及執行對應異常狀態之故障排除步驟(步驟S106)。當更新前之至少一絕對背景與對應之更新後之絕對背景差異小於第一門檻值時,包含下列步驟:依據複數個畫面之亮度資訊及邊緣資訊,判斷攝影機畫面是否具有濃霧之異常狀態(步驟S107)。依據複數個畫面之高頻資訊遺失量,判斷攝影機畫面是否具有失焦之異常狀態(步驟S107)。依據複數個畫面之RGB各通道之平均亮度值及RGB各通道之局部區域平均亮度值,判斷攝影機畫面是否具有色偏之異常狀態(步驟S107)。依據複數個畫面之平均亮度值,判斷攝影機畫面是否具有閃爍之異常狀態(步驟S107)。當攝影機畫面未具有濃霧、失焦、色偏、閃爍或其組合之異常狀態時,則分別每隔預設時間更新各絕對背景(步驟S108),而當攝影機畫面具有異常狀態時,則發出警示訊息(步驟S109)。A plurality of consecutive pictures are captured (step S101). Whether or not the plurality of pictures are stable is determined by the adjacent subtraction method (step S102). The two absolute backgrounds are established according to the plurality of pictures, and the two absolute backgrounds have a time difference (step S103), and are updated every preset time. The difference between each updated absolute background and its corresponding absolute background before the update is judged by the background subtraction method (step S104). When at least one absolute background before updating and the corresponding updated absolute background difference are greater than the first threshold, determining whether the camera has image shift or based on the grayscale histogram distribution and edge pixels of the plurality of pictures and the two absolute backgrounds The abnormal state of being shielded (step S105), and a warning message is issued corresponding to the abnormal state and a troubleshooting step of executing the corresponding abnormal state (step S106). When the at least one absolute background before the update and the corresponding updated absolute background difference are less than the first threshold, the method includes the following steps: determining whether the camera screen has an abnormal state of the fog according to the brightness information and the edge information of the plurality of pictures (step S107). Based on the high frequency information loss amount of the plurality of pictures, it is judged whether or not the camera screen has an abnormal state of out of focus (step S107). The camera screen determines whether the camera screen has an abnormal state of color shift based on the average luminance value of each of the RGB channels of the plurality of pictures and the local area average luminance value of each of the RGB channels (step S107). Based on the average brightness value of the plurality of pictures, it is determined whether or not the camera screen has an abnormal state of flicker (step S107). When the camera screen does not have an abnormal state of dense fog, out-of-focus, color shift, flicker or a combination thereof, each absolute background is updated every preset time (step S108), and when the camera screen has an abnormal state, a warning is issued. Message (step S109).

續言之,於進行各種異常偵測之前,應確認攝影機已穩固架設,因為建立好的絕對背景(absolute backgrounds)及穩定的畫面可確保後續各種異常檢測正確率,以避免太多誤判。本發明是採用背景相減的方式來過濾移動物體,利用時間差來快速判斷像素是否為背景像素,如公式(1)所示,如果畫面存在移動物的話,經過n張影格後應已經離開原先所在位置,如在經過n張影格後,像素值皆未有任何改變,則判定為背景。In other words, before performing various anomaly detections, you should confirm that the camera has been erected steadily, because the established absolute backgrounds and stable images ensure the correct rate of subsequent anomaly detection to avoid too many false positives. The invention uses the background subtraction method to filter the moving object, and uses the time difference to quickly determine whether the pixel is a background pixel. As shown in the formula (1), if there is a moving object on the screen, after the n frames, the original position should be left. The position, if there is no change in the pixel value after passing n frames, is determined as the background.

(1) (1)

其中,t為時間變數;Ft+n (x,y)、Ft (x,y)分別表示為在時間t+n與t在(x,y)的像素值;Bt (x,y)則表示為時間為t時絕對背景(x,y)之像素值。藉此,利用時間差的畫面,可快速的建構出大部分的絕對背景,也可避免過多的運算。在建立基本之絕對背景後,後續可再藉由更新絕對背景以持續保持最新的背景資訊。Where t is a time variable; F t+n (x, y), F t (x, y) are respectively represented as pixel values at (x, y) at time t+n and t; B t (x, y ) is expressed as the pixel value of the absolute background (x, y) when time is t. In this way, using the time difference picture, most of the absolute background can be quickly constructed, and too many operations can be avoided. After establishing a basic absolute background, the subsequent background information can be continuously updated by updating the absolute background.

背景更新的主要目的,是要從所輸入的畫面中建立一個可靠的背景資訊,使得移動物體偵測能夠正確無誤的被執行。然而隨著時間的變化或移動目標進入畫面的影響,背景影像將不可避免的會產生一些變化,若此時再使用初始建立的絕對背景來做異常偵測,則可能會有誤判的情形出現。為了降低此誤差情形,背景的更新是需要被建立的。本案方法提出了一個背景更新的想法與概念,當畫面中像素值在經過一定的時間,尚未有任何更動時,將目前的像素值依照比例原則更新至背景當中,其判斷規則如公式(2)、公式(3)所示:The main purpose of the background update is to create a reliable background information from the input screen so that the moving object detection can be executed correctly. However, as time changes or the moving target enters the screen, the background image will inevitably produce some changes. If the initial background is used to detect the anomaly, there may be a misjudgment. In order to reduce this error situation, the update of the background needs to be established. The method of this case proposes an idea and concept of background update. When the pixel value in the picture has not changed any time after a certain period of time, the current pixel value is updated to the background according to the proportional principle, and the judgment rule is as in formula (2). And formula (3):

(2)                        (2)

(3) (3)

其中Countt +1 (x,y) 為計數器,k為影像差閥值,Bth 為更新的閥值,Bt +1 (x,y)背景更新後新的背景,Bt (x,y)為目前參考背景,Ft (x,y) 為目前影像,α參數為調節背景更新率 (updating rate),其數值可以介於0~1之間,此值用於控制背景更新的速率,值越大,則背景影像越接近目前影像;反之數值越小,背景更新後的影像越接近當初建立的背景影像,之後即可獲得最新的背景資訊。Where Count t +1 (x,y) is the counter, k is the image difference threshold, B th is the updated threshold, B t +1 (x,y) is the new background after the background update, B t (x,y For the current reference background, F t (x, y) is the current image, and the α parameter is to adjust the background update rate. The value can be between 0 and 1. This value is used to control the rate of background update. The larger the value, the closer the background image is to the current image; the smaller the value, the closer the image after the background update is to the background image that was originally created, and then the latest background information can be obtained.

而對於絕對背景差異之判斷,其進行各種異常偵測前,會先判斷輸入影像與建構出來的絕對背景是否有發生極大的差異,當發生與原先架設所預設的拍攝畫面有所不同時,極可能是畫面遭遮蔽、噴漆或鏡頭遭轉向、移位等;然,若只藉由輸入影像與絕對背景進行比較,短時間的阻擋,如行人從鏡頭前走過所造成短暫的差異,將可能會造成警示訊息不斷發佈。For the judgment of the absolute background difference, before performing various anomaly detections, it is first determined whether the input image and the constructed absolute background are greatly different. When the original shooting scene is different from the original setting, It is very likely that the picture is obscured, painted or the lens is turned, shifted, etc.; however, if only the input image is compared with the absolute background, the short-term blockage, such as the short-term difference caused by the pedestrian walking in front of the lens, will Warning messages may be posted continuously.

因此,在建立絕對背景時,會同時建構兩張具有時間差的絕對背景,兩張絕對背景因時間差,更新時間會有所不同,進而短暫停留的影像並不會被更新為背景,可避免短暫的差異造成誤判。故,正常情況兩張絕對背景的差異不會太大,當兩張絕對背景造成極大差異時,則表示較早更新的絕對背景,被更新為破壞或異常的畫面,導致與原先尚未被更新的絕對背景有極大差異,此時便可初步判斷出攝影機可能遭受破壞或發生異常;而當絕對背景判斷並沒發現任何異狀時,也不代表畫面就是屬於正常狀況,有些異常狀況並不會與原先預設的畫面有所差異,因此還是需要透過偵測才能確定畫面是否屬於正常狀況。Therefore, when establishing an absolute background, two absolute backgrounds with time difference will be constructed at the same time. The two absolute backgrounds will have different update time due to time difference, and the image that stays for a short time will not be updated to the background, which can avoid short-lived The difference caused misjudgment. Therefore, under normal circumstances, the difference between the two absolute backgrounds will not be too large. When the two absolute backgrounds cause great differences, it means that the absolute background of the earlier update is updated to a corrupted or abnormal picture, resulting in a situation that has not been updated before. Absolute background has a great difference. At this point, it can be judged that the camera may be damaged or abnormal. When the absolute background judgment does not find any abnormality, it does not mean that the picture is normal, and some abnormal conditions will not be The original preset screens are different, so it is still necessary to detect whether the screen is normal.

針對畫面是否穩定或晃動之偵測,將於本段落中進行說明。當固定攝影機發生晃動時,其亦為異常狀態之一,然而晃動有很多因素,除了攝影機遭人為刻意推搖及因地震等自然現象造成晃動之外,現實生活中如大型車輛經過而導致路面震動或強風吹襲等,亦可能造成畫面晃動,然,其都屬於可容忍之晃動範圍之內。因此,於檢測晃動時應進一步地控制調整檢測晃度靈敏度。The detection of whether the picture is stable or swaying will be explained in this paragraph. When the fixed camera is shaken, it is also one of the abnormal states. However, there are many factors in the shaking. In addition to the camera being deliberately pushed and shaken by natural phenomena such as earthquakes, real life, such as large vehicles passing through, causes road vibration. Or strong winds, etc., may also cause the picture to shake, but they are all within the tolerable range of shaking. Therefore, it is necessary to further control the adjustment detection sway sensitivity when detecting sloshing.

本發明在畫面穩定偵測中,使用畫面時間差分法(temporal difference),再根據差值比例來判斷是否穩定。一個穩定視訊其相鄰畫面之差值影像中差值小的像素數量會較多,反之,一個晃動大的畫面其相鄰影像之差值影像中差值大的像素數量較多,故根據其差異比例判定畫面是否穩定,如公式(4)所示,如SPFD 大於Sth ×S_image,則表示畫面有晃動,反之,SPFD 不大於Sth ×S_image,則表示畫面為穩定的狀態;SPFD 為差值影像中差值大的像素數量,Sth 為晃動比例,N_image為影像總像素數目,因此可透過設定Sth 以調整對於晃動偵測的靈敏度(本案方法設定Sth = 0.5 ~ 0.7),最後若視訊畫面穩定則直接輸出畫面;反之,若檢測出畫面不穩定時,則發出警示訊息(步驟S110)。In the image stabilization detection, the present invention uses a temporal difference method, and then determines whether it is stable according to the difference ratio. A stable video has a larger number of pixels with a smaller difference in the difference image of the adjacent picture. Conversely, a picture with a large sway is a larger number of pixels in the difference image of the adjacent picture, so according to the number of pixels Whether the difference ratio determination screen is stable, as shown in formula (4), if SP FD is larger than S th ×S_image, it means that the picture is shaking, and if SP FD is not larger than S th ×S_image, the picture is stable; SP FD is a large difference image difference number of pixels, the ratio S TH as shaking, N_image the total number of pixels in the image, it is possible by setting S S TH to adjust the sensitivity setting (in this case a method of detecting shake th = 0.5 ~ 0.7 And finally, if the video screen is stable, the screen is directly output; otherwise, if it is detected that the screen is unstable, a warning message is issued (step S110).

SPFD > Sth ×N_image(4) SP FD > S th ×N_image(4)

當絕對背景差異較大時,初步判斷出攝影機可能遭受破壞或發生異常,在與絕對背景有所差異時所發生的異常或遭受破壞,最有可能是畫面遭受轉向或移位,該些異常狀態皆使得攝影機無法有效地進行監視。進而,本案方法設定了兩種條件(conditions)來判斷鏡頭是否遭受轉向或移位或畫面遭遮蔽或噴漆。When the absolute background difference is large, it is preliminarily judged that the camera may be damaged or abnormal. The abnormality or damage that occurs when it is different from the absolute background is most likely that the picture is subject to steering or shifting. Both make the camera unable to monitor effectively. Furthermore, the method of the present invention sets two conditions to determine whether the lens is subject to steering or shifting or that the picture is obscured or painted.

首先,對複數個畫面及絕對背景進行灰階直方圖分析(步驟S201),當鏡頭尚未被遮蔽時,複數個畫面之灰階直方圖會呈現常態分佈,與所建構出的絕對背景灰階直方圖差異不大,所以藉由此直方圖分佈便可判斷畫面是否屬於正常狀況;當攝影機被遮蔽或噴漆時,畫面則可能同時遭遮蔽物(如手掌或油漆)覆蓋,進而畫面之灰階直方圖將會發生趨向集中分佈的情形。First, gray scale histogram analysis is performed on a plurality of pictures and absolute backgrounds (step S201). When the shots have not been masked, the gray scale histograms of the plurality of pictures will exhibit a normal distribution, and the absolute background gray level histograms constructed. The difference is not large, so the histogram distribution can be used to judge whether the picture is normal. When the camera is covered or painted, the picture may be covered by the cover (such as palm or paint), and the gray scale of the picture is straight. The graph will have a tendency to concentrate on the distribution.

判斷複數個畫面與絕對背景之灰階直方圖是否分佈異常(步驟S202),當複數個畫面灰階直方圖在特定區間之像素總數大於或等於絕對背景灰階直方圖之像素總數,則滿足條件一,如公式(5)所示:Determining whether the gray-scale histogram of the plurality of pictures and the absolute background is abnormally distributed (step S202), and satisfying the condition when the total number of pixels of the plurality of picture gray-scale histograms in the specific interval is greater than or equal to the total number of pixels of the absolute background gray-scale histogram First, as shown in formula (5):

條件一(Condition1): (5)Condition 1 (Condition1): (5)

其中,CF為複數個畫面灰階直方圖;BI為絕對背景灰階直方圖;Gmax 係為遮蔽畫面複數個畫面灰階直方圖最高峰值所對應之灰階值,n為參數(本案方法設為2,但不應以此為限),θocclusion 為比例值(本案方法設為1.5,但不應以此為限)。Among them, CF is a multi-picture gray-scale histogram; BI is an absolute background gray-scale histogram; G max is the gray-scale value corresponding to the highest peak of the multi-picture gray-scale histogram of the masking picture, and n is a parameter (the method is set in this case) 2, but should not be limited to this), θ occlusion is the proportional value (this method is set to 1.5, but should not be limited to this).

當滿足條件一後,便可開始對複數個畫面及絕對背景之灰階影像以Sobel運算子進行邊緣偵測(步驟S203),因鏡頭被遮蔽或噴漆時,原先複數個畫面之大部分邊緣資訊會遺失,因此經Sobel運算子處理後之結果影像會極度缺乏邊緣資訊,故可藉由邊緣資訊的遺失量來判斷原先複數個畫面是否遭遮蔽或噴漆(步驟S204),此為條件二,如公式(6)所示:After the condition 1 is satisfied, the edge detection of the gray image of the plurality of pictures and the absolute background is performed by the Sobel operator (step S203), and most of the edge information of the original plurality of pictures is caused when the lens is masked or painted. It will be lost. Therefore, the resulting image processed by the Sobel operator will be extremely lacking in edge information. Therefore, it is possible to determine whether the original plurality of pictures are masked or painted by the amount of missing edge information (step S204). Formula (6):

條件二(Condition2):Condition 2 (Condition2):

SCF ≦SBI ×θedge (6)S CF ≦S BI ×θ edge (6)

其中,SCF 為複數個畫面之邊緣總像素;SBI 為絕對背景之邊緣總像素,θedge 為比例值(本案方法設為0.7,但不應以此為限)。Where S CF is the total pixel edge of the plurality of pictures; S BI is the total edge pixel of the absolute background, and θ edge is the proportional value (the method is set to 0.7, but should not be limited thereto).

最後,當未滿足條件一,或是滿足條件一但未滿足條件二時,則判斷為攝影機遭轉向或移位,並發出警示訊息(步驟S111);若滿足條件一及條件二時,則判斷為攝影機畫面遭到遮蔽或噴漆,發出警示訊息(步驟S111)。Finally, when the condition one is not satisfied, or the condition one is satisfied but the condition two is not satisfied, it is determined that the camera is turned or shifted, and a warning message is sent (step S111); if the condition one and the condition two are satisfied, then the judgment is made. The camera screen is shielded or painted, and a warning message is issued (step S111).

而有關於畫面之濃霧檢測,本發明係利用Lambert-Beer定律,而提出三個判斷條件式,藉以判斷畫面是否為有霧的畫面。Regarding the detection of dense fog of the picture, the present invention uses the Lambert-Beer law to propose three judgment conditional expressions to determine whether the picture is a foggy picture.

更進一步地,初步利用影像的亮度區別所擷取的影像是否可能有霧的環境。在霧的環境所生成的影像,其對比度會降低,經由分析直方圖(histogram)的分佈,畫面平均亮度值(亦即灰階值)之左邊最高峰峰值與右邊最高峰峰值之差距會小於閥值PDth ,進而需要先計算出平均亮度值之左邊最高峰峰值與右邊最高峰峰值,favg 為影像平均亮度值,M×N為影像大小(影像像素總數),f(x,y)為在位置(x,y)之像素值(簡記為f ),nf 為直方圖中f灰階值之數量,fL 為影像平均亮度值(favg )之左邊最高峰峰值,fR 為影像平均亮度值(favg )之右邊最高峰峰值,而藉由分析,本案方法將霧化影像的平均亮度值之左右峰值差距定義為一個差距範圍,若差距低於閥值PDth (本案方法設為 30,但不應以此為限),則滿足條件一(Condition1)(步驟S301),如公式(7)所示,可初步判定可能為霧化的影像。Further, the brightness of the image is initially utilized to distinguish whether the captured image is likely to be foggy. The contrast generated by the image generated in the fog environment will be reduced. By analyzing the distribution of the histogram, the difference between the highest peak value on the left side of the average brightness value (ie, the gray level value) and the highest peak value on the right side will be smaller than the valve. The value PD th needs to calculate the highest peak value and the highest peak value on the left side of the average brightness value, f avg is the average brightness value of the image, M×N is the image size (the total number of image pixels), and f(x, y) is The pixel value at position (x, y) (abbreviated as f), n f is the number of gray scale values in the histogram, f L is the highest peak-to-peak value on the left side of the image average luminance value (f avg ), and f R is the image The average brightness value (f avg ) is the highest peak-to-peak value on the right side. By analysis, the method determines the peak-to-peak difference of the average brightness value of the atomized image as a gap range, if the difference is lower than the threshold PD th (this method is set If it is 30, but should not be limited thereto, then Condition 1 (Step S301) is satisfied, and as shown in Formula (7), an image which may be atomized may be initially determined.

條件一: ∣fL - fR ∣≦ PDth    (7)Condition one: ∣f L - f R ∣≦ PD th (7)

其中, among them,

         

         

條件二(Condition2)是考慮到畫面會有平滑區域的產生,因此針對Sobel影像(經Sobel運算子處理後之結果影像稱為Sobel影像,而此影像會保留原影像之邊緣資訊,故亦可稱為Sobel邊緣影像)的邊緣梯度變化來分析有霧與無霧影像之間的差別(步驟S302),分析Sobel邊緣影像直方圖在灰階值250~255及灰階值255的像素數目(步驟S303),在Sobel邊緣影像直方圖的灰階值250~255 及灰階值255的數目變高時,此影像可視為無霧的現象; 而該數目變低時,此影像則視為有霧,若符合公式(8),則判定影像可能為有霧化情況,其中n250≦f≦255 為Sobel影像直方圖灰階值250~255 之總數,nf =255 為Sobel影像直方圖灰階值255之總數,θRange 為閥值(本案方法設為0.001×M×N,但並不以此為限)。Condition 2 (Condition2) takes into account the smooth area of the picture, so it is for Sobel image (the result image processed by Sobel operator is called Sobel image, and this image will retain the edge information of the original image, so it can also be called The edge gradient change of the Sobel edge image is used to analyze the difference between the foggy and fog-free images (step S302), and the number of pixels of the Sobel edge image histogram in the grayscale value 250~255 and the grayscale value 255 is analyzed (step S303). When the number of grayscale values 250~255 and grayscale value 255 of the Sobel edge image histogram becomes higher, the image can be regarded as a fog-free phenomenon; when the number becomes lower, the image is regarded as foggy. If the formula (8) is met, it is determined that the image may be fogged, where n 250≦f≦255 is the total number of grayscale values 250 to 255 of the Sobel image histogram, and n f = 255 is the grayscale value of the Sobel image histogram. The total number of 255, θ Range is the threshold (this method is set to 0.001 × M × N, but not limited to this).

條件二:(步驟S304及S305)Condition 2: (Steps S304 and S305)

((n250≦f≦255 ) < θRange )AND((nf =255 ) < θRange )   (8)((n 250≦f≦255 ) < θ Range ) AND((n f =255 ) < θ Range ) (8)

霧化的環境是存在著低能見的影像,因此一張霧化的影像是模糊且不清晰的,若用影像的屬性角度來看,則是於平滑屬性的影像,而一張清晰的影像則屬於複雜屬性的影像,因此,本案方法利用Sobel邊緣影像檢測的方式,將其Sobel影像取其平均數,如公式(9)所示,其中,Sμ 代表整張Sobel影像的平均值,fE (x,y)表示為Sobel影像中位置(x,y)的灰階值,分析一張霧化影像的梯度變化,一張有霧的影像其Sobel邊緣影像檢測結果之Sμ 較小; 在無霧的環境中Sobel邊緣影像檢測結果之Sμ 較大。The atomized environment is a low-visibility image, so an atomized image is blurred and unclear. If the image is viewed from the perspective of the image, it is a smooth image of the property, while a clear image is used. Image that belongs to complex attributes. Therefore, the method of this method uses Sobel edge image detection to take its Sobel image as its average, as shown in formula (9), where S μ represents the average value of the entire Sobel image, f E (x, y) is expressed as the grayscale value of the position (x, y) in the Sobel image, and the gradient change of an atomized image is analyzed. A foggy image has a smaller S μ of the Sobel edge image detection result; The S μ of the Sobel edge image detection results in a fog-free environment is large.

(9) (9)

一般來說,標準差可當做一張影像內容的離均程度,標準差的值愈大代表影像內容的變化較大,也就表示影像對比度較大,其資訊內容愈豐富;而標準差愈小,則變化程度較小,對比度則相對地小,一般而言,其資訊內容愈單調。因此,本案方法利用標準差(σ)做為霧濃度分類級數的基礎,如公式(10)所示,其中σ代表原始灰階影像標準差,μ代表整張影像的平均值,而f(x,y)為原始影像中每一個像素點。In general, the standard deviation can be regarded as the degree of deviation of the image content. The larger the value of the standard deviation is, the larger the change of the image content is, which means that the contrast of the image is larger, and the information content is richer; the smaller the standard deviation is. , the degree of change is small, the contrast is relatively small, in general, the information content is more monotonous. Therefore, the method of this case uses the standard deviation (σ) as the basis for the classification of the fog concentration, as shown in equation (10), where σ represents the standard deviation of the original grayscale image, μ represents the average of the entire image, and f( x, y) is each pixel in the original image.

(10) (10)

條件三(Condition3)是透過公式(9)及公式(10)來判斷霧濃度,建立霧級數的歸屬函數,如公式(11)所示:Condition 3 (Condition 3) is to determine the fog concentration by formula (9) and formula (10), and establish the attribution function of the fog level, as shown in formula (11):

條件三: z = Sμ + σ(11)Condition three: z = S μ + σ(11)

其中,z的數值關係著霧濃度,如z = 0至44則設定為「濃霧」;z = 45至75則設定為「中霧」;z = 76至90則設定為「輕霧」;z > 90則設定為「無霧」(步驟S306),其可給監控人員作為霧影響畫面程度的參考。Among them, the value of z is related to the fog concentration. If z = 0 to 44, it is set to "dense fog"; z = 45 to 75 is set to "mid fog"; z = 76 to 90 is set to "light fog"; > 90 is set to "no fog" (step S306), which can give the monitor as a reference for the degree of fog affecting the picture.

若符合以上三個條件(條件一至條件三),則其所檢測出畫面便具有霧化之異常狀態,進而須發佈警示訊息(步驟S307),且該警示訊息中應包含霧的濃度資訊。If the above three conditions are met (condition 1 to condition 3), the detected image has an abnormal state of fogging, and then a warning message is issued (step S307), and the warning message should include the concentration information of the fog.

而就檢測畫面是否失焦來說,造成畫面失焦的原因可能是設備損壞或霧氣、水滴落在鏡頭前面,而透過水滴拍攝到的畫面,造成模糊不清,都可能造成畫面的失焦。由於畫面失焦主要會使得影像模糊,影響影像邊緣細節,造成高頻資訊的遺失,本案方法使用離散餘弦變換(Discrete Cosine Transform, DCT)將影像轉為頻率域,再計算高頻資訊量以偵測畫面失焦問題。In terms of detecting whether the picture is out of focus, the cause of the picture being out of focus may be that the device is damaged or mist, water drops fall in front of the lens, and the picture captured by the water droplets causes blurring, which may cause the picture to be out of focus. Since the image is out of focus mainly causes the image to be blurred, affecting the edge details of the image and causing the loss of high frequency information. The method uses Discrete Cosine Transform (DCT) to convert the image into the frequency domain, and then calculates the high frequency information to detect The picture is out of focus.

當畫面失焦時,其高頻資訊量會大減,本案方法藉由統計高頻資訊遺失量,即可判斷出畫面是否失焦。首先利用前面複數個正常畫面設定高頻資訊量基準值BaseHF ,再透過此基準值設定高頻資訊遺失量之閥值αHF_Loss ,而αHF_Loss = BaseHF ×βU ,βU 為比例參數(本案方法設定βU = 0.7,但不應以此為限)。當攝影機攝取影像之高頻資訊遺失量大於αHF_Loss ,則判斷為失焦;否則更新高頻資訊基準值,繼續偵測畫面失焦程序。(本案方法利用DCT高頻係數區域之係數為0之數量而計算出高頻資訊遺失量)When the picture is out of focus, the amount of high-frequency information will be greatly reduced. The method of this method can determine whether the picture is out of focus by counting the loss of high-frequency information. First, the high frequency information reference value Base HF is set by using a plurality of previous normal pictures, and then the threshold value α HF_Loss of the high frequency information loss amount is set by the reference value, and α HF_Loss = Base HF × β U , β U is a proportional parameter ( The method in this case is set to β U = 0.7, but should not be limited to this). When the high frequency information loss of the image taken by the camera is greater than α HF_Loss , it is judged to be out of focus; otherwise, the high frequency information reference value is updated, and the screen out of focus program is continuously detected. (This method uses the number of coefficients in the DCT high-frequency coefficient region to be 0 to calculate the high-frequency information loss)

而檢測畫面之色偏(color cast)異常狀態,其發生色偏的原因,可能是現場色溫導致攝影機白平衡錯誤,或是輸入信號異常,信號微弱導致顏色怪異,或是監視螢幕損壞造成畫面出現色偏,根據人眼視覺對顏色的敏銳度,輕微的色彩的差異是無法辨識出其差異,當畫面各通道有極大差異,才可明顯觀測出整體畫面偏向某顏色。本案方法提出兩個判斷條件來判斷畫面是否有色偏,當兩個判斷條件均滿足,則確認為畫面色偏。However, the color cast abnormal state of the screen is detected, and the color shift may occur because the scene color temperature causes the camera white balance error, or the input signal is abnormal, the signal is weak, the color is strange, or the screen is damaged due to the screen damage. Color shift, according to the acuity of the human eye to the color, the slight difference in color can not recognize the difference. When the channels of the picture have great differences, the overall picture can be clearly observed to a certain color. The method of the present invention proposes two judgment conditions to determine whether the picture has color cast. When both judgment conditions are satisfied, it is confirmed as the screen color shift.

當畫面尚未發生色偏時,RGB各通道(Channel)的平均亮度彼此差異不會太大; 反之,當畫面發生色偏時,表示畫面各通道之平均亮度有所差異,透過計算各通道平均亮度值 (Ravg , Gavg , Bavg ),當各通道的最大平均亮度Lmax 與最小平均亮度Lmin 的差值大於閥值θcd (本案方法設定θcd = 30,但不應以此為限),則滿足條件一,如公式(12)所示,可初步判斷畫面可能有色偏發生。When the color shift has not occurred in the picture, the average brightness of each channel of RGB is not too different from each other; on the contrary, when the color shift occurs on the picture, the average brightness of each channel of the picture is different, and the average brightness of each channel is calculated. The values (R avg , G avg , B avg ), when the difference between the maximum average brightness L max of each channel and the minimum average brightness L min is greater than the threshold θ cd (the method is set θ cd = 30, but should not be used as this Limit), condition 1 is satisfied, as shown in formula (12), it can be preliminarily judged that the screen may have color cast.

條件一:Condition one:

(12)
其中 ,
, ,
M×N代表影像的大小,R(x,y)、G(x,y)、B(x,y)分別表示原始影像各通道每點像素值。
(12)
among them ,
, ,
M×N represents the size of the image, and R(x, y), G(x, y), and B(x, y) respectively represent pixel values per point of each channel of the original image.

當初步判斷輸入影像之RGB各通道有所差異時,為避免因畫面僅僅只是其中單一顏色資訊較豐富或貧乏而造成誤判,因此,判斷條件二是透過局部區域平均亮度值來判斷是否有色偏。首先尋找色彩偏移最大的通道Ccd ,它定義為某一通道與另兩通道差值差異最大的通道,如公式(13)所示,Bdiff 、Gdiff 、Rdiff 為與其它任兩通道的差值。透過此步驟可找出色彩偏移最大的通道。When it is initially determined that the RGB channels of the input image are different, in order to avoid misjudgment because the picture is only rich or poor in single color information, the second condition is to determine whether there is color cast by the local area average brightness value. First, look for the channel C cd with the largest color shift, which is defined as the channel with the largest difference between the difference between one channel and the other. As shown in equation (13), B diff , G diff , R diff are the other two channels. The difference. Use this step to find the channel with the largest color shift.

(13) (13)

其中
     

among them


找出Ccd 通道,再判斷Ccd 通道的亮部範圍(lighter range)及暗部範圍(darker range),亮部的範圍為Ccd 通道最亮的灰階度(graylevel)至前n個灰階度範圍,暗部的範圍為Ccd 通道最暗的灰階度至後n個灰階度範圍(本案方法設定n = 5,不應以此為限)。計算出各通道在亮部範圍及暗部範圍的平均灰階值,利用色彩偏移最大的通道Ccd 的亮度範圍及暗部範圍的平均灰階值,與其它通道的亮度範圍及暗部範圍的平均灰階值進行差值運算,如公式(14)所示, 相減之差值, 相減之差值,其中 為Ccd 暗部範圍的平均灰階值, 為Ccd 亮部範圍的平均灰階值, 為R、G、或B亮部的範圍各通道的平均灰階值, 為R、G、或B暗部的範圍各通道的平均灰階值,上述各項之上標c代表通道(channel): R, G, B。C cd identify the channel, and then determining the range of the bright portion C cd channel (lighter range) and the range of a dark portion (darker range), the range for the bright portions of the channel C cd brightest gray scale of (graylevel) to the first n gradations Range, the range of the dark part is the darkest gray scale of the C cd channel to the next n gray scale range (the method is set to n = 5, which should not be limited to this). Calculate the average grayscale value of each channel in the bright range and the dark part range, and use the brightness range of the channel C cd with the largest color shift and the average gray scale value of the dark part range, and the brightness range of the other channels and the average gray of the dark part range. The order value is subjected to a difference operation, as shown in equation (14). for versus The difference between the subtractions, for versus The difference between the subtractions, of which Is the average grayscale value of the C cd dark range, Is the average grayscale value of the C cd highlight range, The average grayscale value of each channel in the range of R, G, or B highlights, For the average grayscale value of each channel in the range of the R, G, or B dark portion, the above superscript c represents the channel: R, G, B.

;  
(14)
;
(14)

大於閥值θcd 大於閥值θcd (本案方法設定θcd = 30,不應以此為限),則滿足條件二,如公式(15)所示,可判斷畫面有色偏發生。先滿足條件一,若再滿足條件二,則確認發佈色偏之警示訊息。Such as Greater than the threshold θ cd and If it is greater than the threshold θ cd (the method is set to θ cd = 30, which should not be limited to this), the condition 2 is satisfied. As shown in the formula (15), it can be judged that the color shift occurs on the screen. Condition 1 is satisfied first, and if condition 2 is satisfied again, the warning message of the release color deviation is confirmed.

條件二: (15)Condition 2: (15)

當訊號受到高頻干擾或訊號線遭受破壞時,最容易發生的異常狀況是畫面不正常的閃爍跳動,嚴重情形可能使畫面遺失,無法接受任何訊號而導致黑屏現象發生,使得無法順利攝錄監視畫面,出現監視漏洞。本案方法利用計算畫面平均亮度值(亦即灰階值),如公式(16)所示,其中Lavg 代表影像畫面灰階值平均值,M×N為影像畫面總像素,f(x,y)為像素(x,y)之灰階值。由於閃爍畫面與正常穩定畫面之灰階值平均值變化曲線會有明顯差異,即閃爍畫面之灰階值平均值變化曲線會呈現凌亂的狀態,而正常穩定畫面之灰階值平均值變化曲線會呈現平滑而穩定的狀態,故可利用此差異性來偵測畫面是否有閃爍異常。When the signal is subjected to high-frequency interference or the signal line is damaged, the most common abnormal condition is the flickering of the screen. The serious situation may cause the screen to be lost, and no signal can be accepted, resulting in a black screen phenomenon, making it impossible to smoothly monitor and monitor. Screen, a surveillance vulnerability has occurred. The method of the present invention utilizes the calculated average brightness value of the picture (ie, the gray level value), as shown in the formula (16), where L avg represents the average value of the grayscale value of the image frame, and M×N is the total pixel of the image frame, f(x, y). ) is the grayscale value of the pixel (x, y). Since the average value of the grayscale value of the flashing picture and the normal stable picture will be significantly different, that is, the average value of the grayscale value of the blinking picture will be in a messy state, and the average value of the grayscale value of the normal stable picture will be A smooth and stable state is presented, so this difference can be used to detect whether the picture has flickering abnormalities.

(16) (16)

本案方法利用閃爍畫面及正常穩定畫面之灰階值平均值變化曲線圖的差異來判斷畫面是否閃爍異常,然而判斷該二曲線圖的差異之方法有許多種,下面只是其中一種。The method of the present invention uses the difference between the grayscale value average curve of the flickering picture and the normal stable picture to determine whether the picture is flickering abnormal. However, there are many methods for judging the difference of the two graphs, and only one of them is as follows.

本發明係利用上述畫面灰階值平均值之變化曲線以計算狀態改變數目來判斷畫面是否閃爍異常,狀態設定如公式(17)所示,其中,Statet 為當前狀態0、1或者不變,當相鄰影格之Lavg 相差值大於閥值Cth 時(本案方法設定Cth = 5,不應以此為限),則狀態改變; 否則維持當前狀態。當狀態從0改變為1或從1變為0時,則計數器進行累加動作,透過判斷計數器的累加值(ACC),如經連續n個回合改變狀態時,並且計數器累加值大於門檻值θA 時,則判斷為畫面有閃爍異常,發出警示訊息,如公式(18)所示。
(17)
The invention utilizes the curve of the average value of the grayscale value of the above picture to calculate the number of state changes to determine whether the picture is flickering abnormality, and the state setting is as shown in the formula (17), wherein the state t is the current state 0, 1 or unchanged. When the difference between the L avg of the adjacent frames is greater than the threshold C th (the method in this case sets C th = 5, which should not be limited to this), the state changes; otherwise, the current state is maintained. When the state changes from 0 to 1 or from 1 to 0, the counter performs an accumulation operation, by judging the accumulated value of the counter (ACC), if the state is changed by successive n rounds, and the counter accumulated value is greater than the threshold value θ A When it is judged that the screen has a flickering abnormality, a warning message is issued, as shown in the formula (18).
(17)

If (18)
其中
If (18)
among them

綜觀上述,本發明之攝影機畫面異常之檢測方法乃為習知技術所不能及者,確實已達到所欲增進之功效,且也非熟悉該項技藝者所易於思及,其所具之進步性、實用性,顯然已符合專利之申請要件,爰依法提出專利申請,懇請貴局核准本件發明專利申請案,以勵創作,至感德便。In view of the above, the detection method of the abnormality of the camera screen of the present invention is not possible by the prior art, and has indeed achieved the desired effect, and is not familiar with the skill of the artist, and is progressive. Applicability, obviously has met the requirements of the patent application, 提出 filed a patent application according to law, and asks your office to approve the application for this invention patent, in order to encourage creation, to the sense of virtue.

no

no

S101至S111‧‧‧步驟 S101 to S111‧‧‧ steps

Claims (10)

【第1項】[Item 1] 一種攝影機畫面異常之檢測方法,其包含下列步驟:
擷取連續之複數個畫面;
藉由相鄰相減法判斷該複數個畫面是否穩定;
依據該複數個畫面建立二絕對背景,該二絕對背景相距一時間差,且分別每隔一預設時間進行更新;
藉由背景相減法判斷更新後之各該絕對背景及其對應之更新前之各該絕對背景之間之差異;
當更新前之至少一該絕對背景與對應之更新後之該絕對背景差異大於一第一門檻值時,依據該複數個畫面及該二絕對背景之灰階直方圖分佈及邊緣像素,判斷該攝影機畫面是否具有影像移位或遭受遮蔽之異常狀態,並對應異常狀態發出一警示訊息及執行對應異常狀態之一故障排除步驟;以及
當更新前之至少一該絕對背景與對應之更新後之該絕對背景差異小於該第一門檻值時,包含下列步驟:
依據該複數個畫面之亮度資訊及邊緣資訊,判斷該攝影機畫面是否具有濃霧之異常狀態;
依據該複數個畫面之高頻資訊遺失量,判斷該攝影機畫面是否具有失焦之異常狀態;
依據該複數個畫面之RGB各通道之平均亮度值及RGB各通道之局部區域平均亮度值,判斷該攝影機畫面是否具有色偏之異常狀態;
依據該複數個畫面之平均亮度值,判斷該攝影機畫面是否具有閃爍之異常狀態;以及
當該攝影機畫面未具有濃霧、失焦、色偏、閃爍或其組合之異常狀態時,則分別每隔該預設時間更新各該絕對背景,而當該攝影機畫面具有異常狀態時,則發出該警示訊息。
A method for detecting an abnormality of a camera screen, comprising the following steps:
Draw a continuous number of pictures;
Determining whether the plurality of pictures are stable by the adjacent subtraction method;
Establishing two absolute backgrounds according to the plurality of pictures, the two absolute backgrounds are separated by a time difference, and are updated every predetermined time;
Determining, by background subtraction, the difference between each updated absolute background and its corresponding absolute background before updating;
When at least one of the absolute backgrounds before the update and the corresponding updated absolute background difference are greater than a first threshold, determining the camera according to the plurality of pictures and the gray-scale histogram distribution of the two absolute backgrounds and the edge pixels Whether the picture has an abnormal state of image shifting or being masked, and issuing a warning message corresponding to the abnormal state and performing a troubleshooting step of the corresponding abnormal state; and updating the absolute background and the corresponding updated one of the absolute before the update When the background difference is less than the first threshold, the following steps are included:
Determining whether the camera screen has an abnormal state of dense fog according to brightness information and edge information of the plurality of pictures;
Determining whether the camera screen has an abnormal state of out-of-focus according to the high-frequency information loss of the plurality of pictures;
Determining whether the camera screen has an abnormal state of color shift according to an average brightness value of each of the RGB channels of the plurality of pictures and an average brightness value of a local area of each of the RGB channels;
Determining whether the camera screen has an abnormal state of flicker according to the average brightness value of the plurality of pictures; and when the camera screen does not have an abnormal state of dense fog, out of focus, color shift, flicker or a combination thereof, respectively Each of the absolute backgrounds is updated by a preset time, and the warning message is issued when the camera screen has an abnormal state.
【第2項】[Item 2] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其中判斷該攝影機畫面是否穩定更包含下列步驟:
藉由其中一該畫面與相鄰之另一該畫面取得一差值影像;
當該差值影像中差值大之像素數量低於一預設百分比之總像素數量時,則判斷該攝影機畫面係為穩定狀態,並進行建立該二絕對背景;以及
當該差值影像中差值大之像素數量高於該預設百分比之總像素數量時,則判斷該攝影機畫面係為晃動狀態,並發出該警示訊息。
The method for detecting an abnormality of a camera screen according to the first aspect of the patent application, wherein determining whether the camera screen is stable or not includes the following steps:
Obtaining a difference image by one of the pictures and another adjacent picture;
When the difference image has a larger number of pixels than a predetermined percentage of the total number of pixels, it is determined that the camera picture is in a stable state, and the two absolute backgrounds are established; and when the difference image is poor When the number of pixels with a larger value is higher than the total number of pixels of the preset percentage, it is determined that the camera screen is in a shaking state, and the warning message is issued.
【第3項】[Item 3] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
判斷該複數個畫面之灰階直方圖在特定區間之像素總數是否大於各該絕對背景之灰階直方圖之像素總數;以及
當該複數個畫面之灰階直方圖在特定區間之像素總數大於或等於該二絕對背景之灰階直方圖之像素總數時,則判斷該複數個畫面之邊緣像素總數是否小於或等於各該絕對背景之一預設比例之邊緣像素總數。
The method for detecting an abnormality of a camera screen as described in claim 1 of the patent application further includes the following steps:
Determining whether the total number of pixels of the grayscale histogram of the plurality of pictures is greater than the total number of pixels of the grayscale histogram of the absolute background; and when the total number of pixels of the grayscale histogram of the plurality of pictures is greater than or in a specific interval When the total number of pixels of the gray-scale histogram of the two absolute backgrounds is equal to, the total number of edge pixels of the plurality of pictures is determined to be less than or equal to a total number of edge pixels of a preset ratio of the absolute background.
【第4項】[Item 4] 如申請專利範圍第3項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
當絕對背景差異大,且該複數個畫面之灰階直方圖在特定區間之像素總數小於各該絕對背景之灰階直方圖之像素總數時,則判斷該攝影機畫面處於位移之異常狀態,並發出該警示訊息;
當絕對背景差異大,且該複數個畫面之灰階直方圖在特定區間之像素總數不小於各該絕對背景之灰階直方圖之像素總數,而該複數個畫面之邊緣像素總數大於各該絕對背景之該預設比例之邊緣像素總數時,則判斷該攝影機畫面處於位移之異常狀態,並發出該警示訊息;以及
當絕對背景差異大,且該複數個畫面之灰階直方圖在特定區間之像素總數不小於各該絕對背景之灰階直方圖之像素總數,而該複數個畫面之邊緣像素總數不大於各該絕對背景之該預設比例之邊緣像素總數時,則判斷該攝影機畫面處於遭受遮蔽之異常狀態,並發出該警示訊息。
The method for detecting an abnormality of a camera screen as described in claim 3 of the patent application further includes the following steps:
When the absolute background difference is large, and the total number of pixels of the grayscale histogram of the plurality of pictures in a specific section is smaller than the total number of pixels of the grayscale histogram of the absolute background, it is determined that the camera screen is in an abnormal state of displacement, and is issued The warning message;
When the absolute background difference is large, and the total number of pixels of the grayscale histogram of the plurality of pictures in a specific section is not less than the total number of pixels of the grayscale histogram of the absolute background, and the total number of edge pixels of the plurality of pictures is greater than the absolute When the total number of edge pixels of the preset ratio is determined, the camera screen is judged to be in an abnormal state of displacement, and the warning message is issued; and when the absolute background difference is large, and the gray scale histogram of the plurality of pictures is in a specific interval The total number of pixels is not less than the total number of pixels of the gray-scale histogram of the absolute background, and when the total number of edge pixels of the plurality of pictures is not greater than the total number of edge pixels of the preset ratio of the absolute background, it is determined that the camera picture is suffering Mask the abnormal state and issue the alert message.
【第5項】[Item 5] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
判斷該複數個畫面之平均亮度值之左邊最高峰峰值與平均亮度值之右邊最高峰峰值之差距是否小於一預設差距閥值;
判斷該複數個畫面之邊緣影像灰階直方圖之250至255灰階值及255灰階值之數量是否小於一預設數量閥值;以及
藉由Sobel邊緣檢測取得邊緣影像灰階平均值,並依據該複數個畫面之邊緣影像灰階平均值及原畫面之灰階影像標準差以判斷使否有霧及霧濃度,並發佈包含霧濃度之該警示訊息。
The method for detecting an abnormality of a camera screen as described in claim 1 of the patent application further includes the following steps:
Determining whether the difference between the highest peak-to-peak value on the left side of the average brightness value of the plurality of pictures and the highest peak-to-peak value on the right side of the average brightness value is less than a preset gap threshold;
Determining whether the number of 250 to 255 grayscale values and 255 grayscale values of the edge image grayscale histogram of the plurality of pictures is less than a preset number threshold; and obtaining an edge image grayscale average by Sobel edge detection, and The warning value of the fog concentration is released according to the grayscale average value of the edge image of the plurality of pictures and the grayscale image standard deviation of the original picture to determine whether there is fog and fog concentration.
【第6項】[Item 6] 如申請專利範圍第5項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
當該複數個畫面之灰階直方圖之平均亮度之左邊最高峰峰值與平均亮度之右邊最高峰峰值之差距是小於該預設差距閥值時,則初步判斷該攝影機畫面處於起霧之異常狀態。
The method for detecting an abnormality of a camera screen as described in claim 5 of the patent application further includes the following steps:
When the difference between the highest peak-to-peak value on the left side of the average brightness of the gray-scale histogram of the plurality of pictures and the highest peak-to-peak value on the right side of the average brightness is less than the preset gap threshold, the camera screen is initially judged to be in an abnormal state of fogging. .
【第7項】[Item 7] 如申請專利範圍第6項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
當邊緣影像直方圖之250至255灰階值及255灰階值之數量皆小於該預設數量閥值時,則判斷該攝影機畫面處於起霧之異常狀態。
The method for detecting an abnormality of a camera picture as described in claim 6 of the patent application further includes the following steps:
When the number of the 250 to 255 grayscale value and the 255 grayscale value of the edge image histogram are both less than the preset number threshold, it is determined that the camera screen is in an abnormal state of fogging.
【第8項】[Item 8] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
設定高頻資訊量基準值,再藉由高頻資訊量基準值設定一預設遺失量;
判斷該複數個畫面之高頻資訊遺失量是否大於該預設遺失量;
當大於該預設遺失量時,則判斷該攝影機畫面處於失焦之異常狀態,並發佈該警示訊息;以及
當不大於該預設遺失量時,則更新高頻資訊基準值,進行下一次該複數個畫面之高頻資訊遺失量及該預設遺失量之比對判斷。
The method for detecting an abnormality of a camera screen as described in claim 1 of the patent application further includes the following steps:
Setting a high frequency information amount reference value, and then setting a preset loss amount by using a high frequency information amount reference value;
Determining whether the high frequency information loss amount of the plurality of pictures is greater than the preset loss amount;
When it is greater than the preset loss amount, it is determined that the camera screen is in an abnormal state of out-of-focus, and the warning message is issued; and when it is not greater than the preset loss amount, the high-frequency information reference value is updated, and the next time Judging the ratio of the high frequency information loss of the plurality of pictures and the preset loss amount.
【第9項】[Item 9] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
判斷該複數個畫面之各色彩通道之最大平均亮度與各通道之最小平均亮度之差值是否大於一預設平均亮度差值;
判斷色彩偏移最大之色彩通道之亮部範圍之平均值與其他通道之亮部範圍之平均值之差距是否大於一預設平均值差距;
判斷色彩偏移最大之色彩通道之暗部範圍之平均值與其他色彩通道之暗部範圍之平均值之差距是否大於該預設平均值差距;
當各色彩通道之最大平均亮度與各色彩通道之最小平均亮度之差值大於該預設通道平均亮度差值,且色彩偏移最大之色彩通道之亮部範圍之平均值與其他色彩通道之亮部範圍之平均值之差距及色彩偏移最大之色彩通道之暗部範圍之平均灰階值與其他色彩通道之暗部範圍之平均值之差距皆大於該預設平均值差距時,則判斷該攝影機畫面處於色偏之異常狀態,並發佈該警示訊息。
The method for detecting an abnormality of a camera screen as described in claim 1 of the patent application further includes the following steps:
Determining whether a difference between a maximum average brightness of each color channel of the plurality of pictures and a minimum average brightness of each channel is greater than a predetermined average brightness difference;
Determining whether the difference between the average value of the bright portion of the color channel having the largest color shift and the average of the bright portion ranges of the other channels is greater than a predetermined average difference;
Determining whether the difference between the average value of the dark portion of the color channel having the largest color shift and the average of the dark portion of the other color channels is greater than the preset average difference;
When the difference between the maximum average brightness of each color channel and the minimum average brightness of each color channel is greater than the average brightness difference of the preset channel, and the average of the bright portion of the color channel with the largest color shift is brighter than other color channels The difference between the average value of the range and the difference between the average grayscale value of the dark portion of the color channel and the average of the dark portion of the other color channels is greater than the preset average difference, and the camera screen is judged. The color is in an abnormal state and the warning message is issued.
【第10項】[Item 10] 如申請專利範圍第1項所述之攝影機畫面異常之檢測方法,其更包含下列步驟:
判斷該複數個畫面之相鄰影格之差異值;
當相鄰影格之差異值大於一第二門檻值時,則判斷影像狀態改變;以及
當影像狀態改變之次數大於一預設累加數時,則判斷該攝影機畫面處於影像閃爍之異常狀態,並發佈該警示訊息。
The method for detecting an abnormality of a camera screen as described in claim 1 of the patent application further includes the following steps:
Determining a difference value of adjacent frames of the plurality of pictures;
When the difference value of the adjacent frames is greater than a second threshold, determining that the image state changes; and when the number of image state changes is greater than a preset accumulated number, determining that the camera screen is in an abnormal state of image flicker, and releasing The warning message.
TW102145473A 2013-12-10 2013-12-10 Detecting method of abnormality of image capturing by camera TWI502964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102145473A TWI502964B (en) 2013-12-10 2013-12-10 Detecting method of abnormality of image capturing by camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102145473A TWI502964B (en) 2013-12-10 2013-12-10 Detecting method of abnormality of image capturing by camera

Publications (2)

Publication Number Publication Date
TW201524188A true TW201524188A (en) 2015-06-16
TWI502964B TWI502964B (en) 2015-10-01

Family

ID=53935882

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102145473A TWI502964B (en) 2013-12-10 2013-12-10 Detecting method of abnormality of image capturing by camera

Country Status (1)

Country Link
TW (1) TWI502964B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI599222B (en) * 2016-07-19 2017-09-11 Chunghwa Telecom Co Ltd Photographic device anomaly detection method
TWI616086B (en) * 2016-10-20 2018-02-21 Detection method of abnormal type of photographing device screen
CN108650503A (en) * 2018-04-28 2018-10-12 努比亚技术有限公司 Camera fault determination method, device and computer readable storage medium
CN113378797A (en) * 2021-07-14 2021-09-10 江苏邦融微电子有限公司 Water drop detection method for fingerprint collecting head

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107321958A (en) * 2017-05-17 2017-11-07 威海伯特利萨克迪汽车安全系统有限公司 The screen pack automatic identification detecting system and method for a kind of counter-pressure casting mould
CN110108448B (en) * 2019-04-30 2020-09-29 惠州市德赛西威智能交通技术研究院有限公司 Automatic defect detection method for dynamic logo

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137906A1 (en) * 2006-12-12 2008-06-12 Industrial Technology Research Institute Smoke Detecting Method And Device
TW201001338A (en) * 2008-06-16 2010-01-01 Huper Lab Co Ltd Method of detecting moving objects
TW201113835A (en) * 2009-10-07 2011-04-16 Taiwan Secom Co Ltd Intelligent image detecting method, intelligent image detecting system and intelligent image detecting software
IL210427A0 (en) * 2011-01-02 2011-06-30 Agent Video Intelligence Ltd Calibration device and method for use in a surveillance system for event detection
TW201241794A (en) * 2011-04-08 2012-10-16 Hon Hai Prec Ind Co Ltd System and method for detecting damages of image capturing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI599222B (en) * 2016-07-19 2017-09-11 Chunghwa Telecom Co Ltd Photographic device anomaly detection method
TWI616086B (en) * 2016-10-20 2018-02-21 Detection method of abnormal type of photographing device screen
US10223594B2 (en) 2016-10-20 2019-03-05 Ironyun Inc. Method of detecting whether surveillance camera is normal or abnormal with one of a plurality of abnormal properties
CN108650503A (en) * 2018-04-28 2018-10-12 努比亚技术有限公司 Camera fault determination method, device and computer readable storage medium
CN108650503B (en) * 2018-04-28 2020-08-21 努比亚技术有限公司 Camera fault determination method and device and computer readable storage medium
CN113378797A (en) * 2021-07-14 2021-09-10 江苏邦融微电子有限公司 Water drop detection method for fingerprint collecting head

Also Published As

Publication number Publication date
TWI502964B (en) 2015-10-01

Similar Documents

Publication Publication Date Title
TWI502964B (en) Detecting method of abnormality of image capturing by camera
US10070053B2 (en) Method and camera for determining an image adjustment parameter
JP4803376B2 (en) Camera tampering detection method
CN101247480B (en) Automatic exposure method based on objective area in image
US10277805B2 (en) Monitoring system and camera device
US8189913B2 (en) Method for detecting shadow of object
CN109716758B (en) Monitoring camera using composite filtering method and video monitoring system using the same
CN107240092B (en) Image ambiguity detection method and device
JP2009533778A (en) Video segmentation using statistical pixel modeling
CN106599783B (en) Video occlusion detection method and device
JP2010238032A (en) Smoke detection device
JP2008171392A (en) Image edge detection method, device therefor, and computer-readable recording medium embodying same
JP2010130292A (en) Monitoring device and jamming detecting method
Saglam et al. Real-time adaptive camera tamper detection for video surveillance
KR20220015915A (en) Method and device for image processing, terminal device and storage medium
AU2002232008B2 (en) Method of detecting a significant change of scene
AU2002232008A1 (en) Method of detecting a significant change of scene
CN111225123B (en) Method for reducing intensity variations in a stream of video images depicting a scene
JP3571628B2 (en) Image processing device
KR101941266B1 (en) CCTV Image Providing System for Ultra-Low Light
CN113936242B (en) Video image interference detection method, system, device and medium
JP4869323B2 (en) Image processing apparatus and image processing method
KR20090119668A (en) System for processing imaging for detecting the invasion and fire of building and method thereof
TWI448992B (en) Mothod for video monitoring
TWI512638B (en) Intelligent area method and automatic camera state judgment method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees