1334111 六、發明說明: 【發明所屬之技術領域】 099年08月 [0001] [0002] 本發明涉及一種電腦周邊器件,特別、也 _滅 竹別涉及一種用於電腦 之眼睛防護警示裝置及眼睛防讀绝+ s不方法。 【先前技術】 長時間使用電腦(長時間盯著雷腦> s 者尾胳之顯示器)對眼睛有害 已經成為公知常識。為避免因此患上眼疾,宜在使用電 腦-段時間後,離開電腦以緩解視疲勞^而,人們社 往忘情於工作或學習中,不能 吁離開電腦,導致眼病 出現或加重。 [0003] 【發明内容】 有繁於此,有必要提供—種在電腦使㈣長_«電 腦後及時伽電職㈣離職以 及眼睛防護警示方法。 更》丁取 [0004] 一種眼睛防護警示裝置’其包括影像獲取模組、影像處 理模組、統龍組及料馳。__㈣組用於獲 取電腦使用者之連續多驗部圖像。該影像處理模組用 於處理每Φ貞臉部圖像以獲得表徵電腦使用者眼部高度(上 下眼皮之間之距離)之連續複數特徵值。該影像處理模組 包括區域劃分器、邊緣偵測器及邊緣逼近器◊該區域劃 分器用於對臉部圖像進行區域劃分以得到電腦使用者眼 邠所在之眼部區域。該邊緣偵測器用於對該眼部區域進 打邊緣偵測以銳化電腦使用者眼部之邊緣。該邊緣逼近 器用於對銳化之眼部區域進行邊緣逼近以得到對應的特 徵值。該統計模組用於統計該連續複數特徵值中大於預 096143496 表單編號Α0101 笫4頁/共15頁 0993278006-0 Γ334111 099年08月03日梭正替換頁 定值之特徵值之數目以獲得電腦使用者眼睛張開之時間 。該警示模組用於在電腦使用者眼睛張開之時間滿足預 定條件時發出警示。 [0005] 一種眼睛防護警示方法,其包括以下步驟: [0006] 獲取電腦使用者之連續多幀臉部圖像; [0007] 處理每幀臉部圖像以獲得表徵電腦使用者眼部高度之連 續複數特徵值; [0008] 統計該連續複數特徵值中大於預定值之特徵值之數目以 獲得電腦使用者眼睛張開之時間;及 [0009] 在電腦使用者眼睛張開之時間滿足預定條件時發出警示 〇 [0010] 該處理步驟包括: [0011] 對該臉部圖像進行區域劃分以得到電腦使用者眼部所在 之眼部區域; [0012] 對該眼部區域進行邊緣偵測以銳化電腦使用者眼部之邊 緣;及 [0013] 對銳化之眼部區域進行邊緣逼近以得到特徵值 [0014] 該眼睛防護警示裝置通過對大於預定值之特徵值(表示電 腦使用者眼睛處於張開狀態)進行統計以統計電腦使用者 眼睛張開之時間,並在電腦使用者眼睛張開之時間滿足 預設條件(使用超時條件)時發出警示,及時提醒電腦使 用者離開電腦。 096143496 表單編號A0101 第5頁/共15頁 0993278006-0 [0015] 【實施方幻 請參閱圖1,士 & 本發明之眼睛防護警示裝置丨00可用於電腦 200電腦20G可以係桌上型電腦或筆記本電腦,本實施 式之電腦2GG為筆記本電腦,其包括本體2G2及轉動設 置於本體2G2邊緣之液晶顯示器201。 [0016] 么并 > 閱圖2,眼睛防護警示裝置1 〇〇包括影像獲取模 如像處理模組2〇、統計模組30及警示模組4〇。影 & 1 〇用於獲取電腦使用者之連續多幀臉部圖像 ’v像處理模組2〇用於處理每幀臉部圖像以獲得表徵電 腦使用者眼部高度之連續複數特徵值 。統計模組3 0用於 統找續複數特徵值巾大於預隸之特徵值之數目以獲 囟使用者眼睛張開之時。間·。.警示模,組4 0用於在電腦 使用者眼睛張開之時間滿足預定條件祕出警示。 [0017] 本實施方式之影像獲取模組1〇採用攝像頭,其嵌設於電 腦2〇〇之液晶顯示器201之邊緣(如左上角)。如此,攝像 頭與電腦使用者之臉部正對,可獲私完聱、背景少之臉 部圖像,利於後續影像處理模組對族部圖像進行處理 [0018] 影像處理模組20包括區域劃分器21(regi〇n divisi〇n unit),邊緣偵測器 22(edge detection unit)及邊緣 逼近器 23(edge appr〇ximati〇n Unit)。區域劃分器 21用於對電腦使用者之臉部圖像進行區域劃分以得到電 腦使用者眼部所在之眼部區域。邊緣偵測器22用於對眼 部區域進行邊緣偵測以銳化電腦使用者眼部之邊緣。邊 緣逼近器23用於對銳化之眼部區域進行邊緣逼近以得到 096143496 表單編號A0101 第6頁/共15 頁 0993278006-0 1334111 特徵值。 099年08月03日修正替换頁 [0019] [0020] 優選地,影像處理模組20還包括均 f · 1+ 、 ^ ;值濾波器24(mean hWO。均值缝器㈣於對目㈣ 以利於眼部區域之邊緣偵測。 — 慮波 可以理解,影像處理模組2〇、 玩汁铋組30及警示模組40 。以木用各種編程語言’如visual匕…,c m 嗱編成之功能模組,並存儲於電腦2〇〇之本體2〇2内之 硬碟等存儲設備。而料獲取·1Q通财材與電腦綱 連接(如與電脚之主板連接)’從而與影像處理模组2〇 建立連接》當通過電腦200之輪入設備(如鍵盤或滑鼠)或 獨立啟動設備(圖未示)啟動眼睛防護警示裝置1〇〇時影 像獲取模組10開始獲取電腦使甩者之臉部圖像,影像處 理模組20、統計模組30及警示模組侧時載入電腦= 之動態存儲設備(如記憶體)並在其内運行。警示模組Μ 可通過在液晶顯示器201彈出警告框或觸發電腦2〇〇之發 聲設備發出鳴叫之方式發出警示,提醒電腦使用者離開 電腦200,緩解視疲勞。 [0021] [0022] [0023] 當然,也可以採用獨立於電腦之智慧設備裝載影像處理 模組20、統計模組30及警示模組4〇。 請參閱圖3,本發明之眼睛防護警示方法包括如下步驟: S01 :獲取電腦使用者之連續多幀臉部圖像;具體地,眼 睛防護警示裝置100啟動後,影像獲取模組1〇開始以3〇幀 /秒之速率獲取電腦使用者之連續多幀臉部圖像,並經由 線材傳輸至電腦200之動態存锦裝置; 096143496 表單編號A0101 第7頁/共15頁 0993278006-0 1334111 099年08月03日接正替换頁 [0024] S02 :處理每幀臉部圖像以獲得表徵電腦使用者眼部高度 之連續複數特徵值(詳細步驟請參下文); [0025] S03 :統計連續複數特徵值中大於預定值之特徵值之數目 以獲得電腦使用者眼睛張開之時間;可以理解,若電腦 使用者眼睛處於張開狀態,眼部高度將大於預定值(如2 毫米);如此,可通過統計模組3〇統計複數特徵值中大於 預定值之特徵值之數目獲得電腦使用者眼睛張開之時間 ;及 [0026] S04 :在電腦使用者眼睛張開之時間滿足預定條件時發出 警示;預設條件可由電腦使用者設定,參考之預設條件 為.在一段時間(如1小時),大於預定值之特徵值之數目 與該段時間内臉部圖像之總幀數之比大於〇匕8(即在1小時 中’0· 8小時電腦使用者眼睛張開;其餘〇. 2小時,電腦 使用者處於短暫閉眼或眨眼狀態);更加具體地,若滿足 預設條件’則警示模組4〇通過在液晶顯示器2〇1彈出警告 框或觸發電腦200之發生設僑發出鳴叫之方式發出警示。 [0027】請參閱圖4,步驟S02(處理步驟)以下子步驟: [0028] S021 :對臉部圖像進行區域劃分以得到電腦使用者眼部 所在之眼部區域;具體地,區域劃分器21採用域值法對 臉部圖像進行區域劃分以得到電腦使用者眼部所在之眼 部區域; [0029] S022 :對眼部區域進行均值濾波;具體地,均值濾波器 24對眼部區域進行均值濾波’以濾掉眼部區域内之圖像 雜訊’避免邊緣偵測器22在銳化電腦使用者眼部邊緣之 096143496 表單編號A0101 第8頁/共15頁 0993278006-0 [0030] 099年08月03日t @ Μ化®1像雜訊’而?丨起邊緣逼近器23誤判(誤判圖像 雜訊為電腦使用者眼部邊緣); 士眼。Ρ區域進行邊緣偵測以銳化電腦使用者眼部 ^邊緣’具體地’邊緣该測器22採用Sobel運算元對眼部 品 &度⑶mp〇nent)進行邊緣偵 測,以銳化電腦使用者眼部之邊緣;及 [0031] Γ之眼部區域進行邊緣逼近以得到特徵值; 了以理解,經過均值渡 化邊緣為眼珠邊緣,:邊緣痛測後,眼部區域之銳 近,便可得到特徵值。此’通過邊緣逼近器23作縱向逼 [0032] 可以理解’圖像處理樓 用其他可代替触,如 ^崎本,實射式,可採 [0033] 如Prewitt運管元切’邊緣偵測器22採用其他運算元( 運蚰arr、Hildret運算元)。 眼睛防護警示裝置1〇〇通 計以統計電腦使用切暗;/大於預定值之特徵值進行統 目艮睛張開之時間滿^設二並在電腦使用* 腦使用者離開電腦β 、發出π,及時提醒電 [0034] 综上所述,本發明確 專利申請明專利要件,爰依法提出 ,舉凡熟悉本案技藝之人士僅為本發明之較佳實施方式 之等效修飾或變化,皆應^於援依本案發明精神所作 〇 白心义含於以下之申請專利範圍内 【圖式簡單說明】 [0035] 096143496 圖1為本發明較佳實施方式 表單編號A0101 艮睛防護警示裝置應用於電 第 0993278006-0 頁/共15頁 1334111 099年08月03日梭正替换頁 腦之立體示意圖。 [0036] 圖2為本發明較佳實施方式之眼睛防護警示裝置之功能模 組圖。 [0037] 圖3為本發明較佳實施方式之眼睛防護警示方法之流程圖 〇 [0038] 圖4為本發明較佳實施方式之眼睛防護警示方法之一個子 流程圖。 【主要元件符號說明】 [0039] 眼睛防護警示裝置:1 0 0 [0040] 均值濾波器:24 [0041] 影像獲取模組:10 [0042] 統計模組:30 [0043] 影像處理模組:20 [0044] 警示模組:40 [0045] 區域劃分器:21 [0046] 電腦:200 [0047] 邊緣偵測器:22 [0048] 液晶顯不^§. 201 [0049] 邊緣逼近器:23 [0050] 本體:202 096143496 表單編號A0101 第10頁/共15頁 0993278006-01334111 VI. Description of the invention: [Technical field of invention] 099 August [0001] [0002] The present invention relates to a computer peripheral device, and in particular, to an eye protection warning device and an eye for a computer Anti-reading + s no way. [Prior Art] It has become common knowledge to use a computer for a long time (long-term staring at the thunder brain> s person's tail display) is harmful to the eyes. In order to avoid suffering from eye diseases, it is advisable to leave the computer to relieve visual fatigue after using the computer for a period of time. However, people who are forgotten to work or study cannot call out of the computer, causing eye diseases to appear or worsen. [0003] [Summary of the Invention] In this case, it is necessary to provide a method for alerting the eyes of the computer (4) long after the computer is used, and the eye protection warning method. Further, Ding [0004] An eye protection warning device' includes an image acquisition module, an image processing module, a Tonglong group, and a material. The __(4) group is used to obtain continuous multi-inspection images of computer users. The image processing module is configured to process each Φ 贞 facial image to obtain continuous complex eigenvalues that characterize the height of the computer user's eye (the distance between the upper and lower eyelids). The image processing module includes an area divider, an edge detector and an edge approximator. The area divider is used to divide the face image to obtain an eye area where the computer user's eyelid is located. The edge detector is used to detect edge detection of the eye area to sharpen the edge of the computer user's eye. The edge approximator is used to approximate the edge values of the sharpened eye regions to obtain corresponding feature values. The statistic module is used to count the number of eigenvalues of the continuous complex eigenvalues greater than the pre-096143496 form number Α0101 笫4 pages/15 pages 0993278006-0 Γ334111 099 on August 03, the shuttle is replacing the fixed value of the page to obtain the computer The time when the user's eyes are open. The warning module is used to issue a warning when the computer user's eyes are open for a predetermined condition. [0005] An eye protection warning method, comprising the following steps: [0006] acquiring a continuous multi-frame facial image of a computer user; [0007] processing each frame of the facial image to obtain an image representing a computer user's eye height Continuous complex eigenvalues; [0008] counting the number of eigenvalues of the continuous complex eigenvalues greater than a predetermined value to obtain a time for the computer user to open the eyes; and [0009] alerting the computer user when the predetermined time is met when the eyes are open [0010] The processing step includes: [0011] zoning the facial image to obtain an eye region where the computer user's eye is located; [0012] performing edge detection on the eye region to sharpen the computer use Edge of the eye; and [0013] edge approximation of the sharpened eye area to obtain the feature value [0014] The eye protection warning device passes the feature value greater than the predetermined value (indicating that the computer user's eye is in an open state) Statistics are used to count the time when the computer user's eyes are open, and when the computer user's eyes are open, the preset conditions (using the timeout condition) are met. A warning, timely to remind those who use the computer away from the computer. 096143496 Form No. A0101 Page 5 / Total 15 Page 0993278006-0 [0015] [Implementation of the illusion, please refer to Figure 1, the eye protection device 00 of the present invention can be used for the computer 200 computer 20G can be a desktop computer Or a notebook computer, the computer 2GG of the present embodiment is a notebook computer, which comprises a body 2G2 and a liquid crystal display 201 that is disposed at an edge of the body 2G2. [0016] Referring to FIG. 2, the eye protection warning device 1 includes an image acquisition module such as an image processing module 2, a statistical module 30, and a warning module 4A. Shadow & 1 连续 is used to obtain continuous multi-frame facial images of computer users. The image processing module 2 is used to process each frame of facial images to obtain continuous complex eigenvalues that characterize the height of the eye of the computer user. . The statistic module 30 is used to find the number of eigenvalues of the continuation complex eigenvalues larger than the pre- ligatures to obtain the time when the eyes of the user are opened. between·. The warning mode, group 40 is used to satisfy the predetermined condition secret warning when the computer user's eyes are open. [0017] The image acquisition module 1 of the present embodiment employs a camera embedded in the edge of the liquid crystal display 201 of the computer (such as the upper left corner). In this way, the camera and the face of the computer user face each other, and the face image with less background and less background can be obtained, which facilitates the subsequent image processing module to process the image of the family part. [0018] The image processing module 20 includes an area. A divider 21 (regi〇n divisi〇n unit), an edge detection unit 22 and an edge approximator unit 23 (edge appr〇ximati〇n Unit). The area divider 21 is used to divide the face image of the computer user to obtain the eye area where the eyes of the computer user are located. The edge detector 22 is used for edge detection of the eye area to sharpen the edges of the computer user's eyes. The edge applier 23 is used to perform edge approximation on the sharpened eye area to obtain 096143496 Form No. A0101 Page 6 of 15 0993278006-0 1334111 Eigenvalue. [0020] Preferably, the image processing module 20 further includes a f · 1+ , ^ ; value filter 24 (mean hWO. Mean stitcher (4) in the opposite direction (4) Conducive to the edge detection of the eye area. - The wave can be understood, the image processing module 2, the juice group 30 and the warning module 40. The function is written in various programming languages such as visual 匕..., cm 木The module is stored in a storage device such as a hard disk in the main body 2〇2 of the computer. The material is obtained and connected to the computer program (such as the motherboard connected to the electric foot). Group 2 〇 Establish Connection 》 When the eye protection device 1 is activated by the wheel-in device (such as a keyboard or mouse) of the computer 200 or the independent activation device (not shown), the image acquisition module 10 starts to acquire the computer. The facial image, the image processing module 20, the statistical module 30, and the warning module side are loaded into and operated by a dynamic storage device (such as a memory) of the computer = the warning module Μ can pass through the liquid crystal display 201 pops up the warning box or triggers the computer 2 〇〇 发 设备 发出 发出The method sends a warning to remind the computer user to leave the computer 200 to relieve visual fatigue. [0022] [0023] Of course, the image processing module 20, the statistical module 30, and the warning mode can also be loaded by using a smart device independent of the computer. Referring to FIG. 3, the eye protection warning method of the present invention comprises the following steps: S01: obtaining a continuous multi-frame facial image of a computer user; specifically, after the eye protection warning device 100 is activated, the image acquisition module 1〇 Start to acquire a continuous multi-frame facial image of the computer user at a rate of 3 frames/second, and transmit it to the dynamic storage device of the computer 200 via the wire; 096143496 Form No. A0101 Page 7 of 15 0993278006- 0 1334111 August 3, 099, replace the replacement page [0024] S02: Process each frame of the face image to obtain continuous complex eigenvalues that characterize the height of the eye of the computer user (see below for detailed steps); [0025] S03 : counting the number of characteristic values of the continuous complex eigenvalues greater than the predetermined value to obtain the time when the computer user opens the eyes; it can be understood that if the computer user's eyes are in an open state, the eyes are high Will be greater than a predetermined value (such as 2 mm); thus, the time of opening the eyes of the computer user can be obtained by the statistical module 3 〇 counting the number of characteristic values of the complex eigenvalues greater than the predetermined value; and [0026] S04: in the computer user The warning is issued when the time of opening the eye meets the predetermined condition; the preset condition can be set by the computer user, and the preset condition of the reference is: for a period of time (such as 1 hour), the number of characteristic values greater than the predetermined value and the face during the period of time The ratio of the total number of frames of the image is greater than 〇匕8 (that is, the computer user's eyes are open for 0 hours in 1 hour; the remaining 〇. 2 hours, the computer user is in a short-closed or blinking state); more specifically If the preset condition is met, the warning module 4 发出 issues a warning by popping up the warning frame on the liquid crystal display 2〇1 or triggering the occurrence of the call of the computer 200. [0027] Please refer to FIG. 4, step S02 (processing step) the following sub-steps: [0028] S021: zoning the facial image to obtain an eye region where the computer user's eye is located; specifically, the region divider 21 using the domain value method to divide the facial image into regions to obtain the eye region where the eye of the computer user is located; [0029] S022: performing mean filtering on the eye region; specifically, the mean filter 24 is for the eye region Perform averaging filtering 'to filter out image noise in the eye area'. Avoid edge detector 22 sharpening the edge of the computer user's eye. 096143496 Form No. A0101 Page 8 of 15 0993278006-0 [0030] August 03, 099 t @ Μ化®1 like noise' and? Pick up the edge approximator 23 to misjudge (mistaken image noise is the edge of the computer user's eye); Edge detection in the Ρ area to sharpen the eyes of the computer user's eye ^ specific 'edge' The detector 22 uses the Sobel operator to perform edge detection on the eye product & degree (3) mp〇nent to sharpen the computer The edge of the eye; and [0031] the eye area of the eye is edged to obtain the feature value; to understand, after the meand edge is the edge of the eyeball: after the edge pain test, the eye area is sharp, Characteristic values are available. This is done by the edge approximator 23 for vertical force [0032] It can be understood that 'the image processing building can be replaced with other alternatives, such as ^Sakimoto, real shot, can be used [0033] such as Prewitt transport tube cut 'edge detection The device 22 uses other arithmetic elements (operational arr, Hildret operation elements). Eye protection warning device 1 〇〇 以 统计 统计 统计 统计 统计 统计 统计 统计 统计 统计 统计 统计 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / Recalling the above [0034] In summary, the present invention is a patent application, and it is proposed in accordance with the law, and those skilled in the art are only equivalent modifications or variations of the preferred embodiment of the present invention. According to the spirit of the invention, it is included in the following patent application [Simplified description of the drawings] [0035] 096143496 FIG. 1 is a preferred embodiment of the present invention. Form No. A0101 The eye protection warning device is applied to the electric 0993278006-0 page. / Total 15 pages 1334111 August 3, 099 shuttle is replacing the three-dimensional diagram of the page brain. 2 is a functional block diagram of an eye protection warning device according to a preferred embodiment of the present invention. 3 is a flow chart of an eye protection warning method according to a preferred embodiment of the present invention. [0038] FIG. 4 is a sub-flow diagram of an eye protection warning method according to a preferred embodiment of the present invention. [Main component symbol description] [0039] Eye protection warning device: 1 0 0 [0040] Mean filter: 24 [0041] Image acquisition module: 10 [0042] Statistical module: 30 [0043] Image processing module: 20 [0044] Warning Module: 40 [0045] Area Divider: 21 [0046] Computer: 200 [0047] Edge Detector: 22 [0048] LCD Display No. § 201 [0049] Edge Approximator: 23 [0050] Body: 202 096143496 Form No. A0101 Page 10 / Total 15 Page 0993278006-0