[go: up one dir, main page]

CN115824982A - An optical POCT color interpretation method, system and device - Google Patents

An optical POCT color interpretation method, system and device Download PDF

Info

Publication number
CN115824982A
CN115824982A CN202211666263.7A CN202211666263A CN115824982A CN 115824982 A CN115824982 A CN 115824982A CN 202211666263 A CN202211666263 A CN 202211666263A CN 115824982 A CN115824982 A CN 115824982A
Authority
CN
China
Prior art keywords
value
image
optical
poct
solution
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211666263.7A
Other languages
Chinese (zh)
Inventor
冯世伦
杨子欣
蔡杲哲
赵建龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Prospective Innovation Research Institute Co ltd
Original Assignee
Shanghai Prospective Innovation Research Institute Co ltd
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 Shanghai Prospective Innovation Research Institute Co ltd filed Critical Shanghai Prospective Innovation Research Institute Co ltd
Priority to CN202211666263.7A priority Critical patent/CN115824982A/en
Publication of CN115824982A publication Critical patent/CN115824982A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Spectrometry And Color Measurement (AREA)

Abstract

The application provides an optical POCT color interpretation method, a system and a device, comprising the following steps: pre-establishing a standard curve between the pH value and the chromatic value; collecting the colorimetric value of the solution to be detected; and substituting the chromatic value of the solution to be detected into the standard curve to obtain the pH value of the solution to be detected. The optical POCT color interpretation method, the system and the device realize high-sensitivity and high-precision quantitative detection, and meet the application requirements of instant fixed-point detection of users; the anti-interference capability is strong, and the interference of factors such as ambient light on the detection process is effectively reduced; easy to integrate and calibrate, the requirements for the professional skills of the operator and the auxiliary equipment are greatly reduced.

Description

一种光学POCT颜色判读方法、系统和装置An optical POCT color interpretation method, system and device

技术领域technical field

本申请属于光学检测技术领域,特别是涉及一种光学POCT颜色判读方法、系统和装置。The present application belongs to the technical field of optical detection, and in particular relates to an optical POCT color interpretation method, system and device.

背景技术Background technique

即时检测(POCT)是在采样现场即刻进行分析,省去标本在实验室检验时的复杂处理程序,快速得到检验结果的一类检测方法。由于POCT可以在现场进行,且大大降低了测试时间和成本,因此在临床诊断、食品安全、环境检测等诸多方面受到越来越多的关注。Point-of-care testing (POCT) is a type of testing method that can be analyzed immediately at the sampling site, eliminating the need for complex processing procedures during laboratory testing of specimens, and quickly obtaining test results. Since POCT can be performed on-site and greatly reduces test time and cost, it has received more and more attention in many aspects such as clinical diagnosis, food safety, and environmental testing.

POCT最常见的方法是视觉比色法,该方法利用眼睛来比较检测样本的颜色深度,具有设备简单、操作方便的优点,但由于依赖于人眼对颜色的区分,视觉比色法的检测精度和灵敏度较低,特别是当样品中存在有色干扰时,通过视觉比色法很难区分分析物和干扰物。传统的光学检测设备,例如光谱仪,容易受到外部光学参数的影响,对检测结果的准确度影响较大;同时检测仪器的价格昂贵,体积庞大,不易集成和维护,难以应用于现场即时定点检测中。The most common method of POCT is visual colorimetry. This method uses the eyes to compare the color depth of the test sample. It has the advantages of simple equipment and convenient operation. And low sensitivity, especially when colored interferences are present in the sample, it is difficult to distinguish analytes from interferences by visual colorimetry. Traditional optical detection equipment, such as spectrometers, are easily affected by external optical parameters, which have a great impact on the accuracy of detection results; at the same time, detection instruments are expensive, bulky, difficult to integrate and maintain, and difficult to apply to on-site real-time fixed-point detection .

目前,已有一些光学检测方法通过图像采集工具配合图像处理软件的方式实现了样品的半定量检测,例如数字图像比色法(DIC)。然而这类方法在采集样品图像时容易受到环境光以及反光的影响,同时在不同的设备上存在色差,一方面降低了样品检测的准确性与灵敏度,另一方面只适用于样品的半定量检测,不能满足实际应用的需求。At present, some optical detection methods have achieved semi-quantitative detection of samples through image acquisition tools and image processing software, such as digital image colorimetry (DIC). However, this type of method is easily affected by ambient light and reflections when collecting sample images, and there are color differences on different devices. On the one hand, it reduces the accuracy and sensitivity of sample detection, and on the other hand, it is only suitable for semi-quantitative detection of samples. , which cannot meet the needs of practical applications.

发明内容Contents of the invention

本申请的目的在于提供一种光学POCT颜色判读方法、系统和装置,用于解决现有光学检测设备检测速度慢、检测灵敏度与准确性低的技术问题。The purpose of this application is to provide an optical POCT color interpretation method, system and device, which are used to solve the technical problems of slow detection speed, low detection sensitivity and low accuracy of existing optical detection equipment.

第一方面,本申请提供一种光学POCT颜色判读方法,包括以下步骤:In the first aspect, the present application provides an optical POCT color interpretation method, comprising the following steps:

预先建立pH值和色度值间的标准曲线;采集待测溶液的色度值;将所述待测溶液的色度值代入所述标准曲线,以获取所述待测溶液的pH值。A standard curve between the pH value and the chromaticity value is established in advance; the chromaticity value of the solution to be tested is collected; and the chromaticity value of the solution to be tested is substituted into the standard curve to obtain the pH value of the solution to be tested.

本申请中,实现了高灵敏和高精准的定量检测,满足了用户即时定点的应用需求。In this application, high-sensitivity and high-precision quantitative detection is realized, which meets the application requirements of users for real-time fixed-point.

在第一方面的一种实现方式中,预先建立pH值和色度值间的标准曲线包括以下步骤:In an implementation manner of the first aspect, pre-establishing a standard curve between the pH value and the chromaticity value includes the following steps:

将标准溶液滴于试纸上;Drop the standard solution on the test paper;

所述标准溶液具有确定的pH值;The standard solution has a definite pH value;

采集所述试纸的图像;collecting images of the test paper;

获取所述图像的通道分量;obtaining channel components of the image;

计算所述通道分量的组合值,以生成所述标准溶液的色度值;calculating the combined value of the channel components to generate the chromaticity value of the standard solution;

拟合所述pH值和所述色度值,以生成所述标准曲线。The pH value and the colorimetric value were fitted to generate the standard curve.

在第一方面的一种实现方式中,预先建立pH值和色度值间的标准曲线包括对生成的所述标准曲线进行校准,所述校准包括以下步骤:In an implementation manner of the first aspect, pre-establishing a standard curve between the pH value and the chromaticity value includes calibrating the generated standard curve, and the calibration includes the following steps:

提取比色卡参考点的色度值;Extract the chromaticity value of the reference point of the color chart;

将所述比色卡参考点的色度值代入所述标准曲线,以获取所述比色卡参考点的测量pH值;Substituting the chromaticity value of the reference point of the color comparison card into the standard curve to obtain the measured pH value of the reference point of the color comparison card;

计算所述测量pH值相对于真实pH值的偏移量;calculating the offset of the measured pH value relative to the true pH value;

基于所述偏移量校准所述标准曲线。The standard curve is calibrated based on the offset.

本实现方式中,易于集成和校准,对操作人员的专业技能及辅助设备的要求极大程度地降低。In this implementation mode, it is easy to integrate and calibrate, and the requirements for professional skills of operators and auxiliary equipment are greatly reduced.

在第一方面的一种实现方式中,采集待测溶液的色度值包括以下步骤:In an implementation manner of the first aspect, collecting the chromaticity value of the solution to be tested includes the following steps:

将待测溶液滴于试纸上;Drop the solution to be tested on the test paper;

采集所述试纸的图像;collecting images of the test paper;

获取所述图像的通道分量;obtaining channel components of the image;

计算所述通道分量的组合值,以生成所述待测溶液的色度值。A combined value of the channel components is calculated to generate a chromaticity value of the solution to be tested.

在第一方面的一种实现方式中,采集所述试纸的图像包括对所述试纸的图像进行预处理,所述预处理包括以下步骤:In an implementation manner of the first aspect, collecting the image of the test paper includes preprocessing the image of the test paper, and the preprocessing includes the following steps:

对所述试纸的图像进行去噪;Denoising the image of the test paper;

对去噪后的所述图像进行图像增强;performing image enhancement on the image after denoising;

对增强后的所述图像进行图像分割。Image segmentation is performed on the enhanced image.

本实现方式中,抗干扰能力强,有效减少了环境光等因素对检测过程的干扰。In this implementation manner, the anti-interference ability is strong, and the interference of factors such as ambient light on the detection process is effectively reduced.

在第一方面的一种实现方式中,获取所述图像的通道分量包括以下步骤:In an implementation manner of the first aspect, acquiring the channel components of the image includes the following steps:

确定试纸的样品区域;Determine the sample area of the test paper;

在所述试纸的样品区域提取所述图像的通道分量。The channel components of the image are extracted in the sample area of the test paper.

在第一方面的一种实现方式中,采用公式N=r+g-b计算所述通道分量的组合值;其中r表示图像的红色通道分量;g表示图像的绿色通道分量;b表示图像的蓝色通道分量;N表示所述通道分量的组合计算值。In an implementation of the first aspect, the combined value of the channel components is calculated using the formula N=r+g-b; wherein r represents the red channel component of the image; g represents the green channel component of the image; b represents the blue color of the image channel component; N represents the combined calculation value of the channel component.

第二方面,本申请提供一种光学POCT颜色判读系统,包括:In the second aspect, the present application provides an optical POCT color interpretation system, including:

拟合模块,用于预先建立pH值和色度值间的标准曲线;Fitting module, used to pre-establish the standard curve between pH value and chromaticity value;

采集模块,用于采集待测溶液的色度值;The collection module is used to collect the chromaticity value of the solution to be tested;

检测模块,用于将所述待测溶液的色度值代入所述标准曲线,以获取所述待测溶液的pH值。The detection module is used for substituting the chromaticity value of the solution to be tested into the standard curve to obtain the pH value of the solution to be tested.

在第二方面的一种实现方式中,还包括交互模块,用于实现以下任意一种或多种功能:In an implementation manner of the second aspect, an interaction module is also included, configured to implement any one or more of the following functions:

控制试纸图像采集的开始和关闭;Control the start and close of test strip image acquisition;

显示采集的试纸图像;Display the collected test strip image;

显示所述待测溶液的pH值。Displays the pH value of the solution to be tested.

第三方面,本申请提供一种光学POCT颜色判读装置,其特征在于,包括:处理器及存储器;In a third aspect, the present application provides an optical POCT color interpretation device, which is characterized in that it includes: a processor and a memory;

所述存储器用于存储计算机程序;The memory is used to store computer programs;

所述处理器用于执行所述存储器存储的计算机程序,以使所述光学POCT颜色判读装置执行上述任一项所述的光学POCT颜色判读方法。The processor is configured to execute the computer program stored in the memory, so that the optical POCT color interpretation device executes the optical POCT color interpretation method described in any one of the above.

如上所述,本申请所述的光学POCT颜色判读方法、系统和装置具有以下有益效果:As mentioned above, the optical POCT color interpretation method, system and device described in this application have the following beneficial effects:

(1)实现了高灵敏和高精准的定量检测,满足了用户即时定点检测的应用需求;(1) It realizes high sensitivity and high precision quantitative detection, which meets the application requirements of users for real-time fixed-point detection;

(2)抗干扰能力强,有效减少了环境光等因素对检测过程的干扰;(2) Strong anti-interference ability, effectively reducing the interference of environmental light and other factors on the detection process;

(3)易于集成和校准,对操作人员的专业技能及辅助设备的要求极大程度地降低。(3) It is easy to integrate and calibrate, and the requirements for the professional skills of operators and auxiliary equipment are greatly reduced.

附图说明Description of drawings

图1显示为本申请实施例所述的光学POCT颜色判读方法流程图。Fig. 1 is a flow chart of the optical POCT color interpretation method described in the embodiment of the present application.

图2显示为本申请实施例所述的光学POCT颜色判读方法中预先建立pH值和色度值间的标准曲线流程图。Fig. 2 is a flow chart of the pre-established standard curve between pH value and chromaticity value in the optical POCT color interpretation method described in the embodiment of the present application.

图3显示为本申请实施例所述的光学POCT颜色判读方法拟合的标准曲线示意图。FIG. 3 is a schematic diagram of a standard curve fitted by the optical POCT color interpretation method described in the examples of the present application.

图4显示为本申请实施例所述的光学POCT颜色判读系统结构示意图。Fig. 4 is a schematic structural diagram of the optical POCT color interpretation system described in the embodiment of the present application.

图5显示为本申请实施例所述的光学POCT颜色判读装置结构示意图。Fig. 5 is a schematic diagram showing the structure of the optical POCT color interpretation device described in the embodiment of the present application.

元件标号说明Component designation description

4 光学POCT颜色判读系统4 Optical POCT color interpretation system

41 拟合模块41 Fitting Module

42 采集模块42 acquisition module

43 检测模块43 detection module

44 交互模块44 interactive modules

5 光学POCT颜色判读装置5 Optical POCT color interpretation device

51 处理器51 processors

52 存储器52 memory

53 多媒体组件53 Multimedia components

54 I/O接口54 I/O interface

55 通信组件55 Communication components

S1~S3 方法步骤S1~S3 method steps

S11~S15 方法步骤S11~S15 method steps

具体实施方式Detailed ways

以下通过特定的具体实例说明本申请的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本申请的其他优点与功效。本申请还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本申请的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。Embodiments of the present application are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

需要说明的是,以下实施例中所提供的图示仅以示意方式说明本申请的基本构想,遂图式中仅显示与本申请中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should be noted that the diagrams provided in the following embodiments are only schematically illustrating the basic idea of the application, and only the components related to the application are shown in the diagrams rather than the number, shape and Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual implementation, and the component layout type may also be more complicated.

另外,在本申请中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。In addition, descriptions such as "first", "second" and so on in this application are only for description purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present application.

本申请以下实施例提供了一种光学POCT颜色判读方法、系统和装置,其可应用于光学检测设备,包括但不限于pH自动检测仪。当用户需要获取待测溶液的pH值时,只要将滴定了待测溶液的试纸放入pH自动检测仪中,按下GUI界面中相应的按钮选项,便会在屏幕上自动显示检测结果。The following embodiments of the present application provide an optical POCT color interpretation method, system and device, which can be applied to optical detection equipment, including but not limited to automatic pH detectors. When the user needs to obtain the pH value of the solution to be tested, just put the test paper titrated with the solution to be tested into the pH automatic detector, press the corresponding button option in the GUI interface, and the test result will be automatically displayed on the screen.

如图1所示,本实施例提供一种光学POCT颜色判读方法,包括以下步骤:As shown in Figure 1, this embodiment provides an optical POCT color interpretation method, including the following steps:

S1、预先建立pH值和色度值间的标准曲线。S1. Establish a standard curve between the pH value and the chromaticity value in advance.

如图2所示,于一实施例中,预先建立pH值和色度值间的标准曲线包括以下步骤:As shown in Figure 2, in one embodiment, the pre-established standard curve between the pH value and the chromaticity value comprises the following steps:

S11、将标准溶液滴于试纸上;所述标准溶液具有确定的pH值。S11. Drop the standard solution on the test paper; the standard solution has a definite pH value.

具体地,将试纸固定后,首先利用玻璃棒将标准溶液搅拌均匀,接着使用滴定管蘸取适量标准溶液,并滴定至pH试纸上,等待直至pH试纸颜色不再发生变化。Specifically, after fixing the test paper, first use a glass rod to stir the standard solution evenly, then use a burette to dip an appropriate amount of standard solution, and titrate it onto the pH test paper, and wait until the color of the pH test paper no longer changes.

为了建立精确的标准曲线,本实施例使用了八组标准溶液,且所述八组标准溶液分别对应5.5、6.0、6.5、7.0、7.5、8.0、8.5和9.0等八个pH值,不同pH值的标准溶液可借助高精度pH酸度计进行测定和配置。In order to establish an accurate standard curve, eight groups of standard solutions are used in this embodiment, and the eight groups of standard solutions correspond to eight pH values such as 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5 and 9.0, respectively. Different pH values The standard solution can be measured and configured with the help of a high-precision pH meter.

S12、采集所述试纸的图像。S12. Collect images of the test paper.

具体地,考虑到环境光、拍摄角度和拍摄高度等因素对图像采集过程的影响,本申请将相机架设于暗室的顶部,将试纸固定在暗室底部平台开槽内,且相机与试纸的垂直距离为固定3cm,相机两侧分别设置有倾斜45度LED灯,用于为相机提供均匀分布的光源,相机从上往下正对着试纸条进行拍摄,以确保所述试纸的图像具有良好的成像面积和对焦效果。Specifically, considering the influence of factors such as ambient light, shooting angle, and shooting height on the image acquisition process, this application set up the camera on the top of the darkroom, fixed the test paper in the slot on the bottom platform of the darkroom, and the vertical distance between the camera and the test paper In order to fix 3cm, there are 45-degree inclined LED lights on both sides of the camera, which are used to provide evenly distributed light sources for the camera. The camera shoots directly at the test strip from top to bottom to ensure that the image of the test paper has a good image quality. Imaging area and focus effect.

于一实施例中,采集所述试纸的图像包括对所述试纸的图像进行预处理,所述预处理包括以下步骤:In one embodiment, collecting the image of the test paper includes preprocessing the image of the test paper, and the preprocessing includes the following steps:

(1)对所述试纸的图像进行去噪。(1) Denoising the image of the test paper.

具体地,使用快速中值滤波算法对所述试纸的图像进行去噪处理。例如,假设采集的是像素点m×n的试纸图像X,将其作为所述快速中值滤波算法的输入,并设置核半径为r,运行如下快速中值滤波算法伪代码,可以获取与所述试纸图像X相同大小的去噪图像Y。Specifically, a fast median filtering algorithm is used to perform denoising processing on the image of the test paper. For example, assuming that the test paper image X with pixels m×n is collected, it is used as the input of the fast median filtering algorithm, and the kernel radius is set to r, and the pseudo code of the fast median filtering algorithm is run as follows to obtain the same A denoised image Y of the same size as the test paper image X.

Figure BDA0004014802440000051
Figure BDA0004014802440000051

Figure BDA0004014802440000061
Figure BDA0004014802440000061

其中H为图像的核直方图,整个滤波过程的耗时都依赖于图像位深的计算,而与核半径r无关。图像滤波是图像预处理中必不可少的过程,将对其后图像处理和分析的可靠性和有效性造成很直接的影响。快速中值滤波算法在尽力保留图像原有特征信息的情况下,有效地抑制图像噪声,使得图像看上去和被污染前的图像更接近。Where H is the kernel histogram of the image, and the time consumption of the entire filtering process depends on the calculation of the image bit depth, and has nothing to do with the kernel radius r. Image filtering is an essential process in image preprocessing, which will have a direct impact on the reliability and effectiveness of subsequent image processing and analysis. The fast median filtering algorithm can effectively suppress image noise while trying to preserve the original feature information of the image, making the image look closer to the image before being polluted.

(2)对去噪后的所述图像进行图像增强。(2) Perform image enhancement on the denoised image.

经过滤波或去噪后的图像因采集时受到环境光照强度等因素的影响,可能造成浸渍待测溶液后发生显色反应区域部分的试纸存在整体范围偏暗的现象,那么就需要对去噪后的所述图像进行图像增强处理。具体地,利用线性变换增强图像的对比度。The image after filtering or denoising is affected by environmental light intensity and other factors during acquisition, which may cause the overall range of the test paper to appear dark in the area where the color reaction occurs after being immersed in the solution to be tested. The image is subjected to image enhancement processing. Specifically, a linear transformation is used to enhance the contrast of the image.

(3)对增强后的所述图像进行图像分割。(3) Perform image segmentation on the enhanced image.

具体地,利用K–means边缘检测算法对图像分割。K–means边缘检测算法首先根据中心点分类,通过中心点的坐标μk,求出每一个点到中心点的欧式距离,把这个点分类到距离最短中心点所属的类c(k),这样所有点都分成了K类。随后根据分类移动中心点,计算这一类所有点的一维坐标的均值作为新的中心点μk,进入下一次循环,以此自动地检测感兴趣的样品区域。Specifically, the K-means edge detection algorithm is used to segment the image. The K-means edge detection algorithm first classifies according to the central point, and calculates the Euclidean distance from each point to the central point through the coordinate μ k of the central point, and classifies this point into the class c (k) to which the shortest distance from the central point belongs, so that All points are divided into K classes. Then move the center point according to the classification, calculate the mean value of the one-dimensional coordinates of all points of this type as the new center point μ k , and enter the next cycle, so as to automatically detect the sample area of interest.

利用K–means聚类算法重复初始化聚类中心点坐标μ123…μk∈Rn,具体执行伪代码如下:Using the K-means clustering algorithm to repeatedly initialize the cluster center point coordinates μ 1 , μ 2 , μ 3 … μ k ∈ R n , the specific execution pseudo code is as follows:

Figure BDA0004014802440000062
Figure BDA0004014802440000062

S13、获取所述图像的通道分量。S13. Acquire channel components of the image.

具体地,所述图像的通道分量包括RGB模式下图像的红色通道分量、绿色通道分量和蓝色通道分量。图像中的颜色都是由红色、绿色和蓝色三种色光按照不同的比例混合而成,RGB数值代表了三种色光的亮度,取值[0,255]。提取所述八组标准溶液试纸图像的通道分量包括自动遍历每张所述试纸图像上的每一个像素点,获得每个像素点的r,g,b值,然后计算所有像素点的r值平均值,g值平均值和b值平均值,其中如果某个像素点的r,g,b中有任何一个大于245,该像素点将被认为是反光点而删除,不参与平均值的计算。Specifically, the channel components of the image include red channel components, green channel components and blue channel components of the image in RGB mode. The colors in the image are made by mixing red, green and blue colors in different proportions. The RGB value represents the brightness of the three colors, and the value is [0,255]. Extracting the channel components of the eight groups of standard solution test paper images includes automatically traversing each pixel on each of the test paper images, obtaining the r, g, and b values of each pixel, and then calculating the average r value of all pixels value, the average value of g value and the average value of b value, if any one of r, g, and b of a certain pixel point is greater than 245, the pixel point will be considered as a reflective point and deleted, and will not participate in the calculation of the average value.

各通道分量如表1所示。The components of each channel are shown in Table 1.

表1、不同pH标准溶液试纸图像的通道分量Table 1. Channel components of different pH standard solution test paper images

Figure BDA0004014802440000071
Figure BDA0004014802440000071

于一实施例中,获取所述图像的通道分量包括以下步骤:In one embodiment, obtaining the channel components of the image includes the following steps:

确定试纸的样品区域;在所述试纸的样品区域提取所述图像的通道分量。Determine the sample area of the test paper; extract the channel components of the image in the sample area of the test paper.

由于某些原因,可能造成并不是全部的pH试纸发生颜色的色变,只是其中的一个小部分区域,因此需要将显色反应的区域标记出来。具体地,在采集的试纸图像上,选择一个合适的点,得到该点的横坐标x1、纵坐标y1,之后再选取另外一个点,同样可以知道其横、纵坐标值x2和y2。以(x1,y1)和(x2,y2)为对角顶点,裁剪得到一个长度为x1-x2、宽度为y1-y2的矩形区域图形,将其作为所述试纸的样品区域。Due to some reasons, not all of the pH test paper may change color, but only a small part of it, so it is necessary to mark the area of the color reaction. Specifically, on the collected test paper image, select an appropriate point, obtain the abscissa x 1 and ordinate y 1 of the point, and then select another point, and you can also know its abscissa and ordinate values x 2 and y 2 . With (x 1 , y 1 ) and (x 2 , y 2 ) as the diagonal vertices, cut out a rectangular area graph with a length of x 1 -x 2 and a width of y 1 -y 2 , which is used as the test paper the sample area.

此外,所述试纸的样品区域还可以是试纸上划定的指定区域,在将标准溶液滴于试纸上时,会将所述标准溶液滴于试纸上划定的指定区域,之后提取所述指定区域内图像的通道分量。In addition, the sample area of the test paper can also be a designated area delineated on the test paper. When the standard solution is dropped on the test paper, the standard solution will be dropped on the designated area delineated on the test paper, and then the designated area will be extracted. The channel components of the image within the region.

S14、计算所述通道分量的组合值,以生成所述标准溶液的色度值。S14. Calculate the combined value of the channel components to generate the chromaticity value of the standard solution.

如表2所示,于一实施例中,采用公式N=r+g-b计算所述通道分量的组合值;其中r表示图像的红色通道分量;g表示图像的绿色通道分量;b表示图像的蓝色通道分量;N表示所述通道分量的组合计算值。As shown in Table 2, in one embodiment, the combined value of the channel components is calculated using the formula N=r+g-b; wherein r represents the red channel component of the image; g represents the green channel component of the image; b represents the blue color of the image Color channel components; N represents the combined calculation value of the channel components.

表2、不同pH标准溶液试纸图像的通道分量和组合值Table 2. Channel components and combined values of different pH standard solution test paper images

Figure BDA0004014802440000072
Figure BDA0004014802440000072

S15、拟合所述pH值和所述色度值,以生成所述标准曲线。S15. Fitting the pH value and the chromaticity value to generate the standard curve.

通过上述步骤S11~S14,可以获得样本点集合(Ni,pHi),其中Ni表示第i个标准溶液对应的通道分量组合值(或色度值),pHi表示第i个标准溶液的实际pH值,i∈[1,8]。例如,第4个标准溶液对应的通道分量组合值为115.7,且第4个标准溶液的实际pH值为7.0。Through the above steps S11-S14, the set of sample points (N i ,pH i ) can be obtained, where N i represents the channel component combination value (or chromaticity value) corresponding to the i-th standard solution, and pH i represents the i-th standard solution The actual pH value of , i∈[1,8]. For example, the channel component combination value corresponding to the fourth standard solution is 115.7, and the actual pH value of the fourth standard solution is 7.0.

如图3所示,采用三元多项式拟合所述样本点集合(Ni,pHi),以建立所述标准曲线:pH=9.91-0.08N+9.86×10-4N2-5.58×10-6N3,其中相关系数R2=0.99。As shown in Figure 3, a ternary polynomial is used to fit the sample point set (N i ,pH i ) to establish the standard curve: pH=9.91-0.08N+9.86×10 −4 N 2 −5.58×10 -6 N 3 , where the correlation coefficient R 2 =0.99.

需要说明的是,拟合所述pH值和所述色度值可以采用线性拟合,也可以采用非线性拟合,具体可以根据反应物类型和所需要的检测范围进行确定;采用非线性拟合时,多项式拟合的阶数设置可以根据样本点的数量进行调整,在此不作限定。It should be noted that the fitting of the pH value and the chromaticity value can use linear fitting or nonlinear fitting, which can be determined according to the type of reactant and the required detection range; When appropriate, the order setting of polynomial fitting can be adjusted according to the number of sample points, which is not limited here.

于一实施例中,预先建立pH值和色度值间的标准曲线包括对生成的所述标准曲线进行校准,所述校准包括以下步骤:In one embodiment, pre-establishing a standard curve between the pH value and the chromaticity value includes calibrating the generated standard curve, and the calibration includes the following steps:

提取比色卡参考点的色度值;将所述比色卡参考点的色度值代入所述标准曲线,以获取所述比色卡参考点的测量pH值;计算所述测量pH值相对于真实pH值的偏移量;基于所述偏移量校准所述标准曲线,以防止因试色的误差造成最终结果上的误差。Extract the chromaticity value of the reference point of the color comparison card; Substitute the chromaticity value of the reference point of the color comparison card into the standard curve to obtain the measured pH value of the reference point of the color comparison card; Calculate the relative pH value of the measured pH value The offset from the real pH value; the standard curve is calibrated based on the offset to prevent errors in the final result caused by errors in color testing.

本实现方式中,易于集成和校准,实现了高灵敏和高精准的定量检测,满足了用户即时定点检测的应用需求。In this implementation mode, it is easy to integrate and calibrate, realizes high-sensitivity and high-precision quantitative detection, and meets the application requirements of users for real-time fixed-point detection.

S2、采集待测溶液的色度值。S2. Collect the chromaticity value of the solution to be tested.

于一实施例中,采集待测溶液的色度值包括以下步骤:In one embodiment, collecting the chromaticity value of the solution to be tested comprises the following steps:

S21、将待测溶液滴于试纸上。S21. Drop the solution to be tested on the test paper.

具体地,将试纸固定后,首先利用玻璃棒将待测溶液搅拌均匀,接着使用滴定管蘸取适量待测溶液,并滴定至pH试纸上,等待直至pH试纸颜色不再发生变化。Specifically, after fixing the test paper, first use a glass rod to stir the solution to be tested evenly, then use a burette to dip an appropriate amount of the solution to be tested, and titrate it onto the pH test paper, and wait until the color of the pH test paper no longer changes.

S22、采集所述试纸的图像。S22. Collecting images of the test paper.

同样地,考虑到环境光、拍摄角度和拍摄高度等因素对图像采集过程的影响,本申请将相机架设于暗室的顶部,将试纸固定在暗室底部平台开槽内,且相机与试纸的垂直距离为固定3cm,相机两侧分别设置有倾斜45度LED灯,用于为相机提供均匀分布的光源,相机从上往下正对着试纸条进行拍摄,以确保所述试纸的图像具有良好的成像面积和对焦效果。Similarly, considering the impact of factors such as ambient light, shooting angle, and shooting height on the image acquisition process, this application sets up the camera on the top of the darkroom, fixes the test paper in the slot on the bottom platform of the darkroom, and the vertical distance between the camera and the test paper In order to fix 3cm, there are 45-degree inclined LED lights on both sides of the camera, which are used to provide evenly distributed light sources for the camera. The camera shoots directly at the test strip from top to bottom to ensure that the image of the test paper has a good image quality. Imaging area and focus effect.

于一实施例中,采集所述试纸的图像包括对所述试纸的图像进行预处理,所述预处理包括以下步骤:In one embodiment, collecting the image of the test paper includes preprocessing the image of the test paper, and the preprocessing includes the following steps:

(1)对所述试纸的图像进行去噪。(1) Denoising the image of the test paper.

具体地,使用快速中值滤波算法对所述试纸的图像进行去噪处理。例如,假设采集的是像素点m×n的试纸图像X,将其作为所述快速中值滤波算法的输入,并设置核半径为r,运行如下快速中值滤波算法伪代码,可以获取与所述试纸图像X相同大小的去噪图像Y。Specifically, a fast median filtering algorithm is used to perform denoising processing on the image of the test paper. For example, assuming that the test paper image X with pixels m×n is collected, it is used as the input of the fast median filtering algorithm, and the kernel radius is set to r, and the pseudo code of the fast median filtering algorithm is run as follows to obtain the same A denoised image Y of the same size as the test paper image X.

Figure BDA0004014802440000091
Figure BDA0004014802440000091

其中H为图像的核直方图,整个滤波过程的耗时都依赖于图像位深的计算,而与核半径r无关。图像滤波是图像预处理中必不可少的过程,将对其后图像处理和分析的可靠性和有效性造成很直接的影响。快速中值滤波算法在尽力保留图像原有特征信息的情况下,有效地抑制图像噪声,使得图像看上去和被污染前的图像更接近。Where H is the kernel histogram of the image, and the time consumption of the entire filtering process depends on the calculation of the image bit depth, and has nothing to do with the kernel radius r. Image filtering is an essential process in image preprocessing, which will have a direct impact on the reliability and effectiveness of subsequent image processing and analysis. The fast median filtering algorithm can effectively suppress image noise while trying to preserve the original feature information of the image, making the image look closer to the image before being polluted.

(2)对去噪后的所述图像进行图像增强。(2) Perform image enhancement on the denoised image.

经过滤波或去噪后的图像因采集时受到环境光照强度等因素的影响,可能造成浸渍待测溶液后发生显色反应区域部分的试纸存在整体范围偏暗的现象,那么就需要对去噪后的所述图像进行图像增强处理。具体地,利用线性变换增强图像的对比度。The image after filtering or denoising is affected by environmental light intensity and other factors during acquisition, which may cause the overall range of the test paper to appear dark in the area where the color reaction occurs after being immersed in the solution to be tested. The image is subjected to image enhancement processing. Specifically, a linear transformation is used to enhance the contrast of the image.

(3)对增强后的所述图像进行图像分割。(3) Perform image segmentation on the enhanced image.

具体地,利用K–means边缘检测算法对图像分割。K–means边缘检测算法首先根据中心点分类,通过中心点的坐标μk,求出每一个点到中心点的欧式距离,把这个点分类到距离最短中心点所属的类c(k),这样所有点都分成了K类。随后根据分类移动中心点,计算这一类所有点的一维坐标的均值作为新的中心点μk,进入下一次循环,以此自动地检测感兴趣的样品区域。Specifically, the K-means edge detection algorithm is used to segment the image. The K-means edge detection algorithm first classifies according to the central point, and calculates the Euclidean distance from each point to the central point through the coordinate μ k of the central point, and classifies this point into the class c (k) to which the shortest distance from the central point belongs, so that All points are divided into K classes. Then move the center point according to the classification, calculate the mean value of the one-dimensional coordinates of all points of this type as the new center point μ k , and enter the next cycle, so as to automatically detect the sample area of interest.

利用K–means聚类算法重复初始化聚类中心点坐标μ123…μk∈Rn,具体执行伪代码如下:Using the K-means clustering algorithm to repeatedly initialize the cluster center point coordinates μ 1 , μ 2 , μ 3 … μ k ∈ R n , the specific execution pseudo code is as follows:

Figure BDA0004014802440000092
Figure BDA0004014802440000092

Figure BDA0004014802440000101
Figure BDA0004014802440000101

本实现方式中,抗干扰能力强,有效减少了环境光等因素对检测过程的干扰。In this implementation manner, the anti-interference ability is strong, and the interference of factors such as ambient light on the detection process is effectively reduced.

S23、获取所述图像的通道分量。S23. Acquire channel components of the image.

具体地,所述图像的通道分量包括RGB模式下图像的红色通道分量、绿色通道分量和蓝色通道分量。图像中的颜色都是由红色、绿色和蓝色三种色光按照不同的比例混合而成,RGB数值代表了三种色光的亮度,取值[0,255]。提取待测溶液试纸图像的通道分量包括自动遍历待测溶液试纸图像上的每一个像素点,获得每个像素点的r,g,b值,然后计算所有像素点的r值平均值,g值平均值和b值平均值,其中如果某个像素点的r,g,b中有任何一个大于245,该像素点将被认为是反光点而删除,不参与平均值的计算。Specifically, the channel components of the image include red channel components, green channel components and blue channel components of the image in RGB mode. The colors in the image are made by mixing red, green and blue colors in different proportions. The RGB value represents the brightness of the three colors, and the value is [0,255]. Extracting the channel components of the test paper image of the solution to be tested includes automatically traversing each pixel on the test paper image of the solution to be tested, obtaining the r, g, and b values of each pixel, and then calculating the average value of r and g of all pixels The average value and the average value of b. If any one of r, g, and b of a certain pixel point is greater than 245, the pixel point will be considered as a reflective point and deleted, and will not participate in the calculation of the average value.

于一实施例中,获取所述图像的通道分量包括以下步骤:In one embodiment, obtaining the channel components of the image includes the following steps:

确定试纸的样品区域;在所述试纸的样品区域提取所述图像的通道分量。Determine the sample area of the test paper; extract the channel components of the image in the sample area of the test paper.

由于某些原因,可能造成并不是全部的pH试纸发生颜色的色变,只是其中的一个小部分区域,因此需要将显色反应的区域标记出来。具体地,在采集的试纸图像上,选择一个合适的点,得到该点的横坐标x1、纵坐标y1,之后再选取另外一个点,同样可以知道其横、纵坐标值x2和y2。以(x1,y1)和(x2,y2)为对角顶点,裁剪得到一个长度为x1-x2、宽度为y1-y2的矩形区域图形,将其作为所述试纸的样品区域。Due to some reasons, not all of the pH test paper may change color, but only a small part of it, so it is necessary to mark the area of the color reaction. Specifically, on the collected test paper image, select an appropriate point, obtain the abscissa x 1 and ordinate y 1 of the point, and then select another point, and you can also know its abscissa and ordinate values x 2 and y 2 . With (x 1 , y 1 ) and (x 2 , y 2 ) as the diagonal vertices, cut out a rectangular area graph with a length of x 1 -x 2 and a width of y 1 -y 2 , which is used as the test paper the sample area.

此外,所述试纸的样品区域还可以是试纸上划定的指定区域,在将待测溶液滴于试纸上时,会将所述待测溶液滴于试纸上划定的指定区域,之后提取所述指定区域内图像的通道分量。In addition, the sample area of the test paper can also be a designated area delineated on the test paper, when the solution to be tested is dropped on the test paper, the solution to be tested will be dropped on the designated area delimited on the test paper, and then the The channel components of the image in the specified area.

S24、计算所述通道分量的组合值,以生成所述待测溶液的色度值。S24. Calculate the combined value of the channel components to generate the chromaticity value of the solution to be tested.

于一实施例中,采用公式N=r+g-b计算所述通道分量的组合值;其中r表示图像的红色通道分量;g表示图像的绿色通道分量;b表示图像的蓝色通道分量;N表示所述通道分量的组合计算值。In one embodiment, the combined value of the channel components is calculated using the formula N=r+g-b; wherein r represents the red channel component of the image; g represents the green channel component of the image; b represents the blue channel component of the image; N represents The combined computed value of the channel components.

S3、将所述待测溶液的色度值代入所述标准曲线,以获取所述待测溶液的pH值。S3. Substituting the chromaticity value of the solution to be tested into the standard curve to obtain the pH value of the solution to be tested.

具体地,将S24步骤中获取的待测溶液的色度值N代入标准曲线pH=9.91-0.08N+9.86×10-4N2-5.58×10-6N3,即可获取所述待测溶液的pH值。本申请实施例所述的光学POCT颜色判读方法的保护范围不限于本实施例列举的步骤执行顺序,凡是根据本申请的原理所做的现有技术的步骤增减、步骤替换所实现的方案都包括在本申请的保护范围内。Specifically, the chromaticity value N of the solution to be tested obtained in step S24 is substituted into the standard curve pH=9.91-0.08N+9.86×10 -4 N 2 -5.58×10 -6 N 3 to obtain the The pH of the solution. The scope of protection of the optical POCT color interpretation method described in the embodiment of this application is not limited to the execution order of the steps listed in this embodiment. Included in the scope of protection of this application.

如图4所示,本实施例提供一种光学POCT颜色判读系统4,包括:As shown in Figure 4, this embodiment provides an optical POCT color interpretation system 4, including:

拟合模块41,用于预先建立pH值和色度值间的标准曲线;Fitting module 41, is used for establishing the standard curve between pH value and chromaticity value in advance;

采集模块42,用于采集待测溶液的色度值;Acquisition module 42, for collecting the chromaticity value of the solution to be tested;

检测模块43,用于将所述待测溶液的色度值代入所述标准曲线,以获取所述待测溶液的pH值。A detection module 43, configured to substitute the chromaticity value of the solution to be tested into the standard curve to obtain the pH value of the solution to be tested.

需要说明的是,所述拟合模块41、采集模块42和检测模块43的结构和原理与上述光学POCT颜色判读方法中的步骤及实施例一一对应,故在此不再赘述。It should be noted that the structures and principles of the fitting module 41 , the collection module 42 and the detection module 43 correspond to the steps and embodiments of the above-mentioned optical POCT color interpretation method, so they will not be repeated here.

于一实施例中,本实施例所述的光学POCT颜色判读系统还包括交互模块44,用于实现以下任意一种或多种功能:In one embodiment, the optical POCT color interpretation system described in this embodiment further includes an interactive module 44, configured to implement any one or more of the following functions:

(1)控制试纸图像采集的开始和关闭;(1) Control the start and close of test paper image acquisition;

(2)显示采集的试纸图像;(2) Display the collected test paper image;

(3)显示所述待测溶液的pH值。(3) displaying the pH value of the solution to be tested.

所述交互模块设置有上述功能按钮,用户在选择相应的功能选项时,可通过图形化界面(GUI)进行触控操作。操作流程简单便捷,对操作人员的专业技能及辅助设备的要求极大程度地降低。The interaction module is provided with the above-mentioned function buttons, and the user can perform a touch operation through a graphical interface (GUI) when selecting a corresponding function option. The operation process is simple and convenient, and the requirements for the professional skills of operators and auxiliary equipment are greatly reduced.

本申请实施例提供的光学POCT颜色判读系统可以实现本申请所述的光学POCT颜色判读方法,但本申请所述的光学POCT颜色判读方法的实现装置包括但不限于本实施例列举的光学POCT颜色判读系统的结构,凡是根据本申请的原理所做的现有技术的结构变形和替换,都包括在本申请的保护范围内。The optical POCT color interpretation system provided in the embodiment of this application can realize the optical POCT color interpretation method described in this application, but the realization device of the optical POCT color interpretation method described in this application includes but is not limited to the optical POCT color interpretation method listed in this embodiment As for the structure of the interpretation system, all structural deformations and replacements in the prior art based on the principles of the present application are included in the scope of protection of the present application.

本实施例提供一种光学POCT颜色判读装置5,包括:处理器51及存储器52;This embodiment provides an optical POCT color interpretation device 5, including: a processor 51 and a memory 52;

所述存储器52用于存储计算机程序;The memory 52 is used to store computer programs;

所述处理器51用于执行所述存储器存储的计算机程序,以使所述光学POCT颜色判读装置执行上述任一项所述的光学POCT颜色判读方法。The processor 51 is configured to execute the computer program stored in the memory, so that the optical POCT color interpretation device executes the optical POCT color interpretation method described in any one of the above.

图5示出了一种光学POCT颜色判读装置的结构框图。该装置包括处理器51和存储器52,还包括多媒体组件53,输入/输出(I/O)接口54,以及通信组件55中的一种或多种。Fig. 5 shows a structural block diagram of an optical POCT color interpretation device. The device includes a processor 51 and a memory 52 , and also includes one or more of a multimedia component 53 , an input/output (I/O) interface 54 , and a communication component 55 .

优选地,所述处理器51可以是通用处理器,包括中央处理器(Central ProcessingUnit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processor,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该存储器52可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM),可编程只读存储器(Programmable Read-Only Memory,PROM),只读存储器(Read-Only Memory,ROM),磁存储器,快闪存储器,磁盘或光盘。Preferably, the processor 51 may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it may also be a digital signal processor (Digital Signal Processor, referred to as DSP), Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The memory 52 can be realized by any type of volatile or non-volatile storage device or their combination, such as Static Random Access Memory (Static Random Access Memory, SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), Programmable Read-Only Memory (Programmable Read-Only Memory, PROM), Read-Only Memory (Read-Only Memory, Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.

多媒体组件53可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器52或通过通信组件55发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口54为处理器51和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件55用于该光学POCT颜色判读装置5与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件55可以包括:Wi-Fi模块,蓝牙模块,NFC模块。Multimedia components 53 may include screen and audio components. The screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, an audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in memory 52 or sent via communication component 55 . The audio component also includes at least one speaker for outputting audio signals. The I/O interface 54 provides an interface between the processor 51 and other interface modules, which may be a keyboard, a mouse, buttons, and the like. These buttons can be virtual buttons or physical buttons. The communication component 55 is used for wired or wireless communication between the optical POCT color interpretation device 5 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 55 may include: Wi-Fi module, Bluetooth module, NFC module.

于一实施例中,光学POCT颜色判读装置5可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital SignalProcessor,DSP)、数字信号处理设备(Digital Signal Processing Device,DSPD)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field ProgrammableGate Array,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的光学POCT颜色判读方法。In one embodiment, the optical POCT color interpretation device 5 can be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing equipment (Digital Signal Processing Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field ProgrammableGate Array, FPGA), controller, microcontroller, microprocessor or other electronic components to implement the above Optical POCT color interpretation method.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置或方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅是示意性的,例如,模块/单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或单元可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device or method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules/units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or units can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules or units may be in electrical, mechanical or other forms.

作为分离部件说明的模块/单元可以是或者也可以不是物理上分开的,作为模块/单元显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块/单元来实现本申请实施例的目的。例如,在本申请各个实施例中的各功能模块/单元可以集成在一个处理模块中,也可以是各个模块/单元单独物理存在,也可以两个或两个以上模块/单元集成在一个模块/单元中。A module/unit described as a separate component may or may not be physically separate, and a component shown as a module/unit may or may not be a physical module, that is, it may be located in one place, or it may be distributed to multiple network units superior. Part or all of the modules/units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, each functional module/unit in each embodiment of the present application may be integrated into one processing module, each module/unit may exist separately physically, or two or more modules/units may be integrated into one module/unit in the unit.

本领域普通技术人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art should further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the hardware and software interchangeability, the composition and steps of each example have been generally described in terms of functions in the above description. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例还提供了一种计算机可读存储介质。本领域普通技术人员可以理解实现上述实施例的方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(magnetic tape),软盘(floppy disk),光盘(optical disc)及其任意组合。上述存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如数字视频光盘(digital video disc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。The embodiment of the present application also provides a computer-readable storage medium. Those of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is non-transitory (non-transitory) media, such as random access memory, read-only memory, flash memory, hard disk, solid-state disk, magnetic tape, floppy disk, optical disc, and any combination thereof. The above-mentioned storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a digital video disc (digital video disc, DVD)), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.

本申请实施例还可以提供一种计算机程序产品,所述计算机程序产品包括一个或多个计算机指令。在计算设备上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机或数据中心进行传输。The embodiment of the present application may also provide a computer program product, where the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computing device, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.) to another website site, computer or data center.

所述计算机程序产品被计算机执行时,所述计算机执行前述方法实施例所述的方法。该计算机程序产品可以为一个软件安装包,在需要使用前述方法的情况下,可以下载该计算机程序产品并在计算机上执行该计算机程序产品。When the computer program product is executed by a computer, the computer executes the methods described in the foregoing method embodiments. The computer program product may be a software installation package, and the computer program product may be downloaded and executed on a computer if the foregoing method needs to be used.

上述各个附图对应的流程或结构的描述各有侧重,某个流程或结构中没有详述的部分,可以参见其他流程或结构的相关描述。The description of the process or structure corresponding to each of the above drawings has its own emphasis. For the part that is not described in detail in a certain process or structure, you can refer to the relevant description of other processes or structures.

综上所述,本申请所述的光学POCT颜色判读方法、系统和装置解决了现有光学检测设备在实际检测中检测慢、易受环境光干扰、检测灵敏度与准确性低,以及检测仪器庞大、成本昂贵、对操作人员专业技能要求高的问题,实现了高灵敏和高精准的定量检测,满足了用户即时定点检测的应用需求;抗干扰能力强,有效减少了环境光等因素对检测过程的干扰;易于集成和校准,对操作人员的专业技能及辅助设备的要求极大程度地降低。In summary, the optical POCT color interpretation method, system and device described in this application solve the problems of slow detection, susceptibility to ambient light interference, low detection sensitivity and accuracy, and large detection equipment in existing optical detection equipment. , high cost, and high requirements for the professional skills of operators, it realizes high-sensitivity and high-precision quantitative detection, which meets the application requirements of users for instant fixed-point detection; strong anti-interference ability, effectively reduces the impact of environmental light and other factors on the detection process interference; easy to integrate and calibrate, and greatly reduce the requirements for the operator's professional skills and auxiliary equipment.

上述实施例仅例示性说明本申请的原理及其功效,而非用于限制本申请。任何熟悉此技术的人士皆可在不违背本申请的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本申请所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本申请的权利要求所涵盖。The above-mentioned embodiments are only illustrative to illustrate the principles and effects of the present application, but are not intended to limit the present application. Any person familiar with the technology can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical ideas disclosed in the application shall still be covered by the claims of the application.

Claims (10)

1. An optical POCT color interpretation method is characterized by comprising the following steps:
pre-establishing a standard curve between the pH value and the chromatic value;
collecting the colorimetric value of the solution to be detected;
and substituting the chromatic value of the solution to be detected into the standard curve to obtain the pH value of the solution to be detected.
2. The optical POCT color interpretation method of claim 1, wherein pre-establishing a standard curve between pH and chromaticity values comprises the steps of:
dropping the standard solution on the test paper; the standard solution has a defined pH value;
collecting an image of the test paper;
acquiring a channel component of the image;
calculating a combined value of the channel components to generate a colorimetric value of the standard solution;
fitting the pH values and the colorimetric values to generate the standard curve.
3. The optical POCT color interpretation method of claim 1, wherein pre-establishing a standard curve between pH and chroma values comprises calibrating the generated standard curve, the calibrating comprising the steps of:
extracting the chromatic value of the reference point of the colorimetric card;
substituting the chromatic value of the reference point of the color comparison card into the standard curve to obtain the measured pH value of the reference point of the color comparison card;
calculating the offset of the measured pH value relative to the real pH value;
calibrating the standard curve based on the offset.
4. The optical POCT color interpretation method of claim 1, wherein the step of collecting the colorimetric values of the solution to be tested comprises the steps of:
dripping the solution to be detected on the test paper;
collecting an image of the test paper;
acquiring a channel component of the image;
and calculating the combined value of the channel components to generate a chromatic value of the solution to be detected.
5. The optical POCT color interpretation method according to claims 2 and 4, wherein acquiring the image of the test strip comprises pre-processing the image of the test strip, the pre-processing comprising the steps of:
denoising the image of the test paper;
carrying out image enhancement on the denoised image;
and carrying out image segmentation on the enhanced image.
6. The optical POCT color interpretation method according to claims 2 and 4, wherein acquiring the channel components of the image comprises the steps of:
determining a sample area of the test paper;
and extracting a channel component of the image in a sample area of the test paper.
7. The optical POCT color interpretation method according to claims 2 and 4, wherein the combined value of the channel components is calculated using the formula N = r + g-b; where r represents the red channel component of the image; g represents a green channel component of the image; b represents a blue channel component of the image; n represents a combined calculation value of the channel components.
8. An optical POCT color interpretation system, comprising:
the fitting module is used for establishing a standard curve between the pH value and the chromatic value in advance;
the acquisition module is used for acquiring the colorimetric value of the solution to be detected;
and the detection module is used for substituting the chromatic value of the solution to be detected into the standard curve so as to obtain the pH value of the solution to be detected.
9. The optical POCT color interpretation system of claim 8, further comprising an interaction module for performing any one or more of the following functions:
controlling the starting and closing of the test paper image acquisition;
displaying the collected test paper image;
and displaying the pH value of the solution to be detected.
10. An optical POCT color interpretation device, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to cause the optical POCT color interpretation apparatus to perform the optical POCT color interpretation method of any one of claims 1 to 7.
CN202211666263.7A 2022-12-23 2022-12-23 An optical POCT color interpretation method, system and device Pending CN115824982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211666263.7A CN115824982A (en) 2022-12-23 2022-12-23 An optical POCT color interpretation method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211666263.7A CN115824982A (en) 2022-12-23 2022-12-23 An optical POCT color interpretation method, system and device

Publications (1)

Publication Number Publication Date
CN115824982A true CN115824982A (en) 2023-03-21

Family

ID=85518076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211666263.7A Pending CN115824982A (en) 2022-12-23 2022-12-23 An optical POCT color interpretation method, system and device

Country Status (1)

Country Link
CN (1) CN115824982A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106370570A (en) * 2016-08-25 2017-02-01 北京小米移动软件有限公司 Calibration method and calibration apparatus for measured value of particulate matters
CN106596613A (en) * 2017-02-16 2017-04-26 武汉泛洲中越合金有限公司 Method for detecting element content by using scanning channel of X-ray fluorescence spectrometer
CN110849406A (en) * 2019-11-29 2020-02-28 浙江禾川科技股份有限公司 Measuring and calibrating method, device and equipment of encoder and storage medium
CN111756436A (en) * 2020-07-13 2020-10-09 武汉昊衡科技有限公司 Distributed insertion loss return loss measuring device and method in optical fiber communication
CN112394061A (en) * 2020-11-26 2021-02-23 南京大学 Method for simultaneously detecting sweat multi-component content and pH value based on mobile terminal shooting colorimetric method
CN112461944A (en) * 2020-10-22 2021-03-09 国网浙江省电力有限公司电力科学研究院 Calibration method of online monitoring device for dissolved gas in transformer oil
CN114894987A (en) * 2022-04-07 2022-08-12 华能上海燃机发电有限责任公司 Pure water medium pH temperature compensation test method and device
CN114900683A (en) * 2022-04-02 2022-08-12 浙江华创视讯科技有限公司 Lens calibration method, device, electronic device and storage medium
CN115062273A (en) * 2022-08-16 2022-09-16 深圳市志奋领科技有限公司 Photoelectric sensor precision control method and system for industrial internet

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106370570A (en) * 2016-08-25 2017-02-01 北京小米移动软件有限公司 Calibration method and calibration apparatus for measured value of particulate matters
CN106596613A (en) * 2017-02-16 2017-04-26 武汉泛洲中越合金有限公司 Method for detecting element content by using scanning channel of X-ray fluorescence spectrometer
CN110849406A (en) * 2019-11-29 2020-02-28 浙江禾川科技股份有限公司 Measuring and calibrating method, device and equipment of encoder and storage medium
CN111756436A (en) * 2020-07-13 2020-10-09 武汉昊衡科技有限公司 Distributed insertion loss return loss measuring device and method in optical fiber communication
CN112461944A (en) * 2020-10-22 2021-03-09 国网浙江省电力有限公司电力科学研究院 Calibration method of online monitoring device for dissolved gas in transformer oil
CN112394061A (en) * 2020-11-26 2021-02-23 南京大学 Method for simultaneously detecting sweat multi-component content and pH value based on mobile terminal shooting colorimetric method
CN114900683A (en) * 2022-04-02 2022-08-12 浙江华创视讯科技有限公司 Lens calibration method, device, electronic device and storage medium
CN114894987A (en) * 2022-04-07 2022-08-12 华能上海燃机发电有限责任公司 Pure water medium pH temperature compensation test method and device
CN115062273A (en) * 2022-08-16 2022-09-16 深圳市志奋领科技有限公司 Photoelectric sensor precision control method and system for industrial internet

Similar Documents

Publication Publication Date Title
Chang Smartphone-based chemistry instrumentation: Digitization of colorimetric measurements
US20230146924A1 (en) Neural network analysis of lfa test strips
CN106991679A (en) One kind quantifies recognition methods based on cloud platform urine test paper physical signs
CN110487737B (en) Image information extraction and calculation method and system for spectrum detection of smart phone
US11781973B2 (en) Methods and systems for calibrating and using a camera for detecting an analyte in a sample
CN109887044B (en) Reproductive data evaluation method and system
CN105335658A (en) An application system for urine analysis using the camera function of a smart mobile device
WO2022267799A1 (en) Water quality testing method and water quality testing apparatus
CN106525826B (en) Molecular smart phone rapid test method based on color dominant wavelength and complementary color wavelength
Meng et al. Smartphone-based colorimetric detection platform using color correction algorithms to reduce external interference
CN109459136B (en) Method and device for measuring chromaticity
CN114527116A (en) Ambient light correction array type colorimetric analysis system and method based on intelligent equipment
CN119374726B (en) Stimulation value calculation method, device, system and storage medium
CN110514656B (en) Method for the analysis of long-lived active components in low temperature plasma treatment solutions
TWI858089B (en) Method and kit for determining a concentration of an analyte in a bodily fluid, computer program comprising computer-executable instructions for carrying out the method and mobile device configured for determining a concentration of an analyte in a bodily fluid
CN115824982A (en) An optical POCT color interpretation method, system and device
CN115508341A (en) Water quality detection method and system based on digital image processing
CN109060802B (en) A mobile phone-based paper-based analytical sensor quantitative analysis system and analysis method
CN110849808A (en) Colorimetric measurement analysis mobile platform equipment
US11327024B2 (en) Learning model preparation method, image processing method, learning model preparation device, and computer-readable recording medium
CN115032157A (en) Cloud platform-based identification method for mobile phone photography to detect secretions
CN106770225B (en) A method and system for quantitatively measuring the concentration of procalcitonin
RU2812204C2 (en) Method of determining analyte concentration in physiological fluid and mobile device configured to determine analyte concentration in physiological fluid
Hu Mobofoto: a mobile platform for concentration measurement through colorimetric analysis
HK40068290A (en) Method of determining a concentration of an analyte in a bodily fluid and mobile device configured for determining a concentration of an analyte in a bodily fluid

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination