[go: up one dir, main page]

TWI687686B - Method, apparatus and system for examining biological epidermis - Google Patents

Method, apparatus and system for examining biological epidermis Download PDF

Info

Publication number
TWI687686B
TWI687686B TW107106044A TW107106044A TWI687686B TW I687686 B TWI687686 B TW I687686B TW 107106044 A TW107106044 A TW 107106044A TW 107106044 A TW107106044 A TW 107106044A TW I687686 B TWI687686 B TW I687686B
Authority
TW
Taiwan
Prior art keywords
color
photo
samples
color patch
detection
Prior art date
Application number
TW107106044A
Other languages
Chinese (zh)
Other versions
TW201937165A (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 TW107106044A priority Critical patent/TWI687686B/en
Publication of TW201937165A publication Critical patent/TW201937165A/en
Application granted granted Critical
Publication of TWI687686B publication Critical patent/TWI687686B/en

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The present application discloses an examining biological epidermis method for providing quantized parameters with regard to an examining area. The method comprises: taking a photo showing one or more color samples and the examining area by a camera module; searching and locating the color samples on the photo according to multiple predetermined characteristic values of color samples; correcting the photo according to differences between the color samples and the characteristic values; searching and locating the examining area on the corrected photo according to predetermined examining conditions; and calculating the quantized parameters.

Description

生物表皮層檢測方法、裝置與系統 Method, device and system for detecting biological epidermis

本申請係關於一種生物表皮層檢測方法,特別係利用色塊樣本的生物表皮層照相檢測方法。 The present application relates to a method for detecting biological epidermis, in particular to a method for photographic detection of biological epidermis using color block samples.

傳統的生物表皮層檢測,通常是用於檢測傷口、疤痕、色素沉澱等瑕疵,在使用藥物或保養品之後的改善程度。由於藥物或保養品的成效時數較長,通常需要數天乃至數星期的時間才能發揮效果。因此,傳統上是使用照片來保存用藥前的表皮層狀況,然後比對用藥中與用藥後的表皮層狀況。 Traditional biological epidermal layer testing is usually used to detect wounds, scars, pigmentation and other defects, after the use of drugs or maintenance products. Due to the long hours of effectiveness of drugs or maintenance products, it usually takes days or even weeks to achieve their effects. Therefore, traditionally, photographs are used to preserve the condition of the epidermis before medication, and then the condition of the epidermis between medication and after medication is compared.

請參考圖1所示,其為先前技術的表皮層照片100。在照片100當中有一塊瑕疵110。然而,光從照片100來看,並不能看出瑕疵110的色澤與大小。更何況,由於照相時的光源可能不同,相機拍攝參數可能不同,拍攝的角度也可能不同。導致照片比較判讀的困難,不同的判讀人員可能得出不同的判讀結論。而且判讀結果無法量化,無法對藥物或保養品的效果做出準確量測。因此,亟需一種可以將表皮層檢測之結果以量化方式呈現的方法,以便正確評估藥物或保養品的效果。 Please refer to FIG. 1, which is a photo 100 of the epidermis of the prior art. There is a flaw 110 in the photo 100. However, looking at the photo 100, the color and size of the defect 110 cannot be seen. What's more, because the light source may be different when taking pictures, the camera shooting parameters may be different, and the shooting angle may also be different. This makes it difficult to interpret the photos. Different interpreters may come to different interpretations. Moreover, the interpretation results cannot be quantified, and the effects of drugs or maintenance products cannot be accurately measured. Therefore, there is an urgent need for a method that can quantitatively present the results of epidermal layer detection in order to correctly evaluate the effects of drugs or maintenance products.

根據本申請一實施例,提供一種生物表皮層檢測方法,用於 提供一檢測區的量化參數,包含:使用一相機模組拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數。 According to an embodiment of the present application, a biological epidermal layer detection method is provided for Provides a quantization parameter of the detection area, including: using a camera module to take a photo, wherein the photo contains one or more color patch samples and the detection area on the biological epidermis; according to the characteristics of the plurality of color patch samples predicted in advance Value, search and locate one or more of the color patch samples in the photo; correct the photo based on the difference between the feature values of the one or more color patch samples and the multiple color patch samples; according to the preset Detection conditions, search and locate the detection area in the corrected photos; and calculate the quantization parameters of the detection area.

根據本申請的一實施例,提供一種生物表皮層檢測裝置,用於提供一檢測區的量化參數,包含:一相機模組,用於拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;一記憶體模組,用於儲存一檢測應用程式、該照片與多個色塊樣本特徵值;以及一中央處理器,連接至該相機模組與該記憶體模組,用於執行該檢測應用程式的以下各個步驟:根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數。 According to an embodiment of the present application, a biological epidermal layer detection device is provided for providing quantization parameters of a detection area, including: a camera module for taking a photo, wherein the photo includes one or more color patch samples And the detection area on the biological epidermis; a memory module for storing a detection application, the photo and the characteristic values of a plurality of color patch samples; and a central processor connected to the camera module and the memory The body module is used to execute the following steps of the detection application: search and locate one or more of the color patch samples in the photo according to the previously predicted feature values of the plurality of color patch samples; according to one or more of the The difference between the characteristic values of the color patch samples and the plurality of color patch samples is used to correct the photo; the detection area is searched and located in the corrected photo according to the detection conditions preset in advance; and the quantization parameter of the detection area is calculated.

根據本申請的一實施例,提供一種生物表皮層檢測系統,用於提供一檢測區的量化參數,包含:至少一個色塊樣本;以及一生物表皮層檢測裝置。該生物表皮層檢測裝置的實施例如上所述。 According to an embodiment of the present application, a biological epidermal layer detection system is provided for providing a quantitative parameter of a detection area, including: at least one color patch sample; and a biological epidermal layer detection device. The embodiment of the biological epidermal layer detection device is as described above.

根據上述的各個實施例,本申請提供了可以將表皮層檢測之結果以量化方式呈現的方法、裝置與系統,可以正確評估藥物或保養品的效果。 According to the above embodiments, the present application provides a method, device, and system that can quantitatively present the results of epidermal layer detection, and can accurately evaluate the effects of drugs or maintenance products.

100‧‧‧照片 100‧‧‧Photo

110‧‧‧瑕疵或檢測區 110‧‧‧Defective or detection area

200‧‧‧照片 200‧‧‧Photo

210‧‧‧色塊樣本 210‧‧‧color sample

212‧‧‧藍色色塊 212‧‧‧Blue color block

214‧‧‧紅色色塊 214‧‧‧Red color block

216‧‧‧綠色色塊 216‧‧‧ green color block

300‧‧‧表皮層檢測系統 300‧‧‧Epidermal layer detection system

310‧‧‧色塊樣本 310‧‧‧Color sample

320‧‧‧相機模組 320‧‧‧Camera module

330‧‧‧輸出入裝置橋接器 330‧‧‧ I/O device bridge

340‧‧‧螢幕模組 340‧‧‧ screen module

350‧‧‧記憶體模組 350‧‧‧Memory module

360‧‧‧中央處理器 360‧‧‧ CPU

400‧‧‧表皮層檢測方法 400‧‧‧Epidermal layer detection method

410~490‧‧‧步驟 410~490‧‧‧ steps

500‧‧‧顏色色塊 500‧‧‧Color block

501‧‧‧第一像素點 501‧‧‧ First pixel

502‧‧‧第二像素點 502‧‧‧ second pixel

503‧‧‧第三像素點 503‧‧‧ third pixel

504‧‧‧第四像素點 504‧‧‧ fourth pixel

512‧‧‧向量 512‧‧‧ vector

513‧‧‧向量 513‧‧‧ Vector

520‧‧‧斜率線 520‧‧‧ slope line

522‧‧‧平均線 522‧‧‧Average

524‧‧‧向量 524‧‧‧ Vector

526‧‧‧平均線 526‧‧‧Average

534‧‧‧向量 534‧‧‧ vector

600‧‧‧照片 600‧‧‧Photo

610‧‧‧連線 610‧‧‧Connect

620‧‧‧色塊樣本 620‧‧‧Color block sample

630‧‧‧黃色色塊 630‧‧‧Yellow color block

700‧‧‧照片 700‧‧‧Photo

712‧‧‧色塊樣本 712‧‧‧ color block sample

714‧‧‧色塊樣本 714‧‧‧ color block sample

722‧‧‧虛擬色塊樣本 722‧‧‧ virtual color sample

724‧‧‧虛擬色塊樣本 724‧‧‧ virtual color sample

800‧‧‧表皮層檢測方法 800‧‧‧Epidermal layer detection method

810~880‧‧‧步驟 810~880‧‧‧Step

910‧‧‧投影位置 910‧‧‧Projection position

913‧‧‧第一長度 913‧‧‧ First length

915‧‧‧斜率線 915‧‧‧ slope line

920‧‧‧投影位置 920‧‧‧Projection position

925‧‧‧斜率線 925‧‧‧ slope line

930‧‧‧投影位置 930‧‧‧Projection position

932‧‧‧第二長度 932‧‧‧Second length

935‧‧‧斜率線 935‧‧‧ slope line

950‧‧‧斜率線之連線 950‧‧‧ Connection of slope line

1010‧‧‧投影位置 1010‧‧‧Projection position

1015‧‧‧斜率線 1015‧‧‧ slope line

1020‧‧‧投影位置 1020‧‧‧Projection position

1025‧‧‧斜率線 1025‧‧‧ slope line

1050‧‧‧二次曲線 1050‧‧‧Conic

圖1為先前技術的表皮層瑕疵的照片之示意圖。 FIG. 1 is a schematic diagram of a photograph of a defect in the epidermis of the prior art.

圖2為根據本申請一實施例的一照片之示意圖。 FIG. 2 is a schematic diagram of a photograph according to an embodiment of the present application.

圖3為根據本申請一實施例的表皮層檢測系統之一方塊示意圖。 FIG. 3 is a block diagram of an epidermal layer detection system according to an embodiment of the present application.

圖4為根據本申請一實施例的表皮層檢測方法之一流程示意圖。 FIG. 4 is a schematic flow chart of one method of epidermal layer detection according to an embodiment of the present application.

圖5A為根據本申請一實施例的色塊檢測點之一示意圖。 FIG. 5A is a schematic diagram of a color patch detection point according to an embodiment of the present application.

圖5B為根據本申請一實施例的色塊校正斜率之一示意圖。 FIG. 5B is a schematic diagram of color block correction slope according to an embodiment of the present application.

圖5C為根據本申請一實施例的色塊之二維校正斜率之一示意圖。 FIG. 5C is a schematic diagram of a two-dimensional corrected slope of a color patch according to an embodiment of the application.

圖6為根據本申請一實施例的一照片之示意圖。 6 is a schematic diagram of a photograph according to an embodiment of the present application.

圖7為根據本申請一實施例的一照片校正之示意圖。 7 is a schematic diagram of a photo correction according to an embodiment of the present application.

圖8為根據本申請一實施例的表皮層檢測方法之一流程示意圖。 FIG. 8 is a schematic flow chart of a method for detecting an epidermal layer according to an embodiment of the present application.

圖9為根據本申請一實施例的顏色校正之一示意圖。 9 is a schematic diagram of color correction according to an embodiment of the present application.

圖10為根據本申請一實施例的顏色校正之一示意圖。 FIG. 10 is a schematic diagram of color correction according to an embodiment of the present application.

本申請將詳細描述一些實施例如下。然而,除了所揭露的實施例外,本申請亦可以廣泛地運用在其他的實施例施行。本申請的範圍並不受該些實施例的限定,乃以其後的申請專利範圍為準。而為提供更清楚的描述及使熟悉該項技藝者能理解本申請的內容,圖示內各部分並沒有依照其相對的尺寸而繪圖,某些尺寸與其他相關尺度的比例會被突顯而顯得誇張,且不相關的細節部分亦未完全繪出,以求圖示的簡潔。此外,本申請的各流程圖所示的各個步驟當中,可以插入其他與本申請無關的其他步驟。除非有因果依存關係,本申請也不限定各個步驟的執行順序。 This application will describe some embodiments in detail as follows. However, in addition to the disclosed implementation exceptions, the present application can also be widely applied in other embodiments. The scope of this application is not limited by these embodiments, but is subject to the scope of subsequent patent applications. In order to provide a clearer description and enable those familiar with the art to understand the content of this application, the parts in the illustration are not drawn according to their relative sizes, and the ratio of some sizes to other related scales will be highlighted and appear Exaggerated, and irrelevant details have not been completely drawn, in order to make the illustration concise. In addition, among the steps shown in the flowcharts of this application, other steps not related to this application may be inserted. Unless there is a cause-and-effect dependency relationship, this application does not limit the execution order of each step.

請參考圖2所示,其為根據本申請一實施例的一照片200之示意圖。該照片200包含了至少一表面層瑕疵110與至少一色塊樣本210。後者係放置或貼合在該表面層瑕疵110附近,用於校正該照片200的顏色參考值,並作為比例尺使用。換言之,該色塊樣本210所包含的顏色、形狀與尺寸是事先已知的。 Please refer to FIG. 2, which is a schematic diagram of a photo 200 according to an embodiment of the present application. The photo 200 includes at least one surface layer defect 110 and at least one color block sample 210. The latter is placed or attached near the surface layer defect 110 for correcting the color reference value of the photo 200 and used as a scale. In other words, the color, shape and size contained in the color patch sample 210 are known in advance.

在一實施例中,當該照片200為黑白照片時,該色塊樣本210可以是由複數個灰階所組成的色塊。舉例來說,除了傳統的可見光波段相機之外,該照片可以是由紅外線相機拍攝,或可以由紫外線相機拍攝。其灰階深度可以是8位元或更深的位元數。在另一實施例中,當該照片200為彩色照片時,該色塊樣本210可以是由複數個顏色所組成的色塊。在圖2所示的實施例當中,該色塊樣本210包含了藍色色塊212、紅色色塊214與綠色色塊216,恰好是三原色。但本申請並不限定該色塊樣本210只包含這三原色。舉例來說,該色塊樣本210可以包含CMYK青色、洋紅色、黃色、與黑色四色色票。 In an embodiment, when the photo 200 is a black-and-white photo, the color patch sample 210 may be a color patch composed of a plurality of gray levels. For example, in addition to the conventional visible band camera, the photo may be taken by an infrared camera, or may be taken by an ultraviolet camera. The grayscale depth can be 8 bits or deeper. In another embodiment, when the photo 200 is a color photo, the color patch sample 210 may be a color patch composed of a plurality of colors. In the embodiment shown in FIG. 2, the color block sample 210 includes a blue color block 212, a red color block 214 and a green color block 216, which are exactly three primary colors. However, the present application does not limit that the color block sample 210 contains only the three primary colors. For example, the color block sample 210 may include CMYK cyan, magenta, yellow, and black four-color swatches.

當相機拍攝之後,該照片200可以儲存為各式色彩模式表示的像素,以第一軸與第二軸的雙維陣列形式來表示。關於常用的色彩模式,可以是常見的RGB色彩模式、CMYK色彩模式、CIE L*a*b*色彩模式、索引模式、灰階模式等。這些色彩模式可以進行互相轉換。 After the camera shoots, the photo 200 can be stored as pixels represented by various color modes, and represented by a two-dimensional array of a first axis and a second axis. About the commonly used color mode, it can be the common RGB color mode, CMYK color mode, CIE L*a*b* color mode, index mode, gray scale mode, etc. These color modes can be converted to each other.

請參考圖3所示,其為根據本申請一實施例的表皮層檢測系統300之一方塊示意圖。該檢測系統300包含至少一色塊樣本310與一檢測裝置。該檢測裝置更包含一相機模組320、一輸出入裝置橋接器330、一螢幕模組340、一中央處理器360與一記憶體模組350。舉例而言,該檢測裝置可 以是智慧型手機、筆記型電腦、平板電腦或其他形式的計算機。 Please refer to FIG. 3, which is a block diagram of an epidermal layer detection system 300 according to an embodiment of the present application. The detection system 300 includes at least one color block sample 310 and a detection device. The detection device further includes a camera module 320, an input/output device bridge 330, a screen module 340, a central processing unit 360, and a memory module 350. For example, the detection device may It can be a smartphone, laptop, tablet or other form of computer.

如前所述,該相機模組320可以用於拍攝可見光波段、紅外線波段與/或紫外線波段的數位相機。其可以將拍攝的照片200輸出至該輸出入裝置橋接器330作為輸入。兩者之間的介面可以是工業標準的USB、SATA、ATA、PCI-E、PCI、SCSI等介面,也可以是專屬介面。本申請並不限制兩者的介面。該輸出入裝置橋接器330可以將該照片200輸出至該螢幕模組340以供使用者檢視。在一實施例中,該檢測裝置可以提供預覽功能,亦即在未儲存成照片之前,先在螢幕模組340之上讓使用者預覽將要拍攝的照片。 As mentioned above, the camera module 320 can be used for digital cameras that capture visible light, infrared, and/or ultraviolet light. It can output the taken photo 200 to the input/output device bridge 330 as an input. The interface between the two can be the industry standard USB, SATA, ATA, PCI-E, PCI, SCSI and other interfaces, or it can be a dedicated interface. This application does not limit the interface between the two. The I/O device bridge 330 can output the photo 200 to the screen module 340 for viewing by the user. In one embodiment, the detection device may provide a preview function, that is, before the photo is stored, the user is allowed to preview the photo to be taken on the screen module 340.

該輸出入裝置橋接器330連接到一中央處理器360,用於執行作業系統與檢測應用程式,並控制該檢測裝置。該中央處理器360連接到該記憶體模組360,用於讀取並執行其中所包含之非揮發性儲存媒體所儲存的作業系統與檢測應用程式。該相機模組320所拍攝的該照片200也可以儲存於該記憶體模組350之內。該檢測應用程式係由複數個指令與資料所組成,包含事先已知的色塊樣本特徵與歷史紀錄,可用於校正該照片200,以執行表皮層檢測之結果以量化方式呈現的檢測方法,以便正確評估藥物或保養品用於該瑕疵110的效果。在一實施例中,該檢測應用程式可以經由未示於圖中的網路模組下載於該記憶體模組350。舉例而言,該檢測應用程式可以由蘋果公司的App Store與/或谷歌公司的Google Play線上商店下載。 The I/O device bridge 330 is connected to a central processing unit 360 for executing the operating system and testing applications, and controlling the testing device. The central processing unit 360 is connected to the memory module 360 for reading and executing the operating system and testing application programs stored in the non-volatile storage medium contained therein. The photo 200 taken by the camera module 320 can also be stored in the memory module 350. The detection application is composed of a plurality of commands and data, including previously known color sample characteristics and historical records, which can be used to correct the photo 200 to perform a detection method of quantitatively presenting the results of epidermal layer detection in order to Correctly evaluate the effect of the drug or maintenance product on the defect 110. In one embodiment, the detection application can be downloaded to the memory module 350 via a network module not shown in the figure. For example, the detection application can be downloaded from Apple’s App Store and/or Google’s Google Play online store.

請參考圖4所示,其為根據本申請一實施例的表皮層檢測方法400之一流程示意圖。該檢測方法可以適用於圖3之中央處理器360所執行的檢測應用程式,或者說該檢測應用程式可以用於執行表皮層檢測方法400 的部分步驟。 Please refer to FIG. 4, which is a schematic flowchart of a method 400 for epidermal layer detection according to an embodiment of the present application. The detection method can be applied to the detection application program executed by the central processor 360 of FIG. 3, or the detection application program can be used to execute the epidermal layer detection method 400 Part of the steps.

如前所述,本申請的各流程圖所示的各個步驟當中,可以插入其他與本申請無關的其他步驟。除非有因果依存關係,本申請也不限定各個步驟的執行順序。該檢測方法400包含以下步驟: As mentioned above, among the steps shown in the flowcharts of this application, other steps not related to this application may be inserted. Unless there is a cause-and-effect dependency relationship, this application does not limit the execution order of each step. The detection method 400 includes the following steps:

步驟410:在所欲檢測的生物表皮層的檢測區附近貼上一色塊樣本。該檢測區包含所欲檢測的至少一瑕疵區域,如圖2所示的瑕疵110。該色塊樣本可以是圖2所示的色塊樣本210。當欲檢測的生物為合作目標時,本步驟可以使用自動化機器進行。舉例而言,當欲檢測人臉時,可以請受檢者貼近一臉架,由機器手臂將色塊樣本貼在人臉之上。該臉架和機器手臂可以是圖3的檢測裝置之一部份,連接到該輸出入裝置橋接器330,受到該中央處理器360所執行之檢測應用程式的控制。 Step 410: Paste a color block sample near the detection area of the biological epidermal layer to be detected. The detection area includes at least one defect area to be detected, such as the defect 110 shown in FIG. 2. The color patch sample may be the color patch sample 210 shown in FIG. 2. When the organism to be detected is a cooperative target, this step can be performed using an automated machine. For example, when you want to detect a human face, you can ask the subject to be close to a face frame, and the robot arm will paste the color block sample on the human face. The face frame and the robot arm may be part of the detection device of FIG. 3, connected to the I/O device bridge 330 and controlled by the detection application executed by the central processor 360.

步驟420:使用一相機模組拍攝一照片,該照片包含該色塊樣本與檢測區。該照片可以為圖2的照片200,該相機模組可以是圖3的相機模組320。 Step 420: Use a camera module to take a photo, the photo contains the color block sample and the detection area. The photo may be the photo 200 of FIG. 2, and the camera module may be the camera module 320 of FIG. 3.

步驟430:根據事先預知的色塊樣本特徵,在該照片中搜尋並定位該色塊樣本。這裡所指的色塊樣本特徵,可以包含但不限於色塊樣本的顏色、尺寸、形狀與其相互排列的位置關係。由於現在已經有很多開源軟體提供照片中人臉辨識或物件辨識的功能,本申請認為本領域的普通技術人員可以使用現有技術在該照片中搜尋並定位該色塊樣本,故不再加以贅敘。接著,流程可以進入可選的步驟440,或直接進入步驟450。當然,在搜尋不到色塊樣本的情況下,流程要回到步驟420。 Step 430: Search and locate the color block sample in the photo according to the characteristics of the color block sample predicted in advance. The characteristics of the color patch samples referred to here may include, but are not limited to, the color, size, shape of the color patch samples and the positional relationship between them. Since there are already many open source softwares that provide the functions of face recognition or object recognition in photos, this application believes that ordinary people in the art can use existing technology to search and locate the color block samples in the photos, so they will not be repeated here. . Then, the process may enter optional step 440, or directly enter step 450. Of course, if no color block samples can be found, the process returns to step 420.

可選的步驟440:判斷該色塊樣本是否合格?本申請可以包 含更多子步驟來判斷該色塊樣本是否合格。舉例而言,可以判斷該色塊樣本是否符合一定的尺寸大小,例如其總面積要大於幾個像素,或者是每個顏色的面積要大於幾個像素。在另一實施例中,可以判斷該色塊樣本當中,每一顏色色塊中表現該顏色的最大值與最小值之差值,是否小於某一範圍。當該差值過大時,可能表示該顏色色塊已經部分褪色,或受到陰影的影響而無法合用。在更一實施例中,可以判斷該色塊樣本當中,每一顏色色塊中表現非該顏色的最大值是否大於某一範圍。舉例而言,當紅色色塊的像素當中,具有過大的藍色值或綠色值,可能表示該紅色色塊已經部分褪色,或受到陰影的影響而無法合用。 Optional step 440: determine whether the color patch sample is qualified? This application can be packaged There are more sub-steps to judge whether the color patch sample is qualified. For example, it can be judged whether the color patch sample meets a certain size, for example, its total area is greater than a few pixels, or the area of each color is greater than a few pixels. In another embodiment, it can be determined whether the difference between the maximum value and the minimum value of the color in each color block sample is less than a certain range. When the difference is too large, it may indicate that the color patch has partially faded, or is affected by the shadow and cannot be used together. In a further embodiment, it can be determined whether the maximum value of each color color block that is not the color in the color block sample is greater than a certain range. For example, when the pixels of the red color block have an excessively large blue or green value, it may indicate that the red color block has partially faded, or is affected by shadows and cannot be used together.

當步驟440的判斷結果為合格時,則流程進入步驟450。當判斷結果為不合格時,流程回到步驟420。以上的步驟420~440,可以在前述的預覽模式進行。當使用者進行預覽時,檢測應用程式可以就當前的預覽畫面進行這幾個步驟的運算結果,判斷預覽畫面是否合格。當預覽畫面合格時,可以讓使用者儲存該照片。否則,將不讓使用者儲存該照片並進行下列步驟。 When the judgment result in step 440 is qualified, the flow proceeds to step 450. When the judgment result is unqualified, the flow returns to step 420. The above steps 420-440 can be performed in the aforementioned preview mode. When the user previews, the detection application can perform the calculation results of these steps on the current preview screen to determine whether the preview screen is qualified. When the preview screen is qualified, the user can save the photo. Otherwise, the user will not be allowed to save the photo and perform the following steps.

步驟450:根據該色塊樣本與該色塊樣本特徵之差異,對該照片進行顏色校正。本申請可以包含更多子步驟來進行顏色校正。在一實施例中,可以將色塊樣本的各顏色值進行平均,得到與該色塊樣本之顏色值特徵的一差值。然而對該照片的各像素進行相應於該差值的補償,以得到校正後的照片。在本申請的後面小節當中,將會對顏色校正做進一步的解釋。 Step 450: Perform color correction on the photo according to the difference between the characteristics of the color patch sample and the color patch sample. The application may include more sub-steps to perform color correction. In an embodiment, each color value of the color patch sample may be averaged to obtain a difference value from the color value feature of the color patch sample. However, each pixel of the photo is compensated corresponding to the difference to obtain a corrected photo. In later sections of this application, color correction will be explained further.

步驟460:根據事先預設的檢測條件,在校正後照片中搜尋 並定位至少一個該檢測區。這裡所指的檢測條件,可以包含但不限於瑕疵或檢測區的顏色、尺寸、形狀與其相互排列的位置關係。由於現在已經有很多開源軟體提供照片中人臉辨識或物件辨識的功能,本申請認為本領域的普通技術人員可以使用現有技術在該照片中搜尋並定位形狀不規則的瑕疵或檢測區,故不再加以贅敘。在一實施例中,該瑕疵可以包含但不限於紅腫的傷口、深黑色的結疤、或是表面色素沉澱區。 Step 460: Search in the corrected photos according to the preset detection conditions And locate at least one of the detection areas. The detection conditions referred to herein may include, but are not limited to, the defects, or the color, size, and shape of the detection area and the positional relationship between them. Since there are already many open source softwares that provide functions for face recognition or object recognition in photos, this application believes that ordinary people in the art can use existing technology to search for and locate irregularly shaped defects or detection areas in the photos, so it is not Repeat them again. In one embodiment, the blemishes may include, but are not limited to, red and swollen wounds, deep black scars, or surface pigmented areas.

可選的步驟470:根據該色塊樣本特徵中紀錄的尺寸以及該色塊樣本在該校正後照片的尺寸,計算該檢測區的尺寸與/或面積。由於色塊樣本特徵包含了每個顏色色塊的尺寸,因此可以根據該顏色色塊在該照片中所佔的像素多寡,推估出該檢測區的尺寸。也可以根據該檢測區所佔用的像素多寡,推估出該檢測區的面積。而瑕疵或檢測區的尺寸與面積等量化後的參數,可以用於在步驟480當中,與該檢測區歷史紀錄進行比較,以得到比較結果。 Optional step 470: Calculate the size and/or area of the detection area based on the size recorded in the characteristics of the color patch sample and the size of the corrected photo of the color patch sample. Since the color patch sample features include the size of each color patch, the size of the detection area can be estimated based on how many pixels the color patch occupies in the photo. The area of the detection area can also be estimated based on the number of pixels occupied by the detection area. The quantized parameters such as the size or area of the defect or detection area can be used in step 480 to compare with the historical record of the detection area to obtain a comparison result.

可選的步驟480:計算該檢測區的平均顏色、顏色極值等參數。由於每種檢測區所要檢測的參數可能不一,本步驟所指的量化後的參數包含但不限於該檢測區的平均顏色、顏色極值、尺寸、面積等。 Optional step 480: Calculate the average color, color extremum and other parameters of the detection area. Since the parameters to be detected in each detection zone may be different, the quantized parameters referred to in this step include but are not limited to the average color, color extremum, size, area, etc. of the detection zone.

可選的步驟490:將參數與該檢測區歷史紀錄進行比較,以得到比較結果。由於前述的參數已經量化,所以可以容易地與歷史紀錄進行比較,得到顏色變深或變淺、尺寸變大或變小,面積擴大或縮小等比較結果,以及依時間改善或惡化的比例情況等。 Optional step 490: Compare the parameter with the historical record of the detection area to obtain a comparison result. Because the aforementioned parameters have been quantified, it can be easily compared with historical records to obtain comparison results such as darker or lighter colors, larger or smaller sizes, area enlargement or reduction, and the proportion of improvement or deterioration over time. .

請參考圖5A所示,其為根據本申請一實施例的色塊檢測點之一示意圖。該顏色色塊500可以為一矩形,包含四個角落像素點501~504。 該檢測應用程式可以利用這四個角落像素點501與504的變化差異,來計算校正線。本領域普通人員可以理解,雖然圖5A是利用矩形作為範例,但本申請並不限於矩形與其四個角落點。可以使用六角形、三角形或其他形狀當中的任意點作為範例。 Please refer to FIG. 5A, which is a schematic diagram of a color patch detection point according to an embodiment of the present application. The color patch 500 may be a rectangle, including four corner pixels 501-504. The detection application can use the difference between these four corner pixels 501 and 504 to calculate the correction line. A person of ordinary skill in the art may understand that although FIG. 5A uses a rectangle as an example, the present application is not limited to a rectangle and its four corner points. Any point among hexagons, triangles, or other shapes can be used as an example.

在圖5A當中,第一像素點501與第二像素點502可以形成一向量512,第一像素點501與第三像素點503可以形成另一向量513。向量512與向量513為相互垂直,經校正後可以分別平行於該照片200的直軸與橫軸。本領域普通人員可以理解向量524與534的形成,故不再此贅敘。每一個向量在相應的顏色上可能具有誤差。此誤差可能來自於距離光源的遠近,或是有無落入陰影。在一理想情況下,光源位於色塊樣本的上方無限遠處。則這四個像素點501~504的像素值應當相同或其誤差小於一預定範圍。然而,當光源不在理想位置時,則這四個像素點501~504的像素值將會有變化。 In FIG. 5A, the first pixel 501 and the second pixel 502 can form a vector 512, and the first pixel 501 and the third pixel 503 can form another vector 513. The vector 512 and the vector 513 are perpendicular to each other, and after correction, they can be parallel to the straight axis and the horizontal axis of the photo 200, respectively. A person of ordinary skill in the art can understand the formation of the vectors 524 and 534, so the details are not repeated here. Each vector may have an error in the corresponding color. This error may come from the distance from the light source, or whether it fell into the shadow. In an ideal situation, the light source is located at infinity above the color patch sample. Then the pixel values of the four pixel points 501-504 should be the same or the error should be less than a predetermined range. However, when the light source is not in the ideal position, the pixel values of these four pixels 501-504 will change.

請參考圖5B所示,其為根據本申請一實施例的色塊校正斜率之一示意圖。舉向量513為例,其右側的第一像素點501所對應的顏色值較大,左側的第三像素點503所對應的顏色值較小,兩者具有一斜率線520。在圖4的步驟450當中,可以根據該斜率線520,將其校正或均等化為一平均線522或另一平均線526。該平均線522係以第一像素點501與第三像素點503之間的平均像素值作為基準。另一平均線526是以顏色值較小的第三像素點503作為基準。依據該向量513所平行的第二軸,對該照片的其他像素點或該檢測區所屬的像素點進行校正。在另一實施例中,還可以顏色值較大的第一像素點501作為基準。圖5B所示範例是對照片的第二軸進行校正,還可 以對第一軸進行校正。 Please refer to FIG. 5B, which is a schematic diagram of a color block correction slope according to an embodiment of the present application. Taking vector 513 as an example, the color value corresponding to the first pixel point 501 on the right side is larger, and the color value corresponding to the third pixel point 503 on the left side is smaller, and both have a slope line 520. In step 450 of FIG. 4, the slope line 520 may be corrected or equalized to an average line 522 or another average line 526. The average line 522 is based on the average pixel value between the first pixel 501 and the third pixel 503. The other average line 526 is based on the third pixel 503 with a smaller color value. According to the second axis parallel to the vector 513, the other pixels of the photo or the pixels to which the detection area belongs are corrected. In another embodiment, the first pixel 501 with a larger color value can also be used as a reference. The example shown in Figure 5B is to correct the second axis of the photo, and also To correct the first axis.

請參考圖5C為根據本申請一實施例的色塊之二維校正斜率之一示意圖。除了圖5B已經示出的對應於第二軸的斜率線520之外,還包含對應於第一軸的斜率線530。該斜率線530可以對應至圖5A的向量512或534。在圖4的步驟450當中,可以根據該斜率線530,將其校正或均等化為一平均線,對該照片的其他像素點或該檢測區所屬的像素點進行校正。本申請不限定對第一軸與第二軸進行校正的順序。 Please refer to FIG. 5C for a schematic diagram of the two-dimensional correction slope of the color patch according to an embodiment of the present application. In addition to the slope line 520 corresponding to the second axis already shown in FIG. 5B, a slope line 530 corresponding to the first axis is also included. The slope line 530 may correspond to the vector 512 or 534 of FIG. 5A. In step 450 of FIG. 4, the slope line 530 may be corrected or equalized to an average line to correct other pixels of the photo or pixels to which the detection area belongs. The application does not limit the order of correcting the first axis and the second axis.

在圖4所示的步驟440當中,可以包含以下的判斷步驟。亦即將向量513與524所分別對應的兩條斜率線進行比較,當兩者的斜率差異過大時,可以判斷該色塊樣本為不合格。也可以將向量512與534所分別對應的兩條斜率線進行比較,當兩者的斜率差異過大時,可以判斷該色塊樣本為不合格。 In step 440 shown in FIG. 4, the following judgment step may be included. That is, the two slope lines corresponding to the vectors 513 and 524 are compared, and when the slope difference between the two is too large, the color patch sample can be judged as unqualified. It is also possible to compare the two slope lines corresponding to the vectors 512 and 534 respectively. When the slope difference between the two is too large, it can be judged that the color patch sample is unqualified.

在一實施例中,可以將向量513與524所對應的兩條斜率線進行平均,以及將向量512與534所對應的兩條斜率線進行平均。接著,利用這兩條平均後的斜率線進行校正。 In one embodiment, the two slope lines corresponding to the vectors 513 and 524 can be averaged, and the two slope lines corresponding to the vectors 512 and 534 can be averaged. Next, the two averaged slope lines are used for correction.

在照片200當中,雖然色塊樣本210在瑕疵110的附近,但如果光源距離兩者其中之一較近,使用圖5A~5C的線性校正方法所造成的誤差可能還是較大。因此,為了減少誤差,可以使用多個色塊樣本來進行校正。 In the photo 200, although the color patch sample 210 is near the defect 110, if the light source is closer to one of the two, the error caused by using the linear correction method of FIGS. 5A-5C may still be large. Therefore, in order to reduce errors, multiple color patch samples can be used for correction.

請參考圖6所示,其為根據本申請一實施例的一照片600之示意圖。和照片200的不同之處在於,照片600包含了色塊樣本210與不同的色塊樣本620。在一實施例中,照片600可以包含複數個相同的色塊樣本。如 圖6的實施例中,照片600可以包含複數個色塊樣本,其中至少有兩個色塊樣本是不同的。而且在一實施例當中,多個色塊樣本當中的其中兩個色塊樣本的一連線610,通過該檢測區110。可以透過兩個色塊樣本210與620的像素點在第一軸與第二軸的投影,對該檢測區110進行校正。由於檢測區110落在各軸的兩個像素點之間,因此可以對檢測區110進行較佳的校正。 Please refer to FIG. 6, which is a schematic diagram of a photograph 600 according to an embodiment of the present application. The difference from the photo 200 is that the photo 600 includes the color patch samples 210 and the different color patch samples 620. In an embodiment, the photo 600 may include a plurality of samples of the same color patch. Such as In the embodiment of FIG. 6, the photo 600 may include a plurality of color patch samples, at least two color patch samples of which are different. Furthermore, in an embodiment, a connection line 610 of two color patch samples among the plurality of color patch samples passes through the detection area 110. The detection area 110 can be corrected by projecting the pixels of the two color patch samples 210 and 620 on the first axis and the second axis. Since the detection area 110 falls between two pixels on each axis, the detection area 110 can be better corrected.

該連線610可以是兩個色塊樣本210與620之中心的連線,也可以是兩個色塊樣本210與620之某特定點的連線。該連線610可以是一條線,也可以是一塊區域。舉例來說,可以是色塊樣本210的左下角與右上角,以及色塊樣本620的左下角與右上角所構成的區域。本申請並不限定色塊樣本的形狀,因此也不限定多個色塊樣本之間的連線區域。 The connection line 610 may be a connection line between the centers of the two color block samples 210 and 620, or may be a connection line of a specific point of the two color block samples 210 and 620. The connection line 610 may be a line or an area. For example, it may be a region formed by the lower left corner and the upper right corner of the color patch sample 210, and the lower left corner and the upper right corner of the color patch sample 620. The present application does not limit the shape of the color patch samples, and therefore does not limit the connecting area between the plurality of color patch samples.

在一實施例中,可以先單獨根據色塊樣本210,對色塊樣本620進行校正。由於色塊樣本620更包含一黃色色塊630,可以將校正後的該黃色色塊630與該色塊樣本之特徵進行比較。當其誤差值落在一範圍內時,可以判斷根據該色塊樣本210的校正是有效的。當其誤差值超出一範圍時,則可以判斷單獨根據該色塊樣本210的校正是無效的,可以重拍照片,或是改由兩個色塊樣本210與620的聯合校正。本申請並不限定色塊樣本620只能包含由藍色與綠色混合的黃色色塊630,可以包含其他顏色的色塊。例如,多餘的顏色色塊可以是藍色與紅色混合而成的紫色,或可以是綠色和藍色混合而成的青綠色等。 In one embodiment, the color patch samples 620 may be corrected according to the color patch samples 210 alone. Since the color patch sample 620 further includes a yellow color patch 630, the characteristics of the corrected yellow color patch 630 and the color patch sample can be compared. When the error value falls within a range, it can be judged that the correction according to the color patch sample 210 is effective. When the error value exceeds a range, it can be judged that the correction based on the color patch sample 210 alone is invalid, the photo can be retaken, or the joint correction of the two color patch samples 210 and 620 can be changed instead. The present application does not limit that the color patch sample 620 can only contain a yellow color patch 630 mixed with blue and green, and can include color patches of other colors. For example, the excess color patch may be purple mixed with blue and red, or may be green-blue mixed with green and blue.

在圖4所示的實施例當中,主要是使用單一色塊樣本的多個像素點進行校正。然而,受限於色塊樣本的尺寸,這些像素點之間的距離並不大,其狹小的取樣空間未必代表整張照片的情況。在圖6所示的實施例 當中,可以使用多個色塊樣本的多個像素點進行校正。由於這些像素點跨越過欲檢測的瑕疵,因此其較大的取樣空間比較可以代表整張照片的情況。 In the embodiment shown in FIG. 4, multiple pixels of a single color block sample are mainly used for correction. However, due to the size of the color block samples, the distance between these pixels is not large, and their narrow sampling space does not necessarily represent the situation of the entire photo. In the embodiment shown in Figure 6 Among them, multiple pixels of multiple color patch samples can be used for correction. Since these pixels cross over the flaws to be detected, their larger sampling space can represent the situation of the entire photo.

在圖2所示的實施例當中,單一色塊樣本的方向可以通過一次旋轉而跟照片的兩個軸對齊。但是在圖6所示的實施例當中,多個色塊樣本的方向未必是相互對齊的。其分別與照片的兩軸也未必是對齊的。 In the embodiment shown in FIG. 2, the direction of a single color patch sample can be aligned with the two axes of the photo through one rotation. However, in the embodiment shown in FIG. 6, the directions of the plurality of color patch samples are not necessarily aligned with each other. They are not necessarily aligned with the two axes of the photo.

請參考圖7所示,其為根據本申請一實施例的一照片校正之示意圖。該照片700包含兩個色塊樣本712與714。可以再對整張照片校正之前,先將兩個色塊樣本712與714分別進行旋轉,分別產生兩個等校的虛擬色塊樣本722與724,分別對齊該照片的第一軸與第二軸。這裡所指的等校是說,色塊樣本712與虛擬色塊樣本722在第一軸與第二軸的斜率都是相當的,色塊樣本714與虛擬色塊樣本724在第一軸與第二軸的斜率也都是相當的。色塊樣本712與虛擬色塊樣本722的面積應當一樣,色塊樣本714與虛擬色塊樣本724的面積也應當一樣。圖6所示實施例的連線610,可以利用原本的兩個色塊樣本712與714進行計算,也可以利用校正後的兩個色塊樣本722與724進行計算,判斷是否通過檢測區。 Please refer to FIG. 7, which is a schematic diagram of a photo correction according to an embodiment of the present application. The photograph 700 contains two color patch samples 712 and 714. Before the whole picture can be corrected, the two color patch samples 712 and 714 are rotated respectively to generate two equal-calibrated virtual color patch samples 722 and 724, respectively, aligned with the first axis and the second axis of the photo . The equivalent calibration here means that the slopes of the color patch sample 712 and the virtual color patch sample 722 on the first axis and the second axis are equivalent, and the color patch sample 714 and the virtual color patch sample 724 are on the first axis and the first The slopes of the two axes are also comparable. The area of the color patch sample 712 and the virtual color patch sample 722 should be the same, and the area of the color patch sample 714 and the virtual color patch sample 724 should also be the same. The connection 610 of the embodiment shown in FIG. 6 can be calculated using the original two color patch samples 712 and 714, or can be calculated using the corrected two color patch samples 722 and 724 to determine whether it passes the detection area.

請參考圖8,其為根據本申請一實施例的表皮層檢測方法800之一流程示意圖。與圖4所示的檢測方法400相比,檢測方法800的不同之處在於使用了多個色塊樣本。該檢測方法可以適用於圖3之中央處理器360所執行的檢測應用程式,或者說該檢測應用程式可以用於執行表皮層檢測方法800的部分步驟。 Please refer to FIG. 8, which is a schematic flowchart of a method 800 for epidermal layer detection according to an embodiment of the present application. Compared with the detection method 400 shown in FIG. 4, the detection method 800 is different in that a plurality of color patch samples are used. The detection method can be applied to the detection application program executed by the central processor 360 of FIG. 3, or the detection application program can be used to execute some steps of the epidermal layer detection method 800.

如前所述,本申請的各流程圖所示的各個步驟當中,可以插入其他與本申請無關的其他步驟。除非有因果依存關係,本申請也不限定 各個步驟的執行順序。該檢測方法800包含以下步驟: As mentioned above, among the steps shown in the flowcharts of this application, other steps not related to this application may be inserted. Unless there are causal dependencies, this application is also not limited The execution order of each step. The detection method 800 includes the following steps:

步驟810:在生物表面層的檢測區附近貼上多個色塊樣本。這些色塊樣本可以相同,也可以不同。在一實施例中,該多個色塊樣本其中兩個的連線通過所欲檢測的區域。當欲檢測的生物為合作目標時,本步驟可以使用自動化機器進行。舉例而言,當欲檢測人臉時,可以請受檢者貼近一臉架,由機器手臂將色塊樣本貼在人臉之上。該臉架和機器手臂可以是圖3的檢測裝置之一部份,連接到該輸出入裝置橋接器330,受到該中央處理器360所執行之檢測應用程式的控制。 Step 810: Paste multiple color patch samples near the detection area of the biological surface layer. These color patch samples may be the same or different. In an embodiment, two of the plurality of color block samples pass through the area to be detected. When the organism to be detected is a cooperative target, this step can be performed using an automated machine. For example, when you want to detect a human face, you can ask the subject to be close to a face frame, and the robot arm will paste the color block sample on the human face. The face frame and the robot arm may be part of the detection device of FIG. 3, connected to the I/O device bridge 330 and controlled by the detection application executed by the central processor 360.

步驟820:使用一相機模組拍攝一照片,該照片包含該多個色塊樣本與檢測區。該照片可以為圖6的照片600或圖7的照片700,該相機模組可以是圖3的相機模組320。 Step 820: Use a camera module to take a photo, the photo includes the plurality of color block samples and the detection area. The photo may be the photo 600 of FIG. 6 or the photo 700 of FIG. 7, and the camera module may be the camera module 320 of FIG. 3.

步驟830:根據事先預知的色塊樣本特徵,在該照片中搜尋並定位該多個色塊樣本。這裡所指的色塊樣本特徵,可以包含但不限於色塊樣本的顏色、尺寸、形狀與其相互排列的位置關係。由於現在已經有很多開源軟體提供照片中人臉辨識或物件辨識的功能,本申請認為本領域的普通技術人員可以使用現有技術在該照片中搜尋並定位該多個色塊樣本,故不再加以贅敘。接著,流程可以進入可選的步驟840或850,或直接進入步驟860。當然,在搜尋不到多個色塊樣本的情況下,流程要回到步驟820。 Step 830: Search and locate the plurality of color block samples in the photo according to the characteristics of the color block samples predicted in advance. The characteristics of the color patch samples referred to here may include, but are not limited to, the color, size, shape of the color patch samples and the positional relationship between them. Since there are already many open source softwares that provide the functions of face recognition or object recognition in photos, this application believes that those of ordinary skill in the art can use existing technology to search and locate the multiple color block samples in the photo, so they will not be used again. Repeat. Then, the flow may enter optional step 840 or 850, or directly enter step 860. Of course, if multiple color patch samples cannot be searched, the process returns to step 820.

可選的步驟840:判斷該多個色塊樣本是否合格?本申請可以包含更多子步驟來判斷該色塊樣本是否合格。舉例而言,可以判斷每一個該色塊樣本是否符合一定的尺寸大小,例如其總面積要大於幾個像素,或者是每個顏色的面積要大於幾個像素。在另一實施例中,可以判斷每一 個該色塊樣本當中,每一顏色色塊中表現該顏色的最大值與最小值之差值,是否小於某一範圍。當該差值過大時,可能表示該顏色色塊已經部分褪色,或受到陰影的影響而無法合用。在更一實施例中,可以判斷每一個該色塊樣本當中,每一顏色色塊中表現非該顏色的最大值是否大於某一範圍。舉例而言,當紅色色塊的像素當中,具有過大的藍色值或綠色值,可能表示該紅色色塊已經部分褪色,或受到陰影的影響而無法合用。 Optional step 840: determine whether the plurality of color patch samples are qualified? The application may include more sub-steps to judge whether the color patch sample is qualified. For example, it can be determined whether each of the color patch samples conforms to a certain size, for example, the total area is greater than a few pixels, or the area of each color is greater than a few pixels. In another embodiment, you can judge each Among the color block samples, whether the difference between the maximum value and the minimum value of the color in each color block is less than a certain range. When the difference is too large, it may indicate that the color patch has partially faded, or is affected by the shadow and cannot be used together. In a further embodiment, it can be determined whether the maximum value of each color block in each color block sample that is not the color is greater than a certain range. For example, when the pixels of the red color block have an excessively large blue or green value, it may indicate that the red color block has partially faded, or is affected by shadows and cannot be used together.

當步驟840的判斷結果顯示至少有兩個該色塊樣本為合格時,則流程進入可選的步驟850或步驟860。當判斷結果顯示只有一個或沒有色塊樣本為合格時,流程回到步驟820。以上的步驟820~840,可以在前述的預覽模式進行。當使用者進行預覽時,檢測應用程式可以就當前的預覽畫面進行這幾個步驟的運算結果,判斷預覽畫面是否合格。當預覽畫面合格時,可以讓使用者儲存該照片。否則,將不讓使用者儲存該照片並進行下列步驟。 When the judgment result of step 840 shows that at least two of the color patch samples are qualified, the flow proceeds to optional step 850 or step 860. When the judgment result shows that only one or no color patch samples are qualified, the flow returns to step 820. The above steps 820-840 can be performed in the aforementioned preview mode. When the user previews, the detection application can perform the calculation results of these steps on the current preview screen to determine whether the preview screen is qualified. When the preview screen is qualified, the user can save the photo. Otherwise, the user will not be allowed to save the photo and perform the following steps.

可選的步驟850:根據該照片的軸向,調整該多個色塊樣本。當該多個合格色塊樣本的方向與該照片的方向相差超過一範圍時,可以如圖7所示的實施例,將該些合格色塊樣本分別調整方向成為多個虛擬色塊樣本。這些虛擬色塊樣本與原先的合格色塊樣本的面積應當一致或落於一誤差範圍之內,其對應至第一軸與第二軸的斜率線應當一致或落在另一誤差範圍之內。 Optional step 850: Adjust the plurality of color patch samples according to the axial direction of the photo. When the directions of the plurality of qualified color patch samples differ from the direction of the photo by more than a range, as shown in the embodiment shown in FIG. 7, the directions of the qualified color patch samples may be adjusted into multiple virtual color patch samples respectively. The areas of these virtual color patch samples and the original qualified color patch samples should be consistent or fall within an error range, and the slope lines corresponding to the first axis and the second axis should be consistent or fall within another error range.

步驟860:根據該多個(虛擬)色塊樣本與其色塊樣本特徵之差異,對該照片進行顏色校正。本申請可以包含更多子步驟來進行顏色校正。在一實施例中,可以將各(虛擬)色塊樣本的各顏色值進行平均,得到與 其色塊樣本之顏色值特徵的一差值。然而,根據各差值與各(虛擬)色塊樣本的位置,對該照片的各像素進行相應於各差值的補償,以得到校正後的照片。在本申請的後面小節當中,將會對顏色校正做進一步的解釋。 Step 860: Perform color correction on the photo according to the difference between the characteristics of the plurality of (virtual) color patch samples and the color patch samples. The application may include more sub-steps to perform color correction. In an embodiment, the color values of each (virtual) color patch sample can be averaged to obtain A difference in the color value characteristics of its color block samples. However, according to the position of each difference and each (virtual) color patch sample, each pixel of the photo is compensated corresponding to each difference to obtain a corrected photo. In later sections of this application, color correction will be explained further.

步驟870:根據事先預設的檢測條件,在校正後照片中搜尋並定位至少一個該檢測區。這裡所指的檢測條件,可以包含但不限於瑕疵或檢測區的顏色、尺寸、形狀與其相互排列的位置關係。由於現在已經有很多開源軟體提供照片中人臉辨識或物件辨識的功能,本申請認為本領域的普通技術人員可以使用現有技術在該照片中搜尋並定位瑕疵或檢測區,故不再加以贅敘。在一實施例中,該瑕疵可以包含但不限於紅腫的傷口、深黑色的結疤、或是表面色素沉澱區。在一實施例中,流程800可以繼續執行可選的步驟875,或是執行可選的步驟880、480或490。 Step 870: Search and locate at least one detection area in the corrected photo according to the detection conditions preset in advance. The detection conditions referred to herein may include, but are not limited to, the defects, or the color, size, and shape of the detection area and the positional relationship between them. Since there are many open source softwares that provide functions for face recognition or object recognition in photos, this application believes that ordinary people in the art can use existing technology to search for and locate defects or detection areas in the photos, so they will not be repeated here. . In one embodiment, the blemishes may include, but are not limited to, red and swollen wounds, deep black scars, or surface pigmented areas. In an embodiment, the process 800 may continue to perform the optional step 875, or perform the optional step 880, 480, or 490.

可選的步驟875:判斷該檢測區是否在至少兩個該(虛擬)色塊樣本之間?亦即根據圖6的實施例,判斷至少兩個該(虛擬)色塊樣本之間連線或區域是否通過該檢測區。當該連線或區域並未通過該檢測區時,流程800可以回到步驟820,重新拍攝新照片。當該連線或區域通過該檢測區時,流程800可以繼續執行可選的步驟880、480或490。 Optional step 875: determine whether the detection area is between at least two (virtual) color patch samples? That is, according to the embodiment of FIG. 6, it is determined whether the connection or area between at least two (virtual) color patch samples passes through the detection area. When the connection or area does not pass the detection area, the process 800 can return to step 820 to take a new photo again. When the line or area passes the detection zone, the process 800 may continue to perform optional steps 880, 480, or 490.

可選的步驟880:根據該色塊樣本特徵中紀錄的尺寸以及該兩個(虛擬)色塊樣本在該校正後照片的尺寸,計算該兩個(虛擬)色塊樣本之間的該檢測區的尺寸與/或面積。由於色塊樣本特徵包含了每個顏色色塊的尺寸,因此可以根據該顏色色塊在該照片中所佔的像素多寡,推估出該檢測區的尺寸。也可以根據該檢測區所佔用的像素多寡,推估出該檢測區的面積。而瑕疵或檢測區的尺寸與面積等量化後的參數,可以用於在步驟480 當中,與該檢測區歷史紀錄進行比較,以得到比較結果。 Optional step 880: Calculate the detection area between the two (virtual) color patch samples based on the size recorded in the characteristics of the color patch sample and the size of the two (virtual) color patch samples in the corrected photo Size and/or area. Since the color patch sample features include the size of each color patch, the size of the detection area can be estimated based on how many pixels the color patch occupies in the photo. The area of the detection area can also be estimated based on the number of pixels occupied by the detection area. The quantified parameters such as the size and area of the defect or detection area can be used in step 480 Among them, compare with the historical records of the detection area to get the comparison result.

在一實施例中,多個色塊樣本與其對應色塊樣本特徵中紀錄的尺寸之比例可能不一樣。在此情況下,可以根據該檢測區與該多個色塊樣本的距離,使用內差法來計算該檢測區的尺寸與/或面積。舉例而言,當該檢測區的中心與第一色塊樣本的中心為第一距離D1,該檢測區的中心與第二色塊樣本的中心為第二距離D2,而第一色塊樣本與其特徵的比例尺為R1,第二色塊樣本與其特徵的比例尺為R2,則該檢測區的比例尺可以使用以下的內差法算出:(R1*D1+R2*D2)/(D1+D2)。 In an embodiment, the ratio of the size recorded in the characteristics of the plurality of color patch samples and their corresponding color patch samples may be different. In this case, the size and/or area of the detection area can be calculated using the internal difference method according to the distance between the detection area and the plurality of color patch samples. For example, when the center of the detection zone and the center of the first patch sample are the first distance D1, the center of the detection zone and the center of the second patch sample are the second distance D2, and the first patch sample is The scale of the feature is R1, and the scale of the second color block sample and its feature is R2, then the scale of the detection area can be calculated using the following internal difference method: (R1*D1+R2*D2)/(D1+D2).

請參考圖9所示,其為根據本申請一實施例的顏色校正之一示意圖。當照片上具有兩個以上的色塊樣本時,可以根據圖5A所示的實施例,計算出每一個(虛擬)色塊樣本的每一顏色在第一軸與第二軸的斜率線。在圖9所示的實施例中,兩個色塊樣本在第一軸有兩個投影位置910與920。其在第一軸分別具有兩條斜率線915與925。在整張照片或至少在兩個第一軸投影位置910與920當中,可以假定其斜率是線性地介於斜率線915與925之間。以投影位置930為例,其在第一軸距離投影位置910中心為第一長度913,其在第一軸距離投影位置920中心為第二長度932。因此,投影位置930的斜率線935可以比照前述比例尺的內差算法算出,亦即(斜率915*第一長度913+斜率925*第二長度932)/(第一長度913+第二長度932)。 Please refer to FIG. 9, which is a schematic diagram of color correction according to an embodiment of the present application. When there are more than two color patch samples on the photo, the slope line of each color of each (virtual) color patch sample on the first axis and the second axis can be calculated according to the embodiment shown in FIG. 5A. In the embodiment shown in FIG. 9, the two color patch samples have two projection positions 910 and 920 on the first axis. It has two slope lines 915 and 925 on the first axis, respectively. In the entire photo or at least in the two first-axis projection positions 910 and 920, it can be assumed that the slope is linearly between the slope lines 915 and 925. Taking the projection position 930 as an example, its distance from the center of the projection position 910 on the first axis is the first length 913, and its distance from the center of the projection position 920 on the first axis is the second length 932. Therefore, the slope line 935 of the projection position 930 can be calculated according to the internal difference algorithm of the aforementioned scale, that is, (slope 915*first length 913+slope 925*second length 932)/(first length 913+second length 932) .

因此,針對某一小塊區域,可以針對各個色塊樣本的各顏色分別投影在第一軸與第二軸的斜率線所形成的直線,計算出該小塊區域的兩軸的斜率線。再根據這兩軸的斜率線,對該小塊區域內的像素值進行補償校正。圖9所示的實施例可以適用於圖8的步驟860。 Therefore, for a certain small area, each color of each color block sample can be projected on a straight line formed by the slope lines of the first axis and the second axis, respectively, to calculate the slope lines of the two axes of the small area. Then, according to the slope lines of these two axes, the pixel values in the small block area are compensated and corrected. The embodiment shown in FIG. 9 can be applied to step 860 of FIG. 8.

請參考圖10所示,為根據本申請一實施例的顏色校正之一示意圖。當照片上具有三個以上的色塊樣本時,可以根據圖5A所示的實施例,計算出每一個(虛擬)色塊樣本的每一顏色在第一軸與第二軸的斜率線。和圖9的實施例不同之處在於,圖10具有三個以上的色塊樣本。可以根據每個顏色投影在某一軸的三個以上的斜率值取得一條近似的二次曲線。因此,針對某一小塊區域,可以針對各個色塊樣本的各顏色分別投影在第一軸與第二軸的斜率線所形成的二次曲線,計算出該小塊區域的兩軸的二次曲線。再根據這兩軸的二次曲線,對該小塊區域內的像素值進行補償校正。在另一實施例中,在該小塊區域當中,可以使用斜率線來取代二次曲線,以便減少計算量。圖10所示的實施例同樣可以適用於圖8的步驟860。 Please refer to FIG. 10, which is a schematic diagram of color correction according to an embodiment of the present application. When there are more than three color patch samples on the photo, the slope line of each color of each (virtual) color patch sample on the first axis and the second axis can be calculated according to the embodiment shown in FIG. 5A. The difference from the embodiment of FIG. 9 is that FIG. 10 has more than three color patch samples. An approximate quadratic curve can be obtained according to the slope values of each color projected on a certain axis on more than three. Therefore, for a small area, you can project the quadratic curve formed by the slope lines of the first axis and the second axis for each color of each color block sample, and calculate the quadratic of the two axes of the small area curve. Then, according to the quadratic curves of the two axes, the pixel values in the small block area are compensated and corrected. In another embodiment, in the small area, a slope line can be used instead of the quadratic curve in order to reduce the amount of calculation. The embodiment shown in FIG. 10 can also be applied to step 860 of FIG. 8.

根據本申請一實施例,提供一種生物表皮層檢測方法,用於提供一檢測區的量化參數,包含:使用一相機模組拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數。 According to an embodiment of the present application, a biological epidermal layer detection method is provided, which is used to provide a quantitative parameter of a detection area, including: using a camera module to take a photo, wherein the photo includes one or more color patch samples and a biological epidermis The detection area on the layer; searching and locating one or more of the color patch samples in the photo according to the pre-predicted feature values of the plurality of color patch samples; according to one or more of the color patch samples and the plurality of color patches Correct the photo according to the difference of the sample characteristic value; search and locate the detection area in the corrected photo according to the detection conditions preset in advance; and calculate the quantization parameter of the detection area.

在一範例中,為了加速作業時間,減少操作負擔,生物表皮層檢測方法更包含:在拍攝該照片之前,使用一機械裝置固定欲檢測的生物表皮層,並且將一或多個該色塊樣本貼至生物表皮層。 In one example, in order to speed up the working time and reduce the operating burden, the biological epidermal layer detection method further includes: before taking the photo, a mechanical device is used to fix the biological epidermal layer to be detected, and one or more samples of the color patch Stick to the biological epidermis.

在一範例中,為了確保校正的可靠度與正確性,生物表皮層檢測方法更包含:判斷每一個該色塊樣本是否合格,當至少有一個色塊樣 本合格時,再進行對該照片進行校正的步驟。在一範例中,其中判斷每一個色塊樣本是否合格的步驟,更包含下列步驟的其中之一或其任意組合:判斷該色塊樣本是否大於某一尺寸,當小於該尺寸時,該色塊樣本被判斷為不合格;判斷該色塊樣本的總面積要大於一定數量個像素,當小於該數量個像素時,該色塊樣本被判斷為不合格;判斷該色塊樣本的每一顏色色塊中表現該顏色的最大值與最小值之差值,是否小於某一範圍,當該差值大於該範圍時,該色塊樣本被判斷為不合格;以及判斷該色塊樣本的每一顏色色塊中表現非該顏色的最大值是否大於某一範圍,,當該最大值大於該範圍時,該色塊樣本被判斷為不合格。 In an example, in order to ensure the reliability and correctness of the calibration, the biological epidermal layer detection method further includes: judging whether each color patch sample is qualified, when there is at least one color patch sample When the book is qualified, the steps of correcting the photo are carried out. In an example, the step of judging whether each color patch sample is qualified further includes one of the following steps or any combination thereof: judging whether the color patch sample is larger than a certain size, and when smaller than the size, the color patch The sample is judged to be unqualified; the total area of the color patch sample is judged to be greater than a certain number of pixels, and when it is less than the number of pixels, the color patch sample is judged to be unqualified; each color of the color patch sample is judged Whether the difference between the maximum value and the minimum value of the color in the block is less than a certain range, when the difference is greater than the range, the color block sample is judged as unqualified; and each color of the color block sample is judged Whether the maximum value in the color block that is not the color is greater than a certain range, and when the maximum value is greater than the range, the color block sample is judged as unqualified.

在一範例中,為了提供交互驗證不同色塊樣本的校正步驟,當有兩個以上的該色塊樣本合格時,至少有兩個合格的該色塊樣本是不同的,該兩個不同的色塊樣本包含一第一色塊樣本與一第二色塊樣本,該第二色塊樣本包含該第一色塊樣本所無的一顏色色塊。在一範例中,生物表皮層檢測方法更包含:根據該第一色塊樣本與該多個色塊樣本特徵值的差異,對該第二色塊樣本進行校正,當該顏色色塊與其特徵值的誤差小於一範圍時,再進行對該照片進行校正的步驟。 In an example, in order to provide a calibration step for interactively verifying different color block samples, when there are more than two qualified color block samples, at least two qualified color block samples are different, and the two different colors The block sample includes a first color block sample and a second color block sample. The second color block sample includes a color block that is not included in the first color block sample. In an example, the bioepidermal layer detection method further includes: correcting the second color patch sample based on the difference between the characteristic values of the first color patch sample and the plurality of color patch samples, when the color patch and its characteristic value If the error is less than a range, then correct the photo.

在一範例中,為了確保校正使用的內差法可以適用,當有兩個以上的該色塊樣本合格時,該檢測方法更包含在搜尋與定位到該檢測區時,判斷是否有兩個該色塊樣本的一連線通過該檢測區,當該連線未通過該檢測區時,不計算該檢測區的量化參數。在一範例中,該連線的兩端分別為該兩個色塊樣本之中心。在一範例中,該連線的兩端分別為該兩個色塊樣本之任意像素點。 In an example, in order to ensure that the internal difference method used for calibration is applicable, when more than two samples of the color patch are qualified, the detection method further includes determining whether there are two A connection line of the color patch sample passes through the detection area. When the connection line does not pass the detection area, the quantization parameter of the detection area is not calculated. In an example, the two ends of the connection are the centers of the two color patch samples. In an example, the two ends of the connection are respectively arbitrary pixels of the two color patch samples.

在一範例中,為了利用單一個色塊樣本進行校正,當搜尋並定位到一個色塊樣本時,上述之對該照片進行校正的步驟更包含:取得該色塊樣本其中一顏色色塊的兩個像素點;計算該兩個像素點當中,相應於該顏色色塊的一斜度線;以及根據該斜度線與該顏色,對該照片的其餘像素點進行校正補償。在一範例中,為了方便計算起見,該兩個像素點的連線平行於該照片的一第一軸或一第二軸,其中該第一軸垂直於該第二軸。在一範例中,為了取得最長的距離,該兩個像素點分別位於該顏色色塊的角落或邊緣。 In an example, in order to use a single color block sample for correction, when searching and locating a color block sample, the above-mentioned step of correcting the photo further includes: obtaining two of the color blocks of the color block sample Pixels; calculating a slope line corresponding to the color patch among the two pixels; and correcting and compensating the remaining pixels of the photo according to the slope line and the color. In an example, for convenience of calculation, the connection line of the two pixels is parallel to a first axis or a second axis of the photo, wherein the first axis is perpendicular to the second axis. In an example, in order to obtain the longest distance, the two pixels are located at the corners or edges of the color patch, respectively.

在一範例中,為了使用兩個色塊樣本的內差法,當搜尋並定位到兩個色塊樣本時,上述之對該照片進行校正的步驟更包含:分別取得兩個該色塊樣本其中一顏色色塊的各一個像素點;計算該兩個像素點當中,相應於該顏色色塊的一斜度線;以及根據該斜度線與該顏色,對該照片的其餘像素點進行校正補償。 In an example, in order to use the inner-difference method of two color patch samples, when searching and locating two color patch samples, the above-mentioned step of correcting the photo further includes: obtaining two of the color patch samples separately One pixel of each color patch; calculate a slope line corresponding to the color patch among the two pixels; and correct and compensate the remaining pixels of the photo according to the slope line and the color .

在一範例中,為了使用兩個色塊樣本的內差法,當搜尋並定位到一第一色塊樣本與一第二色塊樣本時,上述之對該照片進行校正的步驟更包含:取得該第一色塊樣本其中一顏色色塊的兩個第一像素點;計算該兩個第一像素點當中,相應於該顏色色塊的一第一斜度線;取得該第二色塊樣本其中該顏色色塊的兩個第二像素點;計算該兩個第二像素點當中,相應於該顏色色塊的一第二斜度線;針對該照片的一像素區域,根據該像素區域距離該第一色塊樣本的一第一長度、該像素區域距離該第二色塊樣本的一第二長度、該第一斜度線與該第二斜度線,計算一斜度線;以及根據該斜度線與該顏色,對該像素區域進行校正補償,其中該兩個第一 像素點的連線、該兩個第二像素點的連線、該第一長度與該第二長度均平行於同一方向。 In an example, in order to use the inner-difference method of two color patch samples, when searching for and locating a first color patch sample and a second color patch sample, the above step of correcting the photo further includes: obtaining Two first pixels of one color patch of the first color patch sample; calculating a first slope line corresponding to the color patch of the two first pixel dots; obtaining the second color patch sample Where two second pixels of the color patch; among the two second pixels, calculate a second slope line corresponding to the color patch; for a pixel area of the photo, according to the distance of the pixel area Calculating a slope line for a first length of the first color patch sample, a second length of the pixel area from the second color patch sample, the first slope line and the second slope line; and according to The slope line and the color correct and compensate the pixel area, where the two first The pixel line, the two second pixel points, the first length and the second length are all parallel to the same direction.

在一範例中,為了使用三個色塊樣本的內差法,當搜尋並定位到一第一色塊樣本、一第二色塊樣本與一第三色塊樣本時,上述之對該照片進行校正的步驟更包含:取得該第一色塊樣本其中一顏色色塊的兩個第一像素點;計算該兩個第一像素點當中,相應於該顏色色塊的一第一斜度線;取得該第二色塊樣本其中該顏色色塊的兩個第二像素點;計算該兩個第二像素點當中,相應於該顏色色塊的一第二斜度線;取得該第三色塊樣本其中該顏色色塊的兩個第三像素點;計算該兩個第三像素點當中,相應於該顏色色塊的一第三斜度線;根據該第一斜度線、該第二斜度線與該第三斜度線與其投影於一軸線上的三個位置,計算一條色塊樣本之二次曲線;針對該照片的一像素區域,根據該像素區域距離該第一色塊樣本的一第一長度、該像素區域距離該第二色塊樣本的一第二長度、該像素區域距離該第二色塊樣本的一第三長度與該條色塊樣本之二次曲線,計算一條二次曲線;以及根據該二次曲線與該顏色,對該像素區域進行校正補償,其中該兩個第一像素點的連線、該兩個第二像素點的連線、該兩個第三像素點的連線、該第一長度、該第二長度與該第三長度均平行於同一方向。 In an example, in order to use the internal difference method of three color patch samples, when searching for and locating a first color patch sample, a second color patch sample, and a third color patch sample, the above is performed on the photo The calibration step further includes: obtaining two first pixels of one color patch of the first color patch sample; calculating a first slope line corresponding to the color patch among the two first pixel dots; Obtaining two second pixels of the color block in the second color block sample; calculating a second slope line corresponding to the color block among the two second pixels; obtaining the third color block The two third pixels of the color patch in the sample; calculating a third slope line corresponding to the color patch among the two third pixels; according to the first slope line and the second slope The degree line and the third slope line and the three positions projected on an axis to calculate the quadratic curve of a color block sample; for a pixel area of the photo, according to the pixel area A first length, a second length of the pixel area from the second color block sample, a third length of the pixel area from the second color block sample and a quadratic curve of the color block sample, calculate a quadratic curve A curve; and correcting and compensating the pixel area according to the quadratic curve and the color, wherein the connection of the two first pixels, the connection of the two second pixels, and the two third pixels , The first length, the second length and the third length are all parallel to the same direction.

在一範例中,為了輸出量化參數,當搜尋並定位到一個色塊樣本時,上述之計算該檢測區的量化參數的步驟更包含:根據該色塊樣本特徵值中紀錄的尺寸與該色塊樣本在該校正後照片中的尺寸,計算該檢測區的尺寸與/或面積。 In an example, in order to output the quantization parameter, when searching and locating a color block sample, the above step of calculating the quantization parameter of the detection area further includes: according to the size and the color block recorded in the characteristic value of the color block sample The size of the sample in the corrected photo is used to calculate the size and/or area of the detection area.

在一範例中,為了輸出量化參數,當搜尋並定位到一第一色 塊樣本與一第二色塊樣本時,上述之計算該檢測區的量化參數的步驟更包含:根據該色塊樣本特徵值中紀錄的尺寸與該第一色塊樣本在該校正後照片中的尺寸,計算一第一比例尺;根據該色塊樣本特徵值中紀錄的尺寸與該第二色塊樣本在該校正後照片中的尺寸,計算一第二比例尺;根據該檢測區與該第一色塊樣本的一第一距離、該檢測區域該第二色塊樣本的一第二距離、該第一比例尺與該第二比例尺,計算一檢測區比例尺;根據該檢測區比例尺與該檢測區在該校正後照片中的尺寸,計算該檢測區的尺寸與/或面積。 In an example, in order to output quantization parameters, when searching and locating a first color When a block sample and a second color block sample, the above step of calculating the quantization parameter of the detection area further includes: according to the size recorded in the characteristic value of the color block sample and the first color block sample in the corrected photo Calculate a first scale; calculate a second scale based on the size recorded in the feature value of the color patch sample and the size of the second color patch sample in the corrected photo; based on the detection area and the first color A first distance of the block sample, a second distance of the second color block sample in the detection area, the first scale and the second scale, a detection area scale is calculated; according to the detection area scale and the detection area in the After correcting the size in the photo, calculate the size and/or area of the detection area.

在一範例中,為了輸出量化參數,生物表皮層檢測方法更包含計算下列參數之一或其任意組合:該檢測區的尺寸;該檢測區的面積;該檢測區的中心;以某顏色為全權值的該檢測區的重心;該檢測區的平均顏色;該檢測區的某顏色的極大值;以及該檢測區的某顏色的極小值。 In an example, in order to output quantitative parameters, the biological epidermal layer detection method further includes calculating one or any combination of the following parameters: the size of the detection area; the area of the detection area; the center of the detection area; The center of gravity of the detection area with weights; the average color of the detection area; the maximum value of a color in the detection area; and the minimum value of a color in the detection area.

在一範例中,為了與歷史紀錄進行比較,生物表皮層檢測方法,更包含:自一記憶體模組讀取該檢測區的相應的歷史參數;以及計算該歷史參數與該參數的比較結果。 In an example, in order to compare with the historical record, the biological epidermal layer detection method further includes: reading the corresponding historical parameter of the detection area from a memory module; and calculating the comparison result of the historical parameter and the parameter.

根據本申請的一實施例,提供一種生物表皮層檢測裝置,用於提供一檢測區的量化參數,包含:一相機模組,用於拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;一記憶體模組,用於儲存一檢測應用程式、該照片與多個色塊樣本特徵值;以及一中央處理器,連接至該相機模組與該記憶體模組,用於執行該檢測應用程式的以下各個步驟:根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本 特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數。 According to an embodiment of the present application, a biological epidermal layer detection device is provided for providing quantization parameters of a detection area, including: a camera module for taking a photo, wherein the photo includes one or more color patch samples And the detection area on the biological epidermis; a memory module for storing a detection application, the photo and the characteristic values of a plurality of color patch samples; and a central processor connected to the camera module and the memory The body module is used to execute the following steps of the detection application: search and locate one or more of the color patch samples in the photo according to the previously predicted feature values of the plurality of color patch samples; according to one or more of the Color block samples and the plurality of color block samples The difference in the feature value corrects the photo; searches and locates the detection area in the corrected photo according to the detection conditions preset in advance; and calculates the quantization parameter of the detection area.

根據本申請的一實施例,提供一種生物表皮層檢測系統,用於提供一檢測區的量化參數,包含:至少一個色塊樣本;以及一生物表皮層檢測裝置。該生物表皮層檢測裝置的實施例如上所述。 According to an embodiment of the present application, a biological epidermal layer detection system is provided for providing a quantitative parameter of a detection area, including: at least one color patch sample; and a biological epidermal layer detection device. The embodiment of the biological epidermal layer detection device is as described above.

根據上述的各個實施例,本申請提供了可以將表皮層檢測之結果以量化方式呈現的方法、裝置與系統,可以正確評估藥物或保養品的效果。 According to the above embodiments, the present application provides a method, device, and system that can quantitatively present the results of epidermal layer detection, and can accurately evaluate the effects of drugs or maintenance products.

800‧‧‧表皮層檢測方法 800‧‧‧Epidermal layer detection method

810~880‧‧‧步驟 810~880‧‧‧Step

Claims (3)

一種生物表皮層檢測方法,用於提供一檢測區的量化參數,包含:使用一相機模組拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數,其中當搜尋並定位到兩個色塊樣本時,上述之對該照片進行校正的步驟更包含:分別取得兩個該色塊樣本其中一顏色色塊的各一個像素點;計算該兩個像素點當中,相應於該顏色色塊的一斜度線;以及根據該斜度線與該顏色,對該照片的其餘像素點進行校正補償。 A biological epidermal layer detection method for providing quantitative parameters of a detection area, including: using a camera module to take a photo, wherein the photo includes one or more color patch samples and the detection area on the biological epidermal layer; The feature values of the plurality of color patch samples predicted in advance, search and locate one or more of the color patch samples in the photo; according to the difference between the feature values of the one or more color patch samples and the plurality of color patch samples, Correct the photo; search and locate the detection area in the corrected photo according to the detection conditions preset in advance; and calculate the quantization parameters of the detection area, where when two color patch samples are searched and located, the above The step of correcting the photo further includes: obtaining one pixel of each color patch of the two color patch samples; calculating a slope line corresponding to the color patch among the two pixel dots; and according to the The slope line and the color correct and compensate the remaining pixels of the photo. 一種生物表皮層檢測裝置,用於提供一檢測區的量化參數,包含:一相機模組,用於拍攝一照片,其中該照片包含一或多個色塊樣本與生物表皮層上的該檢測區;一記憶體模組,用於儲存一檢測應用程式、該照片與多個色塊樣本特徵值;以及一中央處理器,連接至該相機模組與該記憶體模組,用於執行該檢測應 用程式的以下各個步驟:根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正,根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數,其中當搜尋並定位到兩個色塊樣本時,上述之對該照片進行校正的步驟更包含:分別取得兩個該色塊樣本其中一顏色色塊的各一個像素點;計算該兩個像素點當中,相應於該顏色色塊的一斜度線;以及根據該斜度線與該顏色,對該照片的其餘像素點進行校正補償。 A biological epidermal layer detection device for providing quantitative parameters of a detection area, including: a camera module for taking a photo, wherein the photo includes one or more color block samples and the detection area on the biological epidermal layer A memory module for storing an inspection application, the photos and the characteristic values of a plurality of color samples; and a central processor connected to the camera module and the memory module for performing the inspection should Use the following steps of the program: search and locate one or more of the color block samples in the photo according to the pre-predicted feature values of the plurality of color block samples; according to one or more of the color block samples and the plurality of color blocks The difference in the sample characteristic value, correct the photo, search and locate the detection area in the corrected photo according to the preset detection conditions; and calculate the quantitative parameters of the detection area, where two colors are searched and located In the case of a block sample, the above-mentioned step of correcting the photo further includes: obtaining one pixel of each color block of the two color block samples; and calculating the corresponding value of the color block among the two pixels A slope line; and according to the slope line and the color, correct and compensate the remaining pixels of the photo. 一種生物表皮層檢測系統,用於提供一檢測區的量化參數,包含:至少一個色塊樣本;以及一生物表皮層檢測裝置,包含:一相機模組,用於拍攝一照片,其中該照片包含一或多個該色塊樣本與生物表皮層上的該檢測區;一記憶體模組,用於儲存一檢測應用程式、該照片與多個色塊樣本特徵值;以及一中央處理器,連接至該相機模組與該記憶體模組,用於執行該檢 測應用程式的以下各個步驟:根據事先預知的多個色塊樣本特徵值,在該照片中搜尋並定位一或多個該色塊樣本;根據一或多個該色塊樣本與該多個色塊樣本特徵值的差異,對該照片進行校正;根據事先預設的檢測條件,在校正後照片中搜尋並定位該檢測區;以及計算該檢測區的量化參數,其中當搜尋並定位到兩個色塊樣本時,上述之對該照片進行校正的步驟更包含:分別取得兩個該色塊樣本其中一顏色色塊的各一個像素點;計算該兩個像素點當中,相應於該顏色色塊的一斜度線;以及根據該斜度線與該顏色,對該照片的其餘像素點進行校正補償。 A biological epidermal layer detection system for providing quantitative parameters of a detection area, including: at least one color block sample; and a biological epidermal layer detection device, including: a camera module for taking a photo, wherein the photo contains One or more of the color patch samples and the detection area on the biological epidermis; a memory module for storing a detection application, the photo and the characteristic values of the plurality of color patch samples; and a central processing unit, connected To the camera module and the memory module for performing the inspection Measure the following steps of the application: search and locate one or more of the color block samples in the photo according to the pre-predicted feature values of the plurality of color block samples; based on the one or more color block samples and the multiple colors Correct the photo based on the difference in the feature values of the block samples; search and locate the detection area in the corrected photo according to the detection conditions preset in advance; and calculate the quantization parameters of the detection area, when searching and locating two In the case of color patch samples, the above step of correcting the photo further includes: obtaining one pixel of each color patch of the two color patch samples; calculating the two pixels corresponding to the color patch A slope line of; and according to the slope line and the color, correct and compensate the remaining pixels of the photo.
TW107106044A 2018-02-21 2018-02-21 Method, apparatus and system for examining biological epidermis TWI687686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107106044A TWI687686B (en) 2018-02-21 2018-02-21 Method, apparatus and system for examining biological epidermis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107106044A TWI687686B (en) 2018-02-21 2018-02-21 Method, apparatus and system for examining biological epidermis

Publications (2)

Publication Number Publication Date
TW201937165A TW201937165A (en) 2019-09-16
TWI687686B true TWI687686B (en) 2020-03-11

Family

ID=68618594

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107106044A TWI687686B (en) 2018-02-21 2018-02-21 Method, apparatus and system for examining biological epidermis

Country Status (1)

Country Link
TW (1) TWI687686B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200716061A (en) * 2005-04-28 2007-05-01 Shiseido Co Ltd Skin state analyzing method, skin state analyzing device, and recording medium on which skin state analyzing program is recorded
CN101966083A (en) * 2010-04-08 2011-02-09 太阳系美容事业有限公司 Abnormal skin area calculation system and calculation method thereof
CN104105953A (en) * 2011-09-06 2014-10-15 宝洁公司 Device and method for color calibration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200716061A (en) * 2005-04-28 2007-05-01 Shiseido Co Ltd Skin state analyzing method, skin state analyzing device, and recording medium on which skin state analyzing program is recorded
CN101966083A (en) * 2010-04-08 2011-02-09 太阳系美容事业有限公司 Abnormal skin area calculation system and calculation method thereof
CN101966083B (en) 2010-04-08 2013-02-13 太阳系美容事业有限公司 Abnormal skin area calculation system and its calculation method
CN104105953A (en) * 2011-09-06 2014-10-15 宝洁公司 Device and method for color calibration
CN104105953B (en) 2011-09-06 2017-04-19 宝洁公司 Apparatus and method for color calibration

Also Published As

Publication number Publication date
TW201937165A (en) 2019-09-16

Similar Documents

Publication Publication Date Title
CN114174783B (en) Systems and methods for creating topical formulations with improved image capture
JP7027537B2 (en) Image processing methods and equipment, electronic devices, and computer-readable storage media
CN111028213A (en) Image defect detection method, device, electronic device and storage medium
KR102334575B1 (en) Mura detection device and detection method of mura detection device
US8483480B2 (en) Method and system for factoring an illumination image
US9396411B2 (en) Method and system for generating intrinsic images using a single reflectance technique
US7692697B2 (en) Pupil color correction device and program
TWI902818B (en) Method of determining the concentration of an analyte in a sample of a bodily fluid
CN109887044B (en) Reproductive data evaluation method and system
US9760799B2 (en) Pipeline for generating an intrinsic image
CN117132544A (en) An image color cast detection method based on deep learning and color space transformation
JP7154786B2 (en) Image processing device, image processing method and program
US9754155B2 (en) Method and system for generating intrinsic images using a single reflectance technique
CN104463919A (en) Full-pixel color analysis method for evaluating skin pigments
TWI687686B (en) Method, apparatus and system for examining biological epidermis
CN113783996B (en) Screen defect optimization method, device, equipment and computer storage medium
Dellepiane et al. Improved color acquisition and mapping on 3d models via flash-based photography
CN113034553B (en) Evaluation method, terminal and storage medium of image registration algorithm
JP7455234B2 (en) Methods, devices, equipment and storage medium for facial pigment detection model training
CN111985498A (en) Canopy density measurement method and device, electronic device and storage medium
Ballabeni et al. Intensity histogram equalisation, a colour-to-grey conversion strategy improving photogrammetric reconstruction of urban architectural heritage
CN120563379B (en) Projection curtain image reconstruction method, system and medium combining distortion correction
CN120107135A (en) Color calibration method, device, equipment and computer storage medium
CN117671037A (en) Skin detection method, device, mask and storage medium
CN121033916A (en) Body temperature compensated facial recognition method, device, electronic device and storage medium

Legal Events

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