Color measurement algorithm of urine test strip

A technology for testing test paper and color measurement, which is applied in the field of medical testing, can solve the problems of test paper color error, complex algorithm, poor linearity, etc., and achieve the effect of reducing acquisition error

Inactive Publication Date: 2019-04-02
无锡益诺华科技发展有限公司
View PDF13 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in practice, when the urine is tested, the test paper may be uneven and in contact with the urine, resulting in errors in the color of the tested test paper. Although some use color sensors to directly measure color components, and some use photosensitive devices to measure spectral curves, both It can be realized, but the disadvantage is that it needs to be compensated, and it is affected by the external light intensity and temperature.
The algorithm is more complicated, and the linearity is not good, so it is not a more accurate algorithm

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Color measurement algorithm of urine test strip
  • Color measurement algorithm of urine test strip
  • Color measurement algorithm of urine test strip

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Among several commonly used color spaces, the LAB color space is one of the most commonly used except RGB. Unlike the RGB color space, the Lab color is designed to be close to human vision. It works on perceptual uniformity, and its L component closely matches human perception of brightness. Therefore, it can be used to do precise color balance by modifying the color loss of a and b components, or use the L component to adjust the brightness contrast. These transformations are difficult or impossible in RGB or CMYK, and they model the output of a physical device, not human visual perception.

[0020] There is no direct conversion formula between RGB and LAB, it must use the channel XYZ color space as the intermediate layer, about the conversion and optimization of RGB and XYZ color space

[0021] L * =116f(Y / Y n )-16

[0022] a * =500[f(X / X n )-f(Y / Y n )]

[0023] b * =200[f(Y / Y n )-f(Z / Z n )]

[0024] in

[0025]

[0026] In the above expression, the va...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of medical detection, in particular to an algorithm for calculating the test strip color by using LAB color space components, which makes the test effect more accurate, and comprises the following steps: step 1, converting RGB color components into the LAB color components by establishing a channel XYZ color space; step 2, defining X, Y, Z and t variables to be in the range [0, 1]; step 3, defining the range of the L component as [0, 100], and defining the range of the A and B components are both [-127, 127]; and step 4, optimizing the floating point number of results of each LAB component: optimization of a function f(t); converting the RGB color space to the LAB color space; and performing corresponding conversions on the L, A and B values ofthe LAB color space through the corresponding algorithm; the corresponding conversions and trade-off are performed on the floating point values of the obtained L, A and B values again, and then tablelookup method comparison is performed, therefore, the obtaining error of the test strip color is greatly reduced.

Description

technical field [0001] The invention relates to the technical field of medical detection, in particular to a urine detection test paper color measurement algorithm. Background technique [0002] With the development of medical technology, urine testing has been more and more widely used as a routine detection method. Usually, a urine analyzer is used to test the urine to be analyzed. [0003] In practical applications, the popularization and application of urine testing methods is limited due to the bulky size and high price of urine analyzers. At present, with the popularization of smart devices and the application of image analysis algorithms, smart devices are used to take pictures of urine-infiltrated test strips and non-infiltrated urine test strips, and then use image analysis algorithms to perform image analysis on the captured pictures. Then obtain the color of the urine detection test paper; then according to the color vector value displayed by the urine detection...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G01N21/84G06T5/00G06T7/90
CPCG06T7/90G01N21/8483G06T5/92
Inventor 王萍张进锋
Owner 无锡益诺华科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products