TWI609352B - Method of color identification for paper-based analytical devices - Google Patents

Method of color identification for paper-based analytical devices Download PDF

Info

Publication number
TWI609352B
TWI609352B TW104131967A TW104131967A TWI609352B TW I609352 B TWI609352 B TW I609352B TW 104131967 A TW104131967 A TW 104131967A TW 104131967 A TW104131967 A TW 104131967A TW I609352 B TWI609352 B TW I609352B
Authority
TW
Taiwan
Prior art keywords
color
value
processor
judgment
sample
Prior art date
Application number
TW104131967A
Other languages
Chinese (zh)
Other versions
TW201712634A (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 TW104131967A priority Critical patent/TWI609352B/en
Publication of TW201712634A publication Critical patent/TW201712634A/en
Application granted granted Critical
Publication of TWI609352B publication Critical patent/TWI609352B/en

Links

Description

紙式檢測裝置之顏色辨識方法 Color identification method of paper detecting device

本發明係關於一種紙式檢測裝置之顏色辨識方法,尤其是一種透過影像處理以辨識紙式檢測裝置之檢測區顏色的方法。 The present invention relates to a color identification method for a paper type detecting device, and more particularly to a method for identifying the color of a detection area of a paper type detecting device by image processing.

微流體紙晶片檢測裝置(Microfluidic Paper-Based Analytical Devices,μPADs)可針對特定疾病進行初步篩檢,當操作人員由患者身上取得一待測液後,可將該待測液滴在該微流體紙晶片檢測裝置的檢測區內,使該檢測區因化學反應而產生顏色變化,此時,操作人員即可根據該檢測區的顏色變化而判斷患者的患病程度。 Microfluidic Paper-Based Analytical Devices (μPADs) can perform preliminary screening for specific diseases. When the operator takes a test solution from the patient, the test droplet can be placed on the microfluidic paper. In the detection area of the wafer detecting device, the detection area is changed in color due to a chemical reaction. At this time, the operator can judge the degree of the patient's disease according to the color change of the detection area.

當操作人員以上述紙式檢測裝置進行檢測後,操作人員可能直接以肉眼觀察該檢測區之顏色,惟,不同的人對相同的顏色可能有不同的解讀,當該檢測區之顏色無法以同一判斷標準進行辨識時,以顏色變化所呈現之檢測結果將不具有參考價值。 After the operator performs the above-mentioned paper detecting device, the operator may directly observe the color of the detecting area with the naked eye. However, different people may have different interpretations of the same color, and the color of the detecting area cannot be the same. When the judgment standard is identified, the detection result presented by the color change will have no reference value.

為了避免因判斷標準不一所產生的不良影響,習知亦可透過一檢測儀器以檢測該紙式檢測裝置之該檢測區的顏色。然而,該紙式檢測裝置之該檢測區可能於製造時產生雜點(例如蠟點或其他瑕疵點),當該檢測區與待測液作用而產生化學反應時,雜點處的顏色變化將會異於該檢測區其餘部分的顏色變化,當該檢測儀器以該檢測區內的所有顏色點計算一平均顏色值時,該平均顏色值將會受該雜點處的顏色影響而有所失真,進而導致該檢測區內的顏色判斷結果失準。 In order to avoid adverse effects caused by the different criteria, it is also known to detect the color of the detection zone of the paper detecting device through a detecting device. However, the detection area of the paper detecting device may generate noise points (such as wax spots or other defects) during manufacture, and when the detection area reacts with the liquid to be tested to generate a chemical reaction, the color change at the noise point will be Different from the color change of the rest of the detection area, when the detecting instrument calculates an average color value from all the color points in the detection area, the average color value will be affected by the color at the noise point and is distorted. , which in turn causes the color judgment result in the detection area to be out of alignment.

有鑑於此,遂提供一種紙式檢測裝置之顏色辨識方法,以解決習知紙式檢測裝置之顏色辨識正確性不佳的問題。 In view of this, the present invention provides a color identification method for a paper type detecting device to solve the problem of poor color recognition of a conventional paper detecting device.

本發明之目的係提供一種紙式檢測裝置之顏色辨識方法,該紙式檢測裝置之顏色辨識方法可提升顏色辨識正確性。 The object of the present invention is to provide a color identification method for a paper type detecting device, and the color identification method of the paper detecting device can improve the color identification correctness.

為達到前述發明目的,本發明所運用之技術手段如下:一種紙式檢測裝置之顏色辨識方法,係由具有一影像擷取裝置及一處理器之一影像處理組件執行以下步驟,其步驟包含:一影像擷取步驟,由該影像擷取裝置拍攝一紙式檢測裝置之一檢測區,以產生一影像資料,並將該影像資料傳送至該處理器;一影像前處理步驟,由該處理器對該影像資料之數個像素點進行一灰階轉換,以得到該數個像素點之灰階值,及設定一閥值,並由該數個像素點中判斷哪些像素點的灰階值小於該閥值,再將符合上述判斷結果的每一個像素點共同視為數個運算點;及一顏色判斷步驟,由該處理器對該數個運算點進行一色彩量化處理,以將該數個運算點還原至該影像資料所呈現之原始顏色,並得到該數個運算點之顏色值,再透過一分裂演算法依顏色值將該數個運算點分群為數個色區,並輸出一判斷顏色,且該判斷顏色為具有最多該運算點的該色區所代表的顏色;在執行該顏色判斷步驟後,另執行一比對步驟,該比對步驟係由該處理器讀取一資料庫之數個樣本顏色,並以一比對公式比對該判斷顏色及該數個樣本顏色,再以與該判斷顏色具有最小之一差異值的該樣本顏色作為一顏色比對結果,並輸出該比對結果;其中,該比對公式為: 其中,d為該差異值;q r 為該樣本顏色之紅色數值;q g 為該樣本顏色之綠色數值;q b 為該樣本顏色之藍色數值;p r 為該判斷顏色之紅色數值;p g 為該判斷顏色之綠色數值;p b 為該判斷顏色之藍色數值。 In order to achieve the foregoing object, the technical means used in the present invention is as follows: a color identification method for a paper detecting device comprises the following steps: an image processing component having an image capturing device and a processor, the steps comprising: An image capturing step, the image capturing device captures a detection area of a paper detecting device to generate an image data, and transmits the image data to the processor; an image pre-processing step by the processor Performing a gray scale conversion on the pixels of the image data to obtain gray scale values of the plurality of pixel points, and setting a threshold value, and determining, by the plurality of pixel points, which pixel points have a gray scale value smaller than The threshold value is further regarded as a plurality of operation points for each pixel point satisfying the above judgment result; and a color judging step, the processor performs a color quantization process on the plurality of operation points to perform the plurality of operations The point is restored to the original color represented by the image data, and the color values of the plurality of operation points are obtained, and the plurality of operation points are grouped according to the color value by a split algorithm. a color region, and outputting a judgment color, and the judgment color is a color represented by the color region having the most operation point; after performing the color determination step, performing another comparison step, wherein the comparison step is performed by The processor reads a plurality of sample colors of a database, and compares the determined color and the plurality of sample colors by a comparison formula, and then uses the sample color having the smallest difference value from the determined color as one The color is compared to the result, and the comparison result is output; wherein the comparison formula is: Wherein, d for the difference value; red color of the sample values for q r; q g of sample color values for green; blue values for color samples of the q b; p for R & lt Analyzing the red color value; p g is the green value of the judgment color; p b is the blue value of the judgment color.

其中,在該顏色判斷步驟中,該分裂演算法為一中位數切割演算法。 Wherein, in the color determining step, the splitting algorithm is a median cutting algorithm.

據此,本發明之紙式檢測裝置之顏色辨識方法,可準確辨別該紙式檢測裝置之檢測流道的主要代表顏色,具有提升顏色辨識正確性的功效。 Accordingly, the color identification method of the paper type detecting device of the present invention can accurately distinguish the main representative color of the detecting flow path of the paper detecting device, and has the effect of improving the correctness of color recognition.

〔本發明〕 〔this invention〕

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

2‧‧‧處理器 2‧‧‧ Processor

3‧‧‧資料庫 3‧‧‧Database

4‧‧‧承載台 4‧‧‧Loading station

5‧‧‧紙式檢測裝置 5‧‧‧paper detection device

S1‧‧‧影像擷取步驟 S1‧‧‧Image capture steps

S2‧‧‧影像前處理步驟 S2‧‧‧Image pre-processing steps

S3‧‧‧顏色判斷步驟 S3‧‧‧Color judgment steps

S4‧‧‧比對步驟 S4‧‧‧ alignment steps

第1圖:本發明之紙式檢測裝置之顏色辨識方法的實施裝置圖。 Fig. 1 is a view showing an apparatus for implementing a color identification method of a paper type detecting device of the present invention.

第2圖:本發明之紙式檢測裝置之顏色辨識方法的步驟流程圖。 Fig. 2 is a flow chart showing the steps of the color identification method of the paper type detecting device of the present invention.

為讓本發明之上述及其他目的、特徵及優點能更明顯易懂,下文特舉本發明之較佳實施例,並配合所附圖式,作詳細說明如下:請參照第1圖所示,其係本發明之紙式檢測裝置之顏色辨識方法的一參考實施裝置,該實施裝置可為一影像處理組件,該影像處理組件包含一影像擷取裝置1及一處理器2,且該處理器2係電性連接一資料庫3。 The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the appended claims. It is a reference implementation device for the color identification method of the paper detection device of the present invention. The implementation device can be an image processing component, and the image processing component includes an image capture device 1 and a processor 2, and the processor The 2 series is electrically connected to a database 3.

該影像擷取裝置1可為任何攝像元件,並可用以拍攝一承載台4上之一紙式檢測裝置5,並產生一影像資料。 The image capturing device 1 can be any imaging component and can be used to capture a paper detecting device 5 on a loading platform 4 and generate an image data.

該處理器2可為一電腦或任何運算處理器,並可執行一軟體或程式,以進行運算統計等操作。在本實施例中,該處理器2電性連接該影像擷取裝置1以接收該影像資料,並可對該影像資料進行相關的影像處理。 The processor 2 can be a computer or any computing processor, and can execute a software or a program for performing operations and the like. In this embodiment, the processor 2 is electrically connected to the image capturing device 1 to receive the image data, and can perform related image processing on the image data.

該資料庫3係用以儲存一比對資料,該比對資料可為數個樣本顏色。在本實施例中,該資料庫3電性連接該處理器2,以供該處理器2讀取該資料庫3中之該數個樣本顏色,並使該處理器2得以進行後續的比 對與判斷處理;又,該資料庫3所儲存之該比對資料可為該影像擷取裝置1所拍攝之該影像資料,或者為該影像資料經過該處理器2進行影像處理後所建立之該數個樣本顏色,且上述資料皆可透過該處理器2轉存於該資料庫3中,以供該處理器2作為後續之比對與判斷的參考資料。 The database 3 is used to store a pair of data, which can be a plurality of sample colors. In this embodiment, the database 3 is electrically connected to the processor 2, so that the processor 2 reads the plurality of sample colors in the database 3, and enables the processor 2 to perform subsequent ratios. And the comparison data stored in the database 3 may be the image data captured by the image capturing device 1 or the image data processed by the processor 2 The plurality of sample colors, and the above data can be transferred to the database 3 through the processor 2 for use by the processor 2 as a reference for subsequent comparison and judgment.

請參照第2圖所示,本發明紙式檢測裝置之顏色辨識方法係包含一影像擷取步驟S1、一影像前處理步驟S2及一顏色判斷步驟S3。 Referring to FIG. 2, the color identification method of the paper type detecting device of the present invention comprises an image capturing step S1, an image pre-processing step S2 and a color determining step S3.

該影像擷取步驟S1,係由該影像擷取裝置1拍攝該紙式檢測裝置5之一檢測區,以產生一影像資料,並將該影像資料傳送至一處理器。其中,該紙式檢測裝置5之顏色較佳應與該承載台4的顏色有所區隔,以避免該影像擷取裝置1所拍攝的影像資料同時包含該紙式檢測裝置5及該承載台4時,該紙式檢測裝置5及該承載台4因顏色相近而產生混淆。 In the image capturing step S1, the image capturing device 1 captures a detection area of the paper detecting device 5 to generate an image data, and transmits the image data to a processor. The color of the paper detecting device 5 should preferably be separated from the color of the loading platform 4 to prevent the image data captured by the image capturing device 1 from simultaneously including the paper detecting device 5 and the carrying platform. At 4 o'clock, the paper detecting device 5 and the carrying table 4 are confused due to the similar colors.

該影像前處理步驟S2,由該處理器2對該影像資料之數個像素點進行一灰階轉換,以得到該數個像素點之灰階值,及設定一閥值,並由該數個像素點中判斷哪些像素點的灰階值小於該閥值,再將符合上述判斷結果的每一個像素點共同視為數個運算點。 In the image pre-processing step S2, the processor 2 performs a gray-scale conversion on a plurality of pixel points of the image data to obtain gray scale values of the plurality of pixel points, and sets a threshold value, and the plurality of pixels are set. In the pixel, it is determined which pixel points have a grayscale value smaller than the threshold, and each pixel corresponding to the above judgment result is collectively regarded as a plurality of operation points.

更詳言之,該紙式檢測裝置5通常會具有該檢測區及一非檢測區(例如該紙式檢測裝置5之基材,或者圍繞該檢測區之分隔蠟線),當該檢測液滴於該紙式檢測裝置5之檢測區後,該檢測區會因化學反應而產生顏色變化(例如由白色變深紫色),且該檢測區變化後的顏色會與非檢測區的顏色不同;或者,若該檢測區於製造過程中產生雜點(例如蠟點或其他瑕疵點)時,該雜點處的顏色變化(例如仍維持白色)將會異於該檢測區其餘部位的顏色變化。因此,當該處理器2對該影像資料之數個像素點進行灰階轉換後,可使正常反應之該檢測區的顏色與雜點或非檢測區的顏色產生明顯區隔(例如以較低的灰階值表示深紫色的像素點,以較高的灰階值表示白色的像素點),此時,該處理器2可將該數個像素點的灰階值與 該閥值進行比對,並僅將灰階值小於該閥值之該數個像素點視為數個運算點,即可於該影像資料中去除不必要的非檢測區或雜點,僅以可正常反應之該檢測區的像素點進行後續的顏色比對,具有提升後續顏色判斷正確性的效果。其中,該閥值的大小可由使用者依該紙式檢測裝置5之顏色分佈而自由設定,且可設於0~255之間,此為本領域技術人員所熟知,於此不加以限制或贅述。 More specifically, the paper detecting device 5 usually has the detecting area and a non-detecting area (for example, a substrate of the paper detecting device 5 or a separation wax line surrounding the detecting area) when the detecting droplet After the detection zone of the paper detecting device 5, the detection zone may undergo a color change due to a chemical reaction (for example, darkening from white to purple), and the color of the detection zone may be different from the color of the non-detection zone; or If the detection zone produces noise (such as wax spots or other defects) during the manufacturing process, the color change at the noise point (eg, still maintaining white) will be different from the color change of the rest of the detection zone. Therefore, when the processor 2 performs gray scale conversion on the pixels of the image data, the color of the detection zone of the normal reaction can be clearly distinguished from the color of the noise or the non-detection zone (for example, at a lower level). The grayscale value represents a dark purple pixel, and the white pixel point is represented by a higher grayscale value. At this time, the processor 2 can set the grayscale value of the plurality of pixels with The threshold is compared, and only the pixels whose grayscale value is less than the threshold are regarded as a plurality of operation points, thereby removing unnecessary non-detection regions or noises in the image data, and only Subsequent color comparisons are performed on the pixels of the detection zone of the normal reaction, which has the effect of improving the correctness of the subsequent color determination. The threshold value can be freely set by the user according to the color distribution of the paper detecting device 5, and can be set between 0 and 255, which is well known to those skilled in the art, and is not limited or described herein. .

該顏色判斷步驟S3,由該處理器2對該數個運算點進行一色彩量化處理,以得到該數個運算點之顏色值,再透過一分裂演算法依顏色值將該數個運算點分群為數個色區,並以具有最多該運算點的該色區所代表的顏色作為一判斷顏色,並由該處理器2輸出該判斷顏色。 In the color determining step S3, the processor 2 performs a color quantization process on the plurality of operation points to obtain color values of the plurality of operation points, and then groups the plurality of operation points by a split algorithm according to the color value. It is a plurality of color zones, and the color represented by the color zone having the most operation point is used as a judgment color, and the judgment color is output by the processor 2.

更詳言之,由於在該影像前處理步驟S2中所產生的數個運算點係經由灰階轉換而得,因此,為了呈現該數個運算點的原始顏色,在該顏色判斷步驟S3中,該色彩量化處理係先將該數個運算點還原至該影像資料所呈現之原始顏色,再依該數個運算點的原始顏色以得到該數個運算點之顏色值,且該顏色值可由三原色(RGB)表示。 More specifically, since the plurality of operation points generated in the image pre-processing step S2 are obtained by gray scale conversion, in order to present the original colors of the plurality of operation points, in the color determination step S3, The color quantization process first restores the plurality of operation points to the original color represented by the image data, and then obtains the color values of the plurality of operation points according to the original colors of the plurality of operation points, and the color value can be obtained from the three primary colors. (RGB) representation.

又,該分裂演算法可為任何用以分群的演算法,在此並不設限,在本實施例中,係利用一中位數切割演算法(Median-Cut Algorithm)。該中位數切割演算法之分群方式係為習知技術,於此不再詳述,僅簡述如下:當該處理器2接收該影像資料並得到該數個運算點後,可將該數個運算點界定於一像素空間中,其中該像素空間之三軸分別為三原色之R、G、B,各該運算點皆具有R、G、B之座標值。接者,該中位數切割演算法係統計該數個運算點在R、G、B三軸中之分布狀況,並判斷該數個運算點在該R、G、B三軸中的那一軸分布最廣,再以分布最廣之該軸作為分群基準軸,以將該數個運算點進行分群,再以該數個運算點分布範圍的中位點作為分群界線,以將該數個運算點分群成二個色區。接著,判斷各該色區之 數個運算點在該分群基準軸上的分布狀況,並對數個運算點分布最廣之該色區再進行分群,且以該色區之數個運算點分布範圍的中位點作為分群界線,將該色區分群成二個色區,並反覆執行上述程序至該色區的數目到達一預設數目為止,當該數個運算點的色區數量已達到該預設數目後,即可以具有最多該運算點的該色區所代表的顏色作為該判斷顏色。 Moreover, the split algorithm can be any algorithm for grouping, and is not limited herein. In this embodiment, a Median-Cut Algorithm is used. The grouping method of the median cutting algorithm is a conventional technique, and is not described in detail here. It is only briefly described as follows: when the processor 2 receives the image data and obtains the plurality of operation points, the number can be The operation points are defined in a pixel space, wherein the three axes of the pixel space are respectively R, G, and B of the three primary colors, and each of the operation points has a coordinate value of R, G, and B. The median cutting algorithm system calculates the distribution of the plurality of operation points in the three axes of R, G, and B, and determines the axis of the plurality of R, G, and B axes. The distribution is the widest, and the most widely distributed axis is used as the grouping reference axis to group the plurality of operation points, and the median points of the distribution points of the plurality of operation points are used as the grouping boundary to calculate the number of operations. The points are grouped into two color areas. Next, judge each color zone The distribution of the plurality of operation points on the grouping reference axis, and the color regions having the widest distribution of the plurality of operation points are further grouped, and the median points of the distribution points of the plurality of operation points in the color region are used as the grouping boundary. The color is divided into two color regions, and the above procedure is repeatedly executed until the number of the color regions reaches a predetermined number. When the number of color regions of the plurality of operation points has reached the preset number, the image may have The color represented by the color region of the operation point is at most the judgment color.

由於該紙式檢測裝置5之檢測區的顏色通常為同一色系,在經過該中位數切割演算法後,即可有效的過濾該檢測區中因雜點或其他因素所造成的顏色失真,並能以最接近該紙式檢測裝置5之檢測區的顏色之真實顏色的色區作為該顏色分析結果。舉例而言,當該檢測液滴於該紙式檢測裝置5之檢測區後,該檢測區會因化學反應而產生顏色變化(例如由白色變深紫色),當檢測液擴散效果不佳時,可能於檢測區呈現不同的顏色深淺變化(例如檢測區中央為深紫色,而檢測區邊緣為淺紫色或其他顏色),藉由執行該中位數切割演算法,即可將深紫色與非深紫色之該數個運算點分群至不同色區,由於該檢測區內大部分之該運算點的顏色仍為深紫色,因此,深紫色色區內必然具有數量最多的運算點,且具有最多運算點的色區所代表的顏色亦能最接近該檢測區之真實顏色。藉此,該顏色判斷步驟S3可以具有最多該運算點的該色區所代表的顏色作為該判斷顏色,具有提升顏色的辨識正確性的效果。 Since the color of the detection area of the paper detecting device 5 is usually the same color system, after the median cutting algorithm, the color distortion caused by noise or other factors in the detection area can be effectively filtered. The color analysis area closest to the true color of the color of the detection area of the paper detecting device 5 can be used as the color analysis result. For example, when the detection droplet is in the detection area of the paper detecting device 5, the detection area may change color due to a chemical reaction (for example, darkening from white to purple), when the detection liquid diffusion effect is not good, It is possible to present different shades of color in the detection zone (for example, the center of the detection zone is dark purple, and the edge of the detection zone is light purple or other colors). By performing the median cutting algorithm, deep purple and non-deep can be performed. The plurality of operation points of purple are grouped into different color regions. Since most of the operation points in the detection area are still dark purple, the deep purple color region must have the largest number of operation points and has the most operations. The color represented by the color zone of the dot can also be closest to the true color of the detection zone. Thereby, the color judging step S3 can have the color represented by the color region of the operation point at most as the judging color, and has the effect of improving the correctness of the color recognition.

又,本發明在執行該顏色判斷步驟S3後,可另執行一比對步驟S4,該比對步驟S4係由該處理器2讀取該資料庫3之該數個樣本顏色,並以一比對公式比對該判斷顏色及該數個樣本顏色,再以與該判斷顏色具有最小之一差異值的該樣本顏色作為一顏色比對結果,並由該處理器2輸出該比對結果。 In addition, after performing the color determining step S3, the present invention may further perform a matching step S4, wherein the comparing step S4 reads the plurality of sample colors of the database 3 by the processor 2, and compares Comparing the formula with the determined color and the plurality of sample colors, the sample color having the smallest difference value from the determined color is used as a color comparison result, and the processor 2 outputs the comparison result.

在本實施例中,該比對公式如下所示: In this embodiment, the comparison formula is as follows:

其中,d為該差異值;q r 為該樣本顏色之紅色數值;q g 為該樣本顏色之綠色數值;q b 為該樣本顏色之藍色數值;p r 為該判斷顏色之紅色數值;p g 為該判斷顏色之綠色數值;p b 為該判斷顏色之藍色數值。 Wherein, d for the difference value; red color of the sample values for q r; q g of sample color values for green; blue values for color samples of the q b; p for R & lt Analyzing the red color value; p g is the green value of the judgment color; p b is the blue value of the judgment color.

更詳言之,當產生該判斷顏色後,操作人員即可根據該判斷顏色而推估患者的患病程度或其他訊息。或者,該紙式檢測裝置5之檢測區的顏色變化亦可設定數個顏色級別,且該數個顏色級別分別具有一個該樣本顏色,當該處理器2以上述比對公式比對該判斷顏色及該數個樣本顏色時,即可找出與該判斷顏色具有最小差異之該樣本顏色,並以該樣本顏色作為該顏色比對結果。藉此,操作人員可根據該顏色比對結果以準確區分該紙式檢測裝置5之檢測區的顏色級別,具有提升顏色比對正確性的效果。 More specifically, when the judgment color is generated, the operator can estimate the patient's degree of illness or other information based on the judgment color. Alternatively, the color change of the detection area of the paper detecting device 5 may also be set to a plurality of color levels, and the plurality of color levels respectively have a sample color, and when the processor 2 compares the color with the comparison formula And the plurality of sample colors, the sample color having the smallest difference from the judgment color can be found, and the sample color is used as the color comparison result. Thereby, the operator can accurately distinguish the color level of the detection area of the paper detecting device 5 according to the color comparison result, and has the effect of improving the correctness of the color comparison.

綜上所述,本發明之紙式檢測裝置之顏色辨識方法,可透過該影像前處理步驟S2於該影像資料中去除不必要的非檢測區或雜點,再透過該顏色判斷步驟S3以判斷該檢測區的主要顏色,以及透過該比對步驟S4準確區分該紙式檢測裝置5之檢測區的顏色級別,具有提升顏色辨識正確性的功效。 In summary, the color identification method of the paper type detecting device of the present invention can remove unnecessary non-detection areas or noise points in the image data through the image pre-processing step S2, and then pass the color determining step S3 to determine The main color of the detection area and the color level of the detection area of the paper detecting device 5 are accurately distinguished by the comparison step S4, which has the effect of improving the correctness of color recognition.

雖然本發明已利用上述較佳實施例揭示,然其並非用以限定本發明,任何熟習此技藝者在不脫離本發明之精神和範圍之內,相對上述實施例進行各種更動與修改仍屬本發明所保護之技術範疇,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the invention has been described in connection with the preferred embodiments described above, it is not intended to limit the scope of the invention. The technical scope of the invention is protected, and therefore the scope of the invention is defined by the scope of the appended claims.

S1‧‧‧影像擷取步驟 S1‧‧‧Image capture steps

S2‧‧‧影像前處理步驟 S2‧‧‧Image pre-processing steps

S3‧‧‧顏色判斷步驟 S3‧‧‧Color judgment steps

S4‧‧‧比對步驟 S4‧‧‧ alignment steps

Claims (2)

一種紙式檢測裝置之顏色辨識方法,係由具有一影像擷取裝置及一處理器之一影像處理組件執行以下步驟,其步驟包含:一影像擷取步驟,由該影像擷取裝置拍攝一紙式檢測裝置之一檢測區,以產生一影像資料,並將該影像資料傳送至該處理器;一影像前處理步驟,由該處理器對該影像資料之數個像素點進行一灰階轉換,以得到該數個像素點之灰階值,及設定一閥值,並由該數個像素點中判斷哪些像素點的灰階值小於該閥值,再將符合上述判斷結果的每一個像素點共同視為數個運算點;及一顏色判斷步驟,由該處理器對該數個運算點進行一色彩量化處理,以將該數個運算點還原至該影像資料所呈現之原始顏色,並得到該數個運算點之顏色值,再透過一分裂演算法依顏色值將該數個運算點分群為數個色區,並輸出一判斷顏色,且該判斷顏色為具有最多該運算點的該色區所代表的顏色;在執行該顏色判斷步驟後,另執行一比對步驟,該比對步驟係由該處理器讀取一資料庫之數個樣本顏色,並以一比對公式比對該判斷顏色及該數個樣本顏色,再以與該判斷顏色具有最小之一差異值的該樣本顏色作為一顏色比對結果,並輸出該比對結果;其中,該比對公式為: 其中,d為該差異值;q r 為該樣本顏色之紅色數值;q g 為該樣本顏色之綠色數值;q b 為該樣本顏色之藍色數值;p r 為該判斷顏色之紅色數值;p g 為該判斷顏色之綠色數值;p b 為該判斷顏色之藍色數值。 A method for color identification of a paper detecting device comprises the following steps: an image processing device having an image capturing device and a processor, the steps comprising: an image capturing step, wherein the image capturing device captures a paper Detecting area of one of the detection devices to generate an image data, and transmitting the image data to the processor; in an image pre-processing step, the processor performs a gray-scale conversion on a plurality of pixels of the image data, Obtaining a grayscale value of the plurality of pixel points, and setting a threshold value, and determining, by the plurality of pixel points, which grayscale values of the pixel points are smaller than the threshold value, and then each pixel point that meets the foregoing judgment result Commonly regarded as a plurality of operation points; and a color judging step, the processor performs a color quantization process on the plurality of operation points, to restore the plurality of operation points to the original color represented by the image data, and obtain the The color values of the plurality of operation points are further grouped into a plurality of color regions by a splitting algorithm according to the color value, and a judgment color is output, and the judgment color has the most a color represented by the color region of the operation point; after performing the color determination step, performing another comparison step, wherein the comparison step reads, by the processor, a plurality of sample colors of a database, and Comparing the formula to the determined color and the plurality of sample colors, and comparing the color of the sample having the smallest difference value with the determined color as a color comparison result, and outputting the comparison result; wherein the comparison The formula is: Wherein, d for the difference value; red color of the sample values for q r; q g of sample color values for green; blue values for color samples of the q b; p for R & lt Analyzing the red color value; p g is the green value of the judgment color; p b is the blue value of the judgment color. 如申請專利範圍第1項所述之紙式檢測裝置之顏色辨識方法,其 中在該顏色判斷步驟中,該分裂演算法為一中位數切割演算法。 a color identification method for a paper type detecting device according to claim 1, wherein In the color judging step, the splitting algorithm is a median cutting algorithm.
TW104131967A 2015-09-29 2015-09-29 Method of color identification for paper-based analytical devices TWI609352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104131967A TWI609352B (en) 2015-09-29 2015-09-29 Method of color identification for paper-based analytical devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104131967A TWI609352B (en) 2015-09-29 2015-09-29 Method of color identification for paper-based analytical devices

Publications (2)

Publication Number Publication Date
TW201712634A TW201712634A (en) 2017-04-01
TWI609352B true TWI609352B (en) 2017-12-21

Family

ID=59256625

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104131967A TWI609352B (en) 2015-09-29 2015-09-29 Method of color identification for paper-based analytical devices

Country Status (1)

Country Link
TW (1) TWI609352B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111239114B (en) * 2018-11-29 2024-03-26 深圳迈瑞生物医疗电子股份有限公司 Dry chemical in-vitro diagnostic instrument and multi-test-strip type automatic identification method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200424526A (en) * 2003-05-13 2004-11-16 Oncoprobe Biotech Inc Bioagent automatic detection system
TW201423656A (en) * 2012-12-14 2014-06-16 Ind Tech Res Inst Method and system for diet management
TW201432262A (en) * 2013-02-07 2014-08-16 Meiho University Of Science And Technology The method of urine color identification

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200424526A (en) * 2003-05-13 2004-11-16 Oncoprobe Biotech Inc Bioagent automatic detection system
TW201423656A (en) * 2012-12-14 2014-06-16 Ind Tech Res Inst Method and system for diet management
TW201432262A (en) * 2013-02-07 2014-08-16 Meiho University Of Science And Technology The method of urine color identification

Also Published As

Publication number Publication date
TW201712634A (en) 2017-04-01

Similar Documents

Publication Publication Date Title
US20070189606A1 (en) Automatic detection and correction of non-red eye flash defects
US20140119638A1 (en) System, method and computer program product to evaluate a semiconductor wafer fabrication process
WO2014084083A1 (en) Image processing device, image processing method, and image processing program
CN108520514B (en) Consistency detection method for electronic elements of printed circuit board based on computer vision
TWI669519B (en) Board defect filtering method and device thereof and computer-readabel recording medium
US20120189189A1 (en) Optical inspection optimization
JP2018096908A (en) Inspection device and inspection method
JP2001184510A (en) Defect detecting method
JP4279833B2 (en) Appearance inspection method and appearance inspection apparatus
KR20160054150A (en) System and Method for Automatically Detecting a Mura Defect using Morphological Image Processing and Labeling
JP2006090921A (en) Visual examination device, threshold determining method visual examination method and program for functionalizing computer as visual examination device
TWI609352B (en) Method of color identification for paper-based analytical devices
US8358831B2 (en) Probe mark inspection
JP2005165387A (en) Method and device for detecting stripe defective of picture and display device
JP2010008159A (en) Visual inspection processing method
JP2006254330A (en) Quantitative evaluation method of gray scale image on paper or sheet-like base material
JP2023073399A (en) Evaluation method and evaluation system
JP2009116419A (en) Outline detection method and outline detection device
WO2023034441A1 (en) Imaging test strips
JP4115378B2 (en) Defect detection method
JP2019533140A (en) Segregation analyzer and method
CN109658382B (en) Tongue positioning method based on image clustering and gray projection
CN117495846B (en) Image detection method, device, electronic equipment and storage medium
JP2010243214A (en) Method and device for detection of flaw
JP4548086B2 (en) Defect inspection equipment

Legal Events

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