[go: up one dir, main page]

CN115201188A - System and method for measuring methylene blue value of machine-made sand based on computer vision - Google Patents

System and method for measuring methylene blue value of machine-made sand based on computer vision Download PDF

Info

Publication number
CN115201188A
CN115201188A CN202210791546.8A CN202210791546A CN115201188A CN 115201188 A CN115201188 A CN 115201188A CN 202210791546 A CN202210791546 A CN 202210791546A CN 115201188 A CN115201188 A CN 115201188A
Authority
CN
China
Prior art keywords
methylene blue
blue value
color
halo
computer vision
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
CN202210791546.8A
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.)
Chongqing Maoqiao Technology Co ltd
Original Assignee
Chongqing Maoqiao Technology 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 Chongqing Maoqiao Technology Co ltd filed Critical Chongqing Maoqiao Technology Co ltd
Priority to CN202210791546.8A priority Critical patent/CN115201188A/en
Publication of CN115201188A publication Critical patent/CN115201188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/75Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated
    • G01N21/77Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator
    • G01N21/78Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator producing a change of colour
    • G01N21/79Photometric titration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N31/00Investigating or analysing non-biological materials by the use of the chemical methods specified in the subgroup; Apparatus specially adapted for such methods
    • G01N31/16Investigating or analysing non-biological materials by the use of the chemical methods specified in the subgroup; Apparatus specially adapted for such methods using titration
    • G01N31/162Determining the equivalent point by means of a discontinuity

Landscapes

  • Health & Medical Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Plasma & Fusion (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention relates to the technical field of building material testing, in particular to a system and a method for testing a methylene blue value of machine-made sand based on computer vision, wherein the system comprises a shooting component, an adjusting component and a processing component, and the method comprises the steps of obtaining a shooting methylene blue value test image; dividing a methylene blue value test image into a plurality of color areas with obvious contrast, calculating the areas of the color areas with the color halos and the color areas without the color halos, calculating the radiuses of the color areas with the color halos and the color areas without the color halos by using an area formula, and subtracting the radiuses of the color areas with the color halos and the color areas without the color halos to obtain the color halo width; the method comprises the steps of obtaining the resolution ratio of a methylene blue value test image, converting the sizes of the halo width and the resolution ratio into the number of pixel points with preset halo width, comparing the number of the pixel points with a number threshold, judging that the titration end point of a methylene blue test is successfully identified when the number of the pixel points is larger than the number threshold, and calculating the methylene blue value of a mechanism sand titration result graph. The invention has simple structure, convenient operation and improved efficiency.

Description

基于计算机视觉的机制砂亚甲蓝值测试系统及方法Computer vision-based testing system and method for methylene blue value of machine-made sand

技术领域technical field

本发明涉及建材测试技术领域,具体涉及基于计算机视觉的机制砂亚甲蓝值测试系统及方法。The invention relates to the technical field of building materials testing, in particular to a system and method for testing the methylene blue value of machine-made sand based on computer vision.

背景技术Background technique

机制砂是建设工程用细集料品种之一,当机制砂中泥粉含量过高时,新拌混凝土的水份和减水剂会被泥粉吸附过多,影响混凝土工作性,增加混凝土生产成本,另外,会降低硬化混凝土的力学性能和耐久性。亚甲蓝值(MB值)是判断机制砂中小于0.075㎜的细颗粒中泥粉相对含量的指标。因此,机制砂MB值对于机制砂质量控制以及混凝土质量控制有重大意义。Machine-made sand is one of the types of fine aggregates used in construction projects. When the content of mud powder in machine-made sand is too high, the water and water reducing agent of fresh concrete will be absorbed too much by mud powder, which will affect the workability of concrete and increase concrete production. Cost, in addition, reduces the mechanical properties and durability of hardened concrete. Methylene blue value (MB value) is an index for judging the relative content of mud powder in fine particles less than 0.075 mm in manufactured sand. Therefore, the MB value of manufactured sand is of great significance for the quality control of manufactured sand and concrete quality.

目前,工程中机制砂MB值的检测,采用的是GB/T14684《建设用砂》中规定的亚甲蓝试验方法,该方法根据在配制好的机制砂悬浊液中滴加一定量的亚甲蓝后,再用玻璃棒蘸取一滴悬浮液置于滤纸上,通过肉眼观察滤纸上沉淀物周围出现不消失的约1mm宽的稳定浅蓝色色晕,得到其亚甲蓝值(MB值)。而采用人眼识别方法进行滴定终点和色晕宽度的判断,不仅效率低,而且主观误差大。At present, the MB value of the manufactured sand in the project is detected by the methylene blue test method specified in GB/T14684 "Sand for Construction". After methyl blue, dip a drop of the suspension on the filter paper with a glass rod, and observe with the naked eye a stable light blue halo of about 1mm wide that does not disappear around the sediment on the filter paper, and obtain its methylene blue value (MB value) . However, using the human eye recognition method to judge the titration end point and the color halo width is not only inefficient, but also has large subjective errors.

发明内容SUMMARY OF THE INVENTION

本发明意在提供一种基于计算机视觉的机制砂亚甲蓝值测试方法,以解决现有机制砂的亚甲蓝值测试效率低和主观误差大的问题。The present invention is intended to provide a method for testing the methylene blue value of machine-made sand based on computer vision, so as to solve the problems of low test efficiency and large subjective error of the methylene blue value of the existing machine-made sand.

本方案中的基于计算机视觉的机制砂亚甲蓝值测试方法,包括以下步骤:The method for testing the methylene blue value of machine-made sand based on computer vision in this scheme includes the following steps:

步骤1,获取通过拍摄得到的机制砂滴定测试结果的亚甲蓝值测试图像;Step 1, obtaining the methylene blue value test image of the machine-made sand titration test result obtained by shooting;

步骤2,按照预设颜色模型将亚甲蓝值测试图像分割成多种对比明显的颜色区域,计算颜色区域中带色晕颜色区域和不带色晕颜色区域的面积,根据面积公式计算带色晕颜色区域的面积和不带色晕颜色区域的面积对应的半径,将带色晕颜色区域和不带色晕颜色区域的半径作差得到色晕宽度;Step 2, according to the preset color model, the methylene blue value test image is divided into a variety of color areas with obvious contrast, and the area of the color area with halo and the color area without halo in the color area is calculated, and the color area is calculated according to the area formula. The radius corresponding to the area of the halo color area and the area without the halo color area, and the difference between the radii of the halo color area and the area without the halo color area is used to obtain the halo width;

步骤3,获取亚甲蓝值测试图像的分辨率,根据色晕宽度和分辨率进行尺寸转换,得到预设色晕宽度对应的像素点数量,将像素点数量与数量阈值进行对比,当像素点数量大于数量阈值时,判断亚甲蓝试验滴定终点识别成功,并计算机制砂滴定结果图的亚甲蓝值,判断亚甲蓝值是否位于预设范围内,若是,则亚甲蓝值符合要求。Step 3: Obtain the resolution of the methylene blue value test image, perform size conversion according to the color halo width and resolution, obtain the number of pixels corresponding to the preset color halo width, and compare the number of pixels with the number threshold. When the quantity is greater than the quantity threshold, it is judged that the methylene blue test titration end point is successfully identified, and the methylene blue value of the sand-making titration result graph is calculated to judge whether the methylene blue value is within the preset range, and if so, the methylene blue value meets the requirements .

为了建立亚甲蓝值测试图像的统一拍照模式,所述步骤1中,将摄像头固定至支架上,调节摄像头与机制砂滴定结果图的拍摄距离,并将摄像头信号连接至处理组件,由摄像头拍摄亚甲蓝值图像发送至处理组件,所述步骤2和步骤3中,由处理组件进行亚甲蓝值测试图像的计算和处理。In order to establish a unified photographing mode of the methylene blue value test image, in the step 1, the camera is fixed on the bracket, the shooting distance between the camera and the machine-made sand titration result graph is adjusted, and the camera signal is connected to the processing component, and the camera is photographed. The methylene blue value image is sent to the processing component, and in step 2 and step 3, the processing component calculates and processes the methylene blue value test image.

为了准确计算色晕宽度,所述步骤2中,通过调节预设颜色模型中的色调阈值、饱和度阈值和亮度阈值,并利用行、列与坐标系对应关系来分割不同颜色的蓝色部分,分割亚甲蓝值测试图像形成对比明显的颜色区域。In order to accurately calculate the color halo width, in the step 2, by adjusting the hue threshold, saturation threshold and brightness threshold in the preset color model, and using the corresponding relationship between rows, columns and coordinate systems to segment the blue parts of different colors, Divide the methylene blue value test image to form areas of contrasting color.

其中,所述步骤2中,将带色晕颜色区域和不带色晕颜色区域近似成圆进行面积计算。Wherein, in the step 2, the area with the halo color area and the color area without the halo color area are approximated into a circle for area calculation.

基于计算机视觉的机制砂亚甲蓝值测试系统,包括拍摄组件、调节组件和处理组件;The methylene blue value test system of machine-made sand based on computer vision, including shooting components, adjustment components and processing components;

拍摄组件,位于调节组件上,用于拍摄机制砂滴定测试结果的亚甲蓝值测试图像;The photographing component, located on the adjusting component, is used to photograph the methylene blue value test image of the titration test result of the machine-made sand;

调节组件,用于调节拍摄组件与机制砂滴定结果图的拍摄距离;The adjustment component is used to adjust the shooting distance between the shooting component and the machine-made sand titration result graph;

处理组件,用于获取亚甲蓝值测试图像,并识别亚甲蓝色晕,所述处理组件计算出预设色晕宽度对应的像素点数量,所述处理组件将像素点数量与数量阈值进行对比,当像素点数量大于数量阈值时,所述处理组件判断亚甲蓝试验滴定终点识别成功,并计算机制砂滴定结果图的亚甲蓝值,判断亚甲蓝值是否位于预设范围内,若是,则亚甲蓝值符合要求。The processing component is used to obtain the methylene blue value test image and identify the methylene blue halo, the processing component calculates the number of pixels corresponding to the width of the preset color halo, and the processing component compares the number of pixels with the number threshold. In contrast, when the number of pixel points is greater than the number threshold, the processing component determines that the methylene blue test titration end point is successfully identified, and calculates the methylene blue value of the sand-making titration result graph to determine whether the methylene blue value is within the preset range, If so, the methylene blue value meets the requirements.

为了准确稳定低调节拍摄距离,所述调节组件包括载物板,所述载物板上固设有支架,所述支架上设有位于载物板上方的调节座,所述摄像头固设在调节座朝向载物板一侧。In order to adjust the shooting distance accurately and stably, the adjustment component includes an object carrier, a bracket is fixed on the object carrier, and an adjustment seat located above the object carrier is arranged on the bracket, and the camera is fixed on the adjustment seat. The seat faces the side of the load board.

其中,所述调节座为矩形体状,所述调节座上螺旋配合有旋拧螺栓,所述旋拧螺栓能够抵压在支架上。Wherein, the adjusting seat is in the shape of a rectangular body, and a screwing bolt is screwed on the adjusting seat, and the screwing bolt can be pressed against the bracket.

为了拍摄场景光线充足以保证亚甲蓝值测试图像的清晰性,所述支架上设有位于载物板与摄像头之间的照明座,所述照明座固设有圆环架,所述圆环架上固设有照明光源。In order to capture the scene with sufficient light to ensure the clarity of the methylene blue value test image, the bracket is provided with an illumination seat located between the object carrier and the camera, the illumination seat is fixed with a ring frame, and the ring An illumination light source is fixed on the shelf.

为了调整拍照时光线的亮度达到亚甲蓝值测试结果准确性目的,所述照明光源设置多组,每组照明光源包括多个灯珠,每组照明光源的灯珠嵌套均匀分布,所述照明光源信号连接处理组件,所述处理组件初始时向任一组照明光源发送点亮信号,所述处理组件在像素点数量小于阈值时向相邻于已点亮照明光源的一组照明光源发送点亮信号,并重新获取亚甲蓝值测试图像进行测试计算。In order to adjust the brightness of the light when taking pictures to achieve the accuracy of the methylene blue value test results, the illumination light sources are arranged in multiple groups, each group of illumination light sources includes a plurality of lamp beads, and the lamp beads of each group of illumination light sources are evenly nested. The lighting source signal is connected to the processing component, the processing component initially sends a lighting signal to any group of lighting sources, and the processing component sends a lighting signal to a group of lighting sources adjacent to the lighting lighting source when the number of pixels is less than the threshold Light up the signal, and re-acquire the methylene blue value test image for test calculation.

本发明通过设置装置进行机制砂亚甲蓝值的测试,结构简单,操作方便,在提高效率的同时极大程度节省了人力的消耗,并提高测试结果的准确性。The present invention tests the methylene blue value of machine-made sand by setting a device, has simple structure and convenient operation, greatly saves manpower consumption while improving efficiency, and improves the accuracy of test results.

附图说明Description of drawings

图1为本发明实施例一基于计算机视觉的机制砂亚甲蓝值测试方法的流程框图;Fig. 1 is the flow chart of the methylene blue value test method of machine-made sand based on computer vision one embodiment of the present invention;

图2为本发明实施例一基于计算机视觉的机制砂亚甲蓝值测试方法拍摄的亚甲蓝值测试图像;Fig. 2 is the methylene blue value test image taken by the computer vision-based machine-made sand methylene blue value test method according to the embodiment of the present invention;

图3为本发明实施例一基于计算机视觉的机制砂亚甲蓝值测试方法中分割后的图像;Fig. 3 is the image after segmentation in the method for testing methylene blue value of machine-made sand based on computer vision according to Embodiment 1 of the present invention;

图4为本发明实施例一基于计算机视觉的机制砂亚甲蓝值测试方法中带色晕区域(左图)和不带色晕区域(右图);Fig. 4 is the area with color halo (left picture) and the area without color halo (right picture) in the method for testing methylene blue value of machine-made sand based on computer vision in the embodiment of the present invention;

图5为本发明实施例一基于计算机视觉的机制砂亚甲蓝值测试系统的主视图。FIG. 5 is a front view of a computer vision-based methylene blue value testing system for machine-made sand according to Embodiment 1 of the present invention.

具体实施方式Detailed ways

下面通过具体实施方式进一步详细说明。The following is further described in detail through specific embodiments.

说明书附图中的附图标记包括:载物板1、支架2、调节座3、照明座4、圆环架5、摄像头6、旋拧螺栓7。Reference numerals in the drawings in the description include: a carrier plate 1 , a bracket 2 , an adjustment seat 3 , an illumination seat 4 , a ring frame 5 , a camera 6 , and a screw bolt 7 .

实施例一Example 1

基于计算机视觉的机制砂亚甲蓝值测试系统,如图5所示:包括拍摄组件、调节组件和处理组件,拍摄组件位于调节组件上,拍摄组件用于拍摄机制砂滴定测试结果的亚甲蓝值测试图像,拍摄组件可用现有的工业摄像头6。The methylene blue value test system for machine-made sand based on computer vision is shown in Figure 5: it includes a photographing component, an adjusting component and a processing component. The photographing component is located on the adjusting component. The value of the test image, the shooting component can be used with the existing industrial camera 6.

调节组件用于调节拍摄组件与机制砂滴定结果图的拍摄距离,调节组件包括载物板1,载物板1上焊接有支架2,支架2上空套有位于载物板1上方的调节座3,调节座3为矩形体状,调节座3上螺旋配合有旋拧螺栓7。旋拧螺栓7能够抵压在支架2上,摄像头6通过螺钉固定安装在调节座3朝向载物板1一侧。支架2上焊接有位于载物板1与摄像头6之间的照明座4,照明座4朝向载物板1一侧上焊接有圆环架5,圆环架5朝向载物板1一侧上固定安装有照明光源。The adjusting component is used to adjust the shooting distance between the photographing component and the machine-made sand titration result chart. The adjusting component includes an object carrier 1 , a bracket 2 is welded on the object carrier 1 , and an adjustment seat 3 located above the object carrier 1 is sleeved on the bracket 2 . , the adjustment seat 3 is a rectangular body, and the adjustment seat 3 is screwed with a screw bolt 7 . The screw 7 can be pressed against the bracket 2 , and the camera 6 is fixed and installed on the side of the adjustment base 3 facing the object carrier 1 through screws. The bracket 2 is welded with a lighting seat 4 located between the object carrier 1 and the camera 6 , and a circular ring frame 5 is welded on the side of the lighting seat 4 facing the object carrier 1 , and the ring frame 5 is on the side facing the object carrier 1 . The lighting source is fixedly installed.

处理组件用于获取亚甲蓝值测试图像,并识别亚甲蓝色晕,处理组件计算出预设色晕宽度对应的像素点数量,预设色晕宽度可以设置为1mm,处理组件将像素点数量与数量阈值进行对比,数量阈值设置为3.78,当像素点数量大于数量阈值时,处理组件判断亚甲蓝试验滴定终点识别成功,并计算机制砂滴定结果图的亚甲蓝值,判断亚甲蓝值是否位于预设范围内,若是,则亚甲蓝值符合要求,处理组件包括现有的PC主机和显示器。处理组件上搭载有现有的MatLab软件。The processing component is used to obtain the methylene blue value test image and identify the methylene blue halo. The processing component calculates the number of pixels corresponding to the preset color halo width. The preset color halo width can be set to 1mm. The number is compared with the number threshold, and the number threshold is set to 3.78. When the number of pixels is greater than the number threshold, the processing component determines that the methylene blue test titration end point is successfully identified, and calculates the methylene blue value of the sand-making titration result graph to determine the methylene blue. Whether the blue value is within the preset range, if so, the methylene blue value meets the requirements, and the processing components include the existing PC host and monitor. The existing MatLab software is installed on the processing module.

基于计算机视觉的机制砂亚甲蓝值测试方法,如图1所示,包括以下步骤:The methylene blue value test method of machine-made sand based on computer vision, as shown in Figure 1, includes the following steps:

步骤1,将摄像头6固定至支架2上,摄像头6使用现有的工业摄像机,调节摄像头6与机制砂滴定结果图的拍摄距离,并将摄像头6信号连接至处理组件,由摄像头6拍摄亚甲蓝值图像发送至处理组件,由处理组件获取机制砂滴定测试结果的亚甲蓝值测试图像,拍摄得到的亚甲蓝值测试图像如图2所示。Step 1, fix the camera 6 on the bracket 2, the camera 6 uses an existing industrial camera, adjust the shooting distance between the camera 6 and the machine-made sand titration result graph, connect the camera 6 signal to the processing component, and the camera 6 shoots the methylene chloride. The blue value image is sent to the processing component, and the processing component obtains the methylene blue value test image of the machine-made sand titration test result, and the obtained methylene blue value test image is shown in Figure 2.

步骤2,由处理组件进行亚甲蓝值测试图像的计算和处理,处理组件对亚甲蓝值测试图像的计算和处理通过搭载MatLab软件进行,处理组件对亚甲蓝值测试图像的计算和处理过程为,按照预设颜色模型将亚甲蓝值测试图像分割成多种对比明显的颜色区域,即不同蓝色部分的区域,预设颜色模型为HSV颜色模型,HSV颜色模型为H值代表色调、S值代表饱和度和V值代表亮度,分割原理为:通过调节预设颜色模型中的色调阈值、饱和度阈值和亮度阈值,阈值取值范围如表1所示,并利用行、列与坐标系对应关系来分割不同程度的蓝色部分,分割亚甲蓝值测试图像形成对比明显的颜色区域,HSV分量的范围分别为:H,0-180,S,0-255,V,0-255,对应关系如表2所示,分割后的图像如图3所示。Step 2, the calculation and processing of the methylene blue value test image by the processing component, the calculation and processing of the methylene blue value test image by the processing component are carried out by carrying MatLab software, and the calculation and processing of the methylene blue value test image by the processing component The process is to divide the methylene blue value test image into a variety of contrasting color areas according to the preset color model, that is, areas with different blue parts, the preset color model is the HSV color model, and the HSV color model is the H value representing the hue. , S value represents saturation and V value represents brightness. The segmentation principle is: by adjusting the hue threshold, saturation threshold and brightness threshold in the preset color model, the threshold value range is shown in Table 1, and use the row, column and The corresponding relationship of the coordinate system is used to divide the blue parts of different degrees, and the methylene blue value test image is divided to form a color area with obvious contrast. The ranges of the HSV components are: H, 0-180, S, 0-255, V, 0- 255, the corresponding relationship is shown in Table 2, and the segmented image is shown in Figure 3.

对应关系通过函数[row,col]=ind2sub(sz,ind)返回数组row和col,其中包含与大小为sz的矩阵的线性索引ind对应的等效行和列下标。要获得满足特定条件的矩阵元素的线性索引,可以带一个输出参数使用find函数。然后根据HSV三个参数对应的不同颜色阈值,调整HSV的范围,最终找出图中蓝色部分和浅蓝色部分的像素。Correspondence The function [row,col]=ind2sub(sz,ind) returns the arrays row and col containing the equivalent row and column subscripts corresponding to the linear index ind of a matrix of size sz. To get the linear indices of matrix elements that satisfy certain conditions, use the find function with an output parameter. Then adjust the range of HSV according to the different color thresholds corresponding to the three parameters of HSV, and finally find the pixels in the blue part and the light blue part in the figure.

将带色晕颜色区域和不带色晕颜色区域近似成圆进行面积计算,利用面积公式bwarea计算颜色区域中带色晕颜色区域和不带色晕颜色区域的面积,带色晕颜色区域计算得到的面积为100140个像素点,不带色晕颜色区域计算得到的面积为83767个像素点,根据面积公式计算带色晕颜色区域的面积和不带色晕颜色区域的面积对应的半径,将带色晕颜色区域和不带色晕颜色区域的半径作差得到色晕宽度。Approximate the color area with halo and the color area without halo into a circle to calculate the area, use the area formula bwarea to calculate the area of the color area with halo and the area without halo in the color area, and calculate the area with halo color. The area of the color area is 100140 pixels, and the area without the halo color area is 83767 pixels. The halo width is obtained by taking the difference between the radii of the halo color area and the non-halo color area.

表1 HSV的阈值取值范围Table 1 Threshold value range of HSV

蓝色blue 黄色yellow 白色White 黑色black 色调tone 200-255°200-255° 25-55°25-55° \\ \\ 饱和度saturation 0.4-10.4-1 0.4-10.4-1 0-0.10-0.1 \\ 亮度brightness 0.3-10.3-1 0.3-10.3-1 0.9-10.9-1 0-0.350-0.35

表2对应关系Table 2 Correspondence

Figure BDA0003730451110000051
Figure BDA0003730451110000051

DPI(Dots Per Inch,每英寸点数)是一个量度单位,指每一英寸长度中,取样、可显示或输出点的数目。DPI (Dots Per Inch) is a unit of measure that refers to the number of sampling, displayable or output dots per inch of length.

步骤3,获取亚甲蓝值测试图像的分辨率和调节分辨率,因工业摄像机本身支持多种分辨率,调节分辨率为在MATLAB里面设置的图像识别的分辨率,分辨率通过从摄像头6拍摄图像上直接获取,以分辨率和调节分辨率进行尺寸转换,得到预设色晕宽度对应的像素点数量,预设色晕宽度可以设置为1mm,或者根据需求设置成其他值,即计算出浅蓝色色晕的宽度,为15.2489个像素点,将像素点数量与数量阈值进行对比,例如调节分辨率为1024×768的dpi值是一个常数:96,那么计算出来的毫米与像素的关系也约等于一个常数,即1毫米约等于3.78像素作为数量阈值,计算亚甲蓝值测试图像上浅蓝色色晕的宽度的像素点数量,当像素点数量大于数量阈值时,判断亚甲蓝试验滴定终点识别成功,识别成功后,计算机制砂滴定结果图的亚甲蓝值,判断亚甲蓝值是否位于预设范围内,预设范围根据相关的规范进行设置,例如,规范规定要求MB值小于1.4,若MB值计算结果得出来小于1.4,,则MB值符合要求,且输出结果,若计算结果大于1.4,则MB值不符合要求,且输出MB值结果。亚甲蓝值的计算步骤为:在判断亚甲蓝试验滴定终点识别成功时,会弹出对话框,采用最终滴定结束后的亚甲蓝值滴定量作为输入参数V,按照标准规定的预设方式计算得到亚甲蓝值,预设公式为::Step 3: Obtain the resolution of the methylene blue value test image and adjust the resolution. Because the industrial camera itself supports multiple resolutions, the adjustment resolution is the resolution of the image recognition set in MATLAB, and the resolution is captured by the camera 6. Obtain directly from the image, perform size conversion with resolution and adjusted resolution, and obtain the number of pixels corresponding to the preset color halo width. The preset color halo width can be set to 1mm, or set to other values according to requirements, that is, the light The width of the blue halo is 15.2489 pixels, and the number of pixels is compared with the number threshold. For example, the dpi value of adjusting the resolution to 1024×768 is a constant: 96, then the calculated relationship between millimeters and pixels is also about It is equal to a constant, that is, 1 mm is approximately equal to 3.78 pixels as the number threshold, and the number of pixels in the width of the light blue halo on the methylene blue value test image is calculated. When the number of pixels is greater than the number threshold, the methylene blue test titration end point is judged The identification is successful. After the identification is successful, the methylene blue value of the sand-making titration result graph will be computerized to determine whether the methylene blue value is within the preset range. The preset range is set according to the relevant specifications. For example, the specification requires that the MB value be less than 1.4 , if the calculation result of the MB value is less than 1.4, then the MB value meets the requirements, and the result is output; if the calculation result is greater than 1.4, the MB value does not meet the requirements, and the MB value result is output. The calculation steps of the methylene blue value are: when it is judged that the identification of the methylene blue test titration end point is successful, a dialog box will pop up, and the methylene blue value titration after the final titration is used as the input parameter V. The methylene blue value is calculated, and the preset formula is:

MB=(V/m)×10,其中,MB为亚甲蓝值,单位为克每千克(g/kg),V为所加入亚甲蓝溶液的总量,单位为毫升(mL),m为试样质量,单位为克(g),10为每千克试验样消耗的亚甲蓝溶液体积换算成亚甲蓝质量。MB=(V/m)×10, where MB is the methylene blue value, in grams per kilogram (g/kg), V is the total amount of methylene blue solution added, in milliliters (mL), m is the mass of the sample, in grams (g), and 10 is the volume of methylene blue solution consumed per kilogram of the test sample converted into the mass of methylene blue.

本实施例通过拍摄亚甲蓝值测试图像,以计算机视觉及软件辅助进行后续的识别和计算,可智能进行MB值的判定及MB值的计算,可提高判别效率;避免因不同人的视觉差异导致的错误主观判断;对冗杂的长周期实验来说,减少了实验过程中的时间,使得实验更易于操作和可控,提高了实验的精确性。In this embodiment, by taking a test image of methylene blue value, and performing subsequent identification and calculation with the aid of computer vision and software, MB value judgment and MB value calculation can be intelligently performed, which can improve the judgment efficiency; avoid visual differences due to different people Resulting in wrong subjective judgment; for complicated long-period experiments, it reduces the time in the experiment process, makes the experiment easier to operate and controllable, and improves the accuracy of the experiment.

实施例二Embodiment 2

基于计算机视觉的机制砂亚甲蓝值测试系统,与实施例一的区别在于,照明光源设置多组,例如照明光源设置四组,每组照明光源包括多个灯珠,每组设置五个灯珠,每组照明光源的多个灯珠嵌套均匀分布,将照明光源的四组分别标记为1组、2组、3组和4组,各组中的灯珠标记分别为1.1、1.2、1.3、1.4、2.1、2.2、2.3、2.4、3.1、3.2、3.3、3.4、4.1、4.2、4.3、4.4,嵌套均匀分布方式即为:1.1、2.1、3.1、4.1、1.2、2.2、3.2、4.2、…、3.4、4.4,照明光源信号连接处理组件,处理组件测试初始时向任一组照明光源发送点亮信号,处理组件在像素点数量小于阈值时向相邻于已点亮照明光源的一组照明光源发送点亮信号,并重新获取亚甲蓝值测试图像进行测试计算。The difference between the machine-made sand methylene blue value test system based on computer vision and the first embodiment is that there are multiple groups of lighting sources, for example, four groups of lighting sources, each group of lighting sources includes multiple lamp beads, and each group is provided with five lamps The lamp beads of each group of lighting sources are nested and evenly distributed, and the four groups of lighting sources are marked as 1 group, 2 groups, 3 groups and 4 groups respectively, and the lamp beads in each group are marked as 1.1, 1.2, 1.3, 1.4, 2.1, 2.2, 2.3, 2.4, 3.1, 3.2, 3.3, 3.4, 4.1, 4.2, 4.3, 4.4, the nested uniform distribution is: 1.1, 2.1, 3.1, 4.1, 1.2, 2.2, 3.2, 4.2, . A group of lighting sources sends lighting signals, and re-acquires the methylene blue value test image for test calculation.

由于环境中光源以及周围物体在环境光源阴影的干扰下,可能会造成检测结果的误差,所以,在像素点数量小于阈值时,将相邻于已点亮照明光源的一组照明光源点亮,从多个点处同时提亮光线强度,并增加光线的集中程度,根据识别计算结果,让相应的照明光源点亮,调整拍照时光线的亮度达到亚甲蓝值测试结果准确性。Since the light source in the environment and the surrounding objects may cause errors in the detection results under the interference of the shadow of the ambient light source, when the number of pixels is less than the threshold, a group of lighting sources adjacent to the lit lighting source will be lit. Simultaneously brighten the light intensity from multiple points and increase the concentration of the light. According to the recognition calculation results, the corresponding lighting source is lit, and the brightness of the light when taking pictures is adjusted to achieve the accuracy of the methylene blue value test results.

以上所述的仅是本发明的实施例,方案中公知的具体结构及特性等常识在此未作过多描述。应当指出,对于本领域的技术人员来说,在不脱离本发明结构的前提下,还可以作出若干变形和改进,这些也应该视为本发明的保护范围,这些都不会影响本发明实施的效果和专利的实用性。本申请要求的保护范围应当以其权利要求的内容为准,说明书中的具体实施方式等记载可以用于解释权利要求的内容。The above descriptions are only embodiments of the present invention, and common knowledge such as well-known specific structures and characteristics in the solution are not described too much here. It should be pointed out that for those skilled in the art, some modifications and improvements can be made without departing from the structure of the present invention. These should also be regarded as the protection scope of the present invention, and these will not affect the implementation of the present invention. Effectiveness and utility of patents. The scope of protection claimed in this application shall be based on the content of the claims, and the descriptions of the specific implementation manners in the description can be used to interpret the content of the claims.

Claims (9)

1. The machine-made sand methylene blue value testing method based on computer vision is characterized by comprising the following steps of:
step 1, obtaining a methylene blue value test image of a machine-made sand titration test result obtained by shooting;
step 2, segmenting the methylene blue value test image into a plurality of color areas with obvious contrast according to a preset color model, calculating the areas of the areas with and without the halo color areas in the color areas, calculating the corresponding radiuses of the areas with and without the halo color areas according to an area formula, and obtaining the halo width by subtracting the radiuses of the areas with and without the halo color areas;
and 3, obtaining the resolution of the methylene blue value test image, carrying out size conversion according to the halo width and the resolution to obtain the number of pixel points corresponding to the preset halo width, comparing the number of the pixel points with a number threshold, judging that the titration end point of the methylene blue test is successfully identified when the number of the pixel points is greater than the number threshold, calculating the methylene blue value of a mechanism sand titration result diagram, judging whether the methylene blue value is within a preset range, and if so, ensuring that the methylene blue value meets the requirement.
2. The computer vision-based machine-made methylene blue value test method of claim 1, wherein: in the step 1, a camera is fixed on a support, the shooting distance between the camera and a mechanism sand titration result graph is adjusted, a camera signal is connected to a processing assembly, a methylene blue value image is shot by the camera and sent to the processing assembly, and in the step 2 and the step 3, the processing assembly calculates and processes the methylene blue value test image.
3. The computer vision-based machine-made methylene blue value test method of claim 2, wherein: in the step 2, the hue threshold, the saturation threshold and the brightness threshold in the preset color model are adjusted, the blue parts of different colors are segmented by utilizing the corresponding relation of the rows, the columns and the coordinate system, and the methylene blue value test image is segmented to form a color area with obvious contrast.
4. The computer vision-based machine-made methylene blue value test method of claim 3, wherein: in the step 2, the area of the area with the color halo and the area without the color halo are approximately rounded for area calculation.
5. In the mechanism of computer vision sand methylene blue value test system, its characterized in that: the device comprises a shooting component, an adjusting component and a processing component;
the shooting component is positioned on the adjusting component and used for shooting a methylene blue value test image of the mechanism sand titration test result;
the adjusting component is used for adjusting the shooting distance between the shooting component and the mechanism sand titration result graph;
the processing component is used for obtaining a methylene blue value test image and identifying methylene blue halos, the processing component calculates the number of pixel points corresponding to the preset halo width, the processing component compares the number of the pixel points with a number threshold, when the number of the pixel points is larger than the number threshold, the processing component judges that the titration end point identification of the methylene blue test is successful, calculates the methylene blue value of a mechanism sand titration result graph, judges whether the methylene blue value is located in a preset range, and if yes, the methylene blue value meets the requirement.
6. The computer vision based machine-made methylene blue value testing system of claim 5, wherein: the adjusting component comprises an object carrying plate, a support is fixedly arranged on the object carrying plate, an adjusting seat located above the object carrying plate is arranged on the support, and the camera is fixedly arranged on one side of the adjusting seat facing the object carrying plate.
7. The computer vision-based machine-made methylene blue value testing system of claim 6, wherein: the adjusting seat is rectangular, a screwing bolt is spirally matched on the adjusting seat, and the screwing bolt can be abutted against the support.
8. The computer vision-based machine-made methylene blue value testing system of claim 7, wherein: the camera is characterized in that the support is provided with an illumination seat positioned between the object carrying plate and the camera, the illumination seat is fixedly provided with a circular ring frame, and an illumination light source is fixedly arranged on the circular ring frame.
9. The computer vision-based machine-made methylene blue value testing system of claim 8, wherein: the lighting source sets up the multiunit, and every group lighting source includes a plurality of lamp pearls, and every group lighting source's lamp pearl nestification evenly distributed, lighting source signal connection processing subassembly, processing subassembly sends the signal of lighting to arbitrary group lighting source at the beginning, processing subassembly sends the signal of lighting to a set of lighting source adjacent to lighting source has lighted when pixel quantity is less than the threshold value, and reacquires methylene blue value test image and test the calculation.
CN202210791546.8A 2022-07-05 2022-07-05 System and method for measuring methylene blue value of machine-made sand based on computer vision Pending CN115201188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210791546.8A CN115201188A (en) 2022-07-05 2022-07-05 System and method for measuring methylene blue value of machine-made sand based on computer vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210791546.8A CN115201188A (en) 2022-07-05 2022-07-05 System and method for measuring methylene blue value of machine-made sand based on computer vision

Publications (1)

Publication Number Publication Date
CN115201188A true CN115201188A (en) 2022-10-18

Family

ID=83580771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210791546.8A Pending CN115201188A (en) 2022-07-05 2022-07-05 System and method for measuring methylene blue value of machine-made sand based on computer vision

Country Status (1)

Country Link
CN (1) CN115201188A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115754122A (en) * 2022-10-20 2023-03-07 华能山东发电有限公司白杨河发电厂 Full-automatic determination method for oleic acid value of electric power
CN118711182A (en) * 2024-09-02 2024-09-27 山东博硕自动化技术有限公司 Image processing method for calculating the width of methylene blue halo

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497431A (en) * 1992-11-18 1996-03-05 Fuji Photo Film Co., Ltd. Method of extracting characteristic image data and color data conversion device for image processing apparatus
CA2948019A1 (en) * 2016-11-08 2018-05-08 Suncor Energy Inc. Automated methylene blue index analysis of mature fine tailings
CN110570412A (en) * 2019-09-06 2019-12-13 西安交通大学 A Visual Judgment System for Component Errors
CN111626304A (en) * 2020-05-20 2020-09-04 中国科学院新疆理化技术研究所 Color feature extraction method based on machine vision and application thereof
CA3042450A1 (en) * 2019-05-07 2020-11-07 Suncor Energy Inc. Automated methylene blue index analysis of tailings materials

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497431A (en) * 1992-11-18 1996-03-05 Fuji Photo Film Co., Ltd. Method of extracting characteristic image data and color data conversion device for image processing apparatus
CA2948019A1 (en) * 2016-11-08 2018-05-08 Suncor Energy Inc. Automated methylene blue index analysis of mature fine tailings
CA3042450A1 (en) * 2019-05-07 2020-11-07 Suncor Energy Inc. Automated methylene blue index analysis of tailings materials
CN110570412A (en) * 2019-09-06 2019-12-13 西安交通大学 A Visual Judgment System for Component Errors
CN111626304A (en) * 2020-05-20 2020-09-04 中国科学院新疆理化技术研究所 Color feature extraction method based on machine vision and application thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中华人民共和国国家质量监督检验检疫总局: "中华人民共和国国家标准GB/T 14684 建设用砂", 中国标准出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115754122A (en) * 2022-10-20 2023-03-07 华能山东发电有限公司白杨河发电厂 Full-automatic determination method for oleic acid value of electric power
CN115754122B (en) * 2022-10-20 2025-03-11 华能山东发电有限公司白杨河发电厂 A fully automatic method for determining the acid value of power oil
CN118711182A (en) * 2024-09-02 2024-09-27 山东博硕自动化技术有限公司 Image processing method for calculating the width of methylene blue halo

Similar Documents

Publication Publication Date Title
CN115201188A (en) System and method for measuring methylene blue value of machine-made sand based on computer vision
CN101287073B (en) Adaptive Acquisition Method of Stable Brightness Image in Machine Vision System in Variable Lighting Environment
CN111157532A (en) Device and method for visual detection of scratches on mobile phone casings
CN106846328B (en) A kind of video image stabilization judgement and the tunnel brightness detection method based on video
CN110769229A (en) Method, device and system for detecting color brightness of projection picture
CN113610870A (en) Method and device for monitoring liquid level height change and bubble or solid motion
CN120594547A (en) A method for detecting LED screen surface damage based on machine vision
CN115103096A (en) Artificial intelligence machine vision image acquisition system
CN109270076B (en) Intelligent counting method and device for state test of plane glass fragments
CN110017895B (en) Light source monitoring system
CN119845963A (en) Multichannel self-adaptive glass member defect detection method
CN108010071B (en) System and method for measuring brightness distribution by using 3D depth measurement
CN107807098A (en) A kind of heavy metal colorimetric identification device and method based on image procossing
CN109035235A (en) A kind of car light light guide acetes chinensis method
CN111141746A (en) Method and system for automatically detecting length of refill tail oil
CN108801599B (en) Matrix type LED car lamp detection method and device
CN109035225B (en) A method for evaluating the design quality of the lighting system for the appearance quality inspection of automobile brake pads
CN206695904U (en) A kind of standard light both of the quick colorimetric of the energy with camera
CN119104557B (en) A visual inspection method for defects in automotive interior parts
CN106713907B (en) A kind of the HDR image display performance evaluating method and device of display
CN109785290A (en) Normalized steel plate defect detection method is shone based on local light
CN210664378U (en) Customized light source roughness detection device based on red-green chromatic aberration
CN116734996B (en) Road illumination glare measuring device and measuring method
CN112858312B (en) Pen cap silicon bead installation visual detection device and method
CN117309778A (en) A homogenized lighting device based on multispectral imaging system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221018