TW201839608A - Automatic Image Monitoring Method - Google Patents
Automatic Image Monitoring Method Download PDFInfo
- Publication number
- TW201839608A TW201839608A TW106113455A TW106113455A TW201839608A TW 201839608 A TW201839608 A TW 201839608A TW 106113455 A TW106113455 A TW 106113455A TW 106113455 A TW106113455 A TW 106113455A TW 201839608 A TW201839608 A TW 201839608A
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- screen image
- system host
- screen
- computer
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
Description
本發明揭露了一種自動化影像監測方法,尤指一種能節省大量人力的自動化影像監測方法。The invention discloses an automatic image monitoring method, in particular to an automatic image monitoring method capable of saving a large amount of manpower.
隨著科技日新月異,各種生產線、自動化製作流程、或是各種精細的加工流程,甚至一些遊戲或影音處理,均仰賴電腦而進行輔助操作。因此,電腦的操作穩定性、程式執行的流暢度、以及電腦發生故障的機率將成為非常重要的效能指標。為了降低電腦運行時發生錯誤的風險,一般電腦在實際上線前會先進行系統穩定性測試以及系統效能測試。電腦在通過行系統穩定性測試以及系統效能測試的標準後才會上線而正式使用。With the rapid development of technology, various production lines, automated production processes, or a variety of sophisticated processing processes, and even some games or audio and video processing, rely on the computer for auxiliary operations. Therefore, the stability of the computer, the smoothness of program execution, and the probability of computer failure will become a very important performance indicator. In order to reduce the risk of errors when the computer is running, the general computer will first perform system stability test and system performance test before the actual line. The computer will be used officially after passing the standards for line system stability testing and system performance testing.
電腦在進行測試時,測試員必須長時間在電腦前面觀察。當電腦運行到一半發生異狀時必須手動記錄錯誤訊息並想辦法除錯。舉例而言,電腦可能會先經過燒機測試(Burn-in Test),以處理器接近滿載的情況測試系統穩定度。測試員必須連續觀察電腦螢幕是否有不穩定或是錯誤的訊息出現。若電腦運行到一半發生過熱的情況而導致系統失敗,螢幕可能會出現藍底白字的錯誤訊息。測試員即可將錯誤的時間以及錯誤的狀態記錄下來,並停止電腦執行後續程序,再想辦法除錯。然而,電腦在進行測試時,由於測試員必須長時間在電腦前面觀察,因此會花費大量的人力。並且,若測試員不是連續地觀察電腦(例如半小時觀察一次),當電腦出現異常而畫面發生停頓的現象時,測試員將無法即時解決問題,因此也會造成測試效率低落以及時間的損失。When the computer is testing, the tester must observe the computer for a long time. When the computer runs halfway through the abnormal state, you must manually record the error message and find a way to debug. For example, a computer may first pass a Burn-in Test to test system stability as the processor approaches full load. The tester must continuously observe whether the computer screen is unstable or the wrong message appears. If the computer fails to overheat in half, the system may fail with a blue-and-white error message. The tester can record the time of the error and the status of the error, and stop the computer to execute the subsequent procedures, and then find a way to debug. However, when the computer is being tested, it takes a lot of manpower because the tester has to observe it in front of the computer for a long time. Moreover, if the tester does not observe the computer continuously (for example, once every half hour), when the computer is abnormal and the screen is paused, the tester will not be able to solve the problem immediately, and thus the test efficiency is low and the time is lost.
本發明一實施例提出一種自動化影像監測方法,包含輸入字組,啟動攝影模組以擷取螢幕影像,若螢幕影像於預定時間內保持不變,進行影像偵測程序以偵測螢幕影像是否包含條碼影像,若螢幕影像包含條碼影像,分析並解碼條碼影像以判斷條碼影像是否符合字組,及根據條碼影像是否符合字組,產生對應之監控結果信息。An embodiment of the present invention provides an automated image monitoring method, including inputting a character string, and starting a photography module to capture a screen image. If the screen image remains unchanged for a predetermined time, an image detection program is performed to detect whether the screen image is included. Bar code image, if the screen image contains barcode image, analyze and decode the barcode image to determine whether the barcode image conforms to the block, and generate corresponding monitoring result information according to whether the barcode image conforms to the block.
本發明另一實施例提出一種自動化影像監測方法,包含輸入字組,啟動攝影模組以擷取螢幕影像,若螢幕影像於預定時間內保持不變,進行影像偵測程序以偵測螢幕影像是否包含文字影像,若螢幕影像包含文字影像,分析並解碼文字影像以判斷文字影像是否符合字組,及根據文字影像是否符合字組,產生對應之監控結果信息。Another embodiment of the present invention provides an automated image monitoring method, including inputting a character string, and starting a photography module to capture a screen image. If the screen image remains unchanged for a predetermined time, an image detection program is performed to detect whether the screen image is detected. Contains text images. If the screen image contains text images, analyze and decode the text images to determine whether the text images conform to the word group, and generate corresponding monitoring result information according to whether the text images conform to the word group.
本發明另一實施例提出一種自動化影像監測方法,包含啟動攝影模組以擷取螢幕影像,及若螢幕影像於預定時間內保持不變,產生監控結果信息。Another embodiment of the present invention provides an automated image monitoring method, comprising: initiating a photography module to capture a screen image, and generating a monitoring result information if the screen image remains unchanged for a predetermined time.
第1圖係為本發明之自動化影像監測系統100之實施例的架構圖。自動化影像監測系統100包含電腦PC1、螢幕裝置11、攝影模組12、系統主機PC2、以及使用者設備UE。電腦PC1可視為待測試的電腦。本發明的「電腦」可為個人電腦、筆記型電腦、工作站、或伺服器控制機台等設備。電腦PC1具有主機板MB,以驅動電腦PC1中所有硬體/軟體。主機板MB包含輸出單元10以及通用型之輸入輸出接口(General-Purpose Input/Output)GPIO1。輸出單元10可為任何影音訊號的輸出端口,例如通用序列匯流排(Universal Serial Bus)、視頻圖形陣列端口(Video Graphics Array Connector)、高畫質多媒體介面端口(High Definition Multimedia Interface Connector)等等。通用型之輸入輸出接口GPIO1端口的接腳(Pin)可供使用者以程式控制的方式自由使用。螢幕裝置11耦接於主機板MB上的輸出單元10,用以顯示電腦PC目前執行程式的狀態。攝影模組12可設置於螢幕裝置11的前方,用以擷取螢幕裝置11所顯示的螢幕影像。攝影模組12可為任何的影像擷取設備,例如數位相機或數位攝影機等等。系統主機PC2也可為一台電腦,包含處理單元13、存取單元14、通用型之輸入輸出接口GPIO2、通訊軟體15、以及收發器16。處理單元13可為中央處理器或任何具備可程式化邏輯處理能力的運算單元。處理單元13耦接於攝影模組12,用以處理並分析攝影模組12所擷取的螢幕影像。存取單元14耦接於處理單元13,用以儲存螢幕影像以及被處理單元13所分析的資料。存取單元14可為任何形式的記憶體,例如隨機處理記憶體、非揮發性記憶體、或是硬碟等等。通用型之輸入輸出接口GPIO2耦接於處理單元13以及電腦PC1內的通用型之輸入輸出接口GPIO1。因此,處理單元13可以透過通用型之輸入輸出接口GPIO2以及通用型之輸入輸出接口GPIO1,控制電腦PC1內的主機板MB,以排除電腦PC1的錯誤。通訊軟體15可設置於系統主機PC2的硬碟中,並與存取單元14和處理單元13進行資料溝通。通訊軟體15可為任何具備發送資料能力的應用程式,例如電子郵件程式(Outlook Express)。然而,自動化影像監測系統100之任何合理的硬體或軟體之變更皆屬於本發明所揭露的範疇。例如,通訊軟體15也可以安裝在存取單元15之中。因此,處理單元13可利用通訊軟體15,控制收發器16,使存取單元14內的資料透過收發器16對外傳輸。在本實施例中,收發器16可將存取單元14內的資料透過有線網路或無線網路傳送至使用者設備UE。使用者設備UE可為可攜式電子設備,例如智慧型手機、筆記型電腦或是平板電腦等等。在自動化影像監測系統100中,當電腦PC1之主機板MB發生錯誤時,會導致螢幕裝置11所顯示的螢幕影像發生停格。由於攝影模組12可持續地監控螢幕影像,因此當螢幕影像發生異常時,系統主機PC2會即時地進行錯誤分析,並透過通用型之輸入輸出接口GPIO2以及通用型之輸入輸出接口GPIO1,控制電腦PC1內的主機板MB,以排除電腦PC1的錯誤。自動化影像監測系統100之執行自動化影像監測之流程描述於下。1 is an architectural diagram of an embodiment of an automated image monitoring system 100 of the present invention. The automated image monitoring system 100 includes a computer PC1, a screen device 11, a camera module 12, a system host PC2, and a user device UE. The computer PC1 can be regarded as the computer to be tested. The "computer" of the present invention can be a personal computer, a notebook computer, a workstation, or a server control machine. The computer PC1 has a motherboard MB to drive all the hardware/software in the computer PC1. The motherboard MB includes an output unit 10 and a general-purpose input/output interface (General-Purpose Input/Output) GPIO1. The output unit 10 can be an output port of any video signal, such as a Universal Serial Bus, a Video Graphics Array Connector, a High Definition Multimedia Interface Connector, and the like. The pin type (Pin) of the general-purpose I/O interface GPIO1 port can be freely used by the user in a program-controlled manner. The screen device 11 is coupled to the output unit 10 on the motherboard MB for displaying the status of the current execution program of the computer PC. The camera module 12 can be disposed in front of the screen device 11 for capturing the screen image displayed by the screen device 11. The photography module 12 can be any image capture device such as a digital camera or a digital camera. The system host PC2 can also be a computer, including a processing unit 13, an access unit 14, a general-purpose input/output interface GPIO2, a communication software 15, and a transceiver 16. Processing unit 13 can be a central processing unit or any computing unit having programmable logic processing capabilities. The processing unit 13 is coupled to the camera module 12 for processing and analyzing the screen image captured by the camera module 12. The access unit 14 is coupled to the processing unit 13 for storing the screen image and the data analyzed by the processing unit 13. The access unit 14 can be any form of memory, such as random processing memory, non-volatile memory, or a hard disk, and the like. The general-purpose input/output interface GPIO2 is coupled to the processing unit 13 and a general-purpose input/output interface GPIO1 in the computer PC1. Therefore, the processing unit 13 can control the motherboard MB in the computer PC1 through the general-purpose input/output interface GPIO2 and the general-purpose input/output interface GPIO1 to eliminate the error of the computer PC1. The communication software 15 can be disposed in the hard disk of the system host PC2 and communicate with the access unit 14 and the processing unit 13. The communication software 15 can be any application that has the ability to send data, such as an email program (Outlook Express). However, any reasonable hardware or software change of the automated image monitoring system 100 is within the scope of the present invention. For example, the communication software 15 can also be installed in the access unit 15. Therefore, the processing unit 13 can control the transceiver 16 by using the communication software 15, so that the data in the access unit 14 is transmitted to the outside through the transceiver 16. In this embodiment, the transceiver 16 can transmit the data in the access unit 14 to the user equipment UE through a wired network or a wireless network. The user equipment UE can be a portable electronic device, such as a smart phone, a notebook computer, or a tablet computer. In the automated image monitoring system 100, when an error occurs in the motherboard MB of the computer PC1, the screen image displayed on the screen device 11 is stopped. Since the camera module 12 can continuously monitor the screen image, when the screen image is abnormal, the system host PC2 performs error analysis in real time, and controls the computer through the general-purpose input/output interface GPIO2 and the general-purpose input/output interface GPIO1. The motherboard MB in PC1 to eliminate the error of PC1. The process of performing automated image monitoring of the automated image monitoring system 100 is described below.
本發明的自動化影像監測方法可分為條碼影像辨識模式、文字影像辨識模式、以及預設影像辨識模式。使用者可由三種模式中選擇一種影像辨識模式進行監控。以下將對這三種影像辨識模式進行說明。The automated image monitoring method of the present invention can be divided into a barcode image recognition mode, a text image recognition mode, and a preset image recognition mode. The user can select one of the three modes to monitor the image recognition mode. The three image recognition modes will be described below.
第2圖係為自動化影像監測系統100,操作於條碼影像辨識模式下的自動化影像監測方法之流程圖。條碼影像辨識模式下的自動化影像監測方法包含步驟S201至步驟S217,如下所述。
各步驟描述於下。在步驟S201中,使用者若想利用系統主機PC2監控電腦PC1,可先啟動影像監控程式,並將監控之影像辨認模式選擇在條碼影像辨識模式。在此實施例中,「條碼影像」的定義可為任何條碼的影像,例如快速響應矩陣碼(Quick Response Code,QR Code)之二維影像、條形碼(Bar Code)之一維影像等等,任何經編碼後的影像都屬於本發明所揭露的範疇。在步驟S202中,使用者可輸入對應於條碼影像的字組,例如輸入解碼字組或是辨識字組(舉例而言,輸入英文和數字組成的字組)。之後,於步驟S203中,系統主機PC2會啟動攝影模組12以擷取螢幕裝置11的螢幕影像。在步驟S204中,攝影模組12會持續監控螢幕影像,並判斷螢幕影像是否於預定時間內保持不變?舉例而言,若是攝影模組12所監控的螢幕影像已經停格了一分鐘以上,則表示電腦PC1的主機板MB可能出現錯誤,導致系統停頓在某個時間點而無法繼續執行。此時,系統主機PC2就會進行步驟S205,進行進一步的分析。反之,若是攝影模組12所監控的螢幕影像沒有發生停格的情況,則表示電腦PC1的主機板MB仍運作在正常狀態,因此,會返回步驟S204以持續擷取螢幕裝置11的螢幕影像。在步驟S205中(螢幕影像已經發生停格的情況),系統主機PC2會進行影像偵測程序,以偵測螢幕影像是否包含條碼影像?由於本模式是以條碼影像來判定電腦PC1發生錯誤的狀態,因此,系統主機PC2會試圖由攝影模組12所監控的螢幕影像中,找出特定的關鍵條碼影像。若條碼影像無法被偵測(例如電腦PC1發生錯誤的位置在顯示卡,導致條碼影像完全失真),則系統主機PC2會依據步驟S207,產生一個非預期的錯誤信息。若條碼影像可以被偵測,則系統主機PC2會依據步驟S206,分析並解碼條碼影像以判斷條碼影像是否符合字組。由於對應錯誤狀態的字組已於步驟S202設定完成,因此當PC1發生錯誤時,若條碼影像經解碼後符合先前設定的字組,表示PC1的錯誤是在使用者的預期之中。因此,依據步驟S213,監控結果信息會被產生。反之,若條碼影像經解碼後不符合先前設定的字組,表示PC1的錯誤是不是在使用者的預期之中。因此,依據步驟S207,非預期的錯誤信息會被產生。並且,監控結果信息或非預期的錯誤信息可包含錯誤發生的時間、畫面停格時間、系統執行時間、或是任何關於螢幕影像的信息。監控結果信息或非預期的錯誤信息可由攝影模組12產生,亦可由系統主機PC2產生。本發明不限制監控結果信息或非預期的錯誤信息係由何種硬體設備產生。The steps are described below. In step S201, if the user wants to monitor the computer PC1 by using the system host PC2, the image monitoring program can be started first, and the monitored image recognition mode is selected in the barcode image recognition mode. In this embodiment, the definition of "barcode image" can be any barcode image, such as a QR code of a QR code, a Bar Code image, etc., any The encoded images are within the scope of the present invention. In step S202, the user can input a block corresponding to the barcode image, such as inputting a decoded block or identifying a block (for example, inputting a block composed of English and numbers). Thereafter, in step S203, the system host PC2 activates the camera module 12 to capture the screen image of the screen device 11. In step S204, the camera module 12 continuously monitors the screen image and determines whether the screen image remains unchanged for a predetermined time. For example, if the screen image monitored by the camera module 12 has been stopped for more than one minute, It means that the motherboard PC of the computer PC1 may have an error, causing the system to pause at a certain point in time and cannot continue execution. At this time, the system host PC2 proceeds to step S205 for further analysis. On the other hand, if the screen image monitored by the camera module 12 does not stop, it indicates that the motherboard MB of the computer PC1 is still operating normally. Therefore, the process returns to step S204 to continuously capture the screen image of the screen device 11. In step S205 (in the case where the screen image has been stopped), the system host PC2 performs an image detection process to detect whether the screen image contains a barcode image. This mode is to determine the state of the computer PC1 error by using the barcode image. Therefore, the system host PC2 will attempt to find a specific key barcode image from the screen image monitored by the camera module 12. If the barcode image cannot be detected (for example, the location where the computer PC1 is in error is on the display card, causing the barcode image to be completely distorted), the system host PC2 generates an unexpected error message according to step S207. If the barcode image can be detected, the system host PC2 analyzes and decodes the barcode image according to step S206 to determine whether the barcode image conforms to the block. Since the block corresponding to the error state has been set in step S202, when an error occurs in the PC1, if the barcode image is decoded and conforms to the previously set block, the error indicating that the PC1 is in the user's expectation. Therefore, according to step S213, the monitoring result information is generated. Conversely, if the barcode image is decoded and does not match the previously set block, it indicates whether the PC1 error is in the user's expectation. Therefore, according to step S207, unexpected error information is generated. Moreover, the monitoring result information or the unexpected error information may include the time when the error occurred, the screen stop time, the system execution time, or any information about the screen image. The monitoring result information or the unexpected error information may be generated by the photography module 12 or may be generated by the system host PC2. The present invention does not limit what kind of hardware device is generated by monitoring result information or unexpected error information.
如前述提及,非預期的錯誤信息的產生條件有兩種。第一種為條碼影像無法由螢幕影像被偵測出來,第二種為條碼影像可以由螢幕影像被偵測出來,但條碼影像被解碼後與先前設定的字組不匹配。而對應預期錯誤的監控結果信息的產生條件為條碼影像可以由螢幕影像被偵測出來,且條碼影像被解碼後與先前設定的字組匹配。以下將針對非預期的錯誤信息產生之後續步驟S208至S212,以及對應預期錯誤的監控結果信息產生之後續步驟S214至S217進行說明。於步驟S208中,在系統主機PC2接收螢幕影像及非預期的錯誤信息。隨後,依據步驟S209,系統主機PC2會將螢幕影像儲存,例如儲存至存取單元14中。由於非預期的錯誤的除錯方法及資料並不在系統主機PC2的資料庫中,因此若欲對電腦PC1進行除錯,必須要經由管理人員(使用者)的輔助而除錯。因此,依據步驟S210,系統主機PC2可利用通訊軟體15將非預期的錯誤信息及螢幕影像發送至使用者設備UE。因此,對於遠端的使用者而言,也可以立即理解錯誤的位置和原因。接著,依據步驟S211,使用者利用使用者設備UE,控制系統主機PC2執行除錯程序。最後,依據步驟S212,系統主機PC2將可透過通用型之輸入輸出接口GPIO2及GPIO1,控制顯示螢幕影像的電腦PC1,以排除電腦PC1的錯誤,並返回步驟S203以持續擷取螢幕裝置11的螢幕影像。因此對於非預期性的錯誤而言,由於系統主機PC2會將資料傳送至遠端的使用者,因此使用者可即時透過系統主機PC2對電腦PC1進行除錯。然而,使用者也可以直接操作系統主機PC2甚至直接操作電腦PC1而進行除錯,任何合理的步驟變動均屬於本發明所揭露的範疇。As mentioned above, there are two conditions for generating unexpected error information. The first type of bar code image cannot be detected by the screen image, and the second type of bar code image can be detected by the screen image, but the bar code image is decoded and does not match the previously set block. The monitoring result information corresponding to the expected error is generated by the barcode image being detected by the screen image, and the barcode image is decoded and matched with the previously set block. Subsequent steps S214 to S212 for generating unexpected error information and subsequent steps S214 to S217 for generating monitoring result information corresponding to expected errors will be described below. In step S208, the system host PC2 receives the screen image and unexpected error information. Then, according to step S209, the system host PC2 stores the screen image, for example, into the access unit 14. Since the unintended error debugging method and data are not in the database of the system host PC2, if the computer PC1 is to be debugged, it must be debugged by the administrator (user). Therefore, according to step S210, the system host PC2 can use the communication software 15 to send unintended error information and a screen image to the user equipment UE. Therefore, for the remote user, the location and cause of the error can be immediately understood. Next, according to step S211, the user controls the system host PC2 to execute the debug program by using the user equipment UE. Finally, according to step S212, the system host PC2 can control the computer PC1 displaying the screen image through the universal input/output interfaces GPIO2 and GPIO1 to eliminate the error of the computer PC1, and return to step S203 to continuously capture the screen of the screen device 11. image. Therefore, for the unintended error, since the system host PC2 transmits the data to the remote user, the user can immediately debug the computer PC1 through the system host PC2. However, the user can directly debug the operating system host PC2 or even directly operate the computer PC1, and any reasonable step changes are within the scope of the present invention.
在預期錯誤的監控結果之狀況下,於步驟S214,系統主機PC2接收螢幕影像及監控結果信息。隨後,依據步驟S215,系統主機PC2會將螢幕影像儲存,例如儲存至存取單元14中。由於預期錯誤的除錯方法及資料在系統主機PC2的資料庫中,因此系統主機PC2可以直接以自動化的方式對電腦PC1除錯。在步驟S216,依據螢幕影像及監控結果信息,系統主機PC2執行除錯程序。最後,依據步驟S217,系統主機PC2將可透過通用型之輸入輸出接口GPIO2及GPIO1,控制顯示螢幕影像的電腦PC1,以排除電腦PC1的錯誤,並返回步驟S203以持續擷取螢幕裝置11的螢幕影像。因此對於預期的錯誤而言,由於系統主機PC2可以直接以自動化的方式對電腦PC1除錯,因此可以大幅減少人力的消耗。然而,如前文提及,任何步驟合理的變更皆屬於本發明的範疇。因此,系統主機PC2也可以利用通訊軟體15將預期的監控結果信息及螢幕影像發送至使用者設備UE。因此,雖然在預期錯誤的監控結果之狀況下,系統主機PC2可以直接以自動化的方式對電腦PC1除錯。但本發明亦保留了使用者可以微調或控制除錯程序的彈性,並且,系統主機PC2也可以利用通訊軟體15將即時除錯的資料傳送至使用者設備UE,以讓使用者能隨時掌握除錯的進度和結果。In the case where the erroneous monitoring result is expected, the system host PC2 receives the screen image and the monitoring result information in step S214. Then, according to step S215, the system host PC2 stores the image of the screen, for example, into the access unit 14. Since the error debugging method and the data are expected to be in the database of the system host PC2, the system host PC2 can directly debug the computer PC1 in an automated manner. In step S216, the system host PC2 executes the debug program according to the screen image and the monitoring result information. Finally, according to step S217, the system host PC2 can control the computer PC1 displaying the screen image through the universal input/output interfaces GPIO2 and GPIO1 to eliminate the error of the computer PC1, and return to step S203 to continuously capture the screen of the screen device 11. image. Therefore, for the expected error, since the system host PC2 can directly debug the computer PC1 in an automated manner, the labor consumption can be greatly reduced. However, as mentioned above, any reasonable changes to the steps are within the scope of the invention. Therefore, the system host PC2 can also transmit the expected monitoring result information and the screen image to the user equipment UE by using the communication software 15. Therefore, although the system host PC2 can debug the computer PC1 directly in an automated manner in the case of an erroneous monitoring result. However, the present invention also preserves the flexibility of the user to fine-tune or control the debug program, and the system host PC2 can also use the communication software 15 to transmit the data that is immediately debugged to the user equipment UE, so that the user can grasp at any time. Wrong progress and results.
第3圖係為自動化影像監測系統100,操作於文字影像辨識模式下的自動化影像監測方法之流程圖。文字影像辨識模式下的自動化影像監測方法包含步驟S301至步驟S317,如下所述。
在文字影像辨識模式下的自動化影像監測方法之流程中,步驟S301至S317的運作方式類似於前述之步驟S201至步驟S207的運作方式。差異之處在於步驟S305,系統主機PC2會進行影像偵測程序,以偵測螢幕影像是否包含文字影像?以及步驟S306,系統主機PC2會分析文字影像以判斷文字影像是否符合字組?由於步驟S301至步驟S317為在文字影像辨識模式下的步驟,因此,系統主機PC2會試圖由攝影模組12所監控的螢幕影像中,找出特定的關鍵文字影像。舉例而言,使用者可以先於步驟S302中設定電腦PC1發生錯誤時,會出現的「Error404」之關鍵字。因此當電腦PC1發生螢幕停格時,系統主機PC2會試圖由攝影模組12所監控的螢幕影像中,依據步驟S305判斷是否有文字影像,再依據步驟S306,辨識文字影像,以判斷錯誤的關鍵字是否為「Error404」。換句話說,前述提及的條碼影像辨識模式中,當電腦PC1發生螢幕停格時,系統主機PC2會試圖由攝影模組12所監控的螢幕影像中,辨識出關鍵的條碼影像。而在文字影像辨識模式中,當電腦PC1發生螢幕停格時,系統主機PC2會試圖由攝影模組12所監控的螢幕影像中,辨識出關鍵的文字影像。文字影像辨識模式之其餘的步驟與前述之條碼影像辨識模式相同,於此將不再贅述。In the flow of the automated image monitoring method in the text image recognition mode, the operations of steps S301 to S317 are similar to the operations of steps S201 to S207 described above. The difference is that in step S305, the system host PC2 performs an image detection process to detect whether the screen image contains a text image. And in step S306, the system host PC2 analyzes the text image to determine whether the text image conforms to the word group. Step S317 is a step in the character image recognition mode. Therefore, the system host PC2 attempts to find a specific key text image from the screen image monitored by the camera module 12. For example, the user can set the keyword "Error404" that will appear when an error occurs on the computer PC1 in step S302. Therefore, when the computer PC1 is stopped, the system host PC2 attempts to determine whether there is a text image in the screen image monitored by the camera module 12 according to step S305, and then recognizes the text image according to step S306 to determine the key of the error. Whether the word is "Error404". In other words, in the bar code image recognition mode mentioned above, when the computer PC1 is stopped, the system host PC2 attempts to recognize the key bar code image from the screen image monitored by the camera module 12. In the text image recognition mode, when the computer PC1 is stopped, the system host PC2 attempts to recognize the key text image from the screen image monitored by the camera module 12. The remaining steps of the text image recognition mode are the same as the bar code image recognition mode described above, and will not be described herein.
第4圖係為自動化影像監測系統100,操作於預設影像辨識模式下的自動化影像監測方法之流程圖。預設影像辨識模式可視為簡化的影像監測方法,包含步驟S401至S408,如下所述。
各步驟描述於下。在步驟S401中,使用者若想利用系統主機PC2監控電腦PC1,可先啟動影像監控程式,並將監控之影像辨認模式選擇在預設影像辨識模式。之後,於步驟S402中,系統主機PC2會啟動攝影模組12以擷取螢幕裝置11的螢幕影像。在步驟S403中,攝影模組12會持續監控螢幕影像,並判斷螢幕影像是否於預定時間內保持不變?舉例而言,若是攝影模組12所監控的螢幕影像已經停格了一分鐘以上,則表示電腦PC1的主機板MB可能出現錯誤,導致系統停頓在某個時間點而無法繼續執行。此時,依據步驟S404,監控結果信息將被產生。如同前述提及,監控結果信息可包含錯誤發生的時間、畫面停格時間、系統執行時間、或是任何關於螢幕影像的信息。監控結果信息可由攝影模組12產生,亦可由系統主機PC2產生。本發明不限制監控結果信息由何種硬體設備產生。反之,若是攝影模組12所監控的螢幕影像沒有發生停格的情況,則表示電腦PC1的主機板MB仍運作在正常狀態,因此,會返回步驟S403以持續擷取螢幕裝置11的螢幕影像。當螢幕影像發生停格的現象且監控結果信息也被產生之後,依據步驟S405,系統主機PC2會將螢幕影像儲存,例如儲存至存取單元14中。隨後,依據步驟S406,系統主機PC2可利用通訊軟體15將監控結果信息及螢幕影像發送至使用者設備UE。因此,對於使用者而言,可以立即理解錯誤的位置和原因。接著,依據步驟S407,使用者可利用使用者設備UE,並依據監控結果信息及螢幕影像,以控制系統主機PC2執行除錯程序。最後,依據步驟S408,系統主機PC2將可透過通用型之輸入輸出接口GPIO2及GPIO1,控制顯示螢幕影像的電腦PC1,以排除電腦PC1的錯誤,並返回步驟S402以持續擷取螢幕裝置11的螢幕影像。然而,如同前文提及,當使用者接收到監控結果信息及螢幕影像後,也可以直接操作系統主機PC2甚至直接操作電腦PC1而進行除錯,任何合理的步驟變動均屬於本發明所揭露的範疇。The steps are described below. In step S401, if the user wants to monitor the computer PC1 by using the system host PC2, the image monitoring program can be started first, and the monitored image recognition mode is selected in the preset image recognition mode. Thereafter, in step S402, the system host PC2 activates the camera module 12 to capture the screen image of the screen device 11. In step S403, the camera module 12 continuously monitors the screen image and determines whether the screen image remains unchanged for a predetermined time. For example, if the screen image monitored by the camera module 12 has been stopped for more than one minute, It means that the motherboard PC of the computer PC1 may have an error, causing the system to pause at a certain point in time and cannot continue execution. At this time, according to step S404, the monitoring result information will be generated. As mentioned above, the monitoring result information may include the time when the error occurred, the time the screen was stopped, the system execution time, or any information about the screen image. The monitoring result information may be generated by the photography module 12 or may be generated by the system host PC2. The present invention does not limit what kind of hardware device the monitoring result information is generated. On the other hand, if the screen image monitored by the camera module 12 does not stop, it indicates that the motherboard MB of the computer PC1 is still operating normally. Therefore, the process returns to step S403 to continuously capture the screen image of the screen device 11. After the screen image is stopped and the monitoring result information is also generated, the system host PC2 stores the screen image, for example, in the access unit 14 according to step S405. Then, according to step S406, the system host PC2 can use the communication software 15 to send the monitoring result information and the screen image to the user equipment UE. Therefore, for the user, the location and cause of the error can be immediately understood. Then, according to step S407, the user can use the user equipment UE to control the system host PC2 to execute the debugging program according to the monitoring result information and the screen image. Finally, according to step S408, the system host PC2 can control the computer PC1 displaying the screen image through the general-purpose input/output interfaces GPIO2 and GPIO1 to eliminate the error of the computer PC1, and return to step S402 to continuously capture the screen of the screen device 11. image. However, as mentioned above, after the user receives the monitoring result information and the screen image, the operating system host PC2 can directly operate the computer PC1 to perform debugging, and any reasonable step change belongs to the scope disclosed by the present invention. .
綜上所述,本發明描述了一種自動化影像監測方法,在測試電腦可達到節省人力以及增高檢測效率的功能。自動化影像監測方法利用了攝影模組以隨時監控螢幕影像,並可結合影像辨識(包含條碼或是文字等辨識功能)做更準確的除錯分析。當電腦的錯誤是在預期的狀態時,可直接透過主機系統來將錯誤排除。當電腦的錯誤是在非預期的狀態時,也可以將錯誤發生時的螢幕影像及錯誤資料報告即時地通知檢測人員(使用者),以將錯誤順利排除。因此,本發明的自動化影像監測方法具有以下優點。第一,檢測人員無需隨時在電腦前待命,檢測人員的時間規劃將更有彈性。第二,當被檢測的電腦發生問題時,系統主機可藉由通訊軟體即時傳送影像資訊給檢測人員,因此就算在遠端的檢測人員也能即時處理問題。第三、由於系統主機可藉由通訊軟體與檢測人員的裝置同步,因此檢測人員能隨時掌握除錯的進度和結果。第四、本發明的自動化影像監測方法可以大幅降低人力的消耗以及檢測時間的損失。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。In summary, the present invention describes an automated image monitoring method that can save manpower and increase detection efficiency when testing a computer. The automated image monitoring method utilizes a photographic module to monitor the screen image at any time, and can be combined with image recognition (including bar code or text recognition functions) for more accurate debug analysis. When the computer's error is in the expected state, the error can be eliminated directly through the host system. When the computer's error is in an unexpected state, the screen image and the error data report at the time of the error can be immediately notified to the inspector (user) to smoothly eliminate the error. Therefore, the automated image monitoring method of the present invention has the following advantages. First, the tester does not need to be on standby before the computer, and the time plan of the tester will be more flexible. Second, when there is a problem with the detected computer, the system host can instantly transmit the image information to the inspector through the communication software, so even the remote detection personnel can immediately solve the problem. Third, since the system host can synchronize with the device of the tester by the communication software, the tester can grasp the progress and result of the debug at any time. Fourth, the automated image monitoring method of the present invention can greatly reduce the labor consumption and the loss of detection time. The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
100‧‧‧自動化影像監測系統100‧‧‧Automated image monitoring system
PC1‧‧‧電腦PC1‧‧‧ computer
MB‧‧‧主機板MB‧‧‧ motherboard
GPIO1及GPIO2‧‧‧通用型之輸入輸出接口GPIO1 and GPIO2‧‧‧ general-purpose input and output interfaces
PC2‧‧‧系統主機PC2‧‧‧ system host
UE‧‧‧使用者設備UE‧‧‧User equipment
10‧‧‧輸出單元10‧‧‧Output unit
11‧‧‧螢幕裝置11‧‧‧Screen device
12‧‧‧攝影模組12‧‧‧Photography module
13‧‧‧處理單元13‧‧‧Processing unit
14‧‧‧存取單元14‧‧‧Access unit
15‧‧‧通訊軟體15‧‧‧Communication software
16‧‧‧收發器16‧‧‧ transceiver
S201至S217‧‧‧步驟S201 to S217‧‧ steps
S301至S317‧‧‧步驟Steps S301 to S317‧‧
S401至S408‧‧‧步驟 Steps S401 to S408‧‧
第1圖係為本發明之自動化影像監測系統之實施例的架構圖。 第2圖係為第1圖的自動化影像監測系統,操作於條碼影像辨識模式下的自動化影像監測方法之流程圖。 第3圖係為第1圖的自動化影像監測系統,操作於文字影像辨識模式下的自動化影像監測方法之流程圖。 第4圖係為第1圖的自動化影像監測系統,操作於預設影像辨識模式下的自動化影像監測方法之流程圖。1 is an architectural diagram of an embodiment of an automated image monitoring system of the present invention. Figure 2 is a flow chart of the automated image monitoring system of Figure 1, which operates on an automated image monitoring method in a barcode image recognition mode. Figure 3 is a flow chart of the automated image monitoring method of Figure 1 for automated image monitoring in a text image recognition mode. Figure 4 is a flow chart of the automated image monitoring system of Figure 1, which operates on an automated image monitoring method in a preset image recognition mode.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106113455A TWI643060B (en) | 2017-04-21 | 2017-04-21 | Automatic image monitoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106113455A TWI643060B (en) | 2017-04-21 | 2017-04-21 | Automatic image monitoring method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201839608A true TW201839608A (en) | 2018-11-01 |
TWI643060B TWI643060B (en) | 2018-12-01 |
Family
ID=65033783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106113455A TWI643060B (en) | 2017-04-21 | 2017-04-21 | Automatic image monitoring method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI643060B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113126946A (en) * | 2019-12-31 | 2021-07-16 | 新唐科技股份有限公司 | Display system and panel parameter automatic adjusting method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7627788B2 (en) * | 2006-09-15 | 2009-12-01 | International Business Machines Corporation | RFID active/passive tag identifying failed sub-CRU and location within higher level CRU |
US20100325490A1 (en) * | 2009-06-22 | 2010-12-23 | Anvin H Peter | System and method to view crash dump information using a 2-d barcode |
CN105093167B (en) * | 2015-04-01 | 2016-04-13 | 国家电网公司 | Outdoor electrical energy meter fault automatic gauging terminal |
CN105182274B (en) * | 2015-04-01 | 2017-09-15 | 泰州市宏祥动力机械有限公司 | Outdoor electrical energy meter fault self-verifying method |
-
2017
- 2017-04-21 TW TW106113455A patent/TWI643060B/en active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113126946A (en) * | 2019-12-31 | 2021-07-16 | 新唐科技股份有限公司 | Display system and panel parameter automatic adjusting method |
TWI780391B (en) * | 2019-12-31 | 2022-10-11 | 新唐科技股份有限公司 | Display system and method of automatically adjusting display-panel parameters |
CN113126946B (en) * | 2019-12-31 | 2023-06-09 | 新唐科技股份有限公司 | Display system and automatic panel parameter adjusting method |
Also Published As
Publication number | Publication date |
---|---|
TWI643060B (en) | 2018-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3734520A1 (en) | Fault analysis and prediction using empirical architecture analytics | |
WO2020237877A1 (en) | Log monitoring method and apparatus, terminal, and storage medium | |
US7882395B2 (en) | Debug device for embedded systems and method thereof | |
US20180210774A1 (en) | Image based fault state determination | |
US20210173010A1 (en) | Diagnostic tool for traffic capture with known signature database | |
US20210111967A1 (en) | Graphical user interface for traffic capture and debugging tool | |
TWI550397B (en) | Debug method and apparatus thereof | |
US20090113400A1 (en) | Device, System and method of Profiling Computer Programs | |
CN106021066A (en) | Fault information detection method and electronic device | |
CN101114249A (en) | I2C bus testing apparatus of mainboard and method thereof | |
CN111309606A (en) | Page exception handling method and device, computer equipment and storage medium | |
TWI643060B (en) | Automatic image monitoring method | |
US7415560B2 (en) | Method of automatically monitoring computer system debugging routine | |
CN109032928A (en) | embedded software component monitoring method | |
CN111427874B (en) | Quality control method and device for medical data production and electronic equipment | |
CN114372003A (en) | Test environment monitoring method and device and electronic equipment | |
CN116414632A (en) | Fault positioning method of system-on-chip, equipment and storage medium | |
CN114444087A (en) | Unauthorized vulnerability detection method and device, electronic equipment and storage medium | |
CN110968519A (en) | Game testing method, device, server and storage medium | |
CN110321171A (en) | Be switched on detection device, system and method | |
CN108874610A (en) | Automate imaging monitor method | |
CN116382968B (en) | Fault detection method and device for external equipment | |
CN117493127B (en) | Application program detection method, device, equipment and medium | |
CN113484710B (en) | Graphical user interface for traffic capture and debug tool | |
CN118055051B (en) | Interface communication rate detection control method, device, equipment and medium |