The invention relates to the technical field of test paper
color analysis, in particular to a method for detecting sample substance concentration based on pushing direction identification of a
urine drying test strip, which specifically comprises the following steps of: firstly, obtaining color block RGB (Red, Green and Blue) data by camera timing integration, and inputting the color block RGB data into a
color calibration matrix to obtain a standard color and a calibration value; the method comprises the following steps: firstly, carrying out calibration on a to-be-detected item, then circularly searching whether the to-be-detected item still exists or not, if so, moving to a next detection color block, carrying out color integration with the same time length to obtain RGB data, then combining with a calibration value to obtain calibrated RGB data, entering an analysis module, firstly converting the RGB data into LAB spatial data, carrying out same-color
system judgment, if in the same color
system, calculating a Lab spatial
Euclidean distance, and if in the same color
system, calculating a Lab spatial
Euclidean distance; if not, a
color difference comparison
algorithm is adopted for optimization,
color difference comparison is carried out, and the color with the minimum
color difference is selected; and then searching a corresponding sample concentration value as a detection result, and finally returning to the circulation until all items are detected and exiting the circulation.