TWI537877B - Method for detecting skin tone and skin tone detection system - Google Patents

Method for detecting skin tone and skin tone detection system Download PDF

Info

Publication number
TWI537877B
TWI537877B TW100149977A TW100149977A TWI537877B TW I537877 B TWI537877 B TW I537877B TW 100149977 A TW100149977 A TW 100149977A TW 100149977 A TW100149977 A TW 100149977A TW I537877 B TWI537877 B TW I537877B
Authority
TW
Taiwan
Prior art keywords
skin color
result
module
image
probability
Prior art date
Application number
TW100149977A
Other languages
Chinese (zh)
Other versions
TW201327475A (en
Inventor
王朝煌
林宏軒
陳定宇
Original Assignee
群光電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 群光電子股份有限公司 filed Critical 群光電子股份有限公司
Priority to TW100149977A priority Critical patent/TWI537877B/en
Priority to CN201210331409.2A priority patent/CN103186785B/en
Publication of TW201327475A publication Critical patent/TW201327475A/en
Application granted granted Critical
Publication of TWI537877B publication Critical patent/TWI537877B/en

Links

Landscapes

  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Analysis (AREA)

Description

膚色偵測方法及系統Skin color detection method and system

本發明係有關於一種方法及裝置,且特別是有關於一種膚色偵測方法及膚色偵測裝置。The present invention relates to a method and apparatus, and more particularly to a skin color detecting method and a skin color detecting device.

膚色偵測屬於一種影像處理範疇,可用於分類靜態或動態畫面中的像素是否為膚色。由於膚色資訊可用來判斷人臉、手、身體位置,所以可應用的範圍相當廣泛,例如:人臉偵測、手勢辨認、指尖偵測、色情圖片辨識、體感遊戲、人機互動等。Skin color detection is an image processing category that can be used to classify whether pixels in a static or dynamic picture are skin tones. Since skin color information can be used to determine the face, hand, and body position, it can be applied in a wide range of applications, such as face detection, gesture recognition, fingertip detection, erotic image recognition, somatosensory games, and human-computer interaction.

然而,習知技術是於離線時使用統計方式以產生膚色機率統計表,然而在採用前述膚色機率統計表作為膚色分類的依據時,其偵測結果會有偵測誤判(false positive)以及偵測漏失(miss detection),造成膚色偵測的雜訊以及不完整。However, the conventional technique uses statistical methods to generate skin color probability statistics when offline. However, when the skin color probability statistics table is used as the basis for skin color classification, the detection result may have false positive and detection. Missing detection, noise and incompleteness of skin color detection.

本發明內容之一目的是在提供一種膚色偵測方法以及膚色偵測系統,其校正模組可以即時的降低膚色偵測誤判率和偵測漏失率。再者可以根據偵測結果回饋校正畫面,以及手動或自動新增或刪除膚色,來擴大或縮小偵測膚色的範圍。An object of the present invention is to provide a skin color detecting method and a skin color detecting system, wherein the correcting module can instantly reduce the skin color detection false positive rate and detect the missing rate. In addition, the correction screen can be fed back according to the detection result, and the skin color can be added or deleted manually or automatically to expand or reduce the range of detecting the skin color.

為達上述目的,本發明內容之一技術樣態係關於一種膚色偵測方法。膚色偵測方法包含以下步驟:取得一影像;根據校正基準以對影像進行參數校正;根據影像的像素,向膚色機率統計表進行查表以產生查表結果;根據至少一自動校正準則對查表結果進行判斷以產生判斷結果;以及根據判斷結果以修正膚色機率統計表。In order to achieve the above object, a technical aspect of the present invention relates to a skin color detecting method. The skin color detecting method comprises the steps of: obtaining an image; performing parameter correction on the image according to the calibration reference; and performing a table lookup on the skin color probability table according to the pixels of the image to generate a table lookup result; and checking the table according to at least one automatic correction criterion The result is judged to generate a judgment result; and the skin color probability statistics table is corrected based on the judgment result.

根據本發明一實施例,膚色偵測方法更包含以下步驟:回饋查表結果,並根據查表結果修正校正基準。According to an embodiment of the invention, the skin color detecting method further comprises the steps of: feeding back the table lookup result, and correcting the correction reference according to the table lookup result.

根據本發明另一實施例,膚色偵測方法更包含以下步驟:對複數張圖片進行取樣;對前述些圖片的色彩空間進行量化;以及統計前述些圖片中每一者之顏色為膚色的機率,以產生膚色機率統計表。According to another embodiment of the present invention, the skin color detecting method further includes the steps of: sampling a plurality of pictures; quantizing the color space of the pictures; and counting the probability that the color of each of the pictures is skin color, To generate a skin color probability chart.

根據本發明另一實施例,膚色偵測方法更包含對複數張圖片進行手動膚色標記,對該手動膚色標記結果進行量化,並以之進行統計或監督式機器學習來計算前述些圖片中每一者之顏色為膚色的機率,以產生膚色機率統計表。According to another embodiment of the present invention, the skin color detecting method further includes performing manual skin color marking on the plurality of pictures, quantizing the manual skin color marking result, and performing statistical or supervised machine learning to calculate each of the foregoing pictures. The color of the person is the probability of skin color to produce a skin color probability chart.

根據本發明另一實施例,膚色偵測方法更包含對影像進行影像處理以產生影像處理結果,並根據影像處理結果以新增或修正自動校正準則。According to another embodiment of the present invention, the skin color detecting method further includes performing image processing on the image to generate image processing results, and adding or correcting automatic correction criteria according to the image processing result.

根據本發明再一實施例,根據判斷結果以修正膚色機率統計表的步驟,係每隔一固定影像數目執行一次。According to still another embodiment of the present invention, the step of correcting the skin color probability rate table according to the determination result is performed once every other fixed number of images.

根據本發明又一實施例,根據使用者輸入之膚色以及非膚色樣本,手動校正膚色機率統計表。According to still another embodiment of the present invention, the skin color probability statistics table is manually corrected according to the skin color input by the user and the non-skin color samples.

為達上述目的,本發明內容之另一技術態樣係關於一種膚色偵測系統。膚色偵測系統包含影像輸入模組、參數校正模組、表格存取模組、查表結果儲存模組以及自動校正模組。於操作上,影像輸入模組用以取得影像;參數校正模組包含校正基準,上述參數校正模組係根據校正基準以對影像進行參數校正;自動校正模組用以根據至少一自動校正準則,對查表結果進行判斷以產生判斷結果,並將判斷結果傳送予表格存取模組,上述表格存取模組根據判斷結果,以校正膚色機率統計表,進而使下一次的判斷結果更為正確。In order to achieve the above object, another aspect of the present invention relates to a skin color detecting system. The skin color detection system includes an image input module, a parameter correction module, a table access module, a table lookup result storage module, and an automatic correction module. In operation, the image input module is configured to obtain an image; the parameter correction module includes a calibration reference, the parameter correction module is configured to perform parameter correction on the image according to the calibration reference; and the automatic calibration module is configured to perform according to at least one automatic correction criterion. The result of the look-up table is judged to generate a judgment result, and the judgment result is transmitted to the form access module, and the form access module corrects the skin color probability statistics table according to the judgment result, thereby making the next judgment result more correct. .

根據本發明一實施例,膚色偵測系統更包含回饋校正模組,表格存取模組用以根據影像的像素,向膚色機率統計表進行查表以產生查表結果,上述回饋校正模組由表格存取模組取得查表結果,並回饋查表結果予參數校正模組,參數校正模組會根據查表結果修正參數校正模組的校正基準。According to an embodiment of the invention, the skin color detection system further includes a feedback correction module, and the table access module is configured to perform a table lookup on the skin color probability statistics table according to the pixels of the image to generate a table lookup result, wherein the feedback correction module is configured by The table access module obtains the result of the lookup table, and returns the result of the lookup table to the parameter correction module, and the parameter correction module corrects the calibration reference of the parameter correction module according to the result of the lookup table.

根據本發明另一實施例,膚色偵測系統更包含膚色影像樣本處理模組、量化模組以及統計模組。於操作上,膚色影像樣本處理模組用以對複數張圖片進行自動或手動膚色標記;量化模組用以對色彩空間的顏色作量化,選出一定數量的代表顏色。;以及統計模組採用統計或監督式機器學習的方式來計算前述些圖片中每一代表顏色被標記為膚色及非膚色的次數來計算其為膚色的機率,以產生膚色機率統計表。According to another embodiment of the present invention, the skin color detection system further includes a skin color image sample processing module, a quantization module, and a statistics module. In operation, the skin color image sample processing module is configured to perform automatic or manual skin color marking on a plurality of images; the quantization module is configured to quantize the color of the color space to select a certain number of representative colors. And the statistical module uses statistical or supervised machine learning to calculate the probability that each representative color in each of the aforementioned pictures is marked as skin color and non-skin tone to calculate the skin color probability to generate a skin color probability statistics table.

根據本發明另一實施例,膚色偵測系統更包含影像處理模組,用以對影像進行影像處理以產生影像處理結果,並提供影像處理結果予自動校正模組以新增或修正自動校正準則。於操作上,影像處理模組用以對影像進行影像處理以產生影像處理結果,例如該影像處理模組可執行移動像素偵測、人臉偵測或其他膚色偵測技術等,並提供影像處理結果予自動校正模組的偵測單元計算,計算結果儲存在資料庫用來改變、交集、聯集膚色偵測結果,進而透過自動校正模組修正膚色機率統計表,以擴大或縮小膚色偵測範圍。According to another embodiment of the present invention, the skin color detection system further includes an image processing module for performing image processing on the image to generate image processing results, and providing image processing results to the automatic correction module to add or modify automatic correction criteria. . In operation, the image processing module is configured to perform image processing on the image to generate image processing results. For example, the image processing module can perform motion pixel detection, face detection or other skin color detection technologies, and provide image processing. The result is calculated by the detection unit of the automatic calibration module, and the calculation result is stored in the database for changing, intersecting, and collecting the skin color detection result, and then the skin color probability table is corrected by the automatic correction module to expand or reduce the skin color detection. range.

根據本發明再一實施例,膚色偵測系統中的自動校正模組每隔一固定影像數目將判斷結果傳送予表格存取模組,以修正膚色機率統計表。According to still another embodiment of the present invention, the automatic correction module in the skin color detection system transmits the determination result to the form access module every other fixed number of images to correct the skin color probability statistics table.

根據本發明再一實施例,膚色偵測系統中的手動校正模組,可以依據使用者所提供的膚色或非膚色影像來新增或刪除膚色顏色,使得膚色機率統計表所記錄的膚色像素可以動態調整。According to still another embodiment of the present invention, the manual correction module in the skin color detection system can add or delete skin color according to the skin color or non-skin color image provided by the user, so that the skin color pixel recorded by the skin color probability rate table can be Dynamic Adjustment.

因此,根據本發明之技術內容,本發明實施例提供一種膚色偵測方法以及膚色偵測系統,可藉由自動校正模組、手動校正模組,當膚色偵測系統以及方法發現膚色偵測錯誤時,可即時校正膚色機率統計表,使膚色機率統計表更加完整,從而使本發明實施例之膚色偵測系統以及方法的判斷更為準確,並可藉由回饋校正模組使得輸入影像的參數調整更為正確,用以讓膚色偵測系統結果更加精準。Therefore, according to the technical content of the present invention, an embodiment of the present invention provides a skin color detecting method and a skin color detecting system, which can detect a skin color detection error when the skin color detecting system and the method are detected by an automatic correction module and a manual correction module. The skin color probability statistics table can be corrected instantly to make the skin color probability statistics table more complete, so that the skin color detecting system and the method of the embodiment of the present invention are more accurate, and the parameters of the input image can be made by the feedback correcting module. The adjustment is more correct to make the skin detection system result more accurate.

此外,由於本發明實施例之膚色偵測系統以及方法得以每隔固定影像數目才藉由校正機制來對膚色機率統計表予以修正,因此,本發明實施例之膚色偵測系統以及方法可在不過度利用系統資源的狀況下,修正膚色機率統計表。In addition, the skin color detection system and method of the embodiment of the present invention can correct the skin color probability statistics table by the correction mechanism every fixed image number. Therefore, the skin color detection system and method of the embodiment of the present invention can be Correct the skin color probability statistics in the case of excessive use of system resources.

為了使本揭示內容之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施例,圖式中相同之號碼代表相同或相似之元件。但所提供之實施例並非用以限制本發明所涵蓋的範圍,而結構運作之描述非用以限制其執行之順序,任何由元件重新組合之結構,所產生具有均等功效的裝置,皆為本發明所涵蓋的範圍。In order to make the description of the present disclosure more complete and complete, reference is made to the accompanying drawings and the accompanying drawings. However, the embodiments provided are not intended to limit the scope of the invention, and the description of the operation of the structure is not intended to limit the order of its execution, and any device that is recombined by the components produces equal devices. The scope covered by the invention.

其中圖式僅以說明為目的,並未依照原尺寸作圖。另一方面,眾所週知的元件與步驟並未描述於實施例中,以避免對本發明造成不必要的限制。The drawings are for illustrative purposes only and are not drawn to the original dimensions. On the other hand, well-known elements and steps are not described in the embodiments to avoid unnecessarily limiting the invention.

第1圖係依照本發明一實施例繪示一種膚色偵測系統1000的方塊示意圖。如圖所示,膚色偵測系統1000包含影像輸入模組1010、參數校正模組1030、表格存取模組1060、查表結果產生模組1050、回饋校正模組1040、自動校正模組1080以及手動校正模組1100。FIG. 1 is a block diagram showing a skin color detection system 1000 according to an embodiment of the invention. As shown, the skin color detection system 1000 includes an image input module 1010, a parameter correction module 1030, a table access module 1060, a table lookup result generation module 1050, a feedback correction module 1040, an automatic correction module 1080, and The module 1100 is manually corrected.

於操作上,影像輸入模組1010用以取得影像,所謂影像輸入模組1010泛指任何得以取得影像之設備,例如攝影機、網路磁碟、資料庫等,然本發明並不以此為限。參數校正模組1030包含校正基準,上述參數校正模組1030是根據校正基準以對影像進行參數校正。舉例而言,若校正基準所設定的參數之一是亮度值為130,當影像的亮度值為50的時候,參數校正模組1030會根據校正基準將影像的亮度值增加80,而使影像的亮度值達到130,然本發明並不以此為限,參數校正模組1030除影像之亮度值以外,亦可校正其餘參數。In operation, the image input module 1010 is used to acquire images. The image input module 1010 refers to any device that can obtain images, such as a camera, a network disk, a database, etc., but the invention is not limited thereto. . The parameter correction module 1030 includes a calibration reference, and the parameter correction module 1030 performs parameter correction on the image according to the calibration reference. For example, if one of the parameters set by the calibration reference is a luminance value of 130, when the luminance value of the image is 50, the parameter correction module 1030 increases the luminance value of the image by 80 according to the calibration reference, thereby making the image The brightness value reaches 130, but the invention is not limited thereto. The parameter correction module 1030 can correct the remaining parameters in addition to the brightness value of the image.

此外,表格存取模組1060用以根據影像的像素,向膚色機率統計表1070進行查表以產生查表結果,此查表結果可暫存在查表結果儲存模組1050,或者被直接傳送予回饋校正模組1040與自動校正模組1080,在本實施例中,表格存取模組1060可以包含查詢表格、儲存表格、載入表格、取得顏色膚色機率、設定顏色膚色機率、設定顏色是否為膚色等功能,實際實施時不以此為限。In addition, the table access module 1060 is configured to perform a lookup table according to the pixels of the image to the skin color probability rate table 1070 to generate a table lookup result, and the result of the table lookup may be temporarily stored in the table lookup result storage module 1050, or directly transmitted to the table lookup module 1050. In the embodiment, the table access module 1060 can include a query form, a storage form, a loading form, a color skin color probability, a color skin color probability, and a color setting. Functions such as skin color are not limited to the actual implementation.

自動校正模組1080用以根據至少一自動校正準則,對查表結果進行判斷以產生判斷結果,並將判斷結果傳送予表格存取模組1060,上述表格存取模組1060根據判斷結果,以修正膚色機率統計表1070。舉例而言,前述自動校正準則可為孤立點(isolated point)判斷法,自動校正模組1080根據孤立點判斷法對查表結果進行判斷的方式如下所述段所述。The automatic correction module 1080 is configured to determine the result of the lookup table according to the at least one automatic correction criterion to generate a determination result, and transmit the determination result to the form access module 1060, and the form access module 1060 determines, according to the determination result, Correct the skin color probability table 1070. For example, the foregoing automatic correction criterion may be an isolated point judgment method, and the automatic correction module 1080 determines the result of the lookup table according to the isolated point judgment method as described in the following paragraph.

在前述影像中的一個九宮格的像素矩陣內,若中間的孤立像素之查表結果是膚色,而周圍的八個像素之查表結果均非膚色,此時根據孤立點判斷法的規則,會判定中間的孤立像素亦非膚色,上述判斷結果即為中間的孤立像素之RGB值並不代表膚色,此判斷結果會被回傳到表格存取模組1060,上述表格存取模組1060根據判斷結果,將膚色機率統計表1070中的上述孤立像素RGB值修正為非膚色。然上述自動校正準則並非限定於孤立點判斷法,熟習此技藝者當可選擇性地採用適當的判斷法則以作為上述自動校正準則。In the pixel matrix of a nine-square grid in the above image, if the result of the lookup of the isolated pixel in the middle is skin color, and the results of the surrounding eight pixels are not skin color, then according to the rule of the isolated point judgment method, it is determined The isolated pixel in the middle is also not the skin color. The result of the above judgment is that the RGB value of the isolated pixel in the middle does not represent the skin color, and the result of the determination is transmitted back to the table access module 1060, and the table access module 1060 determines the result according to the judgment. The above-described isolated pixel RGB values in the skin color probability table 1070 are corrected to be non-skin color. However, the above automatic correction criterion is not limited to the isolated point judgment method, and those skilled in the art can selectively adopt an appropriate judgment rule as the above-described automatic correction criterion.

上述自動校正方式可藉由一系列的偵測單元1082來實現,其用以自動計算假膚色像素(false positive)以及假非膚色像素(miss detection),透過表格存取模組1060校正膚色機率統計表。以下列舉幾種偵測單元1082之偵測模式:The above automatic correction method can be implemented by a series of detecting units 1082 for automatically calculating false positive pixels and false non-skin detections, and correcting skin color probability statistics through the table access module 1060. table. The detection modes of several detection units 1082 are listed below:

1. 在偵測結果中,一個像素是膚色像素,其相鄰n像素(九宮格)皆不是膚色像素,表示此孤立點(isolated point)為假膚色像素(false positive),則修正此顏色為非膚色,n可以為一常數值(例如:7或8)。1. In the detection result, one pixel is a skin color pixel, and its adjacent n pixels (nine squares) are not skin color pixels, indicating that the isolated point is a false skin color (false positive), then the color is corrected to be non- For skin tone, n can be a constant value (for example: 7 or 8).

2. 在偵測結果中,一個像素是非膚色像素,其相鄰n像素皆是膚色像素,表示此孤立點isolated point為假非膚色像素(miss detection),則可再輔以其他法則測試此顏色是否為膚色,通過則修正此顏色為膚色,n可以為一常數值(例如:7或8)。2. In the detection result, one pixel is a non-skinning pixel, and the adjacent n pixels are skin color pixels, indicating that the isolated point is a false non-skin detection pixel, and the color can be tested by other laws. Whether it is skin color, if it is corrected, this color is skin color, and n can be a constant value (for example: 7 or 8).

3. 在偵測結果中,使用雜訊偵測技術偵測膚色像素,則雜訊為假膚色像素,修正此顏色為非膚色。例如可用以對膚色影像進行除雜訊,並將已去除雜訊的影像扣除原本的影像而得到雜訊,膚色機率統計表1070即可根據前述影像處理結果來修正。3. In the detection result, the noise detection technology is used to detect the skin color pixel, and the noise is a false skin color pixel, and the color is corrected to be non-skin color. For example, it is possible to perform noise removal on the skin image, and subtract the original image from the noise-removed image to obtain noise, and the skin color probability table 1070 can be corrected according to the image processing result.

4.在偵測結果中,使用膚色像素侵蝕、擴張運算,再以其他法則測試此擴張後顏色是否為膚色,通過則修正此顏色為膚色。4. In the detection result, use the skin color pixel erosion, expansion operation, and then test whether the color after expansion is skin color by other rules, and then correct this color to skin color.

此外,膚色偵測系統1000更包含手動校正模組1100,其用以依據使用者所提供的膚色或非膚色影像來新增或刪除膚色機率統計表1070中標記為膚色的顏色。據此,本發明實施例之膚色偵測系統1000在此提供使用者主動修正膚色機率統計表1070的機制。In addition, the skin color detection system 1000 further includes a manual correction module 1100 for adding or deleting colors marked as skin color in the skin color chance statistics table 1070 according to the skin color or non-skin color images provided by the user. Accordingly, the skin color detection system 1000 of the embodiment of the present invention provides a mechanism for the user to actively correct the skin color probability rate table 1070.

在一實施例中,回饋校正模組1040會根據查表結果修正參數校正模組1030的校正基準,因此,可使參數校正模組1030對原始影像進行白平衡、自動曝光、軟硬體參數等進行校正,使得膚色機率查表的輸入更為正確。舉例而言,表格存取模組1060根據影像中每個像素的RGB值向膚色機率統計表1070進行查表,以決定影像中每個像素是否為膚色,隨後,產生查表結果。此查表結果會被回饋予回饋校正模組1040,參數校正模組1030藉此來修正校正基準。然本發明之影像的像素表示方式並非限定於RGB模式,亦可選擇性地採用不同色彩空間(color space)來實現。In an embodiment, the feedback correction module 1040 corrects the calibration reference of the parameter correction module 1030 according to the result of the lookup table. Therefore, the parameter correction module 1030 can perform white balance, automatic exposure, soft and hard parameters, and the like on the original image. Make corrections so that the input of the skin tone rate table is more correct. For example, the table access module 1060 looks up the skin color probability table 1070 according to the RGB value of each pixel in the image to determine whether each pixel in the image is a skin color, and then generates a table lookup result. The result of this lookup is fed back to the feedback correction module 1040, by which the parameter correction module 1030 corrects the calibration reference. However, the pixel representation of the image of the present invention is not limited to the RGB mode, and may be selectively implemented using different color spaces.

如上所述,由於本發明實施例之膚色偵測系統1000包含了校正機制,藉由自動校正模組1080、手動校正模組1100,當膚色偵測系統1000發現膚色偵測錯誤時,可即時校正膚色機率統計表1070,使膚色機率統計表1070更加完整,並即時地降低膚色偵測誤判率和偵測漏失率,從而使本發明實施例之膚色偵測系統1000的判斷更為準確。並可藉由回饋校正模組1040使得輸入影像的參數調整更為正確,用以讓膚色偵測系統結果更加精準。As described above, the skin color detection system 1000 of the embodiment of the present invention includes a correction mechanism. When the skin color detection system 1000 detects a skin color detection error, the skin color detection system 1000 can immediately correct the skin color detection system 1000. The skin color probability statistics table 1070 makes the skin color probability rate table 1070 more complete, and instantly reduces the skin color detection false positive rate and the detection leakage rate, thereby making the judgment of the skin color detection system 1000 of the embodiment of the present invention more accurate. The feedback correction module 1040 can be used to make the parameter adjustment of the input image more correct, so that the result of the skin color detection system is more accurate.

本發明實施例膚色偵測系統1000之所以要對膚色機率統計表1070進行校正,是由於偵測結果會有偵測誤判(false positive)以及偵測漏失(miss detection),造成膚色偵測的雜訊以及不完整。上述各校正模組可以即時的降低膚色偵測誤判率和偵測漏失率。再者可以根據偵測結果手動校正或自動校正以新增或刪除膚色,進而擴大或縮小偵測膚色的範圍。此些校正可視實際應用需求,以持續性或間歇性的方式進行。In the embodiment of the present invention, the skin color detection system 1000 is required to correct the skin color probability rate table 1070 because the detection result may have a false positive and a miss detection, resulting in a complex skin color detection. News and incomplete. Each of the above correction modules can instantly reduce the skin color detection false positive rate and detect the leakage rate. In addition, it can be manually corrected or automatically corrected according to the detection result to add or delete skin color, thereby expanding or reducing the range of detecting skin color. These corrections can be made in a continuous or intermittent manner depending on the actual application requirements.

在一實施例中,膚色偵測系統1000更包含膚色影像樣本處理模組1110、量化模組1120以及統計模組1130。於操作上,膚色影像樣本處理模組1110用以對複數張圖片進行自動或手動膚色標記;量化模組1120用以對自動或手動膚色標記結果進行量化;以及統計模組1130採用統計或監督式機器學習的方式來計算前述些圖片中每一者之顏色為膚色的機率,以產生膚色機率統計表1070。In an embodiment, the skin color detection system 1000 further includes a skin color image sample processing module 1110, a quantization module 1120, and a statistics module 1130. In operation, the skin color image sample processing module 1110 is configured to perform automatic or manual skin color marking on a plurality of images; the quantization module 1120 is configured to quantize the automatic or manual skin color marking result; and the statistical module 1130 adopts statistical or supervised The machine learning method calculates the probability that each of the aforementioned pictures is a skin color to generate a skin color probability table 1070.

詳細而言,膚色影像樣本處理模組1110對複數張圖片進行自動或手動膚色標記,再由量化模組1120對色彩空間的顏色作量化,選出一定數量的代表顏色。接著,統計模組1130採用統計或監督式機器學習的方式計算每一個代表顏色的膚色機率,若統計出來的膚色機率大於一閥值,則前述顏色會被判定為膚色,而後將每一顏色是否為膚色的判定結果製作成一個表格,前述表格即為膚色機率統計表1070。In detail, the skin color image sample processing module 1110 performs automatic or manual skin color marking on a plurality of pictures, and then the quantization module 1120 quantizes the color of the color space to select a certain number of representative colors. Then, the statistical module 1130 calculates the skin color probability of each representative color by means of statistical or supervised machine learning. If the calculated skin color probability is greater than a threshold, the color is determined to be the skin color, and then each color is determined. A table is created for the determination result of the skin color, and the above table is the skin color probability table 1070.

舉例而言,膚色機率統計表1070的訓練方式可為對複數張圖片自動或手動來圈選或標記膚色像素,接著,決定統計表所記載的顏色數量多寡,並使用量化演算法決定統計表的代表色。隨後,計算圖片中每一像素顏色經量化演算法以決定是統計表的哪一顏色,並紀錄屬於膚色或非膚色的次數,再來,計算每一顏色屬於膚色的機率。最後,設定一閥值,若任一顏色的膚色機率大於此閥值,則將此顏色設定為膚色,反之則設定為非膚色。上述膚色機率統計表1070如表一所示。For example, the skin color probability statistics table 1070 can be used to automatically or manually circle or mark skin color pixels, and then determine the number of colors recorded in the statistical table, and use a quantization algorithm to determine the statistical table. represent color. Then, each pixel color in the picture is calculated by a quantization algorithm to determine which color of the statistical table is, and the number of times belonging to the skin color or non-skin color is recorded, and then the probability that each color belongs to the skin color is calculated. Finally, set a threshold. If the color of any color is greater than the threshold, set the color to skin tone, otherwise set it to non-skin tone. The above skin color probability statistics table 1070 is as shown in Table 1.

如表一所示,最左側為顏色標號,C1、C2以及C3可分別代表色彩空間的三頻道,Positives(a)代表顏色被紀錄為膚色的次數、Negatives(b)代表顏色被紀錄為非膚色的次數,Prob(a/a+b)代表顏色為膚色的比率,Results(th=0.4)為最終判定顏色是否為膚色的結果。As shown in Table 1, the leftmost color label, C1, C2, and C3 represent the three channels of the color space, Positives(a) represents the number of times the color is recorded as skin color, and Negatives(b) represents the color recorded as non-skin. The number of times, Prob (a / a + b) represents the ratio of the color to the skin color, and Results (th = 0.4) is the result of the final determination of whether the color is the skin color.

舉例而言,表一中標號為0的顏色被紀錄為膚色的次數為50次,被紀錄為非膚色的次數為100次,則其為膚色的比率為0.33,在此,設定一閥值(th)為0.4,由於前述顏色的膚色比率低於0.4,因此前述顏色被判定為非膚色(No)。然上述閥值所採用之數值並非用以限定本發明,熟習此技藝者可選擇性地採用適當之閥值來實現本發明。For example, if the color numbered 0 in Table 1 is recorded as 50 times for skin color and 100 times for non-skin color, the ratio of skin color is 0.33. Here, a threshold is set ( Th) is 0.4, and since the skin color ratio of the aforementioned color is less than 0.4, the aforementioned color is judged to be non-skin tone (No). However, the values used in the above thresholds are not intended to limit the invention, and those skilled in the art can selectively implement the invention with appropriate thresholds.

在另一實施例中,膚色偵測系統1000更包含影像處理模組1090,用以對影像進行影像處理以產生影像處理結果,並提供影像處理結果予自動校正模組以新增或修正自動校正準則。於操作上,影像處理模組1090用以對影像進行影像處理以產生影像處理結果,例如該影像處理模組1090可執行移動像素偵測、人臉偵測或其他膚色偵測技術等,並提供影像處理結果予自動校正模組1080的偵測單元1082計算,計算結果儲存在資料庫1084用來改變、交集、聯集膚色偵測結果,進而透過自動校正模組1080修正膚色機率統計表1070,進一步擴大或縮小膚色偵測範圍。In another embodiment, the skin color detection system 1000 further includes an image processing module 1090 for performing image processing on the image to generate image processing results, and providing image processing results to the automatic correction module to add or correct automatic corrections. Guidelines. In operation, the image processing module 1090 is configured to perform image processing on the image to generate image processing results. For example, the image processing module 1090 can perform motion pixel detection, face detection, or other skin color detection technologies, and provide The image processing result is calculated by the detecting unit 1082 of the automatic correction module 1080, and the calculation result is stored in the database 1084 for changing, intersecting, and collecting the skin color detection result, and then the skin color probability table 1070 is corrected by the automatic correction module 1080. Further expand or reduce the skin color detection range.

在任選的一實施例中,膚色偵測系統1000中的自動校正模組1080每隔一固定影像數目,例如每隔60個影像,將判斷結果傳送予表格存取模組1060,由表格存取模組1060根據判斷結果以修正膚色機率統計表1070。然其並非用以限定本發明,熟習此技藝者得選擇性地採用適當之採樣間距來實施本發明,如此一來,由於本發明實施例之膚色偵測系統1000得以每隔固定影像數目才藉由校正機制來對膚色機率統計表1070予以修正,因此,本發明實施例之膚色偵測系統1000可在不過度利用系統資源的狀況下,修正膚色機率統計表1070,使膚色機率統計表1070更加完整,從而使本發明實施例之膚色偵測系統1000的判斷更為準確。In an optional embodiment, the automatic correction module 1080 in the skin color detection system 1000 transmits the determination result to the table access module 1060 every other fixed number of images, for example, every 60 images, and saves the table by the table. The module 1060 retrieves the skin color probability table 1070 based on the determination result. However, it is not intended to limit the present invention, and those skilled in the art can selectively implement the present invention by using appropriate sampling intervals. Thus, the skin color detection system 1000 of the embodiment of the present invention can be borrowed every fixed number of images. The skin color probability rate table 1070 is modified by the correction mechanism. Therefore, the skin color detection system 1000 of the embodiment of the present invention can correct the skin color probability rate table 1070 without excessively utilizing system resources, so that the skin color probability rate table 1070 is further improved. The integrity is such that the judgment of the skin color detection system 1000 of the embodiment of the present invention is more accurate.

在一實施例中,膚色偵測系統1000的自動校正模組1080包含偵測單元1082與資料庫1084,其中資料庫1084包含自動校正準則,偵測單元1082由資料庫1084取得自動校正準則,並根據自動校正準則對查表結果進行判斷以產生判斷結果。In an embodiment, the automatic correction module 1080 of the skin color detection system 1000 includes a detection unit 1082 and a database 1084, wherein the database 1084 includes an automatic correction criterion, and the detection unit 1082 obtains an automatic correction criterion from the database 1084, and The result of the look-up table is judged according to the automatic correction criterion to generate a judgment result.

於再一實施例中,膚色偵測系統1000更包含手動校正模組1100,其用以依據使用者所提供的膚色或非膚色影像來新增或刪除膚色機率統計表1070中標記為膚色的顏色。據此,本發明實施例之膚色偵測系統1000在此提供使用者主動修正膚色機率統計表1070的機制。In another embodiment, the skin color detection system 1000 further includes a manual correction module 1100 for adding or deleting colors marked as skin color in the skin color probability table 1070 according to the skin color or non-skin color image provided by the user. . Accordingly, the skin color detection system 1000 of the embodiment of the present invention provides a mechanism for the user to actively correct the skin color probability rate table 1070.

第2圖係依照本發明另一實施例繪示一種膚色偵測方法200之流程示意圖。如圖所示,膚色偵測方法包含以下步驟:取得一影像(步驟210);根據校正基準以對影像進行參數校正(步驟230);根據影像的像素,向膚色機率統計表進行查表以產生查表結果(步驟240);回饋查表結果,並根據查表結果修正校正基準(步驟250);根據至少一自動校正準則對查表結果進行判斷以產生判斷結果(步驟260);以及根據判斷結果以修正膚色機率統計表(步驟270)。FIG. 2 is a schematic flow chart of a skin color detecting method 200 according to another embodiment of the present invention. As shown, the skin color detection method includes the steps of: acquiring an image (step 210); performing parameter correction on the image according to the calibration reference (step 230); and performing a table lookup to the skin color probability table according to the pixel of the image to generate Checking the result of the table (step 240); feeding back the result of the lookup table, and correcting the correction reference according to the result of the lookup table (step 250); determining the result of the lookup table according to at least one automatic correction criterion to generate a judgment result (step 260); The result is to correct the skin tone probability table (step 270).

請一併參照第1圖與第2圖。在步驟210中,取得影像的步驟可藉由影像輸入模組1010來執行,前述影像輸入模組1010泛指任何得以取得影像之設備,例如攝影機、網路磁碟、資料庫等,然本發明並不以此為限。請參照步驟230,可藉由參數校正模組1030根據校正基準以對影像進行參數校正,上述參數校正模組1030內包含校正基準。舉例而言,若校正基準所設定的參數之一是亮度值為130,當影像的亮度值為50時,參數校正模組1030會根據校正基準將影像的亮度值增加80,而使影像的亮度值達到130,然本發明並不以此為限,參數校正模組1030除影像之亮度值以外,亦可校正其餘參數。Please refer to Figure 1 and Figure 2 together. In step 210, the step of acquiring an image may be performed by the image input module 1010. The image input module 1010 generally refers to any device that can obtain images, such as a camera, a network disk, a database, etc., but the present invention Not limited to this. Referring to step 230, the parameter correction module 1030 can perform parameter correction on the image according to the calibration reference. The parameter correction module 1030 includes a calibration reference. For example, if one of the parameters set by the calibration reference is a brightness value of 130, when the brightness value of the image is 50, the parameter correction module 1030 increases the brightness value of the image by 80 according to the calibration reference, thereby making the brightness of the image. The value reaches 130, but the invention is not limited thereto. The parameter correction module 1030 can correct the remaining parameters in addition to the brightness value of the image.

於步驟240中,可藉由表格存取模組1060根據影像的像素向膚色機率統計表1070進行查表以產生查表結果。此外,此查表結果可暫存在查表結果儲存模組1050,或者被直接回饋予參數校正模組1030,並藉由參數校正模組1030根據查表結果修正校正基準。In step 240, the table access module 1060 can perform a lookup table according to the pixels of the image to the skin color probability rate table 1070 to generate a lookup result. In addition, the result of the lookup may be temporarily stored in the lookup result storage module 1050, or directly fed back to the parameter correction module 1030, and the parameter correction module 1030 may correct the calibration reference according to the result of the lookup table.

舉例而言,可藉由表格存取模組1060根據影像中每個像素的RGB值來向膚色機率統計表1070進行查表,以決定影像中每個像素是否為膚色,隨後,產生查表結果。然本發明之影像的像素表示方式並非限定於RGB模式,亦可選擇性地採用不同色彩空間(color space)來實現。For example, the table access module 1060 can perform a lookup to the skin color probability table 1070 according to the RGB value of each pixel in the image to determine whether each pixel in the image is a skin color, and then generate a table lookup result. However, the pixel representation of the image of the present invention is not limited to the RGB mode, and may be selectively implemented using different color spaces.

請參照步驟260,可藉由自動校正模組1080根據至少一自動校正準則對查表結果進行判斷以產生判斷結果,而於步驟270中可藉由表格存取模組1060根據判斷結果以修正膚色機率統計表1070。舉例而言,前述自動校正準則可為孤立點(isolated point)判斷法,而藉由自動校正模組1080根據孤立點判斷法來對查表結果進行判斷的方式已詳細記載於第1圖的相關說明中,在此不作贅述。Referring to step 260, the auto-correction module 1080 can determine the result of the look-up table according to the at least one automatic correction criterion to generate a determination result. In step 270, the table access module 1060 can correct the skin color according to the judgment result. Probability statistics table 1070. For example, the foregoing automatic correction criterion may be an isolated point judgment method, and the manner in which the automatic correction module 1080 determines the result of the look-up table according to the isolated point judgment method has been described in detail in the correlation of FIG. 1 . In the description, it will not be described here.

如上所述,由於本發明實施例之膚色偵測方法200得以實現校正機制,藉由此校正機制,當膚色偵測方法200運作發現錯誤時,可即時修正前述錯誤,並同步修正膚色機率統計表1070,使膚色機率統計表1070更加完整,從而使本發明實施例之膚色偵測方法200的判斷更為準確。As described above, the skin color detecting method 200 of the embodiment of the present invention can implement the correction mechanism. By using the correcting mechanism, when the skin color detecting method 200 finds an error, the error can be corrected immediately, and the skin color probability statistics table can be synchronously corrected. 1070, the skin color probability statistics table 1070 is more complete, so that the judgment of the skin color detecting method 200 of the embodiment of the present invention is more accurate.

本發明實施例所揭露的膚色偵測方法200之所以要對膚色機率統計表1070進行校正,是由於偵測結果會有偵測誤判(false positive)以及偵測漏失(miss detection),造成膚色偵測的雜訊以及不完整。上述各校正模組可以即時的降低膚色偵測誤判率和偵測漏失率。再者可以根據偵測結果回饋校正輸入畫面以及手動校正或自動校正以新增或刪除膚色,進而擴大或縮小偵測膚色的範圍。此些校正可每張畫面都進行,或間歇性的實作。The reason why the skin color detecting method 200 disclosed in the embodiment of the present invention corrects the skin color probability meter 1070 is that the detection result may have false positive and miss detection, resulting in skin color detection. The noise is not complete. Each of the above correction modules can instantly reduce the skin color detection false positive rate and detect the leakage rate. In addition, the correction input screen can be fed back according to the detection result, and the manual correction or the automatic correction can be added to add or delete the skin color, thereby expanding or reducing the range of detecting the skin color. These corrections can be made for each picture, or intermittently.

上述自動校正方式可藉由一系列的偵測單元182來實現,其用以自動計算假膚色像素(false positive)以及假非膚色像素(miss detection),透過表格存取模組1060校正(例如:新增或刪除)膚色機率統計表。偵測單元182之偵測模式已詳細記載於第1圖的說明中,在此不做贅述。The above automatic correction method can be implemented by a series of detecting units 182 for automatically calculating false positive pixels and false non-skin detections, and correcting them through the table access module 1060 (for example: Add or remove) skin color probability statistics. The detection mode of the detecting unit 182 has been described in detail in the description of FIG. 1 and will not be described herein.

在一實施例中,膚色偵測方法200更包含以下步驟:對影像進行影像處理以產生影像處理結果,並根據影像處理結果以修正膚色機率統計表1070(步驟280)。In an embodiment, the skin color detecting method 200 further includes the following steps: performing image processing on the image to generate an image processing result, and correcting the skin color probability table 1070 according to the image processing result (step 280).

在步驟280中,對影像進行影像處理以產生影像處理結果,並提供影像處理結果予自動校正模組以新增或修正自動校正準則。該步驟可藉由影像處理模組1090來執行,舉例而言,影像處理模組1090用以對影像進行影像處理以產生影像處理結果,例如該影像處理模組1090可執行移動像素偵測、人臉偵測或其他膚色偵測技術等,並提供影像處理結果予自動校正模組1080的偵測單元1082計算,計算結果儲存在資料庫1084用來改變、交集、聯集膚色偵測結果,進而透過自動校正模組1080修正膚色機率統計表1070,進一步擴大或縮小膚色偵測範圍。In step 280, image processing is performed on the image to generate image processing results, and image processing results are provided to the automatic correction module to add or correct automatic correction criteria. The image processing module 1090 is configured to perform image processing on the image to generate image processing results. For example, the image processing module 1090 can perform motion pixel detection, and the image processing module 1090 can be executed by the image processing module 1090. Face detection or other skin color detection technology, and provide image processing results to the detection unit 1082 of the automatic correction module 1080, and the calculation results are stored in the database 1084 for changing, intersecting, and collecting skin color detection results, and further The skin color probability table 1070 is corrected by the automatic correction module 1080 to further enlarge or reduce the skin color detection range.

在膚色偵測方法200之步驟270中,根據判斷結果以修正膚色機率統計表的步驟,可藉由自動校正模組1080每隔一固定影像數目,例如每隔60個影像,將判斷結果傳送予表格存取模組1060,藉使表格存取模組1060相應地每隔一固定影像數目,根據判斷結果以修正膚色機率統計表1070。然其並非用以限定本發明,熟習此技藝者得選擇性地採用適當之採樣間距來實施本發明。In step 270 of the skin color detecting method 200, according to the step of determining the skin color probability table according to the determination result, the automatic correction module 1080 can transmit the determination result to every fixed number of images, for example, every 60 images. The form access module 1060, if the form access module 1060 correspondingly fixes the number of images, adjusts the skin color probability table 1070 according to the determination result. However, it is not intended to limit the invention, and those skilled in the art will be able to implement the invention selectively using the appropriate sampling spacing.

如此一來,由於本發明實施例之膚色偵測方法200得以每隔固定影像數目才藉由校正機制來對膚色機率統計表1070予以修正,因此,本發明實施例之膚色偵測方法200可在不過度利用系統資源的狀況下,修正膚色機率統計表1070,使膚色機率統計表1070更加完整,從而使本發明實施例之膚色偵測方法200的判斷更為準確。In this manner, the skin color detection method 200 of the embodiment of the present invention can correct the skin color probability rate table 1070 by using a correction mechanism every fixed image number. Therefore, the skin color detection method 200 of the embodiment of the present invention can be However, in the case of utilizing the system resources, the skin color probability table 1070 is corrected to make the skin color probability table 1070 more complete, so that the judgment of the skin color detecting method 200 of the embodiment of the present invention is more accurate.

第3圖係依照本發明又一實施例繪示一種膚色偵測方法中膚色機率統計表之產生方法300流程圖。前述膚色機率統計表之產生方法300包含以下步驟:對複數張圖片進行自動或手動膚色標記(步驟310);對色彩空間的顏色作量化,選出一定數量的代表顏色。(步驟320);採用統計或監督式機器學習的方式來計算前述些圖片中每一者之顏色為膚色的機率(步驟330);以及產生膚色機率統計表(步驟340)。FIG. 3 is a flow chart showing a method 300 for generating a skin color probability rate in a skin color detecting method according to another embodiment of the present invention. The method 300 for generating the skin color probability table includes the following steps: performing automatic or manual skin color marking on a plurality of pictures (step 310); quantifying the color of the color space to select a certain number of representative colors. (Step 320); calculating the probability that the color of each of the aforementioned pictures is the skin color using statistical or supervised machine learning (step 330); and generating a skin color probability statistics table (step 340).

請參照步驟310,可藉由膚色影像樣本處理模組1110對複數張圖片進行自動或手動膚色標記,接著,在步驟320中,對前述些圖片的自動或手動膚色標記結果進行量化的步驟可藉由量化模組1120來執行,隨後,於步驟330中,可藉由統計模組1130來統計前述些圖片中每一者之顏色為膚色的機率,再者,於步驟340中,可藉由統計模組1130來產生膚色機率統計表1070。Referring to step 310, the skin color image sample processing module 1110 may perform automatic or manual skin color mark on the plurality of pictures. Then, in step 320, the step of quantizing the automatic or manual skin color mark results of the pictures may be borrowed. </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> The module 1130 generates a skin tone probability table 1070.

詳細而言,可藉由膚色影像樣本處理模組1110對蒐集到的膚色訓練樣本(前述複數張圖片)進行自動或手動膚色標記,再藉由量化模組1120對膚色訓練樣本的自動或手動膚色標記結果進行量化,接著,藉由統計模組1130採用統計或監督式機器學習的方式來計算每一個顏色的膚色機率,若統計出來的膚色機率大於一閥值,則前述顏色會被判定為膚色,而後將每一顏色是否為膚色的判定結果製作成一個表格,膚色機率統計表1070即由以上步驟所產生。In detail, the skin color image sample processing module 1110 can perform automatic or manual skin color mark on the collected skin color training samples (the plurality of pictures), and then automatically or manually color the skin color training samples by the quantization module 1120. The result of the labeling is quantified, and then the statistical module 1130 uses statistical or supervised machine learning to calculate the skin color probability of each color. If the calculated skin color probability is greater than a threshold, the color is determined to be the skin color. Then, the determination result of whether each color is skin color is made into a table, and the skin color probability table 1070 is generated by the above steps.

於再一實施例中,膚色偵測方法200更包含以下步驟:根據輸入之膚色以及非膚色樣本以手動校正膚色機率統計表。在本步驟中,可藉由手動校正模組1100依據使用者所提供的膚色或非膚色影像來新增或刪除膚色顏色,使得膚色機率統計表所記錄的膚色像素可以動態調整。據此,本發明實施例之膚色偵測方法200在此提供使用者主動修正膚色機率統計表1070的機制。In still another embodiment, the skin color detecting method 200 further includes the step of manually correcting the skin color probability statistics table according to the input skin color and the non-skin color samples. In this step, the skin color can be added or deleted according to the skin color or non-skin color image provided by the user by the manual correction module 1100, so that the skin color pixel recorded by the skin color probability meter can be dynamically adjusted. Accordingly, the skin color detection method 200 of the embodiment of the present invention provides a mechanism for the user to actively correct the skin color probability rate table 1070.

如上所述之膚色偵測方法200皆可由軟體、硬體與/或軔體來執行。舉例來說,若以執行速度及精確性為首要考量,則基本上可選用硬體與/或軔體為主;若以設計彈性為首要考量,則基本上可選用軟體為主;或者,可同時採用軟體、硬體及軔體協同作業。應瞭解到,以上所舉的這些例子並沒有所謂孰優孰劣之分,亦並非用以限制本發明,熟習此項技藝者當視當時需要彈性設計之。The skin color detection method 200 as described above can be performed by software, hardware, and/or carcass. For example, if the execution speed and accuracy are the primary considerations, the hardware and/or the carcass may be mainly used; if the design flexibility is the primary consideration, the software may be mainly used; or At the same time, the software, hardware and carcass work together. It should be understood that the above examples are not intended to limit the present invention, and are not intended to limit the present invention. Those skilled in the art will need to design elastically at that time.

再者,所屬技術領域中具有通常知識者當可明白,膚色偵測方法200中之各步驟依其執行之功能予以命名,僅係為了讓本案之技術更加明顯易懂,並非用以限定該等步驟。將各步驟予以整合成同一步驟或分拆成多個步驟,或者將任一步驟更換到另一步驟中執行,皆仍屬於本揭示內容之實施方式。Moreover, those skilled in the art can understand that the steps in the skin color detection method 200 are named according to the functions they perform, only to make the technology of the present invention more obvious and understandable, and not to limit such step. It is still an embodiment of the present disclosure to integrate the steps into the same step or to split into multiple steps, or to replace any of the steps into another step.

由上述本發明實施方式可知,應用本發明具有下列優點。本發明實施例提供一種膚色偵測系統1000以及膚色偵測方法200,藉由自動校正模組1080及手動校正模組1100,當膚色偵測系統1000以及方法200發現膚色偵測錯誤時,可即時校正膚色機率統計表1070,使膚色機率統計表1070更加完整,並即時地降低膚色偵測誤判率和偵測漏失率,從而使本發明實施例之膚色偵測系統1000以及方法200的判斷更為準確,另外,可以根據偵測結果回饋校正輸入畫面使得查表法更為正確。It will be apparent from the above-described embodiments of the present invention that the application of the present invention has the following advantages. The embodiment of the present invention provides a skin color detection system 1000 and a skin color detection method 200. When the skin color detection system 1000 and the method 200 detect a skin color detection error, the skin color detection system 1000 and the method 200 can immediately detect The skin color probability table 1070 is corrected to make the skin color probability table 1070 more complete, and the skin color detection false positive rate and the detection loss rate are instantly reduced, thereby making the skin color detecting system 1000 and the method 200 of the embodiment of the present invention more Accurate, in addition, the correction input screen can be returned according to the detection result to make the table lookup method more correct.

此外,由於本發明實施例之膚色偵測系統1000以及方法200得以每隔固定影像數目才藉由校正機制來對膚色機率統計表1070予以修正,因此,本發明實施例之膚色偵測系統1000以及方法200可在不過度利用系統資源的狀況下,修正膚色機率統計表1070。In addition, the skin color detection system 1000 and the method 200 of the embodiment of the present invention can correct the skin color probability rate table 1070 by using a correction mechanism every fixed number of images. Therefore, the skin color detection system 1000 of the embodiment of the present invention and The method 200 can correct the skin tone probability table 1070 without excessively utilizing system resources.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.

200...膚色偵測方法200. . . Skin color detection method

210~280...步驟210~280. . . step

300...膚色機率統計表之產生方法300. . . Method for generating skin color probability statistics

310~330...步驟310~330. . . step

1000...膚色偵測系統1000. . . Skin color detection system

1010...影像輸入模組1010. . . Image input module

1030...參數校正模組1030. . . Parameter correction module

1040...回饋模組1040. . . Feedback module

1050...查詢結果儲存模組1050. . . Query result storage module

1060...表格存取模組1060. . . Table access module

1070...膚色機率統計表1070. . . Skin color probability statistics

1080...自動校正模組1080. . . Automatic calibration module

1082...偵測單元1082. . . Detection unit

1084...資料庫1084. . . database

1090...影像處理模組1090. . . Image processing module

1100...手動校正模組1100. . . Manual calibration module

1110...膚色影像樣本處理模組1110. . . Skin color image sample processing module

1120...量化模組1120. . . Quantization module

1130...統計模組1130. . . Statistical module

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.

第1圖係繪示依照本發明一實施例的一種膚色偵測系統之方塊示意圖。FIG. 1 is a block diagram showing a skin color detecting system according to an embodiment of the invention.

第2圖係繪示依照本發明另一實施例的一種膚色偵測方法之流程示意圖。FIG. 2 is a schematic flow chart of a skin color detecting method according to another embodiment of the present invention.

第3圖係繪示依照本發明再一實施例的一種膚色偵測方法中膚色機率統計表之產生方法示意圖。FIG. 3 is a schematic diagram showing a method for generating a skin color probability rate table in a skin color detecting method according to still another embodiment of the present invention.

200...膚色偵測方法200. . . Skin color detection method

210~280...步驟210~280. . . step

Claims (12)

一種膚色偵測方法,包含:取得一影像;根據該影像的像素,向一膚色機率統計表進行查表以產生一查表結果;根據至少一自動校正準則對該查表結果進行判斷以產生一判斷結果,該自動校正準則之自動校正方式包含偵測該影像的像素為假膚色像素或假非膚色像素;以及根據該判斷結果以修正該膚色機率統計表。 A method for detecting a skin color includes: obtaining an image; performing a lookup table on a skin color probability table according to pixels of the image to generate a lookup result; determining the result of the table according to at least one automatic correction criterion to generate a As a result of the determination, the automatic correction mode of the automatic correction criterion includes detecting that the pixel of the image is a false skin color pixel or a false non-skin color pixel; and correcting the skin color probability statistics according to the determination result. 如請求項1所述之膚色偵測方法,更包含:根據一校正基準以對該影像進行參數校正;以及回饋該查表結果,並根據該查表結果修正該校正基準。 The skin color detecting method of claim 1, further comprising: performing parameter correction on the image according to a calibration reference; and feeding back the lookup result, and correcting the calibration reference according to the lookup result. 如請求項1所述之膚色偵測方法,更包含:對複數張圖片進行自動或手動膚色標記;對該自動或手動膚色標記結果進行量化;以及採用統計或監督式機器學習的方式來計算該些圖片中每一者之顏色為膚色的機率,以產生該膚色機率統計表。 The skin color detecting method of claim 1, further comprising: performing automatic or manual skin color marking on the plurality of pictures; quantifying the automatic or manual skin color marking result; and calculating the method by using statistical or supervised machine learning. The color of each of the pictures is the probability of skin color to produce the skin color probability table. 如請求項1所述之膚色偵測方法,更包含:對該影像進行影像處理以產生一影像處理結果,並根據該影像處理結果以新增或修正該自動校正準則。 The skin color detecting method of claim 1, further comprising: performing image processing on the image to generate an image processing result, and adding or correcting the automatic correction criterion according to the image processing result. 如請求項1所述之膚色偵測方法,其中該根據該判斷結果以修正該膚色機率統計表的步驟,係每隔一固定影像數目執行一次。 The skin color detecting method according to claim 1, wherein the step of correcting the skin color probability statistics according to the determination result is performed once every fixed number of images. 如請求項1所述之膚色偵測方法,更包含:根據輸入之膚色以及非膚色樣本以手動校正該膚色機率統計表。 The skin color detecting method of claim 1, further comprising: manually correcting the skin color probability statistics according to the input skin color and the non-skin color samples. 一種膚色偵測系統,包含:一影像輸入模組,用以取得一影像;一表格存取模組,用以根據該影像的像素,向一膚色機率統計表進行查表以產生一查表結果;以及一自動校正模組,用以根據至少一自動校正準則,對該查表結果進行判斷以產生一判斷結果,並將該判斷結果傳送予該表格存取模組,該自動校正準則之自動校正方式包含偵測該影像的像素為假膚色像素或假非膚色像素,其中該表格存取模組根據該判斷結果,以修正該膚色機率統計表。 A skin color detection system includes: an image input module for acquiring an image; and a table access module for performing a table lookup to a skin color probability table according to pixels of the image to generate a lookup result And an automatic correction module, configured to determine the result of the lookup according to the at least one automatic correction criterion to generate a determination result, and transmit the determination result to the form access module, the automatic correction criterion is automatic The calibration method includes detecting a pixel of the image as a false skin color pixel or a false non-skin color pixel, wherein the form access module corrects the skin color probability statistics according to the determination result. 如請求項7所述之膚色偵測系統,更包含:一參數校正模組,包含一校正基準,其中該參數校正模組係根據該校正基準以對該影像進行參數校正;以及一回饋校正模組,用以由表格存取模組取得該查表結果,並回饋該查表結果予該參數校正模組,其中該參數校 正模組會根據該查表結果修正該校正基準。 The skin color detection system of claim 7, further comprising: a parameter correction module, comprising a calibration reference, wherein the parameter correction module performs parameter correction on the image according to the calibration reference; and a feedback correction mode a group for obtaining the result of the lookup table by the form access module, and feeding back the result of the lookup table to the parameter correction module, wherein the parameter is corrected The positive module corrects the calibration reference based on the results of the lookup table. 如請求項7所述之膚色偵測系統,更包含:一膚色影像樣本處理模組,用以對複數張圖片進行自動或手動膚色標記;一量化模組,用以對該自動或手動膚色標記結果進行量化;以及一統計模組,採用統計或監督式機器學習的方式來計算該些圖片中每一者之顏色為膚色的機率,以產生該膚色機率統計表。 The skin color detection system of claim 7, further comprising: a skin color image sample processing module for automatically or manually coloring the plurality of pictures; and a quantization module for marking the automatic or manual skin color The results are quantified; and a statistical module that uses statistical or supervised machine learning to calculate the probability that each of the images is a skin color to produce the skin color probability table. 如請求項7所述之膚色偵測系統,更包含:一影像處理模組,用以對該影像進行影像處理以產生一影像處理結果,並根據該影像處理結果以新增或修正該自動校正準則。 The skin color detection system of claim 7, further comprising: an image processing module for performing image processing on the image to generate an image processing result, and adding or correcting the automatic correction according to the image processing result Guidelines. 如請求項7所述之膚色偵測系統,其中該自動校正模組每隔一固定影像數目將判斷結果傳送予該表格存取模組,由該表格存取模組根據該判斷結果以修正該膚色機率統計表。 The skin color detection system of claim 7, wherein the automatic correction module transmits the determination result to the form access module every other fixed number of images, and the form access module corrects the result according to the determination result. Skin color probability statistics. 如請求項7所述之膚色偵測系統,更包含:一手動校正模組,用以根據輸入該膚色偵測系統的膚色或非膚色影像來新增或刪除該膚色機率統計表中標記為 膚色的顏色。 The skin color detection system of claim 7, further comprising: a manual correction module for adding or deleting the skin color probability rate table according to the skin color or non-skin color image input to the skin color detection system The color of the skin tone.
TW100149977A 2011-12-30 2011-12-30 Method for detecting skin tone and skin tone detection system TWI537877B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100149977A TWI537877B (en) 2011-12-30 2011-12-30 Method for detecting skin tone and skin tone detection system
CN201210331409.2A CN103186785B (en) 2011-12-30 2012-09-07 Skin color detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100149977A TWI537877B (en) 2011-12-30 2011-12-30 Method for detecting skin tone and skin tone detection system

Publications (2)

Publication Number Publication Date
TW201327475A TW201327475A (en) 2013-07-01
TWI537877B true TWI537877B (en) 2016-06-11

Family

ID=48677945

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100149977A TWI537877B (en) 2011-12-30 2011-12-30 Method for detecting skin tone and skin tone detection system

Country Status (2)

Country Link
CN (1) CN103186785B (en)
TW (1) TWI537877B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11036661B2 (en) 2019-02-14 2021-06-15 International Business Machines Corporation Directed interrupt virtualization

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109975299B (en) * 2017-12-27 2022-03-25 群光电子股份有限公司 Light source detection system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6072526A (en) * 1990-10-15 2000-06-06 Minolta Co., Ltd. Image sensing device that can correct colors corresponding to skin in a video signal
CN101251898B (en) * 2008-03-25 2010-09-15 腾讯科技(深圳)有限公司 Skin color detection method and apparatus
KR101549824B1 (en) * 2008-12-11 2015-09-03 삼성전자주식회사 Method and apparatus for correcting skin color and digital photographing apparatus using thereof
TWI452998B (en) * 2009-06-17 2014-09-21 Univ Southern Taiwan System and method for establishing and analyzing skin parameters using digital image multi-area analysis

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11036661B2 (en) 2019-02-14 2021-06-15 International Business Machines Corporation Directed interrupt virtualization

Also Published As

Publication number Publication date
TW201327475A (en) 2013-07-01
CN103186785B (en) 2016-10-26
CN103186785A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
CN106951346B (en) Response time testing method and device
US9305208B2 (en) System and method for recognizing offensive images
JP7391542B2 (en) Image processing system, image processing method, and program
US20210082127A1 (en) Image analysis apparatus, image analysis method, and storage medium to display information representing flow quantity
CN112767392A (en) Image definition determining method, device, equipment and storage medium
CN110458791B (en) Quality defect detection method and detection equipment
JP2017167624A (en) Image processing device, image processing method, and program
CN113887599A (en) Screen light detection model training method, and ambient light detection method and device
CN111798422B (en) Checkerboard corner recognition method, device, equipment and storage medium
US11483463B2 (en) Adaptive glare removal and/or color correction
US20150187051A1 (en) Method and apparatus for estimating image noise
JP6536567B2 (en) Detection apparatus, detection method, and computer program
JP2018163444A (en) Information processing apparatus, information processing method and program
JP2018124441A (en) System, information processing apparatus, information processing method, and program
JP6365355B2 (en) Image generating apparatus and image generating method
KR101662407B1 (en) Method for vignetting correction of image and apparatus therefor
JP2015158626A (en) Calibration device, calibration method and program
TWI537877B (en) Method for detecting skin tone and skin tone detection system
JP2016201026A (en) Image processing device and program
CN105574844B (en) Rdaiation response Function Estimation method and apparatus
JP2009123150A (en) Object detection apparatus and method, object detection system and program
JP6543067B2 (en) Projection system, projector device, imaging device, and program
TWI675646B (en) Breast image analysis method, system, and non-transitory computer-readable medium
US20220157050A1 (en) Image recognition device, image recognition system, image recognition method, and non-transitry computer-readable recording medium
US20230023972A1 (en) Apparatus, method and computer-readable storage medium for detecting objects in a video signal based on visual evidence using an output of a machine learning model