TWI389060B - Intelligent monitoring system and method thereof - Google Patents
Intelligent monitoring system and method thereof Download PDFInfo
- Publication number
- TWI389060B TWI389060B TW98110650A TW98110650A TWI389060B TW I389060 B TWI389060 B TW I389060B TW 98110650 A TW98110650 A TW 98110650A TW 98110650 A TW98110650 A TW 98110650A TW I389060 B TWI389060 B TW I389060B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- original
- adjusted
- monitoring method
- digital
- Prior art date
Links
- 238000012544 monitoring process Methods 0.000 title claims description 71
- 238000000034 method Methods 0.000 title claims description 30
- 230000003628 erosive effect Effects 0.000 claims description 19
- 238000002372 labelling Methods 0.000 claims description 10
- 230000010339 dilation Effects 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000008439 repair process Effects 0.000 claims description 4
- 238000001914 filtration Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 11
- 230000007246 mechanism Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000035484 reaction time Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 208000027418 Wounds and injury Diseases 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 208000014674 injury Diseases 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Closed-Circuit Television Systems (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
Description
本發明係有關於一種監控系統及其方法,特別是一種智慧型監控系統及其方法。The invention relates to a monitoring system and a method thereof, in particular to a smart monitoring system and a method thereof.
近來犯罪率不斷的升高,使得人們開始重視保全機制的重要性。而保全機制最重要的一部分就是監控系統(surveillance system),其最大的功用便是解決維安人員不足的問題,使得使用者能夠迅速查覺環境事物的變化。一套好的監控系統能夠達到確保安全的目的,降低傷害的程度以及減少人力的浪費。The recent increase in crime rates has led people to pay attention to the importance of the preservation mechanism. The most important part of the security mechanism is the surveillance system. Its biggest function is to solve the problem of insufficient personnel in the security, so that users can quickly detect changes in environmental matters. A good monitoring system can achieve the goal of ensuring safety, reducing the degree of injury and reducing manpower waste.
影像動態偵測技術具有對影像產生變化時加以判斷的能力。若影像動態偵測技術應用在數位監控系統或是傳統閉路電視(Closed Circuit Television,通常簡稱為CCTV)監控系統上的話,能使監控系統判定畫面產生變化時才啟動錄影功能,因此將可節省影像的儲存空間。同時也可產生警告訊息提醒保全人員注意,即時對發生事件加以處理,達到監控自動化的目的。Image motion detection technology has the ability to judge when an image changes. If the image motion detection technology is applied to a digital monitoring system or a closed circuit television (CTVTV) monitoring system, the monitoring system can start the recording function when the determination screen changes, so the image can be saved. Storage space. At the same time, a warning message can be generated to remind the security personnel to pay attention to the event, and to achieve the purpose of monitoring automation.
解析度大小係指畫面的成像畫素多少。請參考第二圖(a),其所示為一物件。請參考第二圖(b),其所示為該第二圖(a)的該物件經過一低解析度攝影機拍攝後,放大八倍後的結果。請參考第二圖(c),其所示為該第二圖(a)的該物件經過一高解析度攝影機拍攝後的結果。可以明白的看出,以不同解析度攝影機拍攝同一物件時成像大小將會不同。若以數位放大方式去改變低解析度所拍攝影像之成像大小時,會有模糊失真的問題,因此無法應用於安全監控上。The resolution size refers to the number of imaging pixels of the picture. Please refer to the second figure (a), which shows an object. Please refer to the second figure (b), which shows the result of magnifying eight times after the object of the second figure (a) is photographed by a low resolution camera. Please refer to the second figure (c), which shows the result of the object of the second figure (a) after being photographed by a high-resolution camera. It can be clearly seen that the imaging size will be different when shooting the same object with different resolution cameras. If the image size of a low-resolution image is changed by digital zooming, there is a problem of blurring distortion, so it cannot be applied to security monitoring.
為解決上述問題,傳統上使用者會使用兩隻相同解析度攝影機。其中一隻攝影機(全景攝影機,panorama camera)固定不動,負責監看全景,以建立監控區域的背景。經由目前影像與背景相減後取得移動物件位置,全景攝影機再通知另一隻具有寬廣視角選擇及可調整縮放參數的PTZ(Pan-Tile-Zoom)攝影機進行移動物件追蹤,準確定位並進行影像放大。如此便可得到移動物件的高清晰度影像。To solve the above problem, the user has traditionally used two cameras of the same resolution. One of the cameras (panorama camera) is stationary and is responsible for monitoring the panorama to establish the background of the surveillance area. After the current image is subtracted from the background to obtain the position of the moving object, the panoramic camera then informs another PTZ (Pan-Tile-Zoom) camera with wide viewing angle selection and adjustable zoom parameters for moving object tracking, accurately positioning and image zooming. . This allows for high-resolution images of moving objects.
可控制鏡頭的攝影機稱為PTZ攝影機,又稱為快速球型(Speed Dome)攝影機。PTZ攝影機係使用馬達驅動機台旋轉及鏡頭伸縮來達到所需之移動及放大效果。然而取像的過程常受到驅動及機械結構的限制,其機械本身也會因長時間監控而容易損耗。再者,PTZ攝影機的自動變焦功能亦會影響攝影機取像時間,而放大倍率過高時追蹤移動物件容易超出鏡頭範圍而造成誤判等問題。The camera that controls the lens is called a PTZ camera, also known as a Speed Dome camera. PTZ cameras use motor-driven machine rotation and lens expansion to achieve the desired movement and magnification. However, the process of image taking is often limited by the drive and mechanical structure, and the machine itself is easily lost due to long-term monitoring. Moreover, the automatic zoom function of the PTZ camera also affects the camera taking time, and when the magnification is too high, it is easy to track the moving object and easily exceed the lens range and cause misjudgment.
為改善上述習知技術之缺點,本發明之一目的在於提供一種智慧型監控系統。In order to improve the above disadvantages of the prior art, it is an object of the present invention to provide an intelligent monitoring system.
為改善上述習知技術之缺點,本發明之又一目的在於提供一種智慧型監控方法。In order to improve the above disadvantages of the prior art, it is still another object of the present invention to provide an intelligent monitoring method.
為達成上述本發明之一目的,本發明之智慧型監控系統包含:一影像感測器、一數據暫存記憶體、一數位影像處理器及一程式記憶體。該數位影像處理器係電連接至該影像感測器、該數據暫存記憶體及該程式記憶體。其中該影像感測器擷取一原始影像後傳送至該數位影像處理器。該數位影像處理器對該原始影像進行調整,以得到一調整影像。該數位影像處理器偵測出該調整影像內之一調整運動影像。該數位影像處理器依據該調整運動影像之定位資訊,抓取在該原始影像內之一原始運動影像。To achieve the above objective of the present invention, the intelligent monitoring system of the present invention comprises: an image sensor, a data temporary storage memory, a digital image processor and a program memory. The digital image processor is electrically connected to the image sensor, the data temporary storage memory and the program memory. The image sensor captures an original image and transmits the image to the digital image processor. The digital image processor adjusts the original image to obtain an adjusted image. The digital image processor detects one of the adjusted images to adjust the motion image. The digital image processor captures one of the original motion images in the original image according to the positioning information of the adjusted motion image.
為達成上述本發明之又一目的,本發明之智慧型監控方法係利用一影像感測器擷取一原始影像。對該原始影像進行調整,以得到一調整影像。偵測出該調整影像內之一調整運動影像。依據該調整運動影像之定位資訊,抓取在該原始影像內之一原始運動影像。In order to achieve the above object of the present invention, the intelligent monitoring method of the present invention utilizes an image sensor to capture an original image. The original image is adjusted to obtain an adjusted image. One of the adjusted images is detected to adjust the motion image. According to the positioning information of the motion image, one of the original motion images in the original image is captured.
本發明之智慧型監控系統及其方法係結合數位影像處理技術,可取代PTZ攝影機,達到相同效益甚至超過之技術。可針對特定場景的人員進行辨識與追蹤,即時發出警訊,以讓相關人員能夠立即處理。並將監控場景、人員移動特徵、與固定區域監視等全部錄影建檔儲存在資料庫,作為後續事件檢索之研究應用。The intelligent monitoring system and method thereof of the invention are combined with digital image processing technology, which can replace the PTZ camera and achieve the same benefit or even exceed the technology. It can identify and track people in specific scenarios, and send out alerts immediately so that relevant personnel can handle them immediately. All video files such as monitoring scenes, personnel movement characteristics, and fixed area monitoring are stored in the database as a research application for subsequent event retrieval.
本發明之智慧型監控系統及其方法係利用低解析度全景畫面進行物件追蹤,再從高解析度畫面得到高清晰度被追蹤物體影像,藉以取代傳統PTZ攝影機應用於智慧型監控系統。首先保留高解析度全景畫面並另外產生低解析度全景畫面,以進行智慧型移動物件偵測與追蹤定位,再重新定位於原高解析度全景畫面上的區域,並自動數位縮放移動物件畫面。本發明之智慧型監控系統及其方法可有效解決傳統PTZ攝影機之追蹤死角及延遲問題,亦可同時追蹤多物體,並免除旋轉機構所造成之機械磨損及反應時間過長所造成的影響,以建置一套智慧型即時無人監控系統。The intelligent monitoring system and method thereof of the invention utilizes low-resolution panoramic images for object tracking, and then obtain high-definition tracked object images from high-resolution images, thereby replacing traditional PTZ cameras for intelligent monitoring systems. First, the high-resolution panoramic image is preserved and a low-resolution panoramic image is generated for smart moving object detection and tracking positioning, and then repositioned on the original high-resolution panoramic image, and the digital object is automatically digitally scaled. The intelligent monitoring system and the method thereof can effectively solve the problem of tracking dead angle and delay of the traditional PTZ camera, and can also track multiple objects at the same time, and eliminate the mechanical wear caused by the rotating mechanism and the influence of excessive reaction time to build Set up a smart instant unmanned surveillance system.
請參考第一圖,其係為本發明之智慧型監控系統方塊圖。本發明之智慧型監控系統包含:一影像感測器10、一數據暫存記憶體20、一數位影像處理器30、一程式記憶體40及一影像輸出裝置50。該數位影像處理器30係電連接至該影像感測器10、該數據暫存記憶體20、該程式記憶體40及該影像輸出裝置50。Please refer to the first figure, which is a block diagram of the intelligent monitoring system of the present invention. The intelligent monitoring system of the present invention comprises: an image sensor 10, a data temporary storage memory 20, a digital image processor 30, a program memory 40 and an image output device 50. The digital image processor 30 is electrically connected to the image sensor 10, the data temporary memory 20, the program memory 40, and the image output device 50.
其中該影像感測器10擷取一原始影像(未圖示)後傳送至該數位影像處理器30。該數位影像處理器30對該原始影像進行調整,以得到一調整影像(未圖示)。該數位影像處理器30視需求重建背景。該數位影像處理器30偵測出該調整影像內之一調整運動影像(未圖示)。該數位影像處理器30視需求修補並標籤化該調整運動影像,以得到一標籤化影像(未圖示)。該數位影像處理器30依據該標籤化影像之定位資訊,抓取在該原始影像內之一原始運動影像(未圖示);若該調整運動影像不需被該數位影像處理器30修補並標籤化,則該數位影像處理器30係依據該調整運動影像之定位資訊,抓取在該原始影像內之一原始運動影像。最後利用該影像輸出裝置50顯示或儲存該原始運動影像。其中該影像感測器10係為一高解析度固定式攝影機;該影像輸出裝置50為一顯示器或一錄影裝置。本發明之智慧型監控系統之詳細運作將在後文配合流程圖說明。The image sensor 10 captures an original image (not shown) and transmits it to the digital image processor 30. The digital image processor 30 adjusts the original image to obtain an adjusted image (not shown). The digital image processor 30 reconstructs the background as needed. The digital image processor 30 detects one of the adjusted images (not shown). The digital image processor 30 repairs and tags the adjusted motion image as needed to obtain a tagged image (not shown). The digital image processor 30 captures an original moving image (not shown) in the original image according to the positioning information of the tagged image; if the adjusted moving image does not need to be patched and labeled by the digital image processor 30 The digital image processor 30 captures one of the original motion images in the original image according to the positioning information of the adjusted motion image. Finally, the original moving image is displayed or stored by the image output device 50. The image sensor 10 is a high-resolution fixed camera; the image output device 50 is a display or a video device. The detailed operation of the intelligent monitoring system of the present invention will be described later in conjunction with the flowchart.
該數位影像處理器30對該原始影像進行調整係包含:調整該原始影像的尺寸為一預定尺寸、對該原始影像進行色彩轉換以及濾除點狀雜訊。首先保留全景高解析度畫面(即該原始影像),再另行縮小解析度(例如至320×240像素)以降低資料運算量。高解析度影像資料量龐大,以500萬畫素攝影機為例,每一影像的原始解析度為2560×1920畫素,且為全彩24bit RGB影像。因此影像處理上資料演算量過大,應用於即時監控上會造成反應時間過長。故依據本發明之一實例,可降低全景高解析度畫面(即該原始影像)之解析度為320×240畫素。並將全彩24bit RGB畫面降為灰階8bit Gray Level畫面,以降低資料運算量。最後濾除雜訊,可以通過影像低通濾波器(Image Low Pass Filter)達成。The digital image processor 30 adjusts the original image to: adjust the size of the original image to a predetermined size, perform color conversion on the original image, and filter out dot noise. First, the panoramic high-resolution image (that is, the original image) is retained, and the resolution is further reduced (for example, to 320×240 pixels) to reduce the amount of data calculation. The high-resolution image data is huge. Taking the 5 million pixel camera as an example, the original resolution of each image is 2560×1920 pixels, and it is a full-color 24-bit RGB image. Therefore, the amount of data calculation on image processing is too large, and it will cause too long reaction time for real-time monitoring. Therefore, according to an example of the present invention, the resolution of the panoramic high-resolution picture (ie, the original image) can be reduced to 320×240 pixels. The full-color 24-bit RGB picture is reduced to a grayscale 8-bit Gray Level picture to reduce the amount of data calculation. Finally, the noise is filtered out and can be achieved by the Image Low Pass Filter.
其中,所謂背景即連續影像差異極小部份。由於軟體程式一啟動時有可能就存在著正在移動物件,或環境中有日照光影等影響,導致取得之背景影像並不完整,此時就必須重建背景。當背景不完整部份靜止一段時間後,即可將背景重新建立回去。當發現背景與連續影像差異超過一定程度後,就須重啟背景重建機制,避免影響後續移動物件偵測。Among them, the so-called background is a very small difference in continuous image. Since the software program may have moving objects, or there are sunlight and light in the environment, the background image obtained is not complete, and the background must be reconstructed. When the incomplete part of the background is still for a while, the background can be re-established. When the difference between the background and the continuous image is found to exceed a certain level, the background reconstruction mechanism must be restarted to avoid affecting the subsequent moving object detection.
該數位影像處理器30係利用一固定背景影像及連續三幀調整影像偵測出該調整影像內之調整運動影像,茲詳述如下。其係利用連續三張影像配合先前建立之固定背景而計算出真正移動物件。請參考第三圖,其係為偵測出該調整影像內之一調整運動影像方法之示意圖。其中,一目前幀灰階影像標示為M2;一前一幀灰階影像標示為M1;一前二幀灰階影像標示為M0;一固定背景影像標示為M3。並且設定一二值化影像門檻值,用以做為轉換該些灰階影像成為二值化影像(binary image)之依據。首先,將該目前幀灰階影像M2與該前一幀灰階影像M1做互斥或(XOR)運算,得到一第一灰階影像(未圖示)。然後,再將該第一灰階影像之像素與該二值化影像門檻值比較:若該第一灰階影像之像素大於或等於該二值化影像門檻值,則設為亮點;若該第一灰階影像之像素小於該二值化影像門檻值,則設為暗點,藉此可得到一第一二值化影像M5。The digital image processor 30 detects the adjusted motion image in the adjusted image by using a fixed background image and three consecutive frames of adjusted images, which are detailed below. It uses a continuous three images with the previously established fixed background to calculate the real moving object. Please refer to the third figure, which is a schematic diagram of detecting a motion image adjustment method in the adjusted image. The grayscale image of the current frame is marked as M2; the grayscale image of the previous frame is indicated as M1; the grayscale image of the first two frames is denoted as M0; and the fixed background image is denoted by M3. And setting a binarized image threshold value as a basis for converting the grayscale images into a binary image. First, the current frame grayscale image M2 and the previous frame grayscale image M1 are mutually exclusive or (XOR) operated to obtain a first grayscale image (not shown). Then, comparing the pixels of the first grayscale image with the binarized image threshold: if the pixel of the first grayscale image is greater than or equal to the binarized image threshold, it is set as a bright spot; If the pixel of a grayscale image is smaller than the binarized image threshold, it is set as a dark point, thereby obtaining a first binarized image M5.
同樣地,將該前一幀灰階影像M1與該前二幀灰階影像M0做互斥或(XOR)運算,而得到一第二灰階影像(未圖示),並且再與該二值化影像門檻值比較,而得到一第二二值化影像M4。將該第一二值化影像M5及該第二二值化影像M4進行交集(AND)運算,即可得到移動物件邊緣化的一第三二值化影像M7。再者,該前一幀灰階影像M1與該固定背景影像M3做影像相減運算,而得到一第四灰階影像(未圖示),並且再與該二值化影像門檻值比較,可得到與背景分離之前景物件的一第四二值化影像M6。最後,將該第三二值化影像M7及該第四二值化影像M6進行聯集(OR)運算,即可得到最完整移動物件的一第五二值化影像M8(即該調整運動影像)。Similarly, the previous frame grayscale image M1 and the first two frame grayscale image M0 are mutually exclusive or (XOR) operated to obtain a second grayscale image (not shown), and the binary value is further The image threshold value is compared to obtain a second binarized image M4. By performing an AND operation on the first binarized image M5 and the second binarized image M4, a third binarized image M7 of the edge of the moving object is obtained. Furthermore, the previous frame grayscale image M1 and the fixed background image M3 are subjected to image subtraction operations to obtain a fourth grayscale image (not shown), and then compared with the binarized image threshold value. A fourth binarized image M6 of the foreground object separated from the background is obtained. Finally, the third binarized image M7 and the fourth binarized image M6 are subjected to an OR operation to obtain a fifth binarized image M8 of the most complete moving object (ie, the adjusted moving image) ).
下文將詳述上述該數位影像處理器30修補及標籤化該調整運動影像,以得到一標籤化影像流程。請參考第四圖,其係為修補及標籤化該調整運動影像之流程圖。首先步驟S10及S20,由於該第五二值化影像M8仍可能有點破碎,故必須利用影像處理型態學之膨脹(Dilation)及侵蝕(Erosion)進行影像修補。The digital image processor 30 is described below to repair and label the adjusted motion image to obtain a tagged image flow. Please refer to the fourth figure, which is a flow chart for repairing and labeling the motion image. First, in steps S10 and S20, since the fifth binarized image M8 may still be a bit broken, it is necessary to perform image repair using Dilation and Erosion of image processing morphology.
膨脹(Dilation)為形態學上最基本的運算。假設在平面中,有一影像A1及一遮罩(Mask)B1,如第十三圖所示。則該影像A1及該遮罩B1的膨脹演算定義為:該遮罩B1沿著該影像A1由上而下,由左至右掃描(如第十四圖所示),若在該遮罩B1範圍(斜線)內有任何像素點其二值化的值為1時(該影像A1內斜線部份),則將該影像A1之遮罩內中心點設定為1,否則為0。該影像A1經過該遮罩B1膨脹後結果如第十五圖所示。其中膨脹後之區域為標示為X之部份。Dilation is the most basic computational operation. Assume that in the plane, there is an image A1 and a mask B1, as shown in the thirteenth figure. The expansion calculation of the image A1 and the mask B1 is defined as: the mask B1 is scanned from left to right along the image A1, and is scanned from left to right (as shown in FIG. 14), if the mask B1 is in the mask B1 If there is any pixel in the range (slash) whose value of binarization is 1 (the diagonal part of the image A1), the center point of the mask of the image A1 is set to 1, otherwise 0. The image A1 is expanded by the mask B1 and the result is as shown in the fifteenth figure. The area after expansion is the part marked as X.
侵蝕(Erosion)是形態學上的另一種運算。假設在平面中,有一影像A1及一遮罩(Mask)B1,如第十三圖所示。則該影像A1及該遮罩B1的侵蝕演算定義為:當該遮罩B1沿著該影像A1由上而下,由左至右掃描時(如第十四圖所示),若在該遮罩B1範圍(斜線)內有任何像素點其二值化的值為0時(該影像A1內非斜線部份),則將該影像A1之遮罩內中心點設定為0,否則為1。該影像A1經過該遮罩B1侵蝕後結果如第十六圖所示。其中侵蝕後之區域為標示為X之部份。Erosion is another operation in morphology. Assume that in the plane, there is an image A1 and a mask B1, as shown in the thirteenth figure. The erosion calculation of the image A1 and the mask B1 is defined as: when the mask B1 is scanned from left to right along the image A1 (as shown in FIG. 14), if the mask is in the mask When there is any pixel in the range of the cover B1 (slash), if the value of the binarization is 0 (the non-slashed portion in the image A1), the center point of the mask of the image A1 is set to 0, otherwise it is 1. The image A1 is eroded by the mask B1 and the result is as shown in the sixteenth figure. The area after erosion is marked as part of X.
考慮到監控系統係以監視人類行為為主,不同於一般型態學膨脹(Dilation)及侵蝕(Erosion)以3×3、5×5遮罩基礎結構,本發明之方法採用第五圖3x3遮罩結構(Mask)進行侵蝕演算;採用第六圖3x1遮罩結構進行膨脹演算。首先經過一次3×3式的侵蝕(Erosion),其目的為消除複雜背景所殘留下來的雜訊。例如第七圖(a)所示為原本充滿雜訊的影像;第七圖(b)為經過一次3×3式的侵蝕(Erosion)後消除雜訊後的影像。接著為了將可能分離的頭、軀幹、腳等人員區塊結合,做三次的3×1式的膨脹(Dilation),得到最後移動物件較完整影像,如第八圖所示。Considering that the monitoring system is mainly for monitoring human behavior, unlike the general pattern of Dilation and erosion (Erosion) with 3×3, 5×5 masking the basic structure, the method of the present invention adopts the fifth figure 3x3 The mask structure (Mask) performs erosion calculation; the sixth figure 3x1 mask structure is used for the expansion calculation. First, a 3×3 erosion (Erosion) is used to eliminate the residual noise from the complex background. For example, the seventh picture (a) shows the image originally filled with noise; the seventh picture (b) shows the image after the 3×3 erosion (Erosion) is eliminated. Then, in order to combine the possible separation of the head, the trunk, the foot and the like, three times of 3×1 expansion is obtained, and a complete image of the last moving object is obtained, as shown in the eighth figure.
接著步驟S30及S40,因為有可能出現兩個以上移動物件,故須以標籤化方式計算出移動物件個數。連通標記(Connected Components Labeling)主要目的是將鄰近的點群聚成相同編號,藉以計算出群體個數,在本發明中即為移動物件個數。第九圖所示為八連通(8-adjacent)示意圖。根據八連通的規則,由左而右,由上而下掃描二值化影像,把所有相鄰二值化的值為1之像素點給予一個相同且唯一的標籤符號,藉由標籤符號數量達到計算移動物件數量之目的。如第十圖所示(其中第十圖的右圖經劃線後更可清楚看出具三個移動物件,亦即分別為被給予標籤符號為1、2、3之移動物件)。在此即可得到前述之該些標籤化影像。Following steps S30 and S40, since there may be more than two moving objects, the number of moving objects must be calculated in a labeling manner. The main purpose of Connected Components Labeling is to aggregate adjacent groups of points into the same number to calculate the number of groups, which is the number of moving objects in the present invention. The ninth figure shows a schematic diagram of eight-adjacent. According to the eight-connected rule, from left to right, the binarized image is scanned from top to bottom, and all adjacent binarized pixels with a value of 1 are given the same and unique label symbol, by the number of label symbols. Calculate the number of moving objects. As shown in the tenth figure (where the right figure of the tenth figure is slashed, it can be clearly seen that there are three moving objects, that is, moving objects respectively given the label symbols 1, 2, and 3). Here, the aforementioned tagged images can be obtained.
接著,該數位影像處理器30依據該標籤化影像之定位資訊抓出在該原始影像內的一原始運動影像。藉由上述標籤化過程,可得知物件的起點位置及最末點位置,計算出物件大小及物件於畫面相對位置。再將其定位資訊傳至原高解析度畫面(即該原始影像),以在該影像輸出裝置50呈現出物件原圖大小(即該原始運動影像),不須放大即達到數位之放大效果。Then, the digital image processor 30 captures an original motion image in the original image according to the positioning information of the tagged image. Through the above labeling process, the starting point position and the last point position of the object can be known, and the object size and the relative position of the object on the screen can be calculated. The positioning information is transmitted to the original high-resolution image (ie, the original image) to display the original image size (ie, the original moving image) on the image output device 50, and the digital zoom effect is achieved without amplification.
本發明之智慧型監控系統最後係顯示或儲存該原始運動影像。請參考第十一圖,其係為本發明之影像輸出範例圖。第十一圖左上角所示為全景畫面320×240畫素(即例如從原始解析度為2560×1920畫素降低為320×240畫素之該調整影像),包含一第一移動物件Ma、一第二移動物件Mb以及一使用者設定監控區域A1(使用者可自訂監控區域之詳細說明容後詳述)。將第十一圖左上角所示全景畫面320×240畫素下所擷取之該第一移動物件Ma、該第二移動物件Mb及該使用者設定監控區域A1,對應於該影像感測器10的原解析度畫面(即該原始影像,例如2560×1920畫素)之位置與大小,以320×240畫素大小範圍呈現原解析度畫面上的該第一移動物件Ma、該第二移動物件Mb及該使用者設定監控區域A1。例如,該第二移動物件Mb在第十一圖左上角子畫面的大小是10×20畫素,以500萬畫素(即2560×1920畫素)固定攝影機建置下,在左下角子畫面所呈現出來的會是80×160畫素。在沒有進行縮放的情形下,即達到寬、高各八倍的放大倍數(如第十一圖左下角所示)。等於保全人員操縱一台PTZ攝影機,以寬、高各八倍放大倍率即時手動追蹤移動物件的效果。此外,若是追蹤之移動物件相對於攝影機原解析度畫面之大小超過320×240畫素或是不到320×240畫素時,將會以影像處理做自動數位縮放至適當大小。例如該第一移動物件Ma在第十一圖左上角的大小為50×50畫素的圓形,相對於原解析度畫面為400×400畫素,以320×240畫素畫面呈現物件會出鏡,故自動數位縮放加以調整。最後,將此640×480畫素之畫面錄影存檔紀錄,藉以達到智慧型無人即時監控系統之建置。The intelligent monitoring system of the present invention finally displays or stores the original moving image. Please refer to the eleventh figure, which is an example of the image output of the present invention. The upper left corner of the eleventh figure shows a panoramic picture 320×240 pixels (that is, for example, the adjusted image whose original resolution is 2560×1920 pixels is reduced to 320×240 pixels), and includes a first moving object Ma, A second mobile object Mb and a user setting monitoring area A1 (details of the user-customizable monitoring area are detailed later). Corresponding to the image sensor, the first moving object Ma, the second moving object Mb, and the user setting monitoring area A1 captured by the panoramic picture 320×240 pixels shown in the upper left corner of the eleventh figure The position and size of the original resolution picture of 10 (ie, the original image, for example, 2560×1920 pixels), the first moving object Ma on the original resolution picture is presented in the 320×240 pixel size range, and the second movement The object Mb and the user set the monitoring area A1. For example, the size of the second moving object Mb in the upper left corner of the eleventh picture is 10×20 pixels, and is fixed by a fixed camera set with 5 million pixels (ie, 2560×1920 pixels), and is presented in the lower left sub-picture. It will be 80×160 pixels. In the case where no scaling is performed, the magnifications of eight times the width and height are achieved (as shown in the lower left corner of the eleventh figure). It is equal to the security personnel to operate a PTZ camera, and manually track the effect of moving objects at eight times the width and height. In addition, if the size of the tracked moving object relative to the original resolution of the camera exceeds 320×240 pixels or less than 320×240 pixels, the image processing will be automatically scaled to an appropriate size. For example, the first moving object Ma has a circle of 50×50 pixels in the upper left corner of the eleventh figure, and is 400×400 pixels with respect to the original resolution picture, and the object is presented in a 320×240 pixel picture. Therefore, the automatic digital zoom is adjusted. Finally, the 640×480 pixels are recorded and recorded to achieve the intelligent unmanned real-time monitoring system.
本發明之智慧型監控系統除針對移動物件做智慧型追蹤監控外,使用者也可自行框選(且可自訂縮放比例)欲監控之場景,例如出入口或禁煙區等等。首先使用者在該調整影像設定監控區域。接著該數位影像處理器30依據該監控區域之定位資訊,抓取在該原始影像內之原始監控區域影像。最後利用該影像輸出裝置50顯示或儲存該原始監控區域影像。In addition to intelligent tracking and monitoring of moving objects, the intelligent monitoring system of the present invention can also select (and customize the scaling) scenes to be monitored, such as entrances and exits or no-smoking areas. First, the user sets the monitoring area in the adjusted image. Then, the digital image processor 30 captures the original monitoring area image in the original image according to the positioning information of the monitoring area. Finally, the original monitoring area image is displayed or stored by the image output device 50.
請參考第十二圖,其係為本發明之智慧型監控方法流程圖。首先步驟S100利用一影像感測器擷取一原始影像。接著步驟S200對該原始影像進行調整,以得到一調整影像。然後步驟S300視需求重建背景。繼之步驟S400偵測出該調整影像內之一調整運動影像。接著步驟S500視需求修補並標籤化該調整運動影像,以得到一標籤化影像。然後步驟S600依據該標籤化影像之定位資訊,抓取在該原始影像內之一原始運動影像(若該調整運動影像不需被修補並標籤化,則該步驟S600係依據該調整運動影像之定位資訊,抓取在該原始影像內之一原始運動影像)。最後步驟S700顯示或儲存該原始運動影像。其中該影像感測器係為一高解析度固定式攝影機;該影像輸出裝置為一顯示器或一錄影裝置。Please refer to the twelfth figure, which is a flow chart of the smart monitoring method of the present invention. First, in step S100, an image sensor is used to capture an original image. Then, the original image is adjusted in step S200 to obtain an adjusted image. Step S300 then reconstructs the background as needed. Following step S400, one of the adjusted images is detected to adjust the motion image. Then, in step S500, the adjusted motion image is repaired and tagged as needed to obtain a tagged image. Step S600 then captures an original motion image in the original image according to the positioning information of the tagged image. (If the motion image is not to be repaired and tagged, the step S600 is based on the positioning of the adjusted motion image. Information, grabbing one of the original motion images in the original image). The final step S700 displays or stores the original moving image. The image sensor is a high resolution fixed camera; the image output device is a display or a video device.
其中步驟S200(對該原始影像進行調整)係包含:調整該原始影像的尺寸為一預定尺寸、對該原始影像進行色彩轉換以及濾除點狀雜訊。首先保留全景高解析度畫面(即該原始影像),再另行縮小解析度(例如至320×240像素)以降低資料運算量。依據本發明之一實例,可降低全景高解析度畫面(即該原始影像)之解析度為320×240畫素。並將全彩24bit RGB畫面降為灰階8bit Gray Level畫面,以降低資料運算量。最後濾除雜訊,可以通過影像低通濾波器(Image Low Pass Filter)達成。Step S200 (adjusting the original image) includes: adjusting a size of the original image to a predetermined size, performing color conversion on the original image, and filtering out dot noise. First, the panoramic high-resolution image (that is, the original image) is retained, and the resolution is further reduced (for example, to 320×240 pixels) to reduce the amount of data calculation. According to an embodiment of the present invention, the resolution of the panoramic high resolution picture (i.e., the original image) can be reduced to 320 x 240 pixels. The full-color 24-bit RGB picture is reduced to a grayscale 8-bit Gray Level picture to reduce the amount of data calculation. Finally, the noise is filtered out and can be achieved by the Image Low Pass Filter.
其中步驟S400(偵測出該調整影像內之一調整運動影像)係利用一固定背景影像及連續三幀調整影像偵測出該調整影像內之調整運動影像。其流程與前述本發明之智慧型監控系統之內容相同,故於此不再贅述。Step S400 (detecting one of the adjusted images in the adjusted image) uses a fixed background image and three consecutive frames of adjusted images to detect the adjusted moving image in the adjusted image. The flow is the same as that of the aforementioned intelligent monitoring system of the present invention, and thus will not be described herein.
其中步驟S500(修補並標籤化該調整運動影像,以得到一標籤化影像流程)係利用數位影像處理之侵蝕(以3x3遮罩結構進行一次侵蝕)與膨脹(以3x1遮罩結構進行三次膨脹)之演算技術修補該調整運動影像。且因為有可能出現兩個以上移動物件,故須以標籤化方式計算出移動物件個數。Step S500 (repairing and labeling the adjusted motion image to obtain a label image process) is performed by digital image processing erosion (one erosion by 3x3 mask structure) and expansion (three expansions by 3x1 mask structure) The calculus technique fixes the adjusted motion image. And because there may be more than two moving objects, the number of moving objects must be calculated by labeling.
本發明之智慧型監控方法除針對移動物件做智慧型追蹤監控外,使用者也可自行框選(且可自訂縮放比例)欲監控之場景,例如出入口或禁煙區等等。首先使用者在該調整影像設定監控區域。接著依據該監控區域之定位資訊,抓取在該原始影像內之原始監控區域影像。最後顯示或儲存該原始監控區域影像。In addition to intelligent tracking and monitoring for mobile objects, the intelligent monitoring method of the present invention can also select (and customize the scaling) scenes to be monitored, such as entrances and exits or no-smoking areas. First, the user sets the monitoring area in the adjusted image. Then, according to the positioning information of the monitoring area, the original monitoring area image in the original image is captured. Finally, the original surveillance area image is displayed or stored.
本發明之智慧型監控系統及其方法有以下特點:The intelligent monitoring system and method of the invention have the following characteristics:
1、以500萬畫素攝影機為例,全景錄影全彩2560×1920畫素,消耗系統資源及佔據儲存量甚巨,而本發明錄影畫面為640×480畫素,僅需要原解析度十六分之一的儲存量,即可對移動物件及使用者自訂區域做高清晰呈現,達到最高的效益。1. Take the 5 million pixel camera as an example. The panoramic video is full color 2560×1920 pixels, which consumes a lot of system resources and occupies a large amount of storage. The video frame of the present invention is 640×480 pixels, only the original resolution is required. With one-fold storage, you can achieve high-definition presentation of moving objects and user-defined areas to achieve the highest efficiency.
2、可取代PTZ攝影機,免除機構、無監視死角、無移動延遲及具同時偵測兩個以上移動物件能力。2, can replace the PTZ camera, exempt the mechanism, no monitoring dead angle, no movement delay and the ability to detect more than two moving objects at the same time.
3、以一隻固定式高解析度攝影機即可取代一隻低解析度攝影機加上一隻低解析度PTZ攝影機,降低人力物力成本,大大提升生活品質、居家安全,使得監控系統能夠更有效且普遍的應用在各種環境。3, a fixed high-resolution camera can replace a low-resolution camera plus a low-resolution PTZ camera, reducing the cost of human and material resources, greatly improving the quality of life, home security, making the monitoring system more efficient and Universal application in a variety of environments.
4、本發明具有易擴充性、易整合性、產品普遍性、低成本高品質、容易操作的優點,非專業人員皆可操作。4. The invention has the advantages of easy expandability, easy integration, universal product, low cost, high quality and easy operation, and can be operated by non-professionals.
綜上所述,當知本發明已具有產業利用性、新穎性與進步性,又本發明之構造亦未曾見於同類產品及公開使用,完全符合發明專利申請要件,爰依專利法提出申請。In summary, it is known that the present invention has industrial applicability, novelty and advancement, and the structure of the present invention has not been seen in similar products and public use, and fully complies with the requirements of the invention patent application, and is filed according to the patent law.
A1...影像A1. . . image
B1...遮罩B1. . . Mask
10...影像感測器10. . . Image sensor
20...數據暫存記憶體20. . . Data temporary storage memory
30...數位影像處理器30. . . Digital image processor
40...程式記憶體40. . . Program memory
50...影像輸出裝置50. . . Image output device
M2...目前幀灰階影像標示為M2. . . The current frame grayscale image is marked as
M1...前一幀灰階影像標示為M1. . . The grayscale image of the previous frame is marked as
M0...前二幀灰階影像標示為M0. . . The first two frames of grayscale images are marked as
M3...固定背景影像標示為M3. . . The fixed background image is marked as
M5...第一二值化影像M5. . . First binarized image
M4...第二二值化影像M4. . . Second binarized image
M7...第三二值化影像M7. . . Third binarized image
M6...第四二值化影像M6. . . Fourth binarized image
M8...第五二值化影像M8. . . Fifth binarized image
S10~S40...步驟S10~S40. . . step
Ma...第一移動物件Ma. . . First moving object
Mb...第二移動物件Mb. . . Second moving object
A1...使用者設定監控區域A1. . . User setting monitoring area
S100~S700...步驟S100~S700. . . step
第一圖為本發明之智慧型監控系統方塊圖。The first figure is a block diagram of the intelligent monitoring system of the present invention.
第二圖(a)為一物件示意圖。The second figure (a) is a schematic view of an object.
第二圖(b)為一低解析度攝影機拍攝後放大八倍影像圖。The second figure (b) is an eight-fold image image obtained after shooting with a low-resolution camera.
第二圖(c)為一高解析度攝影機拍攝後影像圖。The second picture (c) is a post-image image taken by a high-resolution camera.
第三圖為偵測出該調整影像內之一調整運動影像方法之示意圖。The third figure is a schematic diagram of detecting a method for adjusting motion images in the adjusted image.
第四圖為修補及標籤化該調整運動影像之流程圖。The fourth picture is a flow chart for repairing and labeling the adjusted motion image.
第五圖為3x3遮罩結構圖。The fifth picture shows the 3x3 mask structure.
第六圖為3x1遮罩結構圖。The sixth picture shows the 3x1 mask structure.
第七圖(a)為原本充滿雜訊的影像圖。Figure 7 (a) is an image of the original noise.
第七圖(b)為經過侵蝕後消除雜訊的影像圖。Figure 7 (b) is an image of the noise removal after erosion.
第八圖為經過三次膨脹後的影像次序圖。The eighth picture shows the image sequence after three expansions.
第九圖為八連通示意圖。The ninth figure is a schematic diagram of eight connections.
第十圖為標籤化物件示意圖。The tenth figure is a schematic diagram of the labeling material.
第十一圖為本發明之影像輸出範例圖。Figure 11 is a diagram showing an example of image output of the present invention.
第十二圖為本發明之智慧型監控方法流程圖。The twelfth figure is a flow chart of the smart monitoring method of the present invention.
第十三圖為膨脹(Dilation)及侵蝕(Erosion)演算範例圖。The thirteenth picture is an example of the Dilation and Erosion calculations.
第十四圖為膨脹(Dilation)及侵蝕(Erosion)掃描示意圖。Figure 14 is a schematic diagram of Dilation and Erosion scanning.
第十五圖為經膨脹(Dilation)演算後示意圖。The fifteenth picture is a schematic diagram after the Dilation calculus.
第十六圖為經侵蝕(Erosion)演算後示意圖。The sixteenth figure is a schematic diagram of the Erosion calculus.
10...影像感測器10. . . Image sensor
20...數據暫存記憶體20. . . Data temporary storage memory
30...數位影像處理器30. . . Digital image processor
40...程式記憶體40. . . Program memory
50...影像輸出裝置50. . . Image output device
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW98110650A TWI389060B (en) | 2009-03-31 | 2009-03-31 | Intelligent monitoring system and method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW98110650A TWI389060B (en) | 2009-03-31 | 2009-03-31 | Intelligent monitoring system and method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201035913A TW201035913A (en) | 2010-10-01 |
| TWI389060B true TWI389060B (en) | 2013-03-11 |
Family
ID=44856051
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW98110650A TWI389060B (en) | 2009-03-31 | 2009-03-31 | Intelligent monitoring system and method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI389060B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI548235B (en) * | 2014-01-14 | 2016-09-01 | Chunghwa Telecom Co Ltd | Network anomaly traffic monitoring system with normal distribution mode |
| US9858498B2 (en) * | 2015-09-23 | 2018-01-02 | Qualcomm Incorporated | Systems and methods for incremental object detection using dual-threshold local binary pattern operators |
| TWI715148B (en) | 2019-08-14 | 2021-01-01 | 宏碁股份有限公司 | Electronic apparatus and method for recognizing view angle of displayed screen thereof |
| CN113449547A (en) * | 2020-03-24 | 2021-09-28 | 合肥君正科技有限公司 | Face identification method based on face detection tracking ID |
-
2009
- 2009-03-31 TW TW98110650A patent/TWI389060B/en not_active IP Right Cessation
Also Published As
| Publication number | Publication date |
|---|---|
| TW201035913A (en) | 2010-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Kang et al. | Real-time video tracking using PTZ cameras | |
| JP6532217B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING SYSTEM | |
| CN103733607B (en) | For detecting the apparatus and method of moving object | |
| JP4623193B2 (en) | Imaging apparatus, imaging method, and program | |
| US8063972B2 (en) | Image capture device and control method thereof | |
| US20100302367A1 (en) | Intelligent surveillance system and method for the same | |
| US20170024920A1 (en) | Method and Related Apparatus for Capturing and Processing Image Data | |
| KR101677315B1 (en) | Image processing apparatus, method, and computer program storage device | |
| US20100188560A1 (en) | Imaging apparatus | |
| JP2003219225A (en) | Device for monitoring moving object image | |
| JPH07168932A (en) | Method for search of human being in video image | |
| KR102127276B1 (en) | The System and Method for Panoramic Video Surveillance with Multiple High-Resolution Video Cameras | |
| TWI389060B (en) | Intelligent monitoring system and method thereof | |
| KR20160094655A (en) | The System and Method for Panoramic Video Surveillance with Multiple High-Resolution Video Cameras | |
| CN113724153A (en) | Method for eliminating redundant images based on machine learning | |
| KR101861245B1 (en) | Movement detection system and method for multi sensor cctv panorama video | |
| CN111914739B (en) | Intelligent following method, device, terminal device and readable storage medium | |
| KR20190026625A (en) | Image displaying method, Computer program and Recording medium storing computer program for the same | |
| EP2254097A1 (en) | Intelligent surveillance system and method for the same | |
| CN108520496A (en) | A Sea and Air Background Surveillance Video Image Stitching Method Based on Optical Flow Method | |
| JP5300413B2 (en) | Motion vector detection device, motion vector detection method, imaging device, and program | |
| CN101854517A (en) | Intelligent monitoring system and its method | |
| JP2010081100A (en) | Imaging device, imaging method, and imaging program | |
| JP4594197B2 (en) | Automatic tracking device | |
| JP7316105B2 (en) | Video correction device and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |