+

CN117522953A - An automatic coffee particle size assessment method and related equipment - Google Patents

An automatic coffee particle size assessment method and related equipment Download PDF

Info

Publication number
CN117522953A
CN117522953A CN202311461859.8A CN202311461859A CN117522953A CN 117522953 A CN117522953 A CN 117522953A CN 202311461859 A CN202311461859 A CN 202311461859A CN 117522953 A CN117522953 A CN 117522953A
Authority
CN
China
Prior art keywords
coffee
particles
particle size
image
particle
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
CN202311461859.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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN202311461859.8A priority Critical patent/CN117522953A/en
Publication of CN117522953A publication Critical patent/CN117522953A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/64Analysis of geometric attributes of convexity or concavity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a coffee particle size automatic evaluation method and related equipment, wherein the method comprises the following steps: identifying a central circular area of an original coffee particle size image by adopting a Hough circle detection algorithm to obtain the coffee particle size image, denoising and gray processing the coffee particle size image to obtain a gray image, and converting the gray image into a binary image; carrying out contour boundary identification on coffee particles in the binary image, and extracting the contour of all communicated edges to obtain a contour boundary; smoothing the profile boundary to remove saw teeth; obtaining the outer coating of all particles according to the convex hulls of the particles; removing silver skin in the binary image; dividing the adhered coffee particles in the binary image to obtain a recognition result of the coffee particles; and obtaining the particle size evaluation result of the coffee particles according to the identification result and the corresponding particle size and specific surface area statistical information. The invention can greatly reduce the detection cost and realize accurate and efficient evaluation of the particle size and specific surface area of the coffee particles.

Description

一种咖啡粒径自动评估方法及相关设备An automatic coffee particle size assessment method and related equipment

技术领域Technical field

本发明涉及咖啡粒径检测技术领域,尤其涉及一种咖啡粒径自动评估方法、系统、终端及计算机可读存储介质。The invention relates to the technical field of coffee particle size detection, and in particular to an automatic coffee particle size assessment method, system, terminal and computer-readable storage medium.

背景技术Background technique

咖啡颗粒的粒径和比表面积在萃取过程中发挥着关键作用,也是咖啡颗粒的研究的重要标准。咖啡豆经过研磨后,需要进行萃取操作,以从咖啡粉末中提取出溶解性化合物,如咖啡因、油脂、有机酸等对咖啡风味和特性至关重要的成分。一般情况下,比表面积通过颗粒的面积与体积之比来定义,并且颗粒的粒径越小,比表面积越大,从而使越多的溶解化合物能够被释放出来。因此,咖啡颗粒的粒径和比表面积对于调节咖啡口味至关重要,有必要对咖啡颗粒的粒径以及比表面积进行准确且高效的评估。The particle size and specific surface area of coffee particles play a key role in the extraction process and are also important criteria for the study of coffee particles. After coffee beans are ground, extraction operations are required to extract soluble compounds from the coffee powder, such as caffeine, oils, organic acids and other components that are critical to the flavor and characteristics of coffee. In general, specific surface area is defined by the ratio of the area to volume of a particle, and the smaller the particle size, the greater the specific surface area, allowing more dissolved compounds to be released. Therefore, the particle size and specific surface area of coffee particles are crucial to adjusting the taste of coffee, and it is necessary to accurately and efficiently evaluate the particle size and specific surface area of coffee particles.

目前关于咖啡粒径大小的检测,主要利用激光感生压电技术,利用激光感生压电技术检测咖啡粒径大小是一种非接触式的测量方法,它结合了激光散射和压电效应来确定粒子的大小,这个过程大致可以分为以下几个步骤:(1)、激光照射:咖啡粉或颗粒被放置在一个适当的容器中,激光束被精确地照射到咖啡粒子上;(2)、散射光的检测:当激光束击中咖啡粒子时,光会发生散射,散射光的角度和强度取决于粒子的大小和形状,使用一个或多个光检测器来捕捉散射光;(3)、信号转换:检测到的散射光信号被传送到一个压电器件,压电器件能够将光信号转换成电信号,电信号的强度和形状与散射光的特性有关,从而与咖啡粒子的大小有关;(4)、数据分析:将电信号传送到一个计算机系统进行分析,利用适当的算法和软件,根据电信号的特性计算出咖啡粒子的大小,结果可以以数字或图形的形式展示;(5)、粒径大小的确定:根据分析结果,可以确定咖啡粒子的大小分布。At present, the detection of coffee particle size mainly uses laser-induced piezoelectric technology. The use of laser-induced piezoelectric technology to detect coffee particle size is a non-contact measurement method that combines laser scattering and piezoelectric effects. To determine the size of the particles, this process can be roughly divided into the following steps: (1) Laser irradiation: coffee powder or particles are placed in an appropriate container, and the laser beam is accurately irradiated onto the coffee particles; (2) Detection of scattered light: When the laser beam hits the coffee particles, the light will be scattered. The angle and intensity of the scattered light depend on the size and shape of the particles. One or more light detectors are used to capture the scattered light; (3) . Signal conversion: The detected scattered light signal is transmitted to a piezoelectric device. The piezoelectric device can convert the light signal into an electrical signal. The intensity and shape of the electrical signal are related to the characteristics of the scattered light, and thus related to the size of the coffee particles. ; (4) Data analysis: transmit the electrical signal to a computer system for analysis, and use appropriate algorithms and software to calculate the size of coffee particles based on the characteristics of the electrical signal. The results can be displayed in the form of numbers or graphics; (5 ), Determination of particle size: Based on the analysis results, the size distribution of coffee particles can be determined.

总的来说,利用激光感生压电技术存在的缺点是检测成本较高,且无法识别银皮,导致无法对咖啡颗粒的粒径以及比表面积进行准确高效的评估。In general, the disadvantages of using laser-induced piezoelectric technology are the high detection cost and the inability to identify silver skin, which makes it impossible to accurately and efficiently evaluate the particle size and specific surface area of coffee particles.

因此,现有技术还有待于改进和发展。Therefore, the existing technology still needs to be improved and developed.

发明内容Contents of the invention

本发明的主要目的在于提供一种咖啡粒径自动评估方法、系统、终端及计算机可读存储介质,旨在解决现有技术中利用激光感生压电技术检测咖啡粒径大小的检测成本较高,且无法识别银皮,导致无法对咖啡颗粒的粒径以及比表面积进行准确高效的评估的问题。The main purpose of the present invention is to provide an automatic coffee particle size assessment method, system, terminal and computer-readable storage medium, aiming to solve the high detection cost of using laser-induced piezoelectric technology to detect coffee particle size in the prior art. , and the silver skin cannot be identified, resulting in the problem of being unable to accurately and efficiently evaluate the particle size and specific surface area of coffee particles.

为实现上述目的,本发明提供一种咖啡粒径自动评估方法,所述咖啡粒径自动评估方法包括如下步骤:In order to achieve the above object, the present invention provides a method for automatic evaluation of coffee particle size. The automatic evaluation method of coffee particle size includes the following steps:

获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像;Obtain the original coffee particle size image, use the Hough circle detection algorithm to identify the central circular area of the original coffee particle size image, and obtain the coffee particle size image. The coffee particle size image is denoised and grayscale processed to obtain the grayscale image. grayscale image, and convert the grayscale image into a binary image;

基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界;The edge tracking algorithm based on connectivity performs profile boundary recognition on the coffee particles in the binary image, extracts the contours of all connected edges, and obtains the profile boundary;

对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿;Smooth the outline boundary and remove jagged edges from the outline boundary;

根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络;The particle convex hull is obtained according to the smoothed binary image, and for each particle that has not obtained an outer envelope, processing is performed according to the particle convex hull until all particles obtain an outer envelope;

根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮;Confirm the particles belonging to silver skin according to the silver skin judgment conditions, and remove the silver skin in the binary image;

基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果;The particle segmentation algorithm based on the segmentation index segments the adhered coffee particles in the binary image to obtain the identification result of the coffee particles;

根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。Based on the identification results of coffee particles and the corresponding particle size and specific surface area statistical information, the particle size evaluation results of coffee particles are obtained.

此外,为实现上述目的,本发明还提供一种咖啡粒径自动评估系统,其中,所述咖啡粒径自动评估系统包括:In addition, to achieve the above object, the present invention also provides an automatic coffee particle size evaluation system, wherein the automatic coffee particle size evaluation system includes:

咖啡图像预处理模块,用于获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像;The coffee image preprocessing module is used to obtain the original coffee particle size image, use the Hough circle detection algorithm to identify the central circular area of the original coffee particle size image, obtain the coffee particle size image, and remove the coffee particle size image. Noise processing and grayscale processing obtain a grayscale image, and convert the grayscale image into a binary image;

咖啡颗粒廓形边界识别模块,用于基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界;The coffee particle profile boundary recognition module is used to perform profile boundary recognition of coffee particles in the binary image using an edge tracking algorithm based on connectivity, extract the contours of all connected edges, and obtain the profile boundary;

滤波去锯齿模块,用于对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿;A filtering and anti-aliasing module, used to smooth the outline boundary and remove the aliasing of the outline boundary;

颗粒外包络获取模块,用于根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络;The particle outer envelope acquisition module is used to obtain the particle convex hull according to the smoothed binary image. For each particle that has not obtained the outer envelope, it is processed according to the particle convex hull until all particles obtain the outer envelope. ;

咖啡银皮去除模块,用于根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮;The coffee silver skin removal module is used to confirm the particles belonging to silver skin according to the silver skin judgment conditions and remove the silver skin in the binary image;

颗粒粘连分割模块,用于基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果;The particle adhesion segmentation module is used to segment the adhered coffee particles in the binary image using a particle segmentation algorithm based on the segmentation index to obtain the identification result of the coffee particles;

颗粒粒径评估模块,用于根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。The particle size assessment module is used to obtain the particle size assessment results of coffee particles based on the identification results of coffee particles and the corresponding particle size and specific surface area statistical information.

此外,为实现上述目的,本发明还提供一种终端,其中,所述终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的咖啡粒径自动评估程序,所述咖啡粒径自动评估程序被所述处理器执行时实现如上所述的咖啡粒径自动评估方法的步骤。In addition, to achieve the above object, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an automatic coffee particle size assessment program stored on the memory and executable on the processor, When the coffee particle size automatic assessment program is executed by the processor, the steps of the coffee particle size automatic assessment method as described above are implemented.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有咖啡粒径自动评估程序,所述咖啡粒径自动评估程序被处理器执行时实现如上所述的咖啡粒径自动评估方法的步骤。In addition, to achieve the above object, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automatic coffee particle size evaluation program. When the coffee particle size automatic evaluation program is executed by a processor, Steps to implement the automatic coffee particle size assessment method as described above.

本发明中,获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像;基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界;对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿;根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络;根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮;基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果;根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。本发明基于图像视觉对咖啡颗粒进行检测,可以极大地降低检测成本,实现了对咖啡颗粒的粒径以及比表面积进行准确且高效的评估。In the present invention, an original coffee particle size image is obtained, a Hough circle detection algorithm is used to identify the central circular area of the original coffee particle size image, and a coffee particle size image is obtained. The coffee particle size image is denoised and grayed out. The grayscale image is obtained through degree processing, and the grayscale image is converted into a binary image; the edge tracking algorithm based on connectivity performs contour boundary recognition on the coffee particles in the binary image, and extracts the contours of all connected edges. , obtain the profile boundary; smooth the profile boundary to remove the jaggedness of the profile boundary; obtain the particle convex hull according to the smoothed binary image, and obtain the outer envelope for each particle. , process according to the convex hull of the particles until all particles obtain the outer envelope; confirm the particles belonging to the silver skin according to the silver skin judgment conditions, and remove the silver skin in the binary image; the particle segmentation algorithm based on the segmentation index The adhered coffee particles in the binary image are segmented to obtain the identification results of the coffee particles; based on the identification results of the coffee particles and the corresponding particle size and specific surface area statistical information, the particle size evaluation results of the coffee particles are obtained. The present invention detects coffee particles based on image vision, which can greatly reduce detection costs and achieve accurate and efficient evaluation of the particle size and specific surface area of coffee particles.

附图说明Description of drawings

图1是本发明咖啡粒径自动评估方法的较佳实施例的流程图;Figure 1 is a flow chart of a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图2是本发明咖啡粒径自动评估方法的较佳实施例中实现咖啡粒径评估的整体原理示意图;Figure 2 is a schematic diagram of the overall principle of realizing coffee particle size assessment in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图3是本发明咖啡粒径自动评估方法的较佳实施例中咖啡经过磨豆机磨碎的颗粒放置于圆形灯上利用专业相机进行拍摄的示意图;Figure 3 is a schematic diagram of the coffee particles ground by the grinder being placed on a circular lamp and photographed by a professional camera in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图4是本发明咖啡粒径自动评估方法的较佳实施例中获取颗粒外包络得到的咖啡颗粒识别效果的示意图;Figure 4 is a schematic diagram of the coffee particle identification effect obtained by obtaining the outer envelope of the particles in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图5是本发明咖啡粒径自动评估方法的较佳实施例中咖啡粘连颗粒分割效果的示意图;Figure 5 is a schematic diagram of the segmentation effect of coffee adherent particles in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图6是本发明咖啡粒径自动评估方法的较佳实施例中粒径分布的示意图;Figure 6 is a schematic diagram of particle size distribution in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图7是本发明咖啡粒径自动评估方法的较佳实施例中比表面积分布的示意图;Figure 7 is a schematic diagram of the specific surface area distribution in a preferred embodiment of the automatic coffee particle size assessment method of the present invention;

图8是本发明咖啡粒径自动评估系统的较佳实施例的原理示意图;Figure 8 is a schematic diagram of the principle of a preferred embodiment of the automatic coffee particle size assessment system of the present invention;

图9为本发明终端的较佳实施例的运行环境示意图。Figure 9 is a schematic diagram of the operating environment of the preferred embodiment of the terminal of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solutions and advantages of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.

本发明较佳实施例所述的咖啡粒径自动评估方法,如图1和图2所示,所述咖啡粒径自动评估方法包括以下步骤:The automatic evaluation method of coffee particle size according to the preferred embodiment of the present invention is as shown in Figure 1 and Figure 2. The automatic evaluation method of coffee particle size includes the following steps:

步骤S10、获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像。Step S10: Obtain the original coffee particle size image, use the Hough circle detection algorithm to identify the central circular area of the original coffee particle size image, obtain the coffee particle size image, and perform denoising and grayscale processing on the coffee particle size image. The grayscale image is processed and converted into a binary image.

具体地,如图3所示,咖啡经过磨豆机磨碎以后,将产生的颗粒放置于圆形灯上,利用专业相机(例如CMOS相机)进行拍摄,获取CMOS相机采集的原始咖啡粒径图像(即原始图像),采用霍夫圆检测算法(Hough Circle Transform,是一种用来在图像中检测圆形物体的算法,并不直接依赖于中心区域的亮度,而是基于圆的几何特性来进行检测,也就是说用来检测圆形区域的)识别所述原始咖啡粒径图像中亮度高于预设亮度的中心圆形区域(即识别圆形灯中心的亮度较高的中心区域),得到咖啡粒径图像。Specifically, as shown in Figure 3, after the coffee is ground by a grinder, the resulting particles are placed on a circular lamp and photographed using a professional camera (such as a CMOS camera) to obtain the original coffee particle size image collected by the CMOS camera. (that is, the original image), using the Hough Circle Transform algorithm (Hough Circle Transform), which is an algorithm used to detect circular objects in images. It does not directly rely on the brightness of the central area, but is based on the geometric characteristics of the circle. Detection is performed, that is, used to detect circular areas) to identify the central circular area in the original coffee particle size image whose brightness is higher than the preset brightness (that is, to identify the central area with higher brightness in the center of the circular lamp), Get an image of coffee particle size.

在获取图像的过程中,由于受到各种因素的影响,所得到的图像存在部分噪声信息,导致图像质量恶化,因此要进行去噪处理;本发明使用高斯滤波器对所述咖啡粒径图像进行去噪处理,若二维高斯函数为:In the process of obtaining the image, due to the influence of various factors, the obtained image contains some noise information, resulting in deterioration of image quality, so denoising processing is required; the present invention uses a Gaussian filter to perform denoising on the coffee particle size image. Denoising process, if the two-dimensional Gaussian function is:

其中,σ为高斯函数的标准差,x和y表示原始咖啡粒径图像中某一个像素点的横坐标和纵坐标,通过对原始咖啡粒径图像f(x,y)的行和列与高斯函数G(x,y)做卷积,得到平滑图像K(x,y);通过平滑滤波可以抑制噪声,高斯函数的标准差可以控制平滑的程度。当标准差小的时候,高斯滤波器也相对较短,卷积计算小,准确度高,但是信噪比也会降低,平滑程度较差;当标准差大的时候,卷积计算量加大,准确度低,但是响度信噪比较高,平滑程度较好。Among them, σ is the standard deviation of the Gaussian function, x and y represent the abscissa and ordinate of a certain pixel in the original coffee particle size image. By comparing the rows and columns of the original coffee particle size image f (x, y) with Gaussian The function G(x,y) is convolved to obtain a smooth image K(x,y); noise can be suppressed through smoothing filtering, and the standard deviation of the Gaussian function can control the degree of smoothing. When the standard deviation is small, the Gaussian filter is relatively short, the convolution calculation is small, and the accuracy is high, but the signal-to-noise ratio will also be reduced and the smoothness is poor; when the standard deviation is large, the convolution calculation amount increases. , the accuracy is low, but the loudness signal-to-noise ratio is high and the smoothness is good.

考虑到明度最能反映咖啡颗粒与白色背景的差异,且RGB颜色空间难以描述颜色之间的“距离”,为方便后续分辨图片中的各个像素是属于背景色还是咖啡颗粒,故考虑将彩色图像进行灰度化处理。Considering that brightness can best reflect the difference between coffee particles and white background, and the RGB color space is difficult to describe the "distance" between colors, in order to facilitate the subsequent determination of whether each pixel in the picture belongs to the background color or coffee particles, it is considered to convert the color image into Perform grayscale processing.

将去噪处理后的平滑图像K(x,y)采用加权平均值法进行灰度处理得到灰度图像,公式为:The denoised smoothed image K(x,y) is grayscale processed using the weighted average method to obtain a grayscale image. The formula is:

I=αR+βG+γB;I=αR+βG+γB;

其中,R、G、B为原始咖啡粒径图像某个像素的3个分量,α、β、γ为强度系数,且满足α+β+γ=1,I表示灰度图像。Among them, R, G, and B are the three components of a certain pixel of the original coffee particle size image, α, β, and γ are intensity coefficients, and satisfy α+β+γ=1, and I represents the grayscale image.

最后,滤波后将所述灰度图像进行二值化处理后转化为二值图像,所述二值图像用于表征咖啡颗粒和背景色,例如绘制灰度图像的直方图,观察灰度图像中咖啡颗粒边缘点的像素值,选取合适的灰度阀值δ,灰度阈值δ是一个设定的灰度级,用于将灰度图像转换为二值图像,图像中所有灰度值大于或等于δ的像素将被设置为白色(或1),所有灰度值小于δ的像素将被设置为黑色(或0),从而得到二值化后的图像。Finally, after filtering, the grayscale image is binarized and converted into a binary image. The binary image is used to characterize the coffee particles and background color. For example, draw a histogram of the grayscale image and observe the grayscale image. For the pixel value of the edge point of the coffee particles, select an appropriate grayscale threshold δ. The grayscale threshold δ is a set grayscale used to convert the grayscale image into a binary image. All grayscale values in the image are greater than or Pixels equal to δ will be set to white (or 1), and all pixels with a grayscale value less than δ will be set to black (or 0), resulting in a binarized image.

步骤S20、基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界。Step S20: The edge tracking algorithm based on connectivity performs profile boundary recognition on the coffee particles in the binary image, extracts the outlines of all connected edges, and obtains the profile boundary.

具体地,本发明使用基于连通性的边缘追踪算法对咖啡颗粒进行廓形边界识别,该算法可以从二值图像中提取出所有连通的边缘的轮廓(廓形边界)。Specifically, the present invention uses a connectivity-based edge tracking algorithm to identify the contour boundaries of coffee particles. This algorithm can extract the contours (profile boundaries) of all connected edges from a binary image.

算法的基本思路是从某一个起始点开始,沿着边缘方向逐步追踪,直到回到起始点为止。在追踪的过程中,会根据当前点的领域像素的状态来确定下一个要追踪的点的位置。算法的具体步骤如下:The basic idea of the algorithm is to start from a certain starting point and gradually track along the edge direction until returning to the starting point. During the tracking process, the position of the next point to be tracked is determined based on the state of the current point's domain pixels. The specific steps of the algorithm are as follows:

步骤1:在所述二值图像中选择任意一个白色像素点作为起始点;Step 1: Select any white pixel in the binary image as the starting point;

步骤2:从起始点开始,按照顺时针或逆时针的方向依次扫描周围的8个像素点,寻找一个黑色像素点作为下一个点,如果找到黑色像素点,则将黑色像素点标记为当前点,并继续进行下一步扫描,如果未找到黑色像素点,则结束追踪;Step 2: Starting from the starting point, scan the surrounding 8 pixels in a clockwise or counterclockwise direction to find a black pixel as the next point. If a black pixel is found, mark the black pixel as the current point. , and continue to the next scan. If no black pixel is found, the tracking ends;

步骤3:在找到下一个点后,将当前点和下一个点之间的连线标记为边缘,并将下一个点作为当前点,继续进行下一步扫描;Step 3: After finding the next point, mark the connection between the current point and the next point as an edge, and use the next point as the current point to continue the next scan;

步骤4:当回到起始点时结束追踪,并将所有标记的边缘点作为一个轮廓返回;Step 4: End tracking when returning to the starting point, and return all marked edge points as a contour;

步骤5:如果存在多个连通的轮廓,则从一个未被访问的起始点开始,重复上述步骤1-4,直到所有轮廓都被提取出来。Step 5: If there are multiple connected contours, start from an unvisited starting point and repeat the above steps 1-4 until all contours are extracted.

需要注意的是,为了避免重复扫描和死循环,算法在进行边缘追踪时,会将已经访问过的像素点标记为已访问,以保证每个像素点只被访问一次。得到廓形边界,得到廓形边界后,记录下第i个颗粒边界像素长度lengthi和第i个颗粒所有像素的灰度值的均值meaniIt should be noted that in order to avoid repeated scanning and endless loops, the algorithm will mark the visited pixels as visited when performing edge tracking to ensure that each pixel is only visited once. Obtain the contour boundary. After obtaining the contour boundary, record the length i of the pixel boundary of the i-th particle and the mean mean i of the gray value of all pixels of the i-th particle.

步骤S30、对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿。Step S30: Smooth the outline boundary and remove jagged edges from the outline boundary.

具体地,由于直接获取的廓形数据由大量密集点列组成,得到的廓形边界是锯齿状的,在实现上述廓形边界识别算法的基础上,需要对廓形边界进行平滑处理。Specifically, since the directly obtained profile data consists of a large number of dense point sequences, the obtained profile boundary is jagged. On the basis of implementing the above profile boundary recognition algorithm, the profile boundary needs to be smoothed.

本发明利用移动平均滤波(移动平均滤波是一种常用的信号处理技术,其主要目的是减少数据中的随机波动,从而更清晰地揭示数据的趋势或特征)对咖啡颗粒的廓形边界进行平滑,在进行平均滤波的过程中,获取一个合适的(误差最小化,有效地消除或减小数据中的随机波动和噪声,在去噪和保留信号趋势信息之间取得平衡,能够在合理的时间内对信号的变化作出反应,合适的滤波器长度)移动平均滤波的输出信号使输出信号与一个采样周期内各测量值x(u)(即输入信号)之间的误差/>平方和为最小,其中,i=1、2、……、N,则有:The present invention uses moving average filtering (moving average filtering is a commonly used signal processing technology, its main purpose is to reduce random fluctuations in the data, thereby more clearly revealing the trend or characteristics of the data) to smooth the profile boundaries of coffee particles. , in the process of average filtering, obtain a suitable (error minimization), effectively eliminate or reduce random fluctuations and noise in the data, strike a balance between denoising and retaining signal trend information, and be able to achieve a reasonable time React to signal changes within, appropriate filter length) moving average filtered output signal Make the output signal The error between each measured value x(u) (i.e. input signal) within a sampling period/> The sum of squares is the smallest, where i=1, 2,...,N, then there is:

N*=argmin(W);N * =argmin(W);

求极值,得到:Find the extreme value and get:

其中,N表示在移动平均滤波中使用的点数,W表示一个需要最小化的目标函数,N*表示使目标函数W最小化的点或集合。Among them, N represents the number of points used in moving average filtering, W represents an objective function that needs to be minimized, and N * represents the point or set that minimizes the objective function W.

由于获取的廓形数据是首尾相连的环状数据,为了对称均值(对称均值移动平均滤波器是一种特殊类型的移动平均滤波器,它在处理数据时,考虑了当前点的前后数据点,以保持数据的对称性。这意味着滤波器会使用当前数据点及其周围的数据点来计算平均值,从而确定滤波后的输出)的移动平均滤波器能够对两端点进行处理,先需要对廓形阵列进行拼接,后进行移动平均滤波,若起始廓形边界有n个数据点,点集为{(x1,y1)、(x2,y2)、……、(xn-1,yn-1)、(x1,y1)},记为:Since the acquired profile data is annular data connected end to end, in order to achieve symmetric mean (symmetric mean moving average filter is a special type of moving average filter, it considers the data points before and after the current point when processing the data, To maintain the symmetry of the data. This means that the filter will use the current data point and its surrounding data points to calculate the average to determine the filtered output) The moving average filter can process both endpoints, and first needs to The profile array is spliced, and then moving average filtering is performed. If there are n data points at the starting profile boundary, the point set is {(x 1 , y 1 ), (x 2 , y 2 ), ..., (x n -1 ,y n-1 ), (x 1 ,y 1 )}, recorded as:

取矩阵A的后(n-1)行子矩阵为:Take the last (n-1) row sub-matrix of matrix A as:

将矩阵A和子矩阵B进行拼接,得到:Splicing matrix A and sub-matrix B, we get:

对矩阵C的列向量分别进行移动平均滤波:Perform moving average filtering on the column vectors of matrix C respectively:

当得到其中一个点的计算结果后,后续滤波结果利用前序结果进行计算:when get After the calculation result of one of the points, the subsequent filtering result is calculated using the pre-order result:

其中,p=(N-1)/2,q=p+1;Among them, p=(N-1)/2, q=p+1;

将滤波后的矩阵记为:Record the filtered matrix as:

取矩阵的n行子矩阵D为廓形边界点集的滤波结果:Get matrix The n-row submatrix D is the filtering result of the silhouette boundary point set:

其中,i=n/2+1,表示测量值x(i)的平均值;最后,对每一个未进行滤波去锯齿的廓形边界依次进行滤波处理,依次重复上述步骤,直到所有的廓形边界均完成平滑。Among them, i=n/2+1, represents the average value of the measured value x(i); finally, each contour boundary that has not been filtered and de-aliased is filtered in turn, and the above steps are repeated in sequence until all contour boundaries are smoothed.

识别出咖啡颗粒边缘以后,采用平均滤波算法对颗粒边缘进行平滑,可以提升咖啡粒径的计算精度,同时有利于去除银皮和对颗粒粘连分割。After identifying the edges of the coffee particles, the average filtering algorithm is used to smooth the edges of the particles, which can improve the calculation accuracy of the coffee particle size and is helpful for removing silver skin and adhesion segmentation of the particles.

步骤S40、根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络。Step S40: Obtain the particle convex hull according to the smoothed binary image, and perform processing according to the particle convex hull for each particle that has not obtained an outer envelope until all particles obtain an outer envelope.

具体地,在捕获的图像中,不可避免会出现多个粒子相互接触,二值化后被认为是单一的粒子,从而影响统计结果。分离这些粘附颗粒的前提是得到颗粒凸包,凸包是一个包含边界点最小的凸多边形。Specifically, in the captured image, it is inevitable that multiple particles are in contact with each other and are considered to be single particles after binarization, thus affecting the statistical results. The prerequisite for separating these adherent particles is to obtain the convex hull of the particles. The convex hull is a convex polygon containing the smallest boundary points.

若P1(x1,y1)、P2(x2,y2)、……、Pn(xn,yn)为平滑后廓形边界上n个点构成的集合,其中,x按从小到大排列,若x相等,则y按从小到大排列,选择横坐标最小的点P1为起始点,若横坐标相同,则选择纵坐标最小的点为起始点,根据几何学的一般规律,P1一定是该集合的凸包顶点,已知P1为凸包上的点,则:If P 1 (x 1 ,y 1 ), P 2 (x 2 ,y 2 ),..., P n (x n ,y n ) are a set of n points on the smoothed contour boundary, where x Arrange from small to large. If x is equal, then y is arranged from small to large. Select the point P 1 with the smallest abscissa as the starting point. If the abscissas are the same, select the point with the smallest ordinate as the starting point. According to geometry As a general rule, P 1 must be the vertex of the convex hull of the set. It is known that P 1 is a point on the convex hull, then:

其中,i∈(2,n],若的(n-2)个结果均同号,则P2为凸包上的点,否则,P2不是凸包上的点。Among them, i∈(2,n], if (n-2) results all have the same sign, then P 2 is a point on the convex hull, otherwise, P 2 is not a point on the convex hull.

若P2是凸包上的点,则:If P 2 is a point on the convex hull, then:

其中,j∈(3,n],若的(n-3)个结果均同号,则P3为凸包上的点,否则,P3不是凸包上的点,P4、P5、……、Pn按相同方式依次测试,直到遍历结束,找到符合凸包条件的所有点。Among them, j∈(3,n], if (n-3) results of all have the same sign, then P 3 is a point on the convex hull. Otherwise, P 3 is not a point on the convex hull. P 4 , P 5 ,..., P n are tested in the same way, Until the end of the traversal, all points that meet the convex hull conditions are found.

最后,对每一个未获得外包络的颗粒,依次处理直到所有的颗粒都获得外包络。Finally, each particle that has not obtained an outer envelope is processed sequentially until all particles obtain an outer envelope.

对于任意一个多边形,各个顶点的坐标为A1(x1,y1),A2(x2,y2),……,An(xn,yn),则多边形的周长和面积为:For any polygon, the coordinates of each vertex are A 1 (x 1 ,y 1 ), A 2 (x 2 ,y 2 ),..., A n (x n ,y n ), then the perimeter and area of the polygon are for:

其中,xn+1=x1,yn+1=y1Among them, x n+1 =x 1 , y n+1 =y 1 ;

分别计算出颗粒廓形的周长和面积,分别记为P1、S1;计算出颗粒凸包的周长和面积,分别记为P2、S2Calculate the perimeter and area of the particle profile, respectively, and record them as P 1 and S 1 respectively; calculate the perimeter and area of the particle convex hull, and record them as P 2 and S 2 respectively;

定义颗粒实际面积与凸包面积的比值为形状系数,记作Define the ratio of the actual area of the particle to the convex hull area as the shape coefficient, denoted as

经过上述步骤处理以后,得到的咖啡颗粒识别效果如图4所示,图4中的(a)表示咖啡颗粒边缘检测结果,图4中的(b)表示咖啡颗粒边缘平滑效果,图4中的(c)表示咖啡颗粒的外包络识别结果。After the above steps, the obtained coffee particle recognition effect is shown in Figure 4. (a) in Figure 4 represents the coffee particle edge detection result, (b) in Figure 4 represents the coffee particle edge smoothing effect, and Figure 4 (c) shows the outer envelope recognition result of coffee particles.

步骤S50、根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮。Step S50: Confirm the particles belonging to silver skin according to the silver skin judgment conditions, and remove the silver skin in the binary image.

具体地,获取的图像中的颗粒,不全是咖啡颗粒,有的是咖啡豆表面的银皮,为了排除银皮对实验的干扰,根据银皮与咖啡粒径的差异判断出银皮,设置颗粒像素长度阀值α1、α2和颗粒像素长度的均值阀值β1、β2Specifically, the particles in the acquired image are not all coffee particles, but some are silver skins on the surface of coffee beans. In order to eliminate the interference of silver skins on the experiment, the silver skins are judged based on the difference between the silver skins and coffee particle sizes, and the particle pixel length is set. Threshold α 1 , α 2 and mean threshold value β 1 , β 2 of particle pixel length.

预先定义银皮判断条件包括:Pre-defined silver skin judgment conditions include:

银皮判断条件一:第i个颗粒边界像素长度lengthi1且均值meani1Silver skin judgment condition 1: The i-th particle boundary pixel length length i > α 1 and the mean mean i > β 1 ;

银皮判断条件二:第i个颗粒边界像素长度lengthi2且均值meani2Silver skin judgment condition 2: The i-th particle boundary pixel length length i > α 2 and the mean mean i > β 2 ;

若第i个颗粒满足所述银皮判断条件一和银皮判断条件二中的任意一个,则认为第i个颗粒是银皮,并去除银皮。If the i-th particle satisfies any one of the silver skin judgment condition 1 and the silver skin judgment condition 2, the i-th particle is considered to be silver skin, and the silver skin is removed.

步骤S60、基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果。Step S60: The particle segmentation algorithm based on the segmentation index segments the adhered coffee particles in the binary image to obtain the identification result of the coffee particles.

具体地,如图4所示,在粒径分析的过程中,可能还存在两个咖啡颗粒粘连的情况,为解决咖啡颗粒粘连的问题,本发明设计了一种基于分割指数的颗粒分割算法,算法思路和步骤如下:Specifically, as shown in Figure 4, during the particle size analysis process, there may be two coffee particles adhering to each other. In order to solve the problem of coffee particles adhering, the present invention designs a particle segmentation algorithm based on segmentation index. The algorithm ideas and steps are as follows:

步骤1:已得到颗粒廓形边界,若Q1=(x1,y1)、Q2=(x2,y2)、……、Qn=(xn,yn)为廓形边界上的n个点,且x按从小到大排列,若x相等,则y按从小到大排列,其中Qi=(xi,yi)、Qj=(xj,yj)为廓形边界上相异的两点(j>i),若欧式距离D1为两点之间的直线距离,则:Step 1: The particle profile boundary has been obtained. If Q 1 =(x 1 ,y 1 ), Q 2 =(x 2 ,y 2 ),..., Q n =(x n ,y n ) are the profile boundaries n points on the top, and x are arranged from small to large. If x is equal, then y is arranged from small to large, where Q i = (x i , y i ), Q j = (x j , y j ) are the contours Two different points (j>i) on the boundary of the shape, if the Euclidean distance D 1 is the straight-line distance between the two points, then:

若周长距离D2为Qi点沿着廓形边界到达Qj点的最短距离,周长距离D2近似为序号的差值,则:If the perimeter distance D 2 is the shortest distance from point Q i to point Q j along the contour boundary, the perimeter distance D 2 is approximately the difference in serial numbers, then:

得到廓形边界上任意两点的欧式距离D1和周长距离D2;令比值ratio为:Obtain the Euclidean distance D 1 and perimeter distance D 2 of any two points on the contour boundary; let the ratio ratio be:

ratio=D1/D2ratio=D 1 /D 2 ;

颗粒的廓形边界上存在两点使ratio的值最小,将这两个点作为关键点,同时最小ratio的值作为分割指数,并记作min{ratio}。There are two points on the particle profile boundary that minimize the ratio value. These two points are regarded as key points, and the minimum ratio value is used as the segmentation index, and is recorded as min{ratio}.

步骤2:设置颗粒形状系数阀值γ,分割指数阀值ε,定义颗粒分割原则包括:Step 2: Set the particle shape coefficient threshold γ, the segmentation index threshold ε, and define the particle segmentation principles including:

颗粒分割原则一:颗粒的形状系数shapefactor>γ且分割指数min{ratio}<ε;Principle 1 of particle segmentation: shape factor of particles >γ and segmentation index min{ratio}<ε;

颗粒分割原则二:满足颗粒分割原则一的关键点序号(j-i)>3;Particle segmentation principle 2: The key point number (j-i) that satisfies the particle segmentation principle 1>3;

若颗粒同时满足颗粒分割原则一和颗粒分割原则二,则该颗粒分割为颗粒1和颗粒2,否则不进行分割。If the particle satisfies both particle segmentation principle 1 and particle segmentation principle 2, the particle will be divided into particle 1 and particle 2, otherwise it will not be divided.

步骤3:对两个颗粒分割处进行平滑,若颗粒1边界的像素长度gra1>4,则对颗粒1的划分处进行平滑;若颗粒2边界的像素长度gra1>4,则对颗粒2的划分处进行平滑;平滑方法使用步骤S30中介绍的移动平均滤波的方法。Step 3: Smooth the division of the two particles. If the pixel length of the boundary of particle 1 gra 1 >4, then smooth the division of particle 1; if the pixel length of the boundary of particle 2 gra 1 >4, smooth the division of particle 2. Smoothing is performed at the division points; the smoothing method uses the moving average filtering method introduced in step S30.

步骤4:利用循环递归对多个颗粒粘连进行分割,若一个颗粒不满足颗粒分割原则,则无法分割,直接退出;若颗粒能够进行分割,则分割为颗粒1和颗粒2,依次判断颗粒1和颗粒2是否满足颗粒分割原则;若颗粒1和颗粒2都无法继续进行分割,则退出;若存在颗粒能够继续分割,则继续分割;循环递归,直到所有的颗粒全部分割完成,得到咖啡颗粒的识别结果。Step 4: Use loop recursion to segment multiple adhesion particles. If a particle does not meet the particle segmentation principle, it cannot be segmented and exits directly. If the particle can be segmented, it is segmented into particle 1 and particle 2. Then determine the particle 1 and particle 2 in turn. Whether particle 2 satisfies the particle segmentation principle; if neither particle 1 nor particle 2 can continue to be segmented, exit; if there are particles that can continue to be segmented, continue segmentation; loop recursion until all particles are segmented, and the identification of coffee particles is obtained result.

粘连颗粒分割的效果如图5所示。The effect of segmentation of adherent particles is shown in Figure 5.

步骤S70、根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。Step S70: Obtain the particle size evaluation result of the coffee particles based on the identification results of the coffee particles and the corresponding particle size and specific surface area statistical information.

具体地,根据上述咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,最终得到咖啡颗粒的粒径评估结果,如图6和图7所示,图6和图7表示咖啡粒径及比表面积评估结果,其中,图6表示粒径分布直方图和粒径累积分布直方图,图7表示比表面积分布直方图和比表面积累积分布直方图。Specifically, based on the above identification results of coffee particles, as well as the corresponding particle size and specific surface area statistical information, the particle size evaluation results of coffee particles are finally obtained, as shown in Figures 6 and 7. Figures 6 and 7 represent the coffee particle size. And the specific surface area evaluation results, where Figure 6 shows the particle size distribution histogram and particle size cumulative distribution histogram, and Figure 7 shows the specific surface area distribution histogram and the specific surface cumulative distribution histogram.

本发明首先通过对咖啡颗粒的图像进行预处理,包括灰度化和去噪,接着采用霍夫圆检测来找到圆形灯的中心,然后将彩色图像转化为灰度图像,之后应用高斯滤波器进行去噪处理,接下来,将滤波后的灰度图像转化为二值图像以区分咖啡颗粒和背景,随后使用连通性的边缘追踪算法来识别咖啡颗粒的边界,计算每个颗粒的长度和均值,然后通过移动平均滤波来平滑咖啡颗粒的边界,接下来提取颗粒的外包络,用于排除相互接触的颗粒对实验的干扰,在识别的咖啡颗粒中,还可能存在咖啡豆表面的银皮,本发明定义了长度和均值的阈值来判断是否为银皮,以排除其干扰;最后,针对咖啡颗粒可能粘连的情况,设计了一种基于分割指数的颗粒分割算法,对粘连的颗粒进行分割,如果分割后的颗粒仍然满足一定的形状和分割指数条件,将它们保留并继续分割,直到所有的颗粒都被识别和分割,最终,根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。This invention first preprocesses the image of coffee particles, including grayscale and denoising, then uses Hough circle detection to find the center of the circular lamp, then converts the color image into a grayscale image, and then applies a Gaussian filter Denoising is performed. Next, the filtered grayscale image is converted into a binary image to distinguish the coffee particles from the background. Then the edge tracking algorithm of connectivity is used to identify the boundaries of the coffee particles and calculate the length and mean of each particle. , and then smooth the boundaries of the coffee particles through moving average filtering, and then extract the outer envelope of the particles to eliminate the interference of the particles in contact with each other on the experiment. Among the identified coffee particles, there may also be silver skin on the surface of the coffee beans. , the present invention defines the length and mean thresholds to determine whether it is silver skin to eliminate its interference; finally, in view of the situation where coffee particles may adhere, a particle segmentation algorithm based on the segmentation index is designed to segment the adhered particles. , if the segmented particles still meet certain shape and segmentation index conditions, retain them and continue segmenting until all particles are identified and segmented. Finally, according to the identification results of the coffee particles, as well as the corresponding particle size and specific surface area Statistical information is used to obtain the particle size evaluation results of coffee particles.

进一步地,如图8所示,基于上述咖啡粒径自动评估方法,本发明还相应提供了一种咖啡粒径自动评估系统,其中,所述咖啡粒径自动评估系统包括:Further, as shown in Figure 8, based on the above automatic coffee particle size assessment method, the present invention also provides an automatic coffee particle size assessment system, wherein the coffee particle size automatic assessment system includes:

咖啡图像预处理模块51,用于获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像;The coffee image preprocessing module 51 is used to obtain the original coffee particle size image, use the Hough circle detection algorithm to identify the central circular area of the original coffee particle size image, obtain the coffee particle size image, and process the coffee particle size image. Perform denoising and grayscale processing to obtain a grayscale image, and convert the grayscale image into a binary image;

咖啡颗粒廓形边界识别模块52,用于基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界;The coffee particle profile boundary recognition module 52 is used to perform profile boundary recognition of coffee particles in the binary image using an edge tracking algorithm based on connectivity, extract the contours of all connected edges, and obtain the profile boundary;

滤波去锯齿模块53,用于对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿;The filtering and anti-aliasing module 53 is used to smooth the outline boundary and remove the aliasing of the outline boundary;

颗粒外包络获取模块54,用于根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络;The particle outer envelope acquisition module 54 is used to obtain the particle convex hull according to the smoothed binary image, and perform processing according to the particle convex hull for each particle that has not obtained the outer envelope until all particles have obtained the outer envelope. network;

咖啡银皮去除模块55,用于根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮;The coffee silver skin removal module 55 is used to confirm the particles belonging to silver skin according to the silver skin judgment conditions and remove the silver skin in the binary image;

颗粒粘连分割模块56,用于基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果;The particle adhesion segmentation module 56 is used to segment the adhered coffee particles in the binary image using a particle segmentation algorithm based on the segmentation index to obtain the identification result of the coffee particles;

颗粒粒径评估模块57,用于根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。The particle size assessment module 57 is used to obtain the particle size assessment results of the coffee particles based on the identification results of the coffee particles and the corresponding particle size and specific surface area statistical information.

进一步地,如图9所示,基于上述咖啡粒径自动评估方法和系统,本发明还相应提供了一种终端,所述终端包括处理器10、存储器20及显示器30。图9仅示出了终端的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Further, as shown in FIG. 9 , based on the above-mentioned automatic coffee particle size assessment method and system, the present invention also provides a terminal. The terminal includes a processor 10 , a memory 20 and a display 30 . FIG. 9 only shows some components of the terminal, but it should be understood that implementation of all the components shown is not required, and more or less components may be implemented instead.

所述存储器20在一些实施例中可以是所述终端的内部存储单元,例如终端的硬盘或内存。所述存储器20在另一些实施例中也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器20还可以既包括所述终端的内部存储单元也包括外部存储设备。所述存储器20用于存储安装于所述终端的应用软件及各类数据,例如所述安装终端的程序代码等。所述存储器20还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器20上存储有咖啡粒径自动评估程序40,该咖啡粒径自动评估程序40可被处理器10所执行,从而实现本申请中咖啡粒径自动评估方法。In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) equipped on the terminal. ) card, Flash Card, etc. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as program codes for installing the terminal. The memory 20 can also be used to temporarily store data that has been output or is to be output. In one embodiment, the automatic coffee particle size assessment program 40 is stored in the memory 20, and the coffee particle size automatic assessment program 40 can be executed by the processor 10, thereby realizing the automatic coffee particle size assessment method in the present application.

所述处理器10在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器20中存储的程序代码或处理数据,例如执行所述咖啡粒径自动评估方法等。In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, for example Implement the automatic coffee particle size assessment method, etc.

所述显示器30在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器30用于显示在所述终端的信息以及用于显示可视化的用户界面。所述终端的部件10-30通过系统总线相互通信。In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, or the like. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

在一实施例中,当处理器10执行所述存储器20中咖啡粒径自动评估程序40时实现如上所述咖啡粒径自动评估方法的步骤。In one embodiment, when the processor 10 executes the coffee particle size automatic assessment program 40 in the memory 20, the steps of the coffee particle size automatic assessment method as described above are implemented.

本发明还提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有咖啡粒径自动评估程序,所述咖啡粒径自动评估程序被处理器执行时实现如上所述的咖啡粒径自动评估方法的步骤。The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automatic coffee particle size evaluation program. When the coffee particle size automatic evaluation program is executed by the processor, the coffee particle size automatic evaluation program is implemented as described above. The steps of automatic path assessment method.

综上所述,本发明提供一种咖啡粒径自动评估方法及相关设备,所述方法包括:获取原始咖啡粒径图像,采用霍夫圆检测算法识别所述原始咖啡粒径图像的中心圆形区域,得到咖啡粒径图像,将所述咖啡粒径图像进行去噪处理和灰度处理得到灰度图像,并将所述灰度图像转化为二值图像;基于连通性的边缘追踪算法对所述二值图像中咖啡颗粒进行廓形边界识别,提取出所有连通的边缘的轮廓,得到廓形边界;对所述廓形边界进行平滑处理,去除所述廓形边界的锯齿;根据平滑处理后的所述二值图像得到颗粒凸包,对每一个未获得外包络的颗粒,根据颗粒凸包进行处理直到所有的颗粒都获得外包络;根据银皮判断条件确认属于银皮的颗粒,去除所述二值图像中的银皮;基于分割指数的颗粒分割算法对所述二值图像中粘连的咖啡颗粒进行分割,得到咖啡颗粒的识别结果;根据咖啡颗粒的识别结果,以及对应的粒径和比表面积统计信息,得到咖啡颗粒的粒径评估结果。本发明基于图像视觉对咖啡颗粒进行检测,可以极大地降低检测成本,实现了对咖啡颗粒的粒径以及比表面积进行准确且高效的评估。In summary, the present invention provides an automatic coffee particle size assessment method and related equipment. The method includes: obtaining an original coffee particle size image, and using a Hough circle detection algorithm to identify the central circle of the original coffee particle size image. area, obtain a coffee particle size image, perform denoising and grayscale processing on the coffee particle size image to obtain a grayscale image, and convert the grayscale image into a binary image; the edge tracking algorithm based on connectivity Perform profile boundary recognition on the coffee particles in the binary image, extract the contours of all connected edges, and obtain the profile boundary; smooth the profile boundary to remove the jagged edges of the profile boundary; according to the smoothing process The particle convex hull is obtained from the binary image of Remove the silver skin in the binary image; use a particle segmentation algorithm based on segmentation index to segment the adhered coffee particles in the binary image to obtain the identification results of the coffee particles; according to the identification results of the coffee particles, and the corresponding particles diameter and specific surface area statistical information to obtain the particle size evaluation results of coffee particles. The present invention detects coffee particles based on image vision, which can greatly reduce detection costs and achieve accurate and efficient evaluation of the particle size and specific surface area of coffee particles.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者终端中还存在另外的相同要素。It should be noted that, as used herein, the terms "include", "comprises" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or terminal that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in such process, method, article or terminal. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes the element.

当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的计算机可读存储介质中,所述程序在执行时可包括如上述各方法实施例的流程。其中所述的计算机可读存储介质可为存储器、磁碟、光盘等。Of course, those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware (such as processors, controllers, etc.) through computer programs. The programs can be stored in a computer. In a computer-readable computer-readable storage medium, when executed, the program may include the processes of the above method embodiments. The computer-readable storage medium may be a memory, a magnetic disk, an optical disk, etc.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. Those of ordinary skill in the art can make improvements or changes based on the above descriptions. All these improvements and changes should fall within the protection scope of the appended claims of the present invention.

Claims (10)

1. An automatic evaluation method of coffee particle size, characterized in that the automatic evaluation method of coffee particle size comprises:
acquiring an original coffee particle size image, identifying a central circular area of the original coffee particle size image by adopting a Hough circle detection algorithm to obtain a coffee particle size image, carrying out denoising treatment and gray scale treatment on the coffee particle size image to obtain a gray scale image, and converting the gray scale image into a binary image;
carrying out contour boundary identification on coffee particles in the binary image based on a connectivity-based edge tracking algorithm, extracting the contours of all connected edges, and obtaining contour boundaries;
smoothing the profile boundary to remove saw teeth of the profile boundary;
obtaining a particle convex hull according to the smoothed binary image, and processing each particle which does not obtain an outer envelope according to the particle convex hull until all the particles obtain the outer envelope;
confirming particles belonging to the silver skin according to the silver skin judging conditions, and removing the silver skin in the binary image;
dividing the adhered coffee particles in the binary image by a particle dividing algorithm based on the dividing index to obtain a recognition result of the coffee particles;
and obtaining a particle size evaluation result of the coffee particles according to the identification result of the coffee particles and the corresponding particle size and specific surface area statistical information.
2. The method for automatically evaluating the particle size of coffee according to claim 1, wherein the steps of obtaining an original particle size image of coffee, identifying a central circular area of the original particle size image of coffee by using hough circle detection algorithm, obtaining a particle size image of coffee, performing denoising and gray scale processing on the particle size image of coffee to obtain a gray scale image, and converting the gray scale image into a binary image, comprise:
acquiring an original coffee particle size image acquired by a CMOS camera, and identifying a central circular area with brightness higher than preset brightness in the original coffee particle size image by adopting a Hough circle detection algorithm to acquire a coffee particle size image;
denoising the coffee particle size image by using a Gaussian filter, wherein if the two-dimensional Gaussian function is:
wherein sigma is the standard deviation of a Gaussian function, x and y represent the abscissa and the ordinate of a pixel point in an original coffee particle size image, and a smooth image K (x, y) is obtained by convolving rows and columns of the original coffee particle size image f (x, y) with the Gaussian function G (x, y);
carrying out gray level processing on the denoised smooth image K (x, y) by adopting a weighted average method to obtain a gray level image, wherein the formula is as follows:
I=αR+βG+γB;
wherein R, G, B is 3 components of a certain pixel of the original coffee particle size image, alpha, beta and gamma are intensity coefficients, and the alpha+beta+gamma=1 is satisfied, and I represents a gray level image;
and converting the gray level image into a binary image after binarization treatment, wherein the binary image is used for representing coffee particles and background colors.
3. The method for automatically evaluating the particle size of coffee according to claim 2, wherein the connectivity-based edge tracking algorithm performs contour boundary recognition on coffee particles in the binary image, extracts the contour of all connected edges, and obtains the contour boundary, and specifically comprises:
selecting any one white pixel point in the binary image as a starting point;
starting from the starting point, scanning surrounding 8 pixel points in a clockwise or anticlockwise direction in sequence, searching a black pixel point as a next point, marking the black pixel point as a current point if the black pixel point is found, continuing the next scanning, and ending tracking if the black pixel point is not found;
after the next point is found, marking a connecting line between the current point and the next point as an edge, taking the next point as the current point, and continuing to perform the next scanning;
ending the tracking when returning to the starting point, and returning all marked edge points as one contour;
if a plurality of connected contours exist, repeating scanning from an unaccessed starting point until all contours are extracted to obtain a contour boundary, and recording the pixel length of the ith grain boundary after the contour boundary is obtained i And the mean of the gray values of all pixels of the ith particle i
4. The method according to claim 3, wherein the smoothing the profile boundary to remove saw teeth of the profile boundary comprises:
smoothing the contour boundary of coffee particles by moving average filtering, and obtaining a moving average filtered output signal during the process of averagingMake the output signal +.>Error between the measured values x (i) in one sampling period>The sum of squares is minimal, where i=1, 2, … …, N, then there are:
N * =argmin(W);
obtaining an extremum, and obtaining:
where N represents the number of points used in moving average filtering, W represents an objective function that requires minimization, N * Representing a point or set that minimizes the objective function W;
after the profile array is spliced, moving average filtering is carried out, if the initial profile boundary has n data points, the point set is { (x) 1 ,y 1 )、(x 2 ,y 2 )、……、(x n-1 ,y n-1 )、(x 1 ,y 1 ) "written as:
taking the sub-matrix of the rear (n-1) row of the matrix A as follows:
splicing the matrix A and the submatrix B to obtain:
moving average filtering is respectively carried out on column vectors of the matrix C:
when it is obtainedAfter the calculation result of one point, the subsequent filtering result is calculated by using the preamble result:
wherein p= (N-1)/2, q=p+1;
the filtered matrix is noted as:
taking a matrixThe n rows of submatrices D of (a) are the filtering results of the profile boundary point set:
wherein i=n/2+1,representing the average value of the measured values x (i);
and sequentially carrying out filtering treatment on each profile boundary which is not subjected to filtering and antialiasing until all the profile boundaries are smooth.
5. The method according to claim 4, wherein the step of obtaining a convex hull of particles from the smoothed binary image, and for each particle not having obtained an envelope, processing according to the convex hull of particles until all particles have obtained an envelope, comprises:
if P 1 (x 1 ,y 1 )、P 2 (x 2 ,y 2 )、……、P n (x n ,y n ) For smoothing the set of n points on the boundary of the back profile, wherein x is arranged from small to large, if x is equal, y is arranged from small to large, and the point P with the smallest abscissa is selected 1 If the abscissas are the same, the minimum point of the abscissas is selected as the starting point, P 1 For convex hull vertices of the set, then:
wherein i is E (2, n)]If (if)(n-2) results are all numbered, then P 2 As a point on the convex hull, otherwise, P 2 Not points on the convex hull;
if P 2 Is the point on the convex hull, then:
wherein j is E (3, n)]If (if)(n-3) results are all numbered, then P 3 As a point on the convex hull, otherwise, P 3 Not points on convex hull, P 4 、P 5 、……、P n Sequentially testing in the same mode until the traversal is finished, and finding out all points conforming to the convex hull conditions;
for each particle not obtaining the outer envelope, sequentially processing until all particles obtain the outer envelope;
for any polygon, the coordinates of each vertex are A 1 (x 1 ,y 1 ),A 2 (x 2 ,y 2 ),……,A n (x n ,y n ) The perimeter and area of the polygon are:
wherein x is n+1 =x 1 ,y n+1 =y 1
Respectively calculating the perimeter and the area of the particle profile, and respectively marking as P 1 、S 1 The method comprises the steps of carrying out a first treatment on the surface of the Calculating the perimeter and the area of the convex hulls of the particles, respectively marked as P 2 、S 2
Defining the ratio of the actual area of the particles to the area of the convex hull as a shape factor, and recording as
6. The method according to claim 5, wherein the step of determining particles belonging to the silver skin according to the silver skin determination condition, and removing the silver skin from the binary image, comprises:
setting a granular pixel length threshold alpha 1 、α 2 And a mean threshold value beta for the particle pixel length 1 、β 2
The silver skin judging conditions include:
silver skin judging condition one: ith grain boundary pixel length i1 And mean value mean i1
Silver skin judging condition II: ith grain boundary pixel length i2 And mean value mean i2
If the ith particle satisfies either one of the first silver skin judging condition and the second silver skin judging condition, the ith particle is considered to be silver skin, and the silver skin is removed.
7. The method for automatically evaluating the particle size of coffee according to claim 6, wherein the particle segmentation algorithm based on the segmentation index segments the adhered coffee particles in the binary image to obtain the recognition result of the coffee particles, and specifically comprises:
if Q 1 =(x 1 ,y 1 )、Q 2 =(x 2 ,y 2 )、……、Q n =(x n ,y n ) N points on the profile boundary, and x is arranged from small to large, and if x is equal, y is arranged from small to large, where Q i =(x i ,y i )、Q j =(x j ,y j ) Is formed by two points (j>i) If European distance D 1 For the straight line distance between two points, then:
if the perimeter distance D 2 Is Q i The point reaches Q along the contour boundary j Shortest distance of points, perimeter distance D 2 Approximate the difference in sequence numbers:
obtaining Euclidean distance D of any two points on profile boundary 1 And circumference distance D 2 The method comprises the steps of carrying out a first treatment on the surface of the The ratio is:
ratio=D 1 /D 2
two points exist on the outline boundary of the particle to minimize the value of the ratio, the two points are taken as key points, and the value of the minimum ratio is taken as a segmentation index and is recorded as min { ratio };
setting a particle shape factor threshold gamma, a segmentation index threshold epsilon, and defining a particle segmentation principle comprises:
particle segmentation principle one: shape factor shape of particles factor >Gamma and division index min { ratio }<ε;
Particle segmentation principle two: a key point sequence number (j-i) >3 meeting the first particle segmentation principle;
if the particles meet the first particle segmentation principle and the second particle segmentation principle at the same time, the particles are segmented into particles 1 and particles 2, otherwise, the particles are not segmented;
smoothing the two grain divisions, if the pixel length gra of the grain 1 boundary 1 >4, smoothing the division of the particles 1; if the pixel length gra of the grain 2 boundary 1 >4, smoothing the division of the particles 2;
dividing a plurality of particles by using cyclic recursion, if one particle does not meet the particle dividing principle, the particles cannot be divided and directly exit; if the particles can be segmented, dividing the particles into particles 1 and particles 2, and sequentially judging whether the particles 1 and the particles 2 meet a particle segmentation principle; if both particles 1 and 2 cannot be continuously segmented, exiting; if the particles exist, the division can be continued, and the division is continued; and (5) circulating recursion until all the particles are completely segmented, and obtaining a coffee particle identification result.
8. An automatic coffee particle size assessment system, characterized in that the automatic coffee particle size assessment system comprises:
the coffee image preprocessing module is used for acquiring an original coffee particle size image, identifying a central circular area of the original coffee particle size image by adopting a Hough circle detection algorithm to obtain a coffee particle size image, carrying out denoising treatment and gray level treatment on the coffee particle size image to obtain a gray level image, and converting the gray level image into a binary image;
the coffee particle profile boundary recognition module is used for performing profile boundary recognition on coffee particles in the binary image based on a connectivity edge tracking algorithm, extracting the profiles of all communicated edges and obtaining a profile boundary;
the filtering and antialiasing module is used for performing smoothing treatment on the profile boundary and removing the sawteeth of the profile boundary;
the particle outer envelope acquisition module is used for obtaining a particle convex hull according to the smoothed binary image, and processing each particle without the outer envelope according to the particle convex hull until all the particles obtain the outer envelope;
the coffee silver skin removing module is used for confirming particles belonging to silver skin according to silver skin judging conditions and removing the silver skin in the binary image;
the particle adhesion segmentation module is used for segmenting the adhered coffee particles in the binary image based on a particle segmentation algorithm of a segmentation index to obtain a recognition result of the coffee particles;
and the particle size evaluation module is used for obtaining the particle size evaluation result of the coffee particles according to the recognition result of the coffee particles and the corresponding particle size and specific surface area statistical information.
9. A terminal, the terminal comprising: memory, a processor and a coffee particle size automatic assessment program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the coffee particle size automatic assessment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a coffee particle size automatic evaluation program which, when executed by a processor, implements the steps of the coffee particle size automatic evaluation method according to any one of claims 1 to 7.
CN202311461859.8A 2023-11-01 2023-11-01 An automatic coffee particle size assessment method and related equipment Pending CN117522953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311461859.8A CN117522953A (en) 2023-11-01 2023-11-01 An automatic coffee particle size assessment method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311461859.8A CN117522953A (en) 2023-11-01 2023-11-01 An automatic coffee particle size assessment method and related equipment

Publications (1)

Publication Number Publication Date
CN117522953A true CN117522953A (en) 2024-02-06

Family

ID=89761776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311461859.8A Pending CN117522953A (en) 2023-11-01 2023-11-01 An automatic coffee particle size assessment method and related equipment

Country Status (1)

Country Link
CN (1) CN117522953A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119738322A (en) * 2025-03-06 2025-04-01 辽宁帝尔实业有限公司 A method for testing particle size distribution of mineral fire retardant powder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119738322A (en) * 2025-03-06 2025-04-01 辽宁帝尔实业有限公司 A method for testing particle size distribution of mineral fire retardant powder

Similar Documents

Publication Publication Date Title
CN110866924B (en) Line structured light center line extraction method and storage medium
CN115908269B (en) Visual defect detection method, visual defect detection device, storage medium and computer equipment
CN108921813B (en) Unmanned aerial vehicle detection bridge structure crack identification method based on machine vision
CN101984916B (en) Measurement method of blood vessel diameter based on digital image processing technology
CN107784669A (en) A kind of method that hot spot extraction and its barycenter determine
CN111353993B (en) A thread angle measurement method based on machine vision
CN112686858A (en) Visual defect detection method, device, medium and equipment for mobile phone charger
CN106599896A (en) Character segmentation method and device, and element detection method and device
CN112614062A (en) Bacterial colony counting method and device and computer storage medium
CN109766818B (en) Pupil center positioning method and system, computer equipment and readable storage medium
CN114494165B (en) A light strip extraction method and device based on clustering
CN106651801A (en) Method and system for removing noises during light spot locating
CN112734729A (en) Water gauge water level line image detection method and device suitable for night light supplement condition and storage medium
CN113469171A (en) Method, device and medium for identifying interest area in SFR test card image
WO2020037573A1 (en) Method and device for detecting bright spots on image, and computer program product
CN118429330A (en) Dental crown surface defect detection method and system
CN117522953A (en) An automatic coffee particle size assessment method and related equipment
CN114495098A (en) Diaxing algae cell statistical method and system based on microscope image
CN116091933B (en) Geological analysis method and device for water terrain based on remote sensing technology
CN109978905A (en) A kind of spray head spray angle measurement method and device based on Digital Image Processing
CN114266903B (en) Root system image processing method
CN120032225A (en) Image processing method and device, electronic device and storage medium
CN116071692A (en) Morphological image processing-based water gauge water level identification method and system
CN115689929A (en) Aperture Measurement Method and Device Based on Distortion Compensation and Adaptive Mean Fuzzy
CN107767366B (en) A transmission line fitting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载