Particle detection experiment report based on Halcon - color, shape detection and classification based on Halcon

1. Overall evaluation
For the particles to be detected, the defects can be divided into two categories: shape defects and color defects. Most shape defects can be detected, and color defects can currently detect black particles with white stripes.
1) For shape defects, if through the cooperation of the manufacturer, a mechanical device similar to vibration is added to the actual inspection station, which can separate many independent particles, then all shape defects can be detected.
2) For color defects, there is no big problem in realizing all defect detection by changing the appropriate color and lighting.
It should be noted that the object of this experiment is black particles. Because the white particles cannot be accurately segmented against the white background currently imaged, subsequent detection experiments cannot be performed. However, most of the defects of white and black particles correspond to each other. The black particles are used as an example to illustrate.
2. Defects that can be detected at present
It should be explained in advance that in order to distinguish the detection effect, the green frame is used to mark the non-defective target, and the red frame is used to mark the defective target. At present, in order to highlight the contrast effect, some minor defect targets are considered normal for the time being, and the strictness of the detection is adjustable, which is also crucial for the actual detection of the subsequent production line.
1) Glass fiber leaks
insert image description here
2) Burrs
insert image description here
3) Broken particles
insert image description here
The impact of particle accumulation on detection can be clearly observed here. Originally smaller particles should be detected as defects, but they form a whole after being piled up, which conforms to the area threshold, so it is falsely detected.
4) Trailing particles
insert image description here
5) Long bars
insert image description here
6) White bars
insert image description here
3. Defects that cannot be detected at present
1) Multi-linked particles
insert image description here
Although multi-linked particles cannot be detected at present, they can still be detected after controlling the accumulation of particles and giving the particle size Implement detection.
2) Uncut
insert image description here
Like multi-linked particles, the detection can still be realized after controlling the accumulation of particles and giving the particle size.
3) Hollow foam
insert image description here
Hollow foam is expected to be difficult to detect because the color characteristics of its defects are not obvious enough. In addition, it cannot be guaranteed that the defect surface of the particles must face the camera during actual detection, so it is difficult to achieve detection.
4) Variety
insert image description here
For variegated particles, after selecting a suitable color light source, they can be detected. However, it should be noted that variegated particles of different colors (such as black and white particles) may require different color light sources, and the details need to be determined by follow-up experiments.
4. Items that need to be cooperated by the manufacturer when it is applied to the actual detection
1) It is necessary to ensure that there is a corresponding mechanism setting that can separate the piled particles as much as possible before the actual detection of the particles.
2) Ensure the background of the detection station with a suitable color. For example, black particles need a white background, and white particles need a black background. It is also possible to determine a color background suitable for all color particles through experiments.

Code:
insert image description here
Welcome to the WeChat public account [Dongguan Scientific Research] to leave a message to discuss technology and in-depth cooperation.

Guess you like

Origin blog.csdn.net/u014751362/article/details/129144386