TWI805112B - Colorimetric device and checkup system - Google Patents

Colorimetric device and checkup system Download PDF

Info

Publication number
TWI805112B
TWI805112B TW110145414A TW110145414A TWI805112B TW I805112 B TWI805112 B TW I805112B TW 110145414 A TW110145414 A TW 110145414A TW 110145414 A TW110145414 A TW 110145414A TW I805112 B TWI805112 B TW I805112B
Authority
TW
Taiwan
Prior art keywords
color
image
inspection
blocks
test
Prior art date
Application number
TW110145414A
Other languages
Chinese (zh)
Other versions
TW202323795A (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 TW110145414A priority Critical patent/TWI805112B/en
Application granted granted Critical
Publication of TWI805112B publication Critical patent/TWI805112B/en
Publication of TW202323795A publication Critical patent/TW202323795A/en

Links

Images

Abstract

A colorimetric device includes a colorimetric board. The colorimetric board includes a slot, a plurality of calibration blocks, and a plurality of corner positioning patterns. The slot is configured to accommodate a test strip, wherein the test strip includes at least one color presenting portion, and the color presenting portion presents an inspection color after contacting with a specimen. The inspection color is determined by a concentration of an inspection item of the specimen. The calibration blocks are adjacent to the slot, and colors of the calibration blocks are selected from colors of a color checker. The corner positioning patterns are respectively arranged on a plurality of corners of the colorimetric board.

Description

比色裝置及檢驗系統 Colorimetric device and inspection system

本發明是有關於一種比色裝置及檢驗系統,且特別是有關於一種有利於使用影像分析的比色裝置及檢驗系統。 The present invention relates to a colorimetric device and an inspection system, and in particular relates to a colorimetric device and an inspection system which are favorable for image analysis.

隨著醫學檢驗技術的發展,許多快篩檢驗試片應運而生,例如尿液檢驗試片、糞便潛血試片等,藉以協助使用者可快速地針對自身的健康狀況進行初步的瞭解。常見的檢驗方法係將所欲檢驗的檢體與相對應的檢驗試片接觸,接著以目視方式將檢驗試片的呈色結果與標準顏色樣本進行比對,以獲得檢驗結果。然而,採用目視比對方式容易產生誤差,而導致檢驗結果不準確。 With the development of medical testing technology, many rapid screening test strips have emerged, such as urine test strips, fecal occult blood test strips, etc., to help users quickly obtain a preliminary understanding of their own health status. A common testing method is to contact the specimen to be tested with the corresponding test piece, and then visually compare the coloring result of the test piece with the standard color sample to obtain the test result. However, the use of visual comparison method is prone to errors, resulting in inaccurate test results.

為了解決上述缺失,另有業者發展出影像辨識系統,其係由使用者自行拍攝比色板及檢驗試片的影像,其中比色板上印製有複數個標準顏色樣本,各個標準顏色樣本代表所欲檢驗之檢體的一檢驗項目的一檢驗結果,藉由影像辨識系統分析影像中比色板上標準顏色樣本及檢驗試片的呈色結果,以獲得檢驗結果。然而,針對不同的檢驗項目需要印製不同的比色板,亦即現有的比色板是針對特定的檢驗項目進行設計,而無法適用於其他檢驗項目。此外,當發現新的標準顏色樣本較現有的標準顏色樣本更具代表性時,倘若繼續沿用印製有現有的標準顏色樣本的比色板以消耗庫存,將不利於更新及控制檢驗效 能,倘若淘汰印製有現有的標準顏色樣本的比色板,將造成浪費而增加成本。 In order to solve the above-mentioned deficiencies, another company has developed an image recognition system, which is to take images of color guides and test pieces by users themselves. There are a plurality of standard color samples printed on the color guide, and each standard color sample represents For a test result of a test item of the specimen to be tested, the image recognition system analyzes the color rendering results of the standard color sample on the color guide board and the test piece in the image to obtain the test result. However, different color guides need to be printed for different inspection items, that is, the existing color guides are designed for specific inspection items and cannot be applied to other inspection items. In addition, when it is found that the new standard color sample is more representative than the existing standard color sample, if the color guide with the existing standard color sample is continued to be used to consume the inventory, it will not be conducive to updating and controlling the inspection effect. Yes, if the color guides printed with existing standard color samples are eliminated, it will cause waste and increase costs.

本發明之目的在於提供一種比色裝置及檢驗系統,以解決上述問題。 The object of the present invention is to provide a colorimetric device and inspection system to solve the above problems.

依據本發明之一實施方式是提供一種比色裝置,包含一比色板。比色板包含一開槽、複數個校正色塊以及複數個邊角定位圖案。開槽用以容置一檢驗試片,其中檢驗試片包含至少一呈色部,呈色部與一檢體接觸後呈現一檢驗顏色,檢驗顏色取決於檢體之一檢驗項目的濃度。校正色塊鄰設於開槽,校正色塊的顏色係選自一色彩校正卡的顏色。邊角定位圖案分別設置於比色板的複數個邊角。 One embodiment of the present invention provides a colorimetric device, including a colorimetric plate. The color guide includes a slot, a plurality of calibration color blocks and a plurality of corner positioning patterns. The slot is used for accommodating a test piece, wherein the test piece includes at least one color-forming portion, and the color-forming portion presents a test color after being in contact with a sample, and the test color depends on the concentration of a test item of the sample. The calibration color block is arranged adjacent to the slot, and the color of the calibration color block is selected from the color of a color calibration card. The corner positioning patterns are respectively arranged on a plurality of corners of the color guide.

依據本發明之另一實施方式是提供一種檢驗系統,包含上述的比色裝置、一影像擷取單元、一處理單元以及一儲存單元。影像擷取單元用於擷取比色裝置及檢驗試片的一原始影像。處理單元與影像擷取單元連接。儲存單元與處理單元連接,儲存單元儲存複數個標準顏色樣本的色相、飽和度、明度(Hue,Saturation,Value;HSV)數值,各個標準顏色樣本代表檢體之檢驗項目的一檢驗結果。處理單元配置以執行:接收原始影像;對原始影像進行位置校正以獲得一位置校正影像;對位置校正影像進行色彩校正以獲得一色彩校正影像;讀取色彩校正影像中檢驗顏色的HSV數值;依據檢驗顏色的HSV數值及複數個標準顏色樣本的HSV數值選擇一標準顏色樣本;以及輸出所選擇的標準顏色樣本所代表的檢驗結果。 Another embodiment of the present invention provides an inspection system, including the above-mentioned colorimetric device, an image capture unit, a processing unit, and a storage unit. The image capturing unit is used for capturing an original image of the colorimetric device and the test strip. The processing unit is connected with the image capturing unit. The storage unit is connected to the processing unit, and the storage unit stores Hue, Saturation, Value (HSV) values of a plurality of standard color samples, and each standard color sample represents a test result of a test item of the specimen. The processing unit is configured to perform: receiving the original image; performing position correction on the original image to obtain a position-corrected image; performing color correction on the position-corrected image to obtain a color-corrected image; reading the HSV value of the color-checked image in the color-corrected image; according to The HSV value of the inspection color and the HSV values of the plurality of standard color samples select a standard color sample; and output the inspection result represented by the selected standard color sample.

相較於先前技術,本發明之比色裝置中的比色板,其校正色塊的顏 色係選自一色彩校正卡的顏色,而非使用代表檢驗結果的標準顏色樣本,而可適用於不同的檢驗項目,具有泛用性高的優點。本發明之檢驗系統使用前述的比色裝置,同樣具有泛用性高的優點。本發明之檢驗系統使用影像分析方式取代目視比對方式,有利於提升檢驗結果的準確性。本發明之檢驗系統是將標準顏色樣本以HSV數值的形式儲存於儲存單元,當有新的標準顏色樣本較現有的標準顏色樣本更具代表性時,可直接將儲存單元中現有標準顏色樣本的HSV數值修改為新的標準顏色樣本的HSV數值,無須重新印製比色板,有利於更新及控制檢驗效能。 Compared with the prior art, the color guide in the color comparison device of the present invention can correct the color of the color block The color system is selected from the colors of a color calibration card, instead of using a standard color sample representing the test result, and can be applied to different test items, which has the advantage of high versatility. The inspection system of the present invention uses the aforementioned colorimetric device and also has the advantage of high versatility. The inspection system of the present invention uses an image analysis method instead of a visual comparison method, which is beneficial to improve the accuracy of inspection results. The inspection system of the present invention stores the standard color samples in the storage unit in the form of HSV values. When a new standard color sample is more representative than the existing standard color samples, the existing standard color samples in the storage unit can be directly The HSV value is modified to the HSV value of the new standard color sample, without reprinting the color guide, which is conducive to updating and controlling the inspection efficiency.

100:比色裝置 100: Colorimetric device

110:載台 110: carrier

111:容置槽 111: storage tank

112:第一平面 112: First plane

112a:長槽 112a: long slot

113:第二平面 113: second plane

114:摺線 114: polyline

120:比色板 120: Shade Guide

121:開槽 121: slotting

122:校正色塊 122: Correct color block

123:邊角定位圖案 123: Corner positioning pattern

124:定位色塊 124:Position color block

200:檢驗試片 200: inspection test piece

201,202,203,204,205,206,207,208,209,210:呈色部 201, 202, 203, 204, 205, 206, 207, 208, 209, 210: Color rendering department

300:影像擷取單元 300: image capture unit

400:處理單元 400: processing unit

500:儲存單元 500: storage unit

610,620,630,640,650,660,670:步驟 610, 620, 630, 640, 650, 660, 670: steps

710:原始影像 710: Original image

720:位置校正影像 720:Position correction image

730:色彩校正影像 730:Color Corrected Image

800:標準色卡 800: standard color card

801,802,803,804,805,811,812,813:標準顏色樣本 801, 802, 803, 804, 805, 811, 812, 813: standard color samples

900:HSV色彩空間 900:HSV color space

1000:檢驗系統 1000: inspection system

a1,a2,a3,b1,b2:區域 a1,a2,a3,b1,b2: area

P,D1,D2,D3:點 P, D1, D2, D3: points

L1,L2,L3,L4,L5,L6,L7,L8,L9,L10:色塊列 L1, L2, L3, L4, L5, L6, L7, L8, L9, L10: color block column

第1圖是依據本發明一實施方式的比色裝置的平面示意圖。 FIG. 1 is a schematic plan view of a colorimetric device according to an embodiment of the present invention.

第2圖是第1圖中比色裝置的分解圖。 Figure 2 is an exploded view of the colorimetric device in Figure 1.

第3圖是第1圖中比色裝置容置有檢驗試片的示意圖。 Fig. 3 is a schematic diagram of the colorimetric device in Fig. 1 accommodating test strips.

第4圖是第2圖中載台的展開圖。 Figure 4 is an expanded view of the stage in Figure 2.

第5圖是依據本發明一實施方式的檢驗系統的功能方塊示意圖。 FIG. 5 is a functional block diagram of an inspection system according to an embodiment of the present invention.

第6圖是依據本發明一實施方式的處理單元進行影像分析的步驟流程圖。 FIG. 6 is a flow chart of the steps of image analysis performed by the processing unit according to an embodiment of the present invention.

第7圖是依據本發明一實施方式的位置校正示意圖。 FIG. 7 is a schematic diagram of position correction according to an embodiment of the present invention.

第8圖是依據本發明一實施方式的色彩校正示意圖。 FIG. 8 is a schematic diagram of color correction according to an embodiment of the present invention.

第9圖是依據本發明一實施方式的由複數個標準顏色樣本中選擇一標準顏色樣本的示意圖。 FIG. 9 is a schematic diagram of selecting a standard color sample from a plurality of standard color samples according to an embodiment of the present invention.

請參照第1圖至第4圖,第1圖是依據本發明一實施方式的比色裝置的 平面示意圖,第2圖是第1圖中比色裝置的分解圖,第3圖是第1圖中比色裝置容置有檢驗試片的示意圖,第4圖是第2圖中載台的展開圖。第1圖及第2圖中,比色裝置100包含一載台110及一比色板120。載台110用以承載比色板120。比色板120可以黏貼的方式固定於載台110上。 Please refer to Figures 1 to 4, Figure 1 is a colorimetric device according to an embodiment of the present invention Plane schematic diagram, Figure 2 is an exploded view of the colorimetric device in Figure 1, Figure 3 is a schematic diagram of the colorimetric device in Figure 1 containing a test piece, Figure 4 is the expansion of the carrier in Figure 2 picture. In FIGS. 1 and 2 , the colorimetric device 100 includes a stage 110 and a colorimetric plate 120 . The stage 110 is used for carrying the color guide 120 . The color guide 120 can be fixed on the stage 110 by sticking.

載台110包含一容置槽111。如第3圖所示,容置槽111用以容置檢驗試片200。如第4圖所示,載台110包含一第一平面112及一第二平面113,第一平面112開設有一長槽112a,將第一平面112及第二平面113沿著摺線114對合黏貼,即可形成載台110,而長槽112a與其所對應的第二平面113的部分共同形成容置槽111。依據本發明一實施方式,載台110可一體成型,且可採用厚度為1mm之模型紙板製成。藉此,可提供足夠的強度,且有利於大量製造及降低材料成本。 The carrier 110 includes a receiving slot 111 . As shown in FIG. 3 , the accommodating groove 111 is used for accommodating the test piece 200 . As shown in Figure 4, the carrier 110 includes a first plane 112 and a second plane 113, the first plane 112 is provided with a long groove 112a, and the first plane 112 and the second plane 113 are bonded together along the folding line 114 , the stage 110 can be formed, and the long groove 112 a and the corresponding part of the second plane 113 together form the accommodating groove 111 . According to an embodiment of the present invention, the stage 110 can be integrally formed, and can be made of model cardboard with a thickness of 1 mm. Thereby, sufficient strength can be provided, which is beneficial to mass production and reduces material cost.

第2圖中,比色板120包含一開槽121、複數個校正色塊122以及複數個邊角定位圖案123,且可選擇地包含複數個定位色塊124,其中校正色塊122設置於區域b1、b2,定位色塊124設置於區域a1、a2、a3,區域a1、a2、a3、b1、b2係用於說明校正色塊122及定位色塊124設置的位置,實務上,區域a1、a2、a3、b1、b2的邊界並未印製於比色板120上,因此以虛線繪示區域a1、a2、a3、b1、b2的邊界。 In Fig. 2, the color guide 120 includes a slot 121, a plurality of correction color blocks 122 and a plurality of corner positioning patterns 123, and optionally includes a plurality of positioning color blocks 124, wherein the correction color blocks 122 are arranged in the area b1, b2, the positioning color blocks 124 are set in areas a1, a2, a3, and the areas a1, a2, a3, b1, b2 are used to illustrate the positions of the correction color blocks 122 and positioning color blocks 124. In practice, areas a1, The boundaries of a2, a3, b1, and b2 are not printed on the color guide 120, so the boundaries of the areas a1, a2, a3, b1, and b2 are drawn with dotted lines.

開槽121用以容置檢驗試片200。在本實施方式中,載台110的容置槽111與比色板120的開槽121對應而共同容置檢驗試片200。藉此,載台110可支撐檢驗試片200。在其他實施方式中,比色裝置100可僅包含比色板120而不包含載台110,使用時,使用者可將比色板120放置在平面(例如桌面)上,由所述平面支撐檢驗試片200。 The slot 121 is used for accommodating the test piece 200 . In this embodiment, the accommodating groove 111 of the stage 110 corresponds to the slot 121 of the color guide plate 120 to accommodate the test piece 200 together. In this way, the stage 110 can support the test strip 200 . In other embodiments, the colorimetric device 100 may only include the colorimetric plate 120 without the stage 110. During use, the user may place the colorimetric plate 120 on a flat surface (such as a desktop), and the inspection surface may be supported by the flat surface. Test piece 200.

校正色塊122鄰設於開槽121,校正色塊122的顏色係選自一色彩校正卡的顏色。優選地,所述色彩校正卡為馬克貝斯色彩校正卡(Macbeth color checker),其由馬克貝斯公司於西元1976年首次發行,馬克貝斯色彩校正卡上包含二十四個色塊,校正色塊122的數量及顏色與馬克貝斯色彩校正卡上的色塊的數量及顏色相同。 The calibration color block 122 is adjacent to the slot 121, and the color of the calibration color block 122 is selected from a color calibration card. Preferably, the color correction card is a Macbeth color checker (Macbeth color checker), which was first issued by Macbeth in 1976 AD. The Macbeth color correction card contains 24 color blocks, and the correction color block is 122 The number and color of the color are the same as the number and color of the color blocks on the Mark Bess color correction card.

邊角定位圖案123分別設置於比色板120的複數個邊角。在此,比色板120為長方形,邊角定位圖案123的數量為四個且分別設置於比色板120的四個邊角。優選地,各個邊角定位圖案123為一同心圓,在此,二個同心圓之間的間隙填有顏色(在此例示為藍色),其有利於基於霍夫轉換(Hough Transform)原理來偵測邊角定位圖案123的位置。在其他實施方式中,邊角定位圖案123亦可為單一圓形、橢圓形或其他可利用霍夫轉換進行偵測的幾何圖形。 The corner positioning patterns 123 are respectively disposed on a plurality of corners of the color guide 120 . Here, the color guide 120 is a rectangle, and the number of corner positioning patterns 123 is four, which are respectively arranged on the four corners of the color guide 120 . Preferably, each corner positioning pattern 123 is a concentric circle, and here, the gap between the two concentric circles is filled with a color (blue for example in this example), which is beneficial to base on the principle of Hough Transform (Hough Transform) The position of the corner positioning pattern 123 is detected. In other embodiments, the corner positioning pattern 123 can also be a single circle, ellipse or other geometric figures that can be detected by Hough transform.

定位色塊124鄰設於校正色塊122,定位色塊124用於輔助定位校正色塊122。優選地,複數個定位色塊124的顏色相同,且定位色塊124的顏色較比色板120的背景色深。在此,以比色板120的背景色為白色、定位色塊124的顏色為黑色作為例示。藉此,比色板120的背景色與定位色塊124的顏色對比大,有利於進行影像分析時辨識出定位色塊124並對其定位(例如建立定位色塊124的中心座標)。如第2圖所示,有些校正色塊122的顏色較淺而不利於偵測,例如位於區域b1、由上而下排序第四個的校正色塊122,藉由設置定位色塊124,可由定位色塊124的中心座標及其與校正色塊122的相對位置關係來定位校正色塊122,而可提升偵測的準確性。 The positioning color block 124 is adjacent to the calibration color block 122 , and the positioning color block 124 is used for assisting in positioning the calibration color block 122 . Preferably, the colors of the plurality of positioning color blocks 124 are the same, and the color of the positioning color blocks 124 is darker than the background color of the color board 120 . Here, the background color of the color guide 120 is white, and the color of the positioning color block 124 is black as an example. Thereby, the contrast between the background color of the color guide 120 and the color of the positioning color block 124 is large, which is beneficial for identifying and positioning the positioning color block 124 during image analysis (for example, establishing the center coordinates of the positioning color block 124 ). As shown in Figure 2, some calibration color blocks 122 are light in color and are not conducive to detection. For example, the calibration color block 122 located in the area b1 and ranked fourth from top to bottom can be determined by setting the positioning color block 124. Positioning the calibration color block 122 by locating the center coordinates of the color block 124 and its relative positional relationship with the calibration color block 122 can improve detection accuracy.

第3圖中,檢驗試片200包含至少一呈色部201~210,呈色部201~210與一檢體接觸後呈現一檢驗顏色,檢驗顏色取決於檢體之檢驗項目的濃度。在本實施方式中,檢驗試片200例示為尿液檢驗試片,其包含十個呈色部201~210,分別用以檢驗尿液中的白血球酯酶、亞硝酸鹽、尿膽素、蛋白質、酸鹼度、潛血反應、比重、酮、膽紅素及葡萄糖。然而,本發明不以此為限,呈色部201~210的數量可依據檢驗試片200的檢驗項目相應調整。此外,檢驗試片200不限於尿液檢驗試片,只要檢驗試片200之呈色部201~210的顏色可隨檢體之檢驗項目的濃度產生變化,皆適於本發明。例如,在其他實施方式中,檢驗試片200可為胃幽門螺旋桿菌檢驗試片、糞便潛血檢驗試片或黃體成長激素檢驗試片。 In FIG. 3 , the test strip 200 includes at least one color-forming portion 201-210, and the color-forming portion 201-210 presents a test color after being in contact with a sample, and the test color depends on the concentration of the test item of the sample. In this embodiment, the test strip 200 is exemplified as a urine test strip, which includes ten color-forming parts 201-210, which are respectively used to test leukocyte esterase, nitrite, urobilin, and protein in urine. , pH, occult blood reaction, specific gravity, ketones, bilirubin and glucose. However, the present invention is not limited thereto, and the number of the coloring parts 201 - 210 can be adjusted accordingly according to the test items of the test strip 200 . In addition, the test strip 200 is not limited to the urine test strip, as long as the color of the colored parts 201-210 of the test strip 200 can change with the concentration of the test item of the specimen, it is suitable for the present invention. For example, in other embodiments, the test strip 200 can be a gastric Helicobacter pylori test strip, a fecal occult blood test strip, or a luteinizing hormone test strip.

請參照第5圖,其是依據本發明一實施方式的檢驗系統的功能方塊示意圖。檢驗系統1000包含上述的比色裝置100、一影像擷取單元300、一處理單元400以及一儲存單元500。影像擷取單元300用於擷取比色裝置100及檢驗試片200的一原始影像。處理單元400與影像擷取單元300連接。儲存單元500與處理單元400連接,儲存單元500儲存複數個標準顏色樣本(可參考第9圖的標準顏色樣本801~805、811~813)的色相、飽和度、明度(Hue,Saturation,Value;HSV)數值,各個標準顏色樣本代表檢體之檢驗項目的一檢驗結果。 Please refer to FIG. 5 , which is a functional block diagram of an inspection system according to an embodiment of the present invention. The inspection system 1000 includes the above-mentioned colorimetric device 100 , an image capture unit 300 , a processing unit 400 and a storage unit 500 . The image capturing unit 300 is used to capture an original image of the colorimetric device 100 and the test strip 200 . The processing unit 400 is connected to the image capture unit 300 . The storage unit 500 is connected to the processing unit 400, and the storage unit 500 stores the hue, saturation, and lightness (Hue, Saturation, Value; HSV) value, each standard color sample represents a test result of the test item of the specimen.

詳細來說,處理單元400與影像擷取單元300及儲存單元500連接可為有線連接或無線連接。藉此,處理單元400、影像擷取單元300及儲存單元500間可傳遞訊息。影像擷取單元300具有擷取影像的能力。例如,影像擷取單元300可為設置於智慧型手機或平板電腦的鏡頭。處理單元400具有分析及計算能力。例如,處理單元400可為中央處理單元(Central Processing Unit,CPU)或智慧型手機的微處理器(Microprocessor)。儲存單元500具有儲存資料的能力,用於儲存影 像分析所需的相關資料,除了前述的複數個標準顏色樣本的HSV數值,尚可儲存比色裝置100的尺寸資訊、校正色塊122的原始顏色數值等,前述比色裝置100的尺寸資訊包含比色裝置100的長、寬、厚,比色板120上開槽121、校正色塊122、邊角定位圖案123、定位色塊124的尺寸及彼此間的相對位置關係等。例如,儲存單元500可為但不限於隨機存取記憶體(Random Access Memory;RAM)、唯讀記憶體(Read-Only Memory;ROM)。依據本發明一實施方式,影像擷取單元300可設置於一手持裝置,處理單元400及儲存單元500設置於一伺服器,手持裝置與伺服器通過網際網路傳遞訊號,使用者可使用手持裝置的影像擷取單元300擷取比色裝置100及檢驗試片200的原始影像,並將所述原始影像上傳至伺服器,透過雲端運算進行影像分析。在其他實施方式中,影像擷取單元300、處理單元400及儲存單元500可皆設置於手持裝置中,使用者可事先將影像分析所需的資料下載至手持裝置中,使用時以手持裝置的影像擷取單元300擷取比色裝置100及檢驗試片200的原始影像後直接由手持裝置進行影像分析。 In detail, the connection between the processing unit 400 and the image capture unit 300 and the storage unit 500 may be wired connection or wireless connection. In this way, information can be transmitted among the processing unit 400 , the image capture unit 300 and the storage unit 500 . The image capture unit 300 is capable of capturing images. For example, the image capture unit 300 can be a camera set on a smart phone or a tablet computer. The processing unit 400 has analytical and computing capabilities. For example, the processing unit 400 may be a central processing unit (Central Processing Unit, CPU) or a microprocessor (Microprocessor) of a smart phone. The storage unit 500 has the ability to store data and is used for storing video Relevant data required for image analysis, in addition to the aforementioned HSV values of the plurality of standard color samples, can still store the size information of the color comparison device 100, the original color value of the calibration color block 122, etc. The size information of the aforementioned color comparison device 100 includes The length, width, and thickness of the colorimetric device 100 , the size of the slot 121 on the colorimetric plate 120 , the calibration color block 122 , the corner positioning pattern 123 , the positioning color block 124 , and the relative positional relationship between them, etc. For example, the storage unit 500 may be, but not limited to, a random access memory (Random Access Memory; RAM), and a read-only memory (Read-Only Memory; ROM). According to an embodiment of the present invention, the image capture unit 300 can be set on a handheld device, the processing unit 400 and the storage unit 500 can be set on a server, and the handheld device and the server transmit signals through the Internet, and the user can use the handheld device The image capture unit 300 captures the original images of the colorimetric device 100 and the test strip 200, and uploads the original images to the server for image analysis through cloud computing. In other embodiments, the image capture unit 300, the processing unit 400, and the storage unit 500 can all be set in the handheld device, and the user can download the data required for image analysis to the handheld device in advance, and use it with the handheld device. The image capture unit 300 captures the original images of the colorimetric device 100 and the test strip 200 and then directly performs image analysis by the handheld device.

配合參照第6圖,其是依據本發明一實施方式的處理單元進行影像分析的步驟流程圖。處理單元400配置以執行步驟610至步驟660,且可選擇地包含步驟670。步驟610是接收原始影像;步驟620是對原始影像進行位置校正以獲得一位置校正影像;步驟630是對位置校正影像進行色彩校正以獲得一色彩校正影像;步驟640是讀取色彩校正影像中檢驗顏色的HSV數值;步驟650是依據檢驗顏色的HSV數值及複數個標準顏色樣本的HSV數值選擇一標準顏色樣本;步驟660是輸出所選擇的標準顏色樣本所代表的檢驗結果;步驟670是將所選擇的標準顏色樣本所代表的該檢驗結果儲存於儲存單元500中。 Referring to FIG. 6 , it is a flow chart of the steps of image analysis performed by the processing unit according to an embodiment of the present invention. The processing unit 400 is configured to perform steps 610 to 660 , and optionally includes step 670 . Step 610 is to receive the original image; Step 620 is to perform position correction on the original image to obtain a position-corrected image; Step 630 is to perform color correction to the position-corrected image to obtain a color-corrected image; Step 640 is to read the color-corrected image for inspection The HSV numerical value of color; Step 650 is to select a standard color sample according to the HSV numerical value of the inspection color and the HSV numerical value of a plurality of standard color samples; Step 660 is to output the inspection result represented by the selected standard color sample; The inspection result represented by the selected standard color sample is stored in the storage unit 500 .

以下以比色裝置100及檢驗試片200例示說明步驟610至步驟670。配 合參照第7圖,其是依據本發明一實施方式的位置校正示意圖。使用者在使用影像擷取單元300擷取影像時,可能因拍攝角度歪斜,而使原始影像710產生三維空間的旋轉偏移,如位置偏移、角度傾斜而使影像辨識產生誤差,為了避免上述情況,需先進行位置校正。對原始影像710進行位置校正以獲得位置校正影像720(步驟620)可包含於原始影像710中偵測邊角定位圖案123的位置,其可基於霍夫轉換原理實現,而分別定義出四個邊角定位圖案123的中心座標(在此為圓心座標)。接著,依據所偵測到之邊角定位圖案123的位置及儲存單元500中所儲存之比色裝置100的尺寸資訊可產生位置校正影像720,其可基於映射轉換(perspective transformation)原理實現。藉此,可校正原始影像710於三維空間中旋轉偏移的情形。若偵測到邊角定位圖案123有過於變形的情況,可要求使用者重新拍攝。處理單元400可進一步於位置校正影像720定義出定位色塊124及校正色塊122的中心座標,以利後續影像分析。關於霍夫轉換原理、映射轉換原理及如何定義出定位色塊124及校正色塊122的中心座標為本領域之通常知識,在此不另贅述。 Steps 610 to 670 are described below with the colorimetric device 100 and the test strip 200 as examples. match Referring to FIG. 7 , it is a schematic diagram of position calibration according to an embodiment of the present invention. When the user uses the image capture unit 300 to capture an image, the original image 710 may have a three-dimensional rotation offset due to a skewed shooting angle, such as a position offset, an angle tilt, and an error in image recognition. In order to avoid the above In this case, position correction is required first. Correcting the position of the original image 710 to obtain the position-corrected image 720 (step 620) may include detecting the position of the corner positioning pattern 123 in the original image 710, which can be realized based on the principle of Hough transformation, and four sides are respectively defined The center coordinates of the corner positioning pattern 123 (here, the circle center coordinates). Then, the position correction image 720 can be generated according to the detected position of the corner positioning pattern 123 and the size information of the colorimetric device 100 stored in the storage unit 500 , which can be realized based on the principle of perspective transformation. In this way, the rotation and offset of the original image 710 in the three-dimensional space can be corrected. If it is detected that the corner positioning pattern 123 is too deformed, the user may be required to take another shot. The processing unit 400 can further define the center coordinates of the positioning color block 124 and the calibration color block 122 in the position correction image 720 to facilitate subsequent image analysis. The principle of Hough transformation, the principle of mapping transformation and how to define the center coordinates of the positioning color block 124 and the calibration color block 122 are common knowledge in the art, and will not be repeated here.

配合參照第8圖,其是依據本發明一實施方式的色彩校正示意圖。由於使用者所使用手持裝置不同、拍攝環境光源條件不同、拍攝時手部晃動等原因,可能導致原始影像710的顏色產生差異,因此需要進行色彩校正。對位置校正影像720進行色彩校正以獲得色彩校正影像730(步驟630)包含讀取位置校正影像720中校正色塊122的偵測顏色數值,以及依據校正色塊122的偵測顏色數值及儲存單元500中所除儲存之校正色塊122的原始顏色數值產生一色彩校正影像730,前述偵測顏色數值及原始顏色數值可基於RGB色彩模型而為RGB數值。藉由計算偵測顏色數值及原始顏色數值的偏差,可還原影像色彩,而可校正原始影像710之顏色產生差異的問題。 Referring to FIG. 8 , it is a schematic diagram of color correction according to an embodiment of the present invention. The color of the original image 710 may be different due to different hand-held devices used by the user, different lighting conditions of the shooting environment, hand shaking during shooting, etc., and color correction is required. Performing color correction on the position-corrected image 720 to obtain the color-corrected image 730 (step 630) includes reading the detected color value of the corrected color block 122 in the position-corrected image 720, and the detected color value and storage unit according to the corrected color block 122 The original color values of the corrected color blocks 122 that are stored in 500 generate a color corrected image 730 , and the aforementioned detected color values and original color values can be RGB values based on the RGB color model. By calculating the deviation between the detected color value and the original color value, the color of the image can be restored, and the problem of the color difference of the original image 710 can be corrected.

在校正完位置及色彩後,讀取色彩校正影像730中各呈色部201~210之檢驗顏色的HSV數值(步驟640),依據檢驗顏色的HSV數值及儲存單元500中所儲存之標準顏色樣本的HSV數值選擇一標準顏色樣本(步驟650)。配合參照第9圖,其是依據本發明一實施方式的由複數個標準顏色樣本中選擇一標準顏色樣本的示意圖。第9圖中,標準色卡800為購買檢驗試片200時廠商所提供,標準色卡800包含十個色塊列L1~L10,分別對應十個呈色部201~210,色塊列L1包含複數個標準顏色樣本801~805,分別代表呈色部201所對應之檢驗項目(在此例示為白血球酯酶)的不同檢驗結果,色塊列L2包含複數個標準顏色樣本811~813,分別代表呈色部202所對應之檢驗項目(在此例示為亞硝酸鹽)的不同檢驗結果,依此類推。以呈色部202為例,處理單元400讀取呈色部202之檢驗顏色的HSV數值後,將呈色部202之檢驗顏色的HSV數值及標準顏色樣本811、812、813的HSV數值導入HSV色彩空間900中,呈色部202之檢驗顏色及標準顏色樣本811、812、813的HSV數值於HSV色彩空間900中的位置分別為點P、點D1、點D2、點D3,分別計算點P與點D1、點D2、點D3的距離,得到點P與點D1之間的距離最小,表示呈色部202之檢驗顏色最接近標準顏色樣本811的顏色,因此以標準顏色樣本811所代表的檢驗結果作為呈色部202的檢驗結果。之後,處理單元400再輸出所選擇的標準顏色樣本811所代表的檢驗結果(步驟660),例如,可輸出至使用者的手持裝置,有利於使用者即時知道檢驗結果,並可將所選擇的標準顏色樣本811所代表的檢驗結果儲存於儲存單元500中(步驟670),以供使用者未來瀏覽使用並有利於長期追蹤使用者的健康狀況。 After the position and color are calibrated, read the HSV value of the test color of each color rendering part 201-210 in the color correction image 730 (step 640), based on the HSV value of the test color and the standard color sample stored in the storage unit 500 A standard color sample is selected by the HSV value (step 650). Referring to FIG. 9 , it is a schematic diagram of selecting a standard color sample from a plurality of standard color samples according to an embodiment of the present invention. In Figure 9, the standard color card 800 is provided by the manufacturer when purchasing the test piece 200. The standard color card 800 includes ten color block columns L1~L10, corresponding to the ten color rendering parts 201~210 respectively. The color block column L1 includes A plurality of standard color samples 801-805 represent different test results of the test items corresponding to the color rendering unit 201 (in this example, leukocyte esterase). The color block column L2 includes a plurality of standard color samples 811-813, which respectively represent Different test results of the test items corresponding to the color rendering unit 202 (here, nitrite is exemplified) and so on. Taking the color rendering unit 202 as an example, the processing unit 400 reads the HSV value of the test color of the color rendering unit 202, and then imports the HSV value of the test color of the color rendering unit 202 and the HSV values of the standard color samples 811, 812, and 813 into HSV In the color space 900, the positions of the HSV values of the inspection color of the color rendering unit 202 and the standard color samples 811, 812, and 813 in the HSV color space 900 are point P, point D1, point D2, and point D3 respectively, and point P is calculated respectively. The distance between point D1, point D2, and point D3 is the smallest distance between point P and point D1, indicating that the test color of the color rendering unit 202 is closest to the color of the standard color sample 811, so the standard color sample 811 represents The inspection result is used as the inspection result of the color rendering unit 202 . Afterwards, the processing unit 400 outputs the inspection result represented by the selected standard color sample 811 (step 660), for example, it can be output to the user's hand-held device, which is helpful for the user to know the inspection result immediately, and the selected The test results represented by the standard color sample 811 are stored in the storage unit 500 (step 670 ), for the user to browse and use in the future and to facilitate long-term tracking of the user's health status.

相較於先前技術,本發明之比色裝置中的比色板,其校正色塊的顏色係選自一色彩校正卡的顏色,而非使用代表檢驗結果的標準顏色樣本,而可適用於不同的檢驗項目,具有泛用性高的優點。本發明之檢驗系統使用前述的 比色裝置,同樣具有泛用性高的優點。本發明之檢驗系統使用影像分析方式取代目視比對方式,有利於提升檢驗結果的準確性。本發明之檢驗系統是將標準顏色樣本以HSV數值的形式儲存於儲存單元,當有較現有的標準顏色樣本更具代表性的新的標準顏色樣本時,可直接將儲存單元中現有標準顏色樣本的HSV數值修改為新的標準顏色樣本的HSV數值,無須重新印製比色板,有利於更新及控制檢驗效能。本發明的檢驗系統可同時對檢驗試片上的多個呈色部的檢驗顏色進行影像分析,相較於目視比對需要逐一比對,本發明的檢驗系統可大幅縮短檢驗時間。本發明的檢驗系統可供使用者自行檢驗,而無須至醫院或健檢中心,可大幅提升檢驗的便利性。 Compared with the prior art, in the color guide plate in the color comparison device of the present invention, the color of the calibration color block is selected from the color of a color calibration card, instead of using a standard color sample representing the test result, and can be applied to different The inspection items have the advantages of high versatility. The inspection system of the present invention uses the aforementioned The colorimetric device also has the advantage of high versatility. The inspection system of the present invention uses an image analysis method instead of a visual comparison method, which is beneficial to improve the accuracy of inspection results. The inspection system of the present invention stores the standard color samples in the storage unit in the form of HSV values. When there is a new standard color sample that is more representative than the existing standard color samples, the existing standard color samples in the storage unit can be directly The HSV value of the new standard color sample is changed to the HSV value of the new standard color sample, and there is no need to reprint the color guide, which is conducive to updating and controlling the inspection efficiency. The inspection system of the present invention can perform image analysis on the inspection colors of multiple color-forming parts on the inspection test piece at the same time. Compared with visual comparisons that need to be compared one by one, the inspection system of the present invention can greatly shorten the inspection time. The inspection system of the present invention can be used for self-inspection by users without going to a hospital or health examination center, which greatly improves the convenience of inspection.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

100:比色裝置 100: Colorimetric device

110:載台 110: carrier

111:容置槽 111: storage tank

120:比色板 120: Shade Guide

121:開槽 121: slotting

122:校正色塊 122: Correct color block

123:邊角定位圖案 123: Corner positioning pattern

124:定位色塊 124:Position color block

Claims (13)

一種比色裝置,包含:一比色板,包含:一開槽,用以容置一檢驗試片,其中該檢驗試片包含至少一呈色部,該呈色部與一檢體接觸後呈現一檢驗顏色,該檢驗顏色取決於該檢體之一檢驗項目的濃度;複數個校正色塊,鄰設於該開槽,該些校正色塊的顏色係選自一色彩校正卡的顏色,且該些校正色塊排除代表檢驗結果的複數個標準顏色樣本;以及複數個邊角定位圖案,分別設置於該比色板的複數個邊角。 A colorimetric device, comprising: a colorimetric plate, comprising: a slot for accommodating a test piece, wherein the test piece comprises at least one color-forming portion, and the color-forming portion appears after contacting a sample a test color, the test color depends on the concentration of one test item of the sample; a plurality of calibration color blocks are adjacent to the slot, and the colors of the calibration color blocks are selected from the colors of a color calibration card, and The calibration color blocks exclude a plurality of standard color samples representing test results; and a plurality of corner positioning patterns are respectively arranged on a plurality of corners of the color guide. 如請求項1所述的比色裝置,其中各該邊角定位圖案為一同心圓。 The colorimetric device according to claim 1, wherein each of the corner positioning patterns is a concentric circle. 如請求項1所述的比色裝置,其中該比色板更包含:複數個定位色塊,鄰設於該些校正色塊,該些定位色塊用於輔助定位該些校正色塊。 The color comparison device as claimed in claim 1, wherein the color comparison board further includes: a plurality of positioning color blocks adjacent to the calibration color blocks, and the positioning color blocks are used to assist in positioning the calibration color blocks. 如請求項3所述的比色裝置,其中該些定位色塊的顏色相同,且該些定位色塊的顏色較該比色板的背景色深。 The color comparison device according to claim 3, wherein the positioning color blocks have the same color, and the color of the positioning color blocks is darker than the background color of the color guide. 如請求項1所述的比色裝置,更包含:一載台,用以承載該比色板,該載台包含一容置槽,該容置槽用以容置該檢驗試片且與該開槽對應。 The colorimetric device as described in claim 1, further comprising: a stage for carrying the colorimetric plate, the stage includes an accommodating groove, the accommodating groove is used for accommodating the inspection test piece and is connected with the Slotted correspondence. 一種檢驗系統,包含:一如請求項1所述的比色裝置;一影像擷取單元,用於擷取該比色裝置及該檢驗試片的一原始影像;一處理單元,與該影像擷取單元連接;以及一儲存單元,與該處理單元連接,該儲存單元儲存該些標準顏色樣本的色相、飽和度、明度(Hue,Saturation,Value;HSV)數值,各該標準顏色樣本代表該檢體之該檢驗項目的一檢驗結果;其中該處理單元配置以執行:接收該原始影像;對該原始影像進行位置校正以獲得一位置校正影像;對該位置校正影像進行色彩校正以獲得一色彩校正影像;讀取該色彩校正影像中該檢驗顏色的HSV數值;依據該檢驗顏色的HSV數值及該些標準顏色樣本的HSV數值選擇一該標準顏色樣本;以及輸出所選擇的該標準顏色樣本所代表的該檢驗結果。 An inspection system, comprising: a colorimetric device as described in claim 1; an image capture unit, used to capture an original image of the colorimetric device and the inspection test piece; a processing unit, and the image capture unit and a storage unit connected to the processing unit, the storage unit stores the hue, saturation, lightness (Hue, Saturation, Value; HSV) values of the standard color samples, and each of the standard color samples represents the detection An inspection result of the inspection item of the body; wherein the processing unit is configured to perform: receiving the original image; performing position correction on the original image to obtain a position correction image; performing color correction on the position correction image to obtain a color correction image; read the HSV value of the inspection color in the color correction image; select a standard color sample according to the HSV value of the inspection color and the HSV values of the standard color samples; and output the selected standard color sample result of this test. 如請求項6所述的檢驗系統,其中該處理單元更配置以執行:將所選擇的該標準顏色樣本所代表的該檢驗結果儲存於該儲存單元中。 The inspection system as claimed in claim 6, wherein the processing unit is further configured to execute: storing the inspection result represented by the selected standard color sample in the storage unit. 如請求項6所述的檢驗系統,其中該儲存單元更儲存該比色裝置的尺寸資訊,對該原始影像進行位置校正以獲得該位置校正影像包含:於該原始影像中偵測該些邊角定位圖案的位置;以及依據該些邊角定位圖案的位置及該比色裝置的尺寸資訊產生該位置校正影像。 The inspection system as described in claim 6, wherein the storage unit further stores the size information of the colorimetric device, and performing position correction on the original image to obtain the position correction image includes: detecting the corners in the original image The position of the positioning pattern; and generating the position correction image according to the positions of the corner positioning patterns and the size information of the colorimetric device. 如請求項8所述的檢驗系統,其中於該原始影像中偵測該些邊角定位圖案的位置是基於霍夫轉換原理。 The inspection system as claimed in claim 8, wherein detecting the positions of the corner positioning patterns in the original image is based on the principle of Hough transform. 如請求項8所述的檢驗系統,其中依據該些邊角定位圖案的位置及該比色裝置的尺寸資訊產生該位置校正影像是基於映射轉換原理。 The inspection system as claimed in claim 8, wherein generating the position correction image according to the positions of the corner positioning patterns and the size information of the colorimetric device is based on a mapping conversion principle. 如請求項6所述的檢驗系統,其中該儲存單元更儲存該些校正色塊的原始顏色數值,對該位置校正影像進行色彩校正以獲得該色彩校正影像包含:讀取該位置校正影像中該些校正色塊的偵測顏色數值;以及依據該些校正色塊的偵測顏色數值及該些校正色塊的原始顏色數值產生該色彩校正影像。 The inspection system as described in claim 6, wherein the storage unit further stores the original color values of the corrected color blocks, and performing color correction on the position-corrected image to obtain the color-corrected image includes: reading the position-corrected image from the The detected color values of the corrected color blocks; and the color corrected image is generated according to the detected color values of the corrected color blocks and the original color values of the corrected color blocks. 如請求項6所述的檢驗系統,其中依據該檢驗顏色的HSV數值及該些標準顏色樣本的HSV數值選擇一該標準顏色樣本是分別計算該檢驗顏色的HSV數值及該些標準顏色樣本的HSV數值於一HSV色彩空間中的距離,並以距離最小者作為所選擇的該標準顏色樣本。 The inspection system as described in claim 6, wherein selecting a standard color sample according to the HSV value of the inspection color and the HSV values of the standard color samples is to calculate the HSV value of the inspection color and the HSV of the standard color samples respectively The distance between values in an HSV color space, and the one with the smallest distance is used as the selected standard color sample. 如請求項6所述的檢驗系統,其中該影像擷取單元設置於一手持裝置,該處理單元及該儲存單元設置於一伺服器。 The inspection system according to claim 6, wherein the image capture unit is set on a handheld device, and the processing unit and the storage unit are set on a server.
TW110145414A 2021-12-06 2021-12-06 Colorimetric device and checkup system TWI805112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110145414A TWI805112B (en) 2021-12-06 2021-12-06 Colorimetric device and checkup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110145414A TWI805112B (en) 2021-12-06 2021-12-06 Colorimetric device and checkup system

Publications (2)

Publication Number Publication Date
TWI805112B true TWI805112B (en) 2023-06-11
TW202323795A TW202323795A (en) 2023-06-16

Family

ID=87802902

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110145414A TWI805112B (en) 2021-12-06 2021-12-06 Colorimetric device and checkup system

Country Status (1)

Country Link
TW (1) TWI805112B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050036668A1 (en) * 2003-02-12 2005-02-17 The University Of Iowa Research Foundation Methods and devices useful for analyzing color medical images
CN104856680A (en) * 2015-05-11 2015-08-26 深圳贝申医疗技术有限公司 Automatic detection method and system for neonatal jaundice
US20190320094A1 (en) * 2018-04-13 2019-10-17 Arius Technology Inc. Systems and methods for imaging fine art paintings
TW202131353A (en) * 2020-02-10 2021-08-16 國立成功大學 Strip detecting device
CN113674164A (en) * 2021-07-23 2021-11-19 杭州未名信科科技有限公司 Sample color correction method, sample color correction device, electronic device, and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050036668A1 (en) * 2003-02-12 2005-02-17 The University Of Iowa Research Foundation Methods and devices useful for analyzing color medical images
CN104856680A (en) * 2015-05-11 2015-08-26 深圳贝申医疗技术有限公司 Automatic detection method and system for neonatal jaundice
US20190320094A1 (en) * 2018-04-13 2019-10-17 Arius Technology Inc. Systems and methods for imaging fine art paintings
TW202131353A (en) * 2020-02-10 2021-08-16 國立成功大學 Strip detecting device
CN113674164A (en) * 2021-07-23 2021-11-19 杭州未名信科科技有限公司 Sample color correction method, sample color correction device, electronic device, and medium

Also Published As

Publication number Publication date
TW202323795A (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US11802839B2 (en) Quantifying color changes in chemical test pads induced by different concentrations of analytes under different lighting conditions
US9607380B2 (en) Methods and apparatus for quantifying color changes induced by specific concentrations of biological analytes
KR101954783B1 (en) Testing apparatus
US11333658B2 (en) Urine test strip comprising timer, and method for detecting and analyzing urine test strip
CN116250004A (en) Diagnostic test kit and analysis method thereof
CN112219109A (en) Calibration method for calibrating a camera of a mobile device for detecting an analyte in a sample
JP2023525776A (en) How to evaluate the quality of color reference cards
JP2023517061A (en) Calibrating a digital camera for use as a scanner
TWI805112B (en) Colorimetric device and checkup system
TWI738209B (en) Strip detecting device
CN113791065A (en) Test paper based on two-dimensional coding positioning and interpretation method
EP3954990B1 (en) Test strip fixation device for optical measurements of an analyte
US20240102934A1 (en) Test Strip Carrier, System and Method for Test Strip Detection
JP2023007981A (en) Density analysis system
KR20200128829A (en) Detection method for target substances in the balance
KR20200128857A (en) A Program to execute the method of detecting target substances in the balance
KR20200128833A (en) Method for determination of chaining using portable terminal
KR20200128860A (en) Record media on which a program is recorded to execute the method of detecting target substances
KR20200128824A (en) Detection method and detection pad