A method and device for detecting foreign body intrusion on a linear track based on computer vision
Through the linear track foreign object intrusion detection method based on computer vision, linear feature detection and clustering technology are used to solve the problems of model training dependency and limited feature library in the existing technology, and achieve high-precision identification and location of all categories of foreign objects. Detection reduces false alarm rates and operating costs, and is suitable for different scenarios.
Patent Information
- Application Number
- CN202011501862.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-17
AI Technical Summary
The existing technology has problems such as model training dependence, massive data annotation requirements, high operating costs, limited detection range, and high false alarm rate in rail foreign object detection. In particular, the recognition effect of deep learning algorithms is limited by model training data. Classic vision The algorithm recognition effect is limited by the feature library and can only recognize 1/5 of the image content.
A computer vision-based foreign object intrusion detection method for linear tracks is adopted. The camera image is read for grayscale and gradient feature extraction. The straight-line feature detection algorithm and clustering technology are used to identify obstacles on the track, combined with a bird's-eye view and histogram. Statistics can be used to realize the identification and location and size detection of all types of foreign objects, reducing operating costs.
It achieves high-precision identification of all types of foreign objects, reduces the false alarm rate, expands the detection range, has low operating costs, high efficiency, and is suitable for different scene needs.
Smart Images

Figure CN112488056B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer vision, and in particular to a method and device for detecting foreign body intrusion on a linear track based on computer vision. Background Art
[0002] Track foreign body intrusion is one of the serious problems that endanger the safety of rail trains. Foreign bodies usually refer to any objects that appear illegally on the rails and endanger the operation of rail trains, such as illegal pedestrians, stranded workers, animals, vehicles, stones, trees and other obstacles. The main way to ensure track safety is currently based on manual inspection and driver vision. Due to the high speed of trains and problems such as human eye fatigue, traditional methods are difficult to meet the needs of foreign body intrusion detection.
[0003] The purpose of using computer vision to detect foreign body intrusion on tracks is to obtain real-time and accurate information about foreign bodies through machines, provide reference for subsequent decision-making, and effectively avoid problems such as hysteresis and misjudgment caused by manual methods. Such methods can be roughly divided into classical visual algorithms and deep learning algorithms. Compared with classical visual methods, machine learning methods have problems such as limited detection categories, high labeling costs, time-consuming model updates, and high machine operating costs. The main bottleneck of classical algorithms lies in improving generalization capabilities.
[0004] The application number is: 201810107822.8, and the name is: A track foreign body detection system based on deep learning. The invention patent proposes a solution to detect foreign bodies using a deep learning algorithm, but its detection range is limited to the categories involved in the original YOLO model, and it will output and alarm for any detectable object that appears in the field of view, but it cannot determine whether it is on the rails and whether it actually threatens the safety of train travel. And this method requires a large operating cost.
[0005] The invention patent with application number: 201910029546.2 and title: An image-based foreign body detection method for tracks proposes a detection method using a classical visual algorithm, using clustering features for matching to find foreign bodies that cannot match the rail feature library. However, it is still necessary to establish a feature library, and the performance will be greatly limited by the coverage of the feature library. Moreover, this method is limited to detecting image content of less than 1 / 5 of the frame, which greatly limits the detectable distance. Given the high speed of the train, detection within this distance is meaningless.
[0006] The defects of the prior art are summarized as follows:
[0007] (1) A deep learning-based track foreign object detection system invention patent uses a deep learning algorithm. The recognition effect is limited by the model training data, the maintenance and operation costs are high, and there is a lack of solutions for determining the positional relationship between foreign objects and tracks.
[0008] (2) A patent for an image-based track foreign body detection method uses a classical visual algorithm. The recognition effect is limited by the feature library, and the recognition distance is short, and only 1 / 5 of the content in the frame can be recognized. Summary of the invention
[0009] In response to the problems existing in the above-mentioned prior art, the present invention proposes a method and device for detecting foreign object intrusion on a linear track based on computer vision, which does not rely on model training or massive data annotation, has low operating costs and high efficiency, can identify all types of foreign objects, and has high accuracy and low false alarm rate.
[0010] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:
[0011] The present invention provides a method for detecting foreign body intrusion on a linear track based on computer vision, which comprises:
[0012] S101: reading a camera image, and graying the read image to obtain a grayscale image;
[0013] S102: extracting the gradient features of the grayscale image to obtain a gradient image;
[0014] S103: performing binarization processing on the gradient map to obtain a binarized image;
[0015] S104: performing masking on the binarized image to leave valid information in the region of interest, thereby obtaining a binarized image of interest;
[0016] S105: using a straight line feature detection algorithm to process the binary image of interest obtained in S104 to obtain line segment features in the image;
[0017] S106: performing rule filtering on the line segment features obtained in S105, leaving the straight line features that meet the track characteristics, and obtaining a line segment set;
[0018] S107: clustering the line segment set obtained in S106 to obtain line segment clusters;
[0019] S108: extracting the center line of the line segment cluster obtained in S107, restricting it according to the rules, taking the two center lines closest to the center, and obtaining the trend line of the current straight track;
[0020] S109: on the binarized region of interest, converting the region around the trend line into a bird's-eye view;
[0021] S110: Detecting the disconnected portion of the binary features on the trend line to obtain obstacle information;
[0022] S111: Convert obstacle information from the bird's-eye view into information of the original image size and output the result.
[0023] Preferably, the steps between S101 and S102 further include:
[0024] S201: performing denoising processing on the grayscale image obtained in S101;
[0025] Preferably, after S111, the step further includes:
[0026] S301: If there is foreign matter in the output result, an alarm signal is issued.
[0027] Preferably, the S107 further comprises:
[0028] S1071: sorting the line segments in the line segment set according to length;
[0029] S1072: Create a new cluster and put the line segment with the longest current length into the new cluster;
[0030] S1073: traverse all remaining line segments in turn, and put those that meet the preset conditions into the cluster;
[0031] S1074: taking the line segments within the cluster from the line segment set;
[0032] S1075: Repeat S1072 to S1074 until the line segment set is empty.
[0033] Preferably, the preset condition is satisfied as follows: the distance between straight lines and / or the difference in slopes of straight lines satisfy a preset value range.
[0034] Preferably, the S110 further includes:
[0035] S1101: Projecting the track map to the track direction and performing pixel histogram statistics;
[0036] S1102: Binarizing the pixel histogram according to the breakpoint pixel threshold, where pixels below the breakpoint pixel threshold are set to 1 and pixels above the breakpoint pixel threshold are set to 0, thereby obtaining a binary curve;
[0037] S1103: Obtain the trough of the binary curve, and flip the trough that does not meet the preset requirements according to the fuzzy threshold;
[0038] S1104: Detect the peak of the binary curve, where the center of the peak is the coordinate of the obstacle from the bird's-eye view, and the length of the peak is the estimated size of the obstacle from the bird's-eye view.
[0039] Preferably, the preset requirement in S1103 is: the trough length is greater than a preset threshold. Only when it is greater than the preset threshold can it be determined as a valid trough, and the threshold is equivalent to the fuzzy threshold.
[0040] The present invention also provides a linear track foreign body intrusion detection device based on computer vision, which includes: an input module, a grayscale module, a gradient module, a binarization module, a ROI module, a line segment extraction module, a line segment filtering module, a clustering module, a centerline extraction module, an original image bird's-eye view conversion module, a track occlusion detection module, a bird's-eye view original image conversion module and an output module; wherein,
[0041] The input module is used to read camera images;
[0042] The grayscale module is used to perform grayscale processing on the read image to obtain a grayscale image;
[0043] The gradient module is used to extract the gradient features of the grayscale image to obtain a gradient image;
[0044] The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image;
[0045] The ROI module is used to perform masking on the binarized image, leaving valid information in the region of interest, and obtaining a binarized image of interest;
[0046] The line segment extraction module is used to process the binary image of interest obtained in S104 using a straight line feature detection algorithm to obtain line segment features in the image;
[0047] The line segment filtering module is used to perform regular filtering on the line segment features obtained by the line segment extraction module, leaving the straight line features that meet the track characteristics, and obtaining a line segment set;
[0048] The clustering module is used to cluster the line segment set obtained by the line segment filtering module to obtain a line segment cluster;
[0049] The centerline extraction module is used to extract the centerline of the line segment cluster obtained by the clustering module, restrict it according to the rules, take the two centerlines closest to the center, and obtain the trend line of the current straight track;
[0050] The original image bird's-eye view conversion module is used to convert the area around the trend line into a bird's-eye view perspective on the binarized region of interest;
[0051] The track occlusion detection module is used to detect the disconnected part of the binary features on the trend line to obtain obstacle information;
[0052] The bird's-eye view original image conversion module is used to convert the obstacle information under the bird's-eye view perspective into information of the original image size;
[0053] The output module is used to output the result obtained by the bird's-eye view original image conversion module.
[0054] Preferably, it also includes: a denoising module and / or an alarm module; wherein,
[0055] The denoising module is used to perform denoising processing on the grayscale image obtained by the grayscale module;
[0056] The alarm module is used to send out an alarm signal when foreign matter exists in the result output by the output module.
[0057] Preferably, the track occlusion detection module includes: a histogram module, a binarization processing module, a peak detection module and a trough detection module; wherein,
[0058] The histogram module is used to project the track map into the track direction and perform pixel point histogram statistics;
[0059] The binarization processing module is used to perform binarization processing on the pixel histogram according to the breakpoint pixel threshold, where pixels below the breakpoint pixel threshold are set to 1 and pixels above the breakpoint pixel threshold are set to 0, thereby obtaining a binary curve;
[0060] The trough detection module is used to obtain the trough of the binary curve and flip the trough that does not meet the preset requirements according to the fuzzy threshold;
[0061] The peak detection module is used to detect the peak of the binary curve, the peak center is the obstacle coordinates from the bird's eye view, and the peak length is the estimated size of the obstacle from the bird's eye view.
[0062] Compared with the prior art, the present invention has at least one of the following advantages:
[0063] (1) The method and device for detecting foreign objects intrusion on a linear track based on computer vision provided by the present invention detect foreign objects based on computer vision. Compared with deep learning algorithms, they do not rely on model training, do not rely on massive data annotation, and are not limited to the foreign object categories known by the model. They have low operating costs and high efficiency.
[0064] (2) The computer vision-based linear track foreign body intrusion detection method and device provided by the present invention have a longer detection range, stronger robustness, convenient debugging method, and some modules can be replaced or adjusted to meet the needs of different scenarios through a better binarization algorithm, a better computer vision straight line detection algorithm, and more general rule restrictions. Compared with other classic vision algorithms,
[0065] (3) The computer vision-based linear track foreign body intrusion detection method and device provided by the present invention can detect all effective obstacles on the linear track and provide their position and size information through the projection direction histogram statistics method, with high accuracy and low false alarm rate.
[0066] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings:
[0068] Figure 1 The present invention is a flowchart of a method for detecting foreign object intrusion on a linear track based on computer vision according to an embodiment of the present invention.
[0069] Figure 2 The present invention is a flowchart of a method for detecting foreign body intrusion on a linear track based on computer vision according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0070] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0071] like Figure 1 Shown is a flow chart of a method for detecting foreign object intrusion on a linear track based on computer vision according to an embodiment of the present invention.
[0072] Please refer to Figure 1 The computer vision-based linear track foreign body intrusion detection method of this embodiment includes:
[0073] S101: reading a camera image, and graying the read image to obtain a grayscale image;
[0074] S102: extracting the gradient features of the grayscale image to obtain a gradient image;
[0075] S103: Binarizing the gradient image to obtain a binarized image;
[0076] S104: masking the binarized image to leave valid information in the region of interest, thereby obtaining a binarized image of interest;
[0077] S105: using a straight line feature detection algorithm to process the binary image of interest obtained in S104 to obtain line segment features in the image;
[0078] S106: performing rule filtering on the line segment features obtained in S105, leaving the straight line features that meet the track characteristics, and obtaining a line segment set;
[0079] S107: clustering the line segment set obtained in S106 to obtain line segment clusters;
[0080] S108: extracting the center line of the line segment cluster obtained in S107, restricting it according to the rules, taking the two center lines closest to the center, and obtaining the trend line of the current straight track;
[0081] S109: on the binarized region of interest, converting the area around the trend line into a bird's eye view;
[0082] S110: Detect the disconnected part of the binary feature on the trend line to obtain obstacle information;
[0083] S111: Convert obstacle information from the bird's-eye view into information of the original image size and output the result.
[0084] The computer vision-based linear track foreign body intrusion detection method of the above embodiment of the present invention performs foreign body detection based on computer vision. Compared with deep learning algorithms, it does not rely on model training, does not rely on massive data annotation, is not limited to the foreign body categories known by the model, and has low operating costs and high efficiency. Furthermore, through a better binarization algorithm, a better computer vision straight line detection algorithm, and more general rule restrictions, compared with other classical visual algorithms, it has a longer detection range, stronger robustness, and convenient debugging methods, and some modules can be replaced or adjusted to meet the needs of different scenarios.
[0085] Figure 2 The present invention is a flowchart of a method for detecting foreign body intrusion on a linear track based on computer vision according to a preferred embodiment of the present invention.
[0086] Reference Figure 2 As shown, in a preferred embodiment, between S101 and S102, the following further includes: S201: performing denoising processing on the grayscale image obtained in S101.
[0087] In a preferred embodiment, after S111, the following steps are included: S301: if there is foreign matter in the output result, an alarm signal is issued.
[0088] In a preferred embodiment, S107 further includes:
[0089] S1071: sort the line segments in the line segment set according to their lengths;
[0090] S1072: Create a new cluster and put the line segment with the longest current length into the new cluster;
[0091] S1073: traverse all remaining line segments in turn, and put those that meet the preset conditions into the cluster;
[0092] S1074: taking the line segments within the cluster from the line segment set;
[0093] S1075: Repeat S1072 to S1074 until the line segment set is empty.
[0094] In a preferred embodiment, the preset condition is satisfied when: the distance between straight lines and / or the difference in the slopes of the straight lines satisfy a preset value range.
[0095] Reference Figure 2 As shown, in a preferred embodiment, S110 further includes:
[0096] S1101: Projecting the track map to the track direction and performing pixel histogram statistics;
[0097] S1102: Binarizing the pixel histogram according to the breakpoint pixel threshold, where pixels below the breakpoint pixel threshold are set to 1 and pixels above the breakpoint pixel threshold are set to 0, thereby obtaining a binary curve;
[0098] S1103: Obtain the trough of the binary curve, and flip the trough that does not meet the preset requirements according to the fuzzy threshold;
[0099] S1104: Detect the peak of the binary curve, the center of the peak is the coordinate of the obstacle from the bird's-eye view, and the length of the peak is the estimated size of the obstacle from the bird's-eye view.
[0100] In a preferred embodiment, the preset requirement in S1103 is: the trough length is greater than a preset threshold. Only when it is greater than the preset threshold can it be determined as a valid trough, and the threshold is equivalent to the fuzzy threshold.
[0101] The above embodiment of the present invention can detect all effective obstacles on a linear track through the projection direction histogram statistics method and provide their position and size information with high accuracy and low false alarm rate.
[0102] In another embodiment of the present invention, a linear track foreign object intrusion detection system based on computer vision is also provided, which includes: an input module, a grayscale module, a gradient module, a binarization module, a ROI module, a line segment extraction module, a line segment filtering module, a clustering module, a centerline extraction module, an original image bird's-eye view conversion module, a track occlusion detection module, a bird's-eye view original image conversion module and an output module.
[0103] Among them, the input module is used to read the camera image;
[0104] The grayscale module is used to grayscale the read image to obtain a grayscale image;
[0105] The gradient module is used to extract the gradient features of the grayscale image to obtain a gradient image;
[0106] The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image;
[0107] The ROI module is used to mask the binarized image, leaving valid information in the region of interest to obtain a binarized image of interest;
[0108] The line segment extraction module is used to process the binary image of interest obtained in S104 using a straight line feature detection algorithm to obtain line segment features in the image;
[0109] The line segment filtering module is used to filter the line segment features obtained by the line segment extraction module according to the rules, leaving the straight line features that meet the track characteristics and obtaining a line segment set;
[0110] The clustering module is used to cluster the line segment set obtained by the line segment filtering module to obtain line segment clusters;
[0111] The centerline extraction module is used to extract the centerline of the line segment cluster obtained by the clustering module, restrict it according to the rules, take the two centerlines closest to the center, and get the trend line of the current straight track;
[0112] The original image bird's-eye view conversion module is used to convert the area around the trend line into a bird's-eye view perspective on the binary region of interest;
[0113] The track occlusion detection module is used to detect the disconnected parts of the binary features on the trend line to obtain obstacle information;
[0114] The bird's-eye view original image conversion module is used to convert the obstacle information under the bird's-eye view perspective into the information of the original image size;
[0115] The output module is used to output the results obtained by the bird's-eye view original image conversion module.
[0116] In a preferred embodiment, it also includes: a denoising module and / or an alarm module; wherein,
[0117] The denoising module is used to denoise the grayscale image obtained by the grayscale module;
[0118] The alarm module is used to send out an alarm signal when foreign matter is present in the result output by the output module.
[0119] In a preferred embodiment, the track occlusion detection module includes: a histogram module, a binarization processing module, a peak detection module and a trough detection module; wherein,
[0120] The histogram module is used to project the track map to the track direction and perform pixel histogram statistics;
[0121] The binarization processing module is used to perform binarization processing on the pixel histogram according to the breakpoint pixel threshold, where the pixel below the breakpoint pixel threshold is 1 and the pixel above the breakpoint pixel threshold is 0, thereby obtaining a binary curve;
[0122] The trough detection module is used to find the trough of the binary curve and flip the trough that does not meet the preset requirements according to the fuzzy threshold;
[0123] The peak detection module is used to detect the peak of the binary curve. The peak center is the coordinate of the obstacle from the bird's-eye view, and the peak length is the estimated size of the obstacle from the bird's-eye view.
[0124] The above-mentioned embodiments of the present invention have low operating cost and high efficiency, and can identify all types of foreign objects with high accuracy and low false alarm rate.
[0125] The preferred embodiments of the present invention are disclosed herein. These embodiments are selected and specifically described in this specification in order to better explain the principles and practical applications of the present invention, but are not intended to limit the present invention. Any modifications and changes made by those skilled in the art within the scope of the specification should fall within the scope of protection of the present invention.
Claims
1. A method for detecting foreign body intrusion on a linear track based on computer vision, characterized in that: include: S101: reading a camera image, and graying the read image to obtain a grayscale image; S102: extracting the gradient features of the grayscale image to obtain a gradient image; S103: performing binarization processing on the gradient map to obtain a binarized image; S104: performing masking on the binarized image to leave valid information in the region of interest, thereby obtaining a binarized image of interest; S105: using a straight line feature detection algorithm to process the binary image of interest obtained in S104 to obtain line segment features in the image; S106: performing rule filtering on the line segment features obtained in S105, leaving the straight line features that meet the track characteristics, and obtaining a line segment set; S107: clustering the line segment set obtained in S106 to obtain line segment clusters; S108: extracting the center line of the line segment cluster obtained in S107, restricting it according to the rules, taking the two center lines closest to the center, and obtaining the trend line of the current straight track; S109: on the binarized region of interest, converting the region around the trend line into a bird's-eye view; S110: Detecting the disconnected portion of the binary features on the trend line to obtain obstacle information; S111: converting obstacle information from the bird's-eye view into information of the original image size, and outputting the result; The S107 further includes: S1071: sorting the line segments in the line segment set according to length; S1072: Create a new cluster and put the line segment with the longest current length into the new cluster; S1073: traverse all remaining line segments in sequence, and put those that meet preset conditions into the cluster; the preset conditions are: the distance between straight lines and / or the difference in the slope of the straight lines meet the preset value range; S1074: taking the line segments within the cluster from the line segment set; S1075: Repeat S1072 to S1074 until the line segment set is empty; The S110 further includes: S1101: Projecting the track map to the track direction and performing pixel histogram statistics; S1102: Binarizing the pixel histogram according to the breakpoint pixel threshold, where pixels below the breakpoint pixel threshold are set to 1 and pixels above the breakpoint pixel threshold are set to 0, thereby obtaining a binary curve; S1103: Obtain the trough of the binary curve, and flip the trough that does not meet the preset requirements according to the fuzzy threshold; S1104: Detect the peak of the binary curve, where the center of the peak is the coordinate of the obstacle from the bird's-eye view, and the length of the peak is the estimated size of the obstacle from the bird's-eye view.
2. The method for detecting foreign body intrusion on a linear track based on computer vision according to claim 1, characterized in that: The steps S101 and S102 also include: S201: De-noising the grayscale image obtained in S101.
3. The method for detecting foreign body intrusion on a linear track based on computer vision according to claim 1, characterized in that: The S111 also includes: S301: If there is foreign matter in the output result, an alarm signal is issued.
4. The method for detecting foreign body intrusion on a linear track based on computer vision according to claim 1, characterized in that: The preset requirement in S1103 is: the trough length is greater than a preset threshold.
5. A linear track intrusion detection device based on computer vision, characterized in that: include: Input module, grayscale module, gradient module, binarization module, ROI module, line segment extraction module, line segment filtering module, clustering module, centerline extraction module, original image bird's-eye view conversion module, track occlusion detection module, bird's-eye view original image conversion module and output module; wherein, The input module is used to read camera images; The grayscale module is used to perform grayscale processing on the read image to obtain a grayscale image; The gradient module is used to extract the gradient features of the grayscale image to obtain a gradient image; The binarization module is used to perform binarization processing on the gradient map to obtain a binarized image; The ROI module is used to perform masking on the binarized image, leaving valid information in the region of interest, and obtaining a binarized image of interest; The line segment extraction module is used to process the obtained binary image of interest using a straight line feature detection algorithm to obtain line segment features in the image; The line segment filtering module is used to perform regular filtering on the line segment features obtained by the line segment extraction module, leaving the straight line features that meet the track characteristics, and obtaining a line segment set; The clustering module is used to cluster the line segment set obtained by the line segment filtering module to obtain a line segment cluster; The centerline extraction module is used to extract the centerline of the line segment cluster obtained by the clustering module, restrict it according to the rules, take the two centerlines closest to the center, and obtain the trend line of the current straight track; The original image bird's-eye view conversion module is used to convert the area around the trend line into a bird's-eye view perspective on the binarized region of interest; The track occlusion detection module is used to detect the disconnected part of the binary features on the trend line to obtain obstacle information; The bird's-eye view original image conversion module is used to convert the obstacle information under the bird's-eye view perspective into information of the original image size; The output module is used to output the result obtained by the bird's-eye view original image conversion module; The clustering module further comprises: Sort the line segments in the line segment set according to their lengths; Create a new cluster and put the longest line segment into the new cluster; Traverse all remaining line segments in sequence, and put those that meet preset conditions into the cluster; the preset conditions are: the distance between straight lines and / or the difference in the slope of straight lines meet the preset value range; Take the line segments within the cluster from the line segment set; Repeat the above operation until the line segment set is empty; The track occlusion detection module includes: a histogram module, a binarization processing module, a peak detection module and a trough detection module; wherein, The histogram module is used to project the track map into the track direction and perform pixel point histogram statistics; The binarization processing module is used to perform binarization processing on the pixel histogram according to the breakpoint pixel threshold, where pixels below the breakpoint pixel threshold are set to 1 and pixels above the breakpoint pixel threshold are set to 0, thereby obtaining a binary curve; The trough detection module is used to obtain the trough of the binary curve and flip the trough that does not meet the preset requirements according to the fuzzy threshold; The peak detection module is used to detect the peak of the binary curve, the peak center is the obstacle coordinates from the bird's eye view, and the peak length is the estimated size of the obstacle from the bird's eye view.
6. The linear track intrusion detection device based on computer vision according to claim 5, characterized in that: Also includes: De-noising module and / or alarm module; wherein, The denoising module is used to perform denoising processing on the grayscale image obtained by the grayscale module; The alarm module is used to send out an alarm signal when foreign matter exists in the result output by the output module.
