TWI695169B - Color comparison area selection method - Google Patents

Color comparison area selection method Download PDF

Info

Publication number
TWI695169B
TWI695169B TW108118444A TW108118444A TWI695169B TW I695169 B TWI695169 B TW I695169B TW 108118444 A TW108118444 A TW 108118444A TW 108118444 A TW108118444 A TW 108118444A TW I695169 B TWI695169 B TW I695169B
Authority
TW
Taiwan
Prior art keywords
color
comparison
score
area
color analysis
Prior art date
Application number
TW108118444A
Other languages
Chinese (zh)
Other versions
TW202043770A (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 TW108118444A priority Critical patent/TWI695169B/en
Application granted granted Critical
Publication of TWI695169B publication Critical patent/TWI695169B/en
Publication of TW202043770A publication Critical patent/TW202043770A/en

Links

Images

Landscapes

  • Investigating Or Analysing Biological Materials (AREA)

Abstract

Color comparison area selection method is disclosed. First, the color difference between the plurality of color comparison regions and the sample region is analyzed and sorted by using different color analysis methods to form color comparison region orders corresponding to the color analysis methods respectively. Next, the score of each color analysis method is calculated, and at least two color analysis methods which the scores are closest are selected to set the first weight. The other color analysis methods are set other weights smaller than the first weight. Then, the score of each comparison region is calculated according to the first weight and the other weights. The color of the comparison region with the lowest score is selected to be as the color of the sample region

Description

顏色比對區域的選擇方法 Selection method of color comparison area

本發明係有關於一種選擇方法,尤其係有關於一種顏色比對區域的選擇方法。 The present invention relates to a selection method, in particular to a method for selecting a color comparison area.

一般在進行健康檢測時,常會利用取自人體的血液、尿液或其他體液配合對應的檢測試紙進行體外檢測,以提供即時顏色顯示數據供醫護人員判斷受測者的健康狀況。 Generally, when performing health tests, blood, urine or other body fluids taken from the human body are often used in conjunction with corresponding test papers for in vitro testing to provide real-time color display data for medical personnel to judge the health status of the testee.

當受測者以上述檢測試紙進行檢測後,通常會使用色彩分析方法來確認檢測試紙上所呈現之顏色和哪一比對區域的顏色最為相近,進而判斷檢測結果。然而,不同分析方法,對相同的顏色可能有不同的判讀結果,致使受測者的檢測結果常因使用色彩分析方法不同而有不同結論。 When the tester uses the test paper to perform the test, the color analysis method is usually used to confirm the color on the test paper and which color of the comparison area is the most similar, and then determine the test result. However, different analysis methods may have different interpretation results for the same color, so that the test results of the testee often have different conclusions due to the different color analysis methods.

因此,如何選用正確分析方法來獲得正確的顏色判准結果進而提高檢測準確性即成為追求的目標。 Therefore, how to choose the correct analysis method to obtain the correct color judgment result and then improve the detection accuracy has become the goal of pursuit.

本案的一實施態樣係提供一種顏色比對區域的選擇方法,用以從複數個顏色比對區域中選擇和一樣本區域所呈現顏色最接近的一比對區域。此方法首先根據一樣本區域,使用複數個色彩分析法分析該複數個顏色比對區域和該樣本區域顏色差異並進行排序,以形成複數個顏色比對區域排序分別對應該複數個色彩分析法,其中該樣本區用以接受一受測者體液並對應顯示一顏色。接著,計算每一該複數個色彩分析法的分數,並從此些個色彩分析法中選擇分數最接近的至少兩個色彩分析法。接著,設定該至少兩個色彩分析法具有一第一權重,以及設定其餘該些色彩分析法具有不同於該第一權重的其他權重,其中該第一權重大於該其他權重,並根據該第一權重以及該其他權重計算每一比對區域分數。再比較每一比對區域分數,以從中選擇分數中最低者為和該樣本區域所呈現顏色最接近的一比對區域。 An embodiment of the present case provides a method for selecting a color comparison region, which is used to select a comparison region from the plurality of color comparison regions that is closest to the color presented by the same region. This method first uses a plurality of color analysis methods to analyze the color difference between the plurality of color comparison regions and the sample region according to the same region, and sorts them to form a plurality of color comparison regions, which respectively correspond to the plurality of color analysis methods. The sample area is used to receive a subject's body fluid and correspondingly display a color. Then, the score of each of the plurality of color analysis methods is calculated, and at least two color analysis methods with the closest scores are selected from the color analysis methods. Next, set the at least two color analysis methods to have a first weight, and set the remaining color analysis methods to have other weights different from the first weight, where the first weight is greater than the other weights, and according to the first The weight and the other weights are used to calculate the score of each comparison area. Then compare the scores of each comparison area to select the lowest score from the comparison area that is closest to the color presented by the sample area.

根據本發明一實施例,其中該樣本區域用以接受一受測者尿液。 According to an embodiment of the present invention, the sample area is used to receive urine from a subject.

根據本發明一實施例,其中計算該複數個色彩分析法每一者的分數是使用折扣累積增益法(Discounted Cumulative Gain,DCG)來計算,其中:

Figure 108118444-A0305-02-0004-1
According to an embodiment of the present invention, wherein the score of each of the plurality of color analysis methods is calculated using a discounted cumulative gain method (Discounted Cumulative Gain, DCG), where:
Figure 108118444-A0305-02-0004-1

其中,K代表第k個顏色比對區域;Color_system_score i,k 表示第i種顏色分析方法在第k個顏色比對區域的分數。 Among them, K represents the k-th color comparison region; Color_system_score i, k represents the score of the i- th color analysis method in the k-th color comparison region.

根據本發明一實施例,該第i種顏色分析方法在該第k個顏色比對區域的分數為,該第k個顏色比對區域在該第i種顏色分析方法所對應的該顏色比對區域排序中的排序位置。 According to an embodiment of the present invention, the score of the i-th color analysis method in the k-th color comparison region is the color comparison of the k-th color comparison region in the i-th color analysis method Sorting position in area sorting.

根據本發明一實施例,其中根據該第一權重以及該其他權重計算每一比對區域分數更包括:將該第一權重分別 乘以該至少兩個色彩分析法中的該每一比對區域分數得到一第一權種分數;將該其他權重分別乘以對應的該其他色彩分析法中的該每一比對區域分數得到其他權種分數;以及加總該第一權種分數以及該其他權種分數作為該每一比對區域分數。 According to an embodiment of the present invention, wherein calculating the score of each comparison area according to the first weight and the other weights further comprises: dividing the first weights respectively Multiplying each of the comparison area scores in the at least two color analysis methods to obtain a first weight type score; multiplying the other weights by the corresponding each of the comparison area scores in the other color analysis methods respectively Other weight type scores; and the first weight type score and the other weight type scores are added together as the score of each comparison area.

根據本發明一實施例,其中該至少兩個色彩分析法中的該每一比對區域分數為該每一比對區域在該至少兩個色彩分析法所對應的該顏色比對區域排序中的排序位置。 According to an embodiment of the present invention, wherein the score of each comparison region in the at least two color analysis methods is the ranking of each comparison region in the color comparison region corresponding to the at least two color analysis methods Sort position.

根據本發明一實施例,其中該其他色彩分析法中的該每一比對區域分數為該每一比對區域在該其他色彩分析法所對應的該顏色比對區域排序中的排序位置。 According to an embodiment of the present invention, the score of each comparison region in the other color analysis method is the ranking position of each comparison region in the sorting of the color comparison region corresponding to the other color analysis method.

因此,依據本案之技術內容,本案可提供使用者在不同色彩分析方法進行樣本區域比對後,從所提供不同的比對區域排序中選擇最接近樣本區域顏色的比對區域。 Therefore, according to the technical content of the case, the case can provide the user to select the comparison area closest to the color of the sample area from the different comparison area rankings provided after comparing the sample areas by different color analysis methods.

100‧‧‧顏色比對處理平台 100‧‧‧Color comparison processing platform

102‧‧‧影像擷取裝置 102‧‧‧Image capture device

104‧‧‧處理器 104‧‧‧ processor

106‧‧‧資料庫 106‧‧‧ Database

108‧‧‧檢測試紙 108‧‧‧Test paper

1082‧‧‧樣本區域 1082‧‧‧Sample area

1061-1065‧‧‧比對區域 1061-1065‧‧‧ Comparison area

300‧‧‧流程 300‧‧‧Flow

301-307‧‧‧步驟 301-307‧‧‧Step

第1圖所示為根據本發明一實施例檢測試紙的顏色比對處理系統。 Figure 1 shows a color comparison processing system for detecting test paper according to an embodiment of the present invention.

第2圖所示為分別使用三種不同色彩分析系統來確認檢測試紙樣本區域所呈現之顏色和比對區域顏色比對後的排序結果。 Figure 2 shows the sorting results after using three different color analysis systems to confirm the color of the test strip sample area and the color of the comparison area after comparison.

第3圖所示為根據本發明一實施例選擇顏色比對區域的流程圖。 FIG. 3 is a flowchart of selecting a color comparison area according to an embodiment of the present invention.

以下將以圖式及詳細敘述清楚說明本案之精神,任何所屬技術領域中具有通常知識者在瞭解本案之實施例後,當可由本案所教示之技術,加以改變及修飾,其並不脫離本案之精神與範圍。 The following will clearly illustrate the spirit of the case with diagrams and detailed descriptions. Anyone with ordinary knowledge in the technical field who understands the embodiments of the case will be able to change and modify the techniques taught in the case without departing from the case. Spirit and scope.

本文之用語只為描述特定實施例,而無意為本案之限制。單數形式如“一”、“這”、“此”、“本”以及“該”,如本文所用,同樣也包含複數形式。 The terminology in this article is only for describing specific embodiments, and is not intended to be a limitation of this case. Singular forms such as "a", "this", "this", "this" and "the", as used herein, also include plural forms.

關於本文中所使用之『耦接』或『連接』,均可指二或多個元件或裝置相互直接作實體接觸,或是相互間接作實體接觸,亦可指二或多個元件或裝置相互操作或動作。 As used herein, "coupled" or "connected" can refer to two or more elements or devices making direct physical contact with each other, or indirectly making physical contact with each other, or can refer to two or more elements or devices making mutual contact Operation or action.

關於本文中所使用之『包含』、『包括』、『具有』、『含有』等等,均為開放性的用語,即意指包含但不限於。 The terms "contains", "includes", "has", "contains", etc. used in this article are all open terms, which means including but not limited to.

關於本文中所使用之『及/或』,係包括所述事物的任一或全部組合。 As used herein, "and/or" includes any or all combinations of the things described.

關於本文中所使用之用詞(terms),除有特別註明外,通常具有每個用詞使用在此領域中、在本案之內容中與特殊內容中的平常意義。某些用以描述本案之用詞將於下或在此說明書的別處討論,以提供本領域技術人員在有關本案之描述上額外的引導。 Regarding the terms used in this article, unless otherwise noted, they usually have the ordinary meaning that each term is used in this field, in the content of this case, and in special content. Certain terms used to describe this case will be discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art in the description of this case.

第1圖所示為根據本發明一實施例檢測試紙的顏色比對處理系統。此顏色比對處理平台100包括一影像擷取裝置102、一處理器104及一資料庫106。影像擷取裝置102用以拍攝一檢測試紙108,並產生一影像資料。檢測試紙108包括 一樣本區域1082。樣本區域1082用以接收受測者一體液,如尿液,進行檢測,樣本區域1082係由變色反應材料所製成,當樣本區域1082接收體液後會產生顏色變化。當影像擷取裝置102上傳檢測試紙108的影像資料後,處理器104藉由比對樣本區域1082和資料庫106中的比對區域1061-1065顏色來判斷各個檢測項目的指數範圍,用以事先發現是否有相關的疾病,藉此及時發現受測者的健康狀況,盡速就醫治療。值得注意的是,在本實施例中僅以5個比對區域1061-1065來和檢測試紙108的樣本區域1082進行比對,但是比對區域數目不以此實施例為限。然而,因為不同顏色比對處理平台100在進行樣本區域1082和比對區域1061-1065顏色比對時,會因所使用的色彩分析方法不同而造成比對結果不同,而有不同判讀結果,致使使用者無所適從。因此,本發明即是提供一種評分機制,用以對不同色彩分析方法的分析結果進行評分,以讓使用者據此評分來對不同色彩分析方法的分析結果進行評價,進而從中選擇最接近樣本區域的顏色,來判斷檢測項目的指數範圍。 Figure 1 shows a color comparison processing system for detecting test paper according to an embodiment of the present invention. The color comparison processing platform 100 includes an image capturing device 102, a processor 104, and a database 106. The image capturing device 102 is used to photograph a test paper 108 and generate an image data. Test strip 108 includes Same as this area 1082. The sample area 1082 is used to receive the subject's body fluid, such as urine, for testing. The sample area 1082 is made of a color-changing reaction material. When the sample area 1082 receives body fluids, the color changes. After the image capture device 102 uploads the image data of the test strip 108, the processor 104 judges the index range of each test item by comparing the color of the sample area 1082 and the comparison area 1061-1065 in the database 106 for the purpose of discovering in advance Whether there are related diseases, so as to discover the health status of the subject in time and seek medical treatment as soon as possible. It is worth noting that in this embodiment, only five comparison regions 1061-1065 are used for comparison with the sample region 1082 of the test strip 108, but the number of comparison regions is not limited to this embodiment. However, when the color comparison processing platform 100 performs the color comparison between the sample area 1082 and the comparison area 1061-1065, the comparison result will be different due to the different color analysis methods used, and there will be different interpretation results, resulting in The user is at a loss. Therefore, the present invention provides a scoring mechanism for scoring the analysis results of different color analysis methods, so that users can evaluate the analysis results of different color analysis methods based on the scoring, and then select the closest sample area from them To determine the index range of the test item.

第2圖所示係假設處理器分別使用三種不同色彩分析系統來確認檢測試紙樣本區域所呈現之顏色和比對區域顏色比對後的排序結果。在一實施例中,所使用的色彩分析方法可採用RGB色彩空間、CIEDE2000色彩空間或HSV色彩空間進行色彩分析。然而,在其他實施例中,亦可採用其他色彩分析方法,例如Delta E、CIE76或CIE94色彩分析系統。其中,第一種色彩分析方法是採用RGB色彩空間進行色彩分析,第二種色彩分析方法是採用CIEDE2000色彩空間進行色彩分析,第三種色彩分析方法是採用HSV色彩空間進行色彩分析。依此,如第2圖所示,根據第一種色彩分析方法對樣本區域1082和比對區域1061-1065進行顏色比對,其顏色相似度,由最相似至最不相似,的排序結果依序為比對區域1064、比對區域1063、比對區域1062、比對區域1065和比對區域1061。根據第二種色彩分析方法對樣本區域1082和比對區域1061-1065進行顏色比對,其顏色相似度,由最相似至最不相似,的排序結果依序為比對區域1063、比對區域1064、比對區域1062、比對區域1061和比對區域1065。根據第三種色彩分析方法對樣本區域1082和比對區域1061-1065進行顏色比對,其顏色相似度,由最相似至最不相似,的排序結果依序為比對區域1064、比對區域1062、比對區域1063、比對區域1061和比對區域1065。在本實施例中,比對區域的排序結果即為此比對區域的評分,例如一比對區域排序為5,則此比對區域的評分即為5;比對區域排序為1,則此比對區域的評分即為1,依此類推。 The figure 2 assumes that the processor uses three different color analysis systems to confirm the color of the test strip sample area and the color of the comparison area. In one embodiment, the color analysis method used may use RGB color space, CIEDE2000 color space or HSV color space for color analysis. However, in other embodiments, other color analysis methods, such as the Delta E, CIE76 or CIE94 color analysis system, can also be used. Among them, the first color analysis method uses RGB color space for color analysis, the second color analysis method uses CIEDE2000 color space for color analysis, and the third color analysis method uses HSV color space for color analysis. According to this, as shown in Figure 2, according to the first color analysis method, the sample area 1082 and the comparison area 1061-1065 are color-matched, and the color similarity is ranked from the most similar to the most dissimilar. The order is the comparison region 1064, the comparison region 1063, the comparison region 1062, the comparison region 1065, and the comparison region 1061. According to the second color analysis method, the color comparison between the sample area 1082 and the comparison area 1061-1065, the color similarity, from the most similar to the most dissimilar, the ranking result is the comparison area 1063, the comparison area 1064. Comparison region 1062, comparison region 1061, and comparison region 1065. According to the third color analysis method, the color comparison between the sample area 1082 and the comparison area 1061-1065 is performed. The color similarity ranges from the most similar to the most dissimilar. The ranking results are the comparison area 1064 and the comparison area. 1062, comparison region 1063, comparison region 1061, and comparison region 1065. In this embodiment, the ranking result of the comparison region is the score of the comparison region. For example, if a comparison region is ranked as 5, then the comparison region's score is 5; if the comparison region is ranked as 1, then this The score of the comparison area is 1, and so on.

在獲得此些排序結果後,即可對每一種色彩分析方法進行評分,在一實施例中,本發明採用折扣累積增益法(Discounted Cumulative Gain,DCG)來計算每種顏色分析系統在每一個比對區域的總得分。透過此方法可以考慮不同評分系統在不同比對區域的差異。進而得知那些顏色分析系統的評分結果比較接近。其所使用公式如下:

Figure 108118444-A0305-02-0008-2
After obtaining these sorting results, each color analysis method can be scored. In one embodiment, the present invention uses the discounted cumulative gain method (Discounted Cumulative Gain, DCG) to calculate each ratio in each color analysis system. The total score for the area. Through this method, the differences of different scoring systems in different comparison regions can be considered. It is further known that the scoring results of those color analysis systems are relatively close. The formula used is as follows:
Figure 108118444-A0305-02-0008-2

其中,K代表第k個比對區域;Color_system_score i,k 表示第i 種顏色分析方法在第k個顏色比對區域的評分。 Among them, K represents the k-th comparison region; Color_system_score i, k represents the score of the i- th color analysis method in the k-th color comparison region.

依此,如第2圖所示第一種色彩分析方法是採用RGB色彩空間進行色彩分析,在此分析方法下,比對區域1061為第一個比對區域,因此其K=1,而此第一個比對區域的排序為5,因此評分為5,亦即Color_system_score i,k =5。比對區域1062為第二個比對區域,因此其K=2,而此第二個比對區域的排序為3,因此評分為3,亦即Color_system_score i,k =3。比對區域1063為第三個比對區域,因此其K=3,而此第三個比對區域的排序為2,因此評分為2,亦即Color_system_score i,k =2。比對區域1064為第四個比對區域,因此其K=4,而此第四個比對區域的排序為1,因此評分為1,亦即Color_system_score i,k =1。比對區域1065為第五個比對區域,因此其K=5,而此第五個比對區域的排序為4,因此評分為4,亦即Color_system_score i,k =4。依此,第一種色彩分析方法之折扣累積增益法的總得分為:

Figure 108118444-A0305-02-0009-4
Accordingly, as shown in Figure 2, the first color analysis method is to use RGB color space for color analysis. Under this analysis method, the comparison area 1061 is the first comparison area, so its K=1, and this The ranking of the first comparison area is 5, so the score is 5, which is Color_system_score i,k =5. The comparison area 1062 is the second comparison area, so its K=2, and the ranking of this second comparison area is 3, so the score is 3, that is, Color_system_score i,k =3. The comparison region 1063 is the third comparison region, so its K=3, and the ranking of the third comparison region is 2, so the score is 2, which is Color_system_score i,k =2. The comparison area 1064 is the fourth comparison area, so its K=4, and the ranking of the fourth comparison area is 1, so the score is 1, which is Color_system_score i,k =1. The comparison area 1065 is the fifth comparison area, so its K=5, and the ranking of the fifth comparison area is 4, so the score is 4, which is Color_system_score i,k =4. Accordingly, the total score of the discounted cumulative gain method of the first color analysis method is:
Figure 108118444-A0305-02-0009-4

第二種色彩分析方法是採用CIEDE2000色彩空間進行色彩分析,在此分析方法下,比對區域1061為第一個比對區域,因此其K=1,而此第一個比對區域的排序為4,因此評分為4,亦即Color_system_score i,k =4。比對區域1062為第二個比對區域,因此其K=2,而此第二個比對區域的排序為3,因此評分為3,亦即Color_system_score i,k =3。比對區域1063為第三個比對區域,因此其K=3,而此第三個比對區域的排序為1,因此評分為1,亦即Color_system_score i,k =1。比對區域1064為第 四個比對區域,因此其K=4,而此第四個比對區域的排序為2,因此評分為2,亦即Color_system_score i,k =2。比對區域1065為第五個比對區域,因此其K=5,而此第五個比對區域的排序為5,因此評分為5,亦即Color_system_score i,k =5。依此,第二種色彩分析方法之折扣累積增益法的總得分為:

Figure 108118444-A0101-12-0008-4
The second color analysis method is to use CIEDE2000 color space for color analysis. Under this analysis method, the comparison area 1061 is the first comparison area, so its K=1, and the ranking of the first comparison area is 4, so the score is 4, which is Color_system_score i,k =4. The comparison area 1062 is the second comparison area, so its K=2, and the ranking of this second comparison area is 3, so the score is 3, that is, Color_system_score i,k =3. The comparison area 1063 is the third comparison area, so its K=3, and the ranking of the third comparison area is 1, so the score is 1, which is Color_system_score i,k =1. The comparison area 1064 is the fourth comparison area, so its K=4, and the ranking of the fourth comparison area is 2, so the score is 2, which is Color_system_score i,k =2. The comparison area 1065 is the fifth comparison area, so its K=5, and the ranking of the fifth comparison area is 5, so the score is 5, which is Color_system_score i,k =5. Accordingly, the total score of the discounted cumulative gain method of the second color analysis method is:
Figure 108118444-A0101-12-0008-4

第三種色彩分析方法是採用HSV色彩空間進行色彩分析,在此分析方法下,比對區域1061為第一個比對區域,因此其K=1,而此第一個比對區域的排序為4,因此評分為4,亦即Color_system_score i,k =4。比對區域1062為第二個比對區域,因此其K=2,而此第二個比對區域的排序為2,因此評分為2,亦即Color_system_score i,k =2。比對區域1063為第三個比對區域,因此其K=3,而此第三個比對區域的排序為3,因此評分為3,亦即Color_system_score i,k =3。比對區域1064為第四個比對區域,因此其K=4,而此第四個比對區域的排序為1,因此評分為1,亦即Color_system_score i,k =1。比對區域1065為第五個比對區域,因此其K=5,而此第五個比對區域的排序為5,因此評分為5,亦即Color_system_score i,k =5。依此,第三種色彩分析方法之折扣累積增益法的總得分為:

Figure 108118444-A0101-12-0008-5
The third color analysis method is to use HSV color space for color analysis. Under this analysis method, the comparison area 1061 is the first comparison area, so its K=1, and the ranking of the first comparison area is 4, so the score is 4, which is Color_system_score i,k =4. The comparison region 1062 is the second comparison region, so its K=2, and the ranking of this second comparison region is 2, so the score is 2, which is Color_system_score i,k =2. The comparison area 1063 is the third comparison area, so its K=3, and the ranking of the third comparison area is 3, so the score is 3, that is, Color_system_score i,k =3. The comparison area 1064 is the fourth comparison area, so its K=4, and the ranking of the fourth comparison area is 1, so the score is 1, which is Color_system_score i,k =1. The comparison area 1065 is the fifth comparison area, so its K=5, and the ranking of the fifth comparison area is 5, so the score is 5, which is Color_system_score i,k =5. Accordingly, the total score of the discounted cumulative gain method of the third color analysis method is:
Figure 108118444-A0101-12-0008-5

據此,第二種色彩分析方法和第三種色彩分析方法的評分較為接近。亦即採用CIEDE2000色彩空間進行樣本區域色彩分析,和採用HSV色彩空間進行樣本區域色彩分析所得出的顏色分析結果是比較接近的,由於同一樣本區域經兩種不同色彩分析方法仍可得出相似的分析結果,因此,使用者即可確認此分析結果是較為正確的。 Accordingly, the scores of the second color analysis method and the third color analysis method are relatively close. In other words, the color analysis results obtained by using the CIEDE2000 color space for sample area color analysis and the HSV color space for sample area color analysis are relatively close, because the same sample area can still be obtained by two different color analysis methods. Analysis results, so users can confirm that the analysis results are more correct.

而為了再進一步評價此樣本區域和哪一比對區域顏色最為接近,因此,會根據上述評分結果,給予此三種色彩分析方法不對等的權重,因為第二種色彩分析方法和第三種色彩分析方法的評分較為接近,為凸顯出此兩種色彩分析方法是比較重要的,因此,給予第二種色彩分析方法和第三種色彩分析方法比較高的權重,比較不一致的顏色分析方法,亦即第一種色彩分析方法給予比較低的權重。在一實施例中,給予第二種色彩分析方法和第三種色彩分析方法的權重為0.4,給予第一種色彩分析方法的權重為0.2。然在其他實施例中,亦可給予不同權重值。據此,比對區域的顏色評分公式為:一比對區域的顏色評分=0.2 * (第一種色彩分析方法中此比對區域分數)+0.4 * (第二種色彩分析方法中此比對區域分數)+0.4 * (第三種色彩分析方法中此比對區域分數) In order to further evaluate which sample area is closest to the color of the comparison area, the three color analysis methods will be given unequal weights according to the above scoring results, because the second color analysis method and the third color analysis The scores of the methods are relatively close. In order to highlight the importance of these two color analysis methods, the second color analysis method and the third color analysis method are given a higher weight, and the inconsistent color analysis methods, that is, The first color analysis method gives relatively low weight. In an embodiment, the weight given to the second color analysis method and the third color analysis method is 0.4, and the weight given to the first color analysis method is 0.2. However, in other embodiments, different weight values may be given. Accordingly, the color scoring formula of the comparison area is: the color score of the comparison area = 0.2 * (the comparison area score in the first color analysis method) + 0.4 * (the comparison in the second color analysis method Area score) +0.4 * (This comparison area score in the third color analysis method)

如第2圖所示,對比對區域1061而言,其第一種色彩分析方法評分為5,第二種色彩分析方法評分為4,第三種色彩分析方法評分為4,因此,比對區域1061的顏色評分=0.2* 5+0.4 *4+0.4 * 4=4.2。對比對區域1062而言,其第一種色彩分析方法評分為3,第二種色彩分析方法評分為3,第三種色彩分析方法評分為2,因此,比對區域1062的顏色評分=0.2 * 3+0.4 *3+0.4 * 2=2.6。對比對區域1063而言,其第 一種色彩分析方法評分為2,第二種色彩分析方法評分為1第三種色彩分析方法評分為3,因此,比對區域1063的顏色評分=0.2 * 2+0.4 *1+0.4 * 3=2。對比對區域1064而言,其第一種色彩分析方法評分為1,第二種色彩分析方法評分為2,第三種色彩分析方法評分為1,因此,比對區域1064的顏色評分=0.2 * 1+0.4 *2+0.4 * 1=1.4。對比對區域1065而言,其第一種色彩分析方法評分為4,第二種色彩分析方法評分為5,第三種色彩分析方法評分為5,因此,比對區域1065的顏色評分=0.2 * 4+0.4 *5+0.4 *5=4.8。其中,比對區域1064的分數為1.4,為最低的,代表比對區域1064的顏色最接近樣本區域的顏色。 As shown in Figure 2, for the area 1061, the first color analysis method score is 5, the second color analysis method score is 4, and the third color analysis method score is 4. Therefore, the comparison area The color score of 1061 = 0.2*5+0.4*4+0.4*4=4.2. Compared with the area 1062, the first color analysis method score is 3, the second color analysis method score is 3, and the third color analysis method score is 2. Therefore, the color score of the comparison area 1062 = 0.2 * 3+0.4 *3+0.4 * 2=2.6. Compared to the area 1063, its One color analysis method has a score of 2, the second color analysis method has a score of 1, and the third color analysis method has a score of 3. Therefore, the color score of the comparison area 1063 = 0.2 * 2+0.4 * 1 + 0.4 * 3 = 2 . For the area 1064, the first color analysis method score is 1, the second color analysis method score is 2, and the third color analysis method score is 1. Therefore, the color score of the comparison area 1064 = 0.2 * 1+0.4 *2+0.4 * 1=1.4. For the area 1065, the first color analysis method score is 4, the second color analysis method score is 5, and the third color analysis method score is 5. Therefore, the color score of the comparison area 1065 = 0.2 * 4+0.4 *5+0.4 *5=4.8. Among them, the score of the comparison area 1064 is 1.4, which is the lowest, and the color of the comparison area 1064 is closest to the color of the sample area.

第3圖所示為根據本發明一實施例選擇顏色比對區域的流程圖。流程300,首先於步驟301,根據一樣本區域,使用複數個色彩分析法分析該複數個顏色比對區域和該樣本區域顏色差異並進行排序,以形成複數個顏色比對區域排序分別對應該複數個色彩分析法,其中該樣本區用以接受一受測者體液並對應顯示一顏色。在一實施例中,如第1圖和第2圖所示,分別使用第一種色彩分析方法、第二種色彩分析方法和第三種色彩分析方法對樣本區域1082和比對區域1061-1065進行顏色比對,以形成複數個顏色比對區域排序分別對應第一種色彩分析方法、第二種色彩分析方法和第三種色彩分析方法。接著於步驟302計算每一該複數個色彩分析法的分數,在一實施例中,是採用折扣累積增益法(Discounted Cumulative Gain,DCG)來計算每種色彩分析法的分數。其所使用公式如下:

Figure 108118444-A0305-02-0013-5
FIG. 3 is a flowchart of selecting a color comparison area according to an embodiment of the present invention. Process 300, first in step 301, according to the same region, use a plurality of color analysis methods to analyze the color difference between the plurality of color comparison regions and the sample region and sort them to form a plurality of color comparison regions. A color analysis method, in which the sample area is used to receive a subject's body fluid and correspondingly display a color. In an embodiment, as shown in FIGS. 1 and 2, the first color analysis method, the second color analysis method, and the third color analysis method are used to test the sample area 1082 and the comparison area 1061-1065, respectively. The color comparison is performed to form a plurality of color comparison regions, which respectively correspond to the first color analysis method, the second color analysis method, and the third color analysis method. Next, in step 302, the scores of each of the plurality of color analysis methods are calculated. In one embodiment, the discounted cumulative gain method (Discounted Cumulative Gain, DCG) is used to calculate the scores of each color analysis method. The formula used is as follows:
Figure 108118444-A0305-02-0013-5

其中,K代表第k個比對區域;Color_system_score i,k 表示第i種顏色分析方法在第k個顏色比對區域的評分。 Among them, K represents the kth comparison area; Color_system_score i, k represents the score of the ith color analysis method in the kth color comparison area.

當每一個色彩分析法的分數被計算出來後,於步驟303,選擇這些色彩分析法中分數最接近的至少兩個色彩分析法,並於步驟304設定該至少兩個色彩分析法具有一第一權重,以及設定其餘該些色彩分析法具有不同於該第一權重的其他權重,其中該第一權重大於該其他權重。在一實施例中,若此三種色彩分析方法中之第二種色彩分析方法和第三種色彩分析方法的折扣累積增益法分數較為接近,此時,本案設定第二種色彩分析方法和第三種色彩分析方法具有一比較高的第一權重,而將比較不一致的第一種色彩分析方法,設定一低於此第一權重的一其他權重。 When the score of each color analysis method is calculated, in step 303, at least two color analysis methods with the closest scores among the color analysis methods are selected, and in step 304, the at least two color analysis methods are set to have a first Weights, and set the remaining color analysis methods to have other weights different from the first weight, where the first weight is greater than the other weights. In an embodiment, if the second color analysis method among the three color analysis methods is close to the discounted cumulative gain method score of the third color analysis method, in this case, the second color analysis method and the third This color analysis method has a relatively high first weight, and the first color analysis method, which is relatively inconsistent, sets a weight other than this first weight.

接著於步驟305,根據此第一權重以及其他權重計算每一比對區域分數。在一實施例中,若所設定的第一權重為0.4,其他權重為0.2。此時一比對區域的顏色評分=0.2 * (第一種色彩分析方法中此比對區域分數)+0.4 * (第二種色彩分析方法中此比對區域分數)+0.4 * (第三種色彩分析方法中此比對區域分數)。接著於步驟306,比較每一比對區域分數,以於步驟307選擇該每一比對區域分數中最低者為和該樣本區域所呈現顏色最接近的一比對區域。 Then in step 305, the score of each comparison area is calculated according to the first weight and other weights. In an embodiment, if the set first weight is 0.4, the other weights are 0.2. At this time, the color score of the comparison area = 0.2 * (the score of the comparison area in the first color analysis method) + 0.4 * (the score of the comparison area in the second color analysis method) + 0.4 * (the third In the color analysis method, this comparison area score). Next, in step 306, the score of each comparison area is compared, so that in step 307, the lowest of the scores of each comparison area is selected as the comparison area that is closest to the color presented by the sample area.

綜合上述所言,本案可提供使用者在不同色彩分析方法進行樣本區域比對後,從所提供不同的比對區域排序中選擇最接近樣本區域顏色的比對區域。 Based on the above, this case can provide users to select the comparison area closest to the color of the sample area from the different comparison area rankings provided after comparing the sample areas in different color analysis methods.

雖然本案以實施例揭露如上,然其並非用以限定本案,任何熟習此技藝者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although the case is disclosed as above with examples, it is not used to limit the case. Anyone who is familiar with this skill can make various changes and retouching without departing from the spirit and scope of the case, so the scope of protection of the case should be attached The scope defined in the scope of patent application shall prevail.

300‧‧‧流程 300‧‧‧Flow

301-307‧‧‧步驟 301-307‧‧‧Step

Claims (6)

一種顏色比對區域選擇方法,係用以從複數個顏色比對區域中選擇和一樣本區域所呈現顏色最接近的一比對區域,該方法至少包括:根據一樣本區域,使用複數個色彩分析法分析該複數個顏色比對區域和該樣本區域顏色差異並進行排序,以形成複數個顏色比對區域排序分別對應該複數個色彩分析法,其中該樣本區用以接受一受測者體液並對應顯示一顏色;計算每一該複數個色彩分析法的分數;選擇該些個色彩分析法中分數最接近的至少兩個色彩分析法;設定該至少兩個色彩分析法具有一第一權重,以及設定其餘該些色彩分析法具有不同於該第一權重的其他權重,其中該第一權重大於該其他權重;根據該第一權重以及該其他權重計算每一比對區域分數;比較該每一比對區域分數;以及選擇該每一比對區域分數中最低者為和該樣本區域所呈現顏色最接近的一比對區域,其中計算該複數個色彩分析法每一者的分數是使用折扣累積增益法(Discounted Cumulative Gain,DCG)來計算,其中:
Figure 108118444-A0305-02-0015-6
其中,K代表第k個顏色比對區域;Color_system_score i,k 表示第i種顏色分析方法在第k個顏色比對區域的分數。
A color comparison area selection method is used to select a comparison area from the plurality of color comparison areas that is closest to the color presented by the same area. The method at least includes: according to the same area, use a plurality of color analysis The method analyzes the color difference between the plurality of color comparison areas and the sample area and sorts them to form a plurality of color comparison areas. The sequence corresponds to the plurality of color analysis methods, wherein the sample area is used to receive a subject's body fluid and Corresponding to displaying a color; calculating the score of each of the plurality of color analysis methods; selecting at least two color analysis methods with the closest scores among the color analysis methods; setting the at least two color analysis methods to have a first weight, And setting the remaining color analysis methods to have other weights different from the first weight, wherein the first weight is greater than the other weights; calculate each comparison area score according to the first weight and the other weights; compare each The score of the comparison area; and selecting the lowest of the scores of each comparison area to be a comparison area that is closest to the color presented by the sample area, wherein the score of each of the plurality of color analysis methods is calculated using the cumulative discount Calculated by the method of Discounted Cumulative Gain (DCG), where:
Figure 108118444-A0305-02-0015-6
Among them, K represents the k-th color comparison region; Color_system_score i, k represents the score of the i- th color analysis method in the k-th color comparison region.
如請求項1所述之顏色比對區域選擇方法,其中該樣本區域用以接受一受測者尿液。 The color comparison area selection method according to claim 1, wherein the sample area is used to receive urine from a subject. 如請求項1所述之顏色比對區域選擇方法,其中該第i種顏色分析方法在該第k個顏色比對區域的分數為,該第k個顏色比對區域在該第i種顏色分析方法所對應的該顏色比對區域排序中的排序位置。 The method for selecting a color comparison region according to claim 1, wherein the score of the i-th color analysis method in the k-th color comparison region is that the k-th color comparison region is analyzed in the i-th color The sorting position in the sorting of the color comparison area corresponding to the method. 如請求項1所述之顏色比對區域選擇方法,其中根據該第一權重以及該其他權重計算每一比對區域分數更包括:將該第一權重分別乘以該至少兩個色彩分析法中的該每一比對區域分數得到一第一權種分數;將該其他權重分別乘以對應的該其他色彩分析法中的該每一比對區域分數得到其他權種分數;以及加總該第一權種分數以及該其他權種分數作為該每一比對區域分數。 The method for selecting a color comparison region according to claim 1, wherein calculating the score of each comparison region according to the first weight and the other weights further comprises: multiplying the first weight by the at least two color analysis methods respectively Each of the comparison area scores obtains a first weight type score; the other weights are respectively multiplied by the corresponding each of the comparison area scores in the other color analysis methods to obtain other weight type scores; and the total A weight type score and the other weight type scores are used as the scores of each comparison area. 如請求項4所述之顏色比對區域選擇方法,其中該至少兩個色彩分析法中的該每一比對區域分數為該每一比對區域在該至少兩個色彩分析法所對應的該顏色比對區域排序中的排序位置。 The method for selecting a color comparison area according to claim 4, wherein the score of each comparison area in the at least two color analysis methods is the corresponding of each comparison area in the at least two color analysis methods Sorting position in the color comparison area sorting. 如請求項4所述之顏色比對區域選擇方法,其中該其他色彩分析法中的該每一比對區域分數為該每一比 對區域在該其他色彩分析法所對應的該顏色比對區域排序中的排序位置。 The method for selecting a color comparison area according to claim 4, wherein the score of each comparison area in the other color analysis method is the ratio of each The sorting position of the region in the color comparison region corresponding to the other color analysis methods.
TW108118444A 2019-05-28 2019-05-28 Color comparison area selection method TWI695169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108118444A TWI695169B (en) 2019-05-28 2019-05-28 Color comparison area selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108118444A TWI695169B (en) 2019-05-28 2019-05-28 Color comparison area selection method

Publications (2)

Publication Number Publication Date
TWI695169B true TWI695169B (en) 2020-06-01
TW202043770A TW202043770A (en) 2020-12-01

Family

ID=72176063

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108118444A TWI695169B (en) 2019-05-28 2019-05-28 Color comparison area selection method

Country Status (1)

Country Link
TW (1) TWI695169B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW505893B (en) * 2001-05-28 2002-10-11 Lg Electronics Inc Color quantization method based on an HMMD color space and multimedia searching method using the same
TW200402643A (en) * 2002-05-17 2004-02-16 Dainippon Ink & Chemicals Color designating server, color ordering system, color designating method, color ordering method and its program
TW201333466A (en) * 2012-02-04 2013-08-16 Wistron Corp Biochip measuring system and biochip measuring apparatus and biochip and stamp marking and identification method
TW201349027A (en) * 2012-05-25 2013-12-01 Univ Ming Chuan Remote control recognition method and its device
US9230063B2 (en) * 2011-01-05 2016-01-05 The Board Of Trustees Of The University Of Illinois Automated prostate tissue referencing for cancer detection and diagnosis
CN106446582A (en) * 2016-10-18 2017-02-22 江西博瑞彤芸科技有限公司 Image processing method
TWI635268B (en) * 2017-06-06 2018-09-11 宏碁股份有限公司 Color detection device and method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW505893B (en) * 2001-05-28 2002-10-11 Lg Electronics Inc Color quantization method based on an HMMD color space and multimedia searching method using the same
TW200402643A (en) * 2002-05-17 2004-02-16 Dainippon Ink & Chemicals Color designating server, color ordering system, color designating method, color ordering method and its program
US9230063B2 (en) * 2011-01-05 2016-01-05 The Board Of Trustees Of The University Of Illinois Automated prostate tissue referencing for cancer detection and diagnosis
TW201333466A (en) * 2012-02-04 2013-08-16 Wistron Corp Biochip measuring system and biochip measuring apparatus and biochip and stamp marking and identification method
CN103776994A (en) * 2012-02-04 2014-05-07 纬创资通股份有限公司 Biochip, biochip detection apparatus, biochip detection system, and method for marking and identifying biochip
TW201349027A (en) * 2012-05-25 2013-12-01 Univ Ming Chuan Remote control recognition method and its device
CN106446582A (en) * 2016-10-18 2017-02-22 江西博瑞彤芸科技有限公司 Image processing method
TWI635268B (en) * 2017-06-06 2018-09-11 宏碁股份有限公司 Color detection device and method thereof
TW201903384A (en) * 2017-06-06 2019-01-16 宏碁股份有限公司 Color detection device and method thereof

Also Published As

Publication number Publication date
TW202043770A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
Sharma et al. Trends of chemometrics in bloodstain investigations
Nutter et al. Disease assessment concepts and the advancements made in improving the accuracy and precision of plant disease data
Upshaw The personal reference scale: An approach to social judgment
Knight et al. Classification of sexual offenders: Perspectives, methods, and validation
KR101855179B1 (en) Optimal diagnosis factor set determining apparatus and method for diagnosing a disease
CN106021298A (en) Asymmetrical weighing similarity based collaborative filtering recommendation method and system
CN106063699A (en) A kind of medical apparatus and instruments description usability evaluation method based on eye movement technique
CN110322930A (en) Metabolism group operator logo object recognition methods based on horizontal relationship
Reid et al. An individual differences approach to SWAT scale development
EP3537974B1 (en) Method and apparatus for determining an indication of cognitive impairment
TWI695169B (en) Color comparison area selection method
KHALID CLUSTER ANALYSIS-A STANDARD SETTING TECHNIQUE IN MEASUREMENT AND TESTING.
Balsalobre-Fernández et al. Validity of a Smartphone App Using Artificial Intelligence for the Real-Time Measurement of Barbell Velocity in the Bench Press Exercise
Bainbridge et al. The Immunology Quality Assessment Proficiency Testing Program for CD3+ 4+ and CD3+ 8+ lymphocyte subsets: A ten year review via longitudinal mixed effects modeling
Guertin The search for recurring patterns among individual profiles
James et al. Classification of x-ray covid-19 image using convolutional neural network
EP1012777B1 (en) Methods for objectification of subjective classifications
CN107845047A (en) A kind of dynamic grading system, method and computer-readable recording medium
Gübes et al. Comparing Performance of Different Equating Methods in Presence and Absence of DIF Items in Anchor Test.
CN108131568B (en) A kind of artificial intelligence recognition methods of pipeline non-destructive testing
Zulkifley et al. EEG signals classification by using convolutional neural networks
WO2018086987A1 (en) Method and apparatus for determining an indication of cognitive impairment
Sarkar Establishment of biological reference intervals and reference curve for urea by exploratory parametric and non-parametric quantile regression models
Ziegl et al. Machine learning based walking aid detection in timed up-and-go test recordings of elderly patients
EP4410203A2 (en) Psychological trait estimation system and method