In-situ detection method and device for granularity of micro-millimeter particles
Through the combination of the microscopic detection device and the host computer, in-situ detection of micron to millimeter-sized particles is achieved, which solves the problems of expensive equipment, complex operations and low efficiency in the existing technology, and achieves low-cost, high-efficiency particle size measurement. detection.
Patent Information
- Application Number
- CN202410562199.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, micromillimeter particle size detection equipment is expensive, complex to operate, inefficient, and cannot achieve in-situ detection, and cannot truly reflect the particle size distribution of particles.
The microscopic detection device is combined with the host computer, and the sample particles are dispersed by dropping deionized water or ethanol. The microscope and stepper motor are used for automated detection, and image processing is performed to measure the particle size and shape to achieve in-situ detection.
It achieves in-situ detection of micron to millimeter-sized particles, with low cost, easy operation, high degree of automation, high detection efficiency, and can truly reflect the particle size distribution of particles.
Smart Images

Figure CN118670940A
Abstract
Description
Technical Field
[0001] The present application relates to a particle size detection method and device, in particular to an in-situ detection method and device for micro-millimeter-level particle size, belonging to the field of testing technology. Background Art
[0002] Powders are widely used in daily life and industrial and agricultural production, such as flour, cement, plastic, papermaking, rubber, ceramics, medicines, etc. In different application fields, the requirements for powder properties are different. Among all the indicators reflecting powder properties, particle size distribution is the most concerned indicator in all application fields, so it is very important to objectively and truly reflect the particle size distribution of powders.
[0003] The size of a particle is called the particle size. The percentage of particles of different sizes in the total amount of powder reflected by a specific instrument and method is the particle size distribution, which indicates the percentage of particles smaller or larger than a certain size. There are many methods for particle size testing, and according to statistics, there are hundreds of them. Commonly used methods include sedimentation method, laser method, screening method and resistance method. Sedimentation method is a method of measuring particle size distribution based on the different sedimentation speeds of particles of different sizes in liquid. Its basic process is to put the sample into a certain liquid to make a suspension of a certain concentration. The particles in the suspension will settle under the action of gravity or centrifugal force. According to Stokes or Beer's law, the sedimentation speeds of particles of different sizes are different, and the larger the particles, the faster the sedimentation speed. The laser method tests the particle size distribution based on the phenomenon that after the laser is irradiated to the particles, the particles can cause the laser to diffract or scatter. According to theoretical and experimental proof, when the laser is irradiated to the particles, the Airy disk generated contains rich particle size information, including particle size and quantity. After a series of photoelectric receivers, the light signals scattered by particles of different sizes are converted into electrical signals. Through the mathematical processing of these signals by Mie scattering theory, the particle size distribution can be obtained. This is the most common detection method at present. Sieving method is one of the most traditional particle size test methods. It is to test the particle size by passing the particles through sieve holes of different sizes. A single sieve can be used to control the passing rate of particles of a single particle size, or multiple sieves can be stacked to measure the passing rate of particles of multiple particle sizes at the same time, and the percentage can be calculated. However, it is difficult to screen micron-sized particles, and ultrasonic vibration is required. The resistance method tests the particle size distribution based on the principle that when a particle passes through a small micropore, it occupies part of the space in the small micropore and displaces the conductive liquid in the small micropore, causing the resistance at both ends of the small micropore to change. In actual production, there are many different particle size test methods. Due to different principles and definitions, different equivalent particle size results obtained by different particle size test methods are quite different. In addition, the above common detection methods generally have the following disadvantages: 1. The detection equipment is expensive and the operation is complicated; 2. The samples to be tested need to be pre-treated; 3. The detection efficiency is low and the cycle is long; 4. They are all indirect measurements and cannot reflect the true particle size distribution of the particles. Summary of the invention
[0004] In order to solve the problems in the prior art of expensive equipment for detecting particle size distribution, complicated operation, non-in-situ and low detection efficiency, the present application provides a method and device for in-situ detection of micron-millimeter particle size, which realizes in-situ detection of micron-millimeter particle size distribution, with the advantages of low cost, high degree of automation, simple operation and high detection efficiency.
[0005] Technical solution 1 adopted in this application:
[0006] An in-situ detection method for micro-millimeter particle size comprises the following steps:
[0007] Step 1: Place the sample powder to be tested in a sample tray and add deionized water or ethanol to fully disperse the sample particles in the liquid;
[0008] Step 2: Connect the microscopic detection device to the host computer, open the detection and analysis software in the host computer, adjust the focal length of the microscope, and focus the sample until the host computer presents a clear sample image;
[0009] Step 3: Start the test. The microscope takes a picture of the sample under the control of the test and analysis software. The captured image is read by the test and analysis software, and grayscale, binarization, edge detection, circumscribed circle, circle radius measurement, and statistical calculation are performed to obtain the maximum circumscribed circle diameter length of a single enclosed area, i.e., the particle size, and count the particle size and shape of all particles in the image;
[0010] Step 4: The sample plate is adjusted according to the image size under the control of the detection and analysis software, and automatically translates in the X or Y direction, and the microscope takes a picture of the sample;
[0011] Step 5: Repeat steps 3 and 4 several times, draw a particle size distribution curve, and complete the test.
[0012] Furthermore, the detection and analysis software in the host computer includes a stepper motor control program and an image analysis program;
[0013] The stepper motor control program includes a program for initializing the stepper motor driver and a program for controlling the rotation of the stepper motor in a cycle, specifically:
[0014] The program code is as follows:
[0015] import serial
[0016] import time
[0017] #Set up the serial port
[0018] ser=serial.Serial('COM3',9600,timeout=1)
[0019] # Initialize the stepper motor driver
[0020] def init_motor():
[0021] ser.write(b'G21\n')#Set the unit to millimeters
[0022] ser.write(b'G90\n')#Enable absolute position mode
[0023] #Control the stepper motor to rotate forward
[0024] def step_forward(steps):
[0025] ser.write(f'G1 X{steps}F100\n'.encode('utf-8'))
[0026] time.sleep(1) ......
[0028] The image analysis program is used to perform grayscale, binarization, edge detection, circumscribed circle, circle radius measurement, and statistical calculation processing on the image. The program code is as follows:
[0029] import cv2
[0030] import matplotlib.pyplot as plt
[0031] import numpy as np
[0032] #Read the image
[0033] img = cv2.imread('03.jpg',0)
[0034] #Grayscale processing
[0035] gray=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
[0036] print("Pic_Size:",img.shape)# View the size of the image
[0037] # Binarization
[0038] ret,binary=cv2.threshold(gray,127,255,cv2.THRESH_BINARY)
[0039] #Morphological gradient operation
[0040] binary=cv2.morphologyEx(binary,cv2.MORPH_CLOSE,kernel,anchor=(2,0),iterations=5)
[0041] #Detect the outline of the object
[0042] contours,hierarchy=
[0043] cv2.findContours(binary,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIM PLE)
[0044] …….
[0045] Furthermore, the weight of the sample powder to be tested in step 1 is 0.1-2 g.
[0046] Furthermore, in step 1, deionized water or ethanol is added dropwise with a concentration of 40-90%.
[0047] Furthermore, the microscopic detection device is connected to the host computer as described in step 2, and the connection can be made via USB.
[0048] Furthermore, the translation distance in the X direction or the Y direction in step 4 is 0.1-1 mm.
[0049] Technical solution 2 adopted in this application:
[0050] An in-situ detection device for micro-millimeter particle size comprises a microscopic detection device and a host computer. The microscopic detection device comprises a microscope, a stage, a sample tray, a stepper motor, a two-dimensional translation slide rail, a support column, a base, and a support arm. The microscopic detection device is connected to the host computer. The microscope is connected to the base via the support arm and transmits an image to the host computer for real-time display via a CCD image sensor. The sample tray is arranged on the stage, which is arranged on the two-dimensional translation slide rail. The two-dimensional translation slide rail is connected to the base via the support column, and the stage is connected to the stepper motor. A microcontroller and a driver are integrated in the host computer. The stepper motor is connected to the microcontroller via the driver. The stepper motor is driven to drive the stage to move two-dimensionally on the two-dimensional translation slide rail. The detection and analysis software is included in the microcontroller.
[0051] Furthermore, the stepper motor is a 28BJY-48 stepper motor.
[0052] Furthermore, the driver selects a ULN2003 driver board or a TB6600 driver board.
[0053] This application has the following beneficial effects:
[0054] 1. Realize in-situ detection of particles ranging from micrometers to millimeters;
[0055] 2. Low cost and easy operation;
[0056] 3. High degree of automation;
[0057] 4. High detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a schematic diagram of an in-situ detection device;
[0059] Figure 2 Schematic diagram of the microscopic detection device;
[0060] Figure 3 Schematic diagram of image analysis of sample particle size;
[0061] Figure 4 This is the sample particle size distribution diagram.
[0062] In the figure: 1. Microscopic detection device, 2. Host computer, 1-1. Microscope, 1-2. Stage, 1-3. Sample tray, 1-4. Stepper motor, 1-5. Two-dimensional translation slide, 1-6. Support column, 1-7. Base, 1-8. Support arm. Figure 4 The vertical axis is the particle size distribution percentage. DETAILED DESCRIPTION
[0063] The present application will be described in detail below in conjunction with the accompanying drawings. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present application. In addition, in the following description, the description of the structure and technical common knowledge is omitted to avoid unnecessary confusion of the concept of the present application.
[0064] Example 1: The present application discloses an in-situ detection method for micro-millimeter particle size, comprising the following steps:
[0065] Step 1: Prepare the sample: Place 0.1-2 g of the sample powder to be tested in the sample tray 1-3, and add deionized water or ethanol with a concentration of 40-90% to fully disperse the sample particles in the liquid;
[0066] Step 2: Connect the microscopic detection device 1 to the host computer 2 via USB, open the detection and analysis software, adjust the focal length of the microscope 1-1, and focus the sample until the host computer presents a clear sample;
[0067] Step 3: Start the test. The microscope takes a picture of the sample under the control of the test and analysis software. The captured image is read by the test and analysis software, grayed and binarized, and edge detection and analysis are performed to calculate the maximum circumscribed circle length of a single enclosed area, i.e., the particle size. The processed image is as follows: Figure 3 As shown, the particle sizes and shapes of all particles in the image are counted;
[0068] Step 4: Under the control of the detection and analysis software, the sample plate 1-3 is adjusted according to the photo size and automatically translated by 0.1-1 mm in the X direction or Y direction, and the microscope 1-1 takes a photo of the sample;
[0069] Step 5. Repeat steps 3 and 4, take and analyze dozens to thousands of pictures, including hundreds to tens of thousands of particles, accumulate, count and analyze all particle sizes and shapes, and draw a particle size distribution curve to complete the test.
[0070] Furthermore, the host computer 2 is installed with self-developed detection and analysis software using development languages such as Python or C++, and the detection and analysis software includes a stepper motor control program and an image analysis program.
[0071] Further, the stepper motor control program includes a program for initializing the stepper motor driver and a program for controlling the rotation of the stepper motor in a loop, wherein the G1X10 F100G code is used in the loop to control the distance and speed of the motor movement;
[0072] The program code is as follows:
[0073] import serial
[0074] import time
[0075] #Set up the serial port
[0076] ser=serial.Serial('COM3',9600,timeout=1)
[0077] # Initialize the stepper motor driver
[0078] def init_motor():
[0079] ser.write(b'G21\n')#Set the unit to millimeters
[0080] ser.write(b'G90\n')#Enable absolute position mode
[0081] #Control the stepper motor to rotate forward
[0082] def step_forward(steps):
[0083] ser.write(f'G1 X{steps}F100\n'.encode('utf-8'))
[0084] time.sleep(1) ......
[0086] The image analysis program is used to perform grayscale, binarization, edge detection, circumscribed circle, circle radius measurement, and statistical calculation processing on the image. The program code is as follows:
[0087] import cv2
[0088] import matplotlib.pyplot as plt
[0089] import numpy as np
[0090] #Read the image
[0091] img = cv2.imread('03.jpg',0)
[0092] #Grayscale processing
[0093] gray=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
[0094] print("Pic_Size:",img.shape)# View the size of the image
[0095] # Binarization
[0096] ret,binary=cv2.threshold(gray,127,255,cv2.THRESH_BINARY)
[0097] #Morphological gradient operation
[0098] binary=cv2.morphologyEx(binary,cv2.MORPH_CLOSE,kernel,anchor=(2,0),iterations=5)
[0099] #Detect the outline of the object
[0100] contours,hierarchy=
[0101] cv2.findContours(binary,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIM PLE)
[0102] …….
[0103] Working principle and process:
[0104] The detection method described in the present application is to make the sample in the sample tray clearly imaged by adjusting the focal length of the microscope, and save the captured image in jpg format or tiff format by the host computer control, and detect the particle size and particle shape of the particles in the picture by the image processing program, and then statistically calculate. The stage is driven to move 0.1-1mm in the X direction or Y direction by the above-mentioned motor control program, and then the shooting is repeated, and the above process is repeated. Image processing is performed on dozens to thousands of pictures, and the dozens to thousands of pictures taken and analyzed contain hundreds to tens of thousands of sufficient numbers of particles. The more the number of particles, the closer the analysis result is to the actual situation, and the distribution of particle size, particle shape and particle size interval is statistically calculated, and a particle size distribution chart and curve are drawn.
[0105] Embodiment 2: The present application discloses an in-situ detection device for micro-millimeter particle size, which is used to implement the in-situ detection method described in Embodiment 1, including a microscopic detection device 1 and a host computer 2. The microscopic detection device 1 includes a microscope 1-1, a stage 1-2, a sample tray 1-3, a stepper motor 1-4, a two-dimensional translation slide 1-5, a support column 1-6, a base 1-7, and an arm 1-8. The microscopic detection device 1 is connected to the host computer 2, and the microscope 1-1 is connected to the base 1-7 through the arm 1-8, and the CCD image sensor is used to detect the sample. The device transmits the image to the host computer 2 for real-time display, the sample tray 1-3 is arranged on the stage 1-2, the stage 1-2 is arranged on the two-dimensional translation slide 1-5, the two-dimensional translation slide 1-5 is connected to the base 1-7 through the support column 1-6, the stage 1-2 is connected to the stepper motor 1-4, the host computer 2 integrates a microcontroller and a driver, the stepper motor 1-4 is connected to the microcontroller via the driver, the stepper motor 1-4 is driven to drive the stage 1-2 to move two-dimensionally on the two-dimensional translation slide 1-5, and the microcontroller includes the detection and analysis software.
[0106] Furthermore, the stepper motors 1-4 are 28BJY-48 stepper motors.
[0107] Furthermore, the driver selects a ULN2003 driver board or a TB6600 driver board.
[0108] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anything within the technical concept disclosed in the present application, and any simple replacement or change based on the technical solution of the present application, shall fall within the protection scope of the present application.
Claims
1. An in-situ detection method for micro-millimeter particle size, characterized in that: The following steps are involved: Step 1: Place the sample powder to be tested in a sample tray and add deionized water or ethanol to fully disperse the sample particles in the liquid; Step 2: Connect the microscope to the host computer, open the detection and analysis software in the host computer, adjust the focal length of the microscope, and focus the sample until the host computer presents a clear sample; Step 3: Start the test. The microscope takes a picture of the sample under the control of the test and analysis software. The captured image is read by the test and analysis software, and grayscale, binarization, edge detection, circumscribed circle, circle radius measurement, and statistical calculation are performed to obtain the maximum circumscribed circle diameter length of a single enclosed area, i.e., the particle size, and count the particle size and shape of all particles in the image; Step 4: The sample plate is adjusted according to the image size under the control of the detection and analysis software, and automatically translates in the X or Y direction, and the microscope takes a picture of the sample; Step 5: Repeat steps 3 and 4 several times, draw a particle size distribution curve, and complete the test.
2. The in-situ detection method for micro-millimeter particle size according to claim 1, characterized in that: The detection and analysis software in the host computer includes a stepper motor control program and an image analysis program; The stepper motor control program includes a program for initializing the stepper motor driver and a program for controlling the rotation of the stepper motor in a cycle, specifically: The program code is as follows: The image analysis program is used to perform grayscale, binarization, edge detection, circumscribed circle, circle radius measurement, and statistical calculation processing on the image. The program code is as follows: import cv2 import matplotlib.pyplot as plt import numpy as np #Read the image img = cv2.imread('03.jpg',0) #Grayscale processing gray=cv2.cvtColor(img,cv2.COLOR_BGR2RGB) print("Pic_Size:",img.shape)# View the size of the image # Binarization ret,binary=cv2.threshold(gray,127,255,cv2.THRESH_BINARY) #Morphological gradient operation binary=cv2.morphologyEx(binary,cv2.MORPH_CLOSE,kernel,anchor=(2,0),iterations=5) #Detect the outline of the object contours,hierarchy= cv2.findContours(binary,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) ……。 3. The in-situ detection method for micro-millimeter particle size according to claim 2, characterized in that: The weight of the sample powder to be tested in step 1 is 0.1-2g.
4. The in-situ detection method for micro-millimeter particle size according to claim 3, characterized in that: In step 1, deionized water or ethanol is added dropwise, and the concentration thereof is 40-90%.
5. The in-situ detection method for micro-millimeter particle size according to claim 2, characterized in that: In step 2, the microscopic detection device is connected to the host computer via USB.
6. The in-situ detection method for micro-millimeter particle size according to claim 2, characterized in that: The translation distance in the X direction or Y direction in step 4 is 0.1-1 mm.
7. An in-situ detection device for micro-millimeter particle size, used to implement the in-situ detection method according to any one of claims 1 to 6, characterized in that: The invention comprises a microscopic detection device (1) and a host computer (2). The microscopic detection device (1) comprises a microscope (1-1), a stage (1-2), a sample tray (1-3), a stepping motor (1-4), a two-dimensional translation slide rail (1-5), a support column (1-6), a base (1-7), and a support arm (1-8). The microscopic detection device (1) is connected to the host computer (2). The microscope (1-1) is connected to the base (1-7) via the support arm (1-8), and transmits an image to the host computer (2) for real-time display via a CCD image sensor. The sample tray (1-3) is arranged on the sample carrier (1-2), the sample carrier (1-2) is arranged on the two-dimensional translation slide rail (1-5), the two-dimensional translation slide rail (1-5) is connected to the base (1-7) through the support column (1-6), the sample carrier (1-2) is connected to the stepper motor (1-4), the upper computer (2) is integrated with a microcontroller and a driver, the stepper motor (1-4) is connected to the microcontroller via the driver, the stepper motor (1-4) is driven to drive the sample carrier (1-2) to move two-dimensionally on the two-dimensional translation slide rail (1-5), and the microcontroller includes the detection and analysis software.
8. The in-situ detection device for micro-millimeter particle size according to claim 7, characterized in that: The stepper motor (1-4) adopts a 28BJY-48 stepper motor.
9. The in-situ detection device for micro-millimeter particle size according to claim 7, characterized in that: The driver adopts a ULN2003 driver board or a TB6600 driver board.
