A system and method for counting steel billets using machine vision technology

By combining machine vision technology with industrial cameras and through-beam laser sensors, and using the yolo v4 target detection network, the problems of large errors and high labor costs in the existing billet counting methods have been solved, and efficient and accurate billet number counting has been achieved, which is suitable for Various steel materials.

CN112734751BActive Publication Date: 2024-08-27TIANJIN ZHONGZHONG TECH ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110099341.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-25
Publication Date
2024-08-27
Estimated Expiration
2041-01-25

AI Technical Summary

Technical Problem

The existing billet counting method has large errors. In particular, manual counting is affected by workers' sense of responsibility and attention. Laser beam shooting cannot accurately count the situation where the front and rear billets are connected head to tail, and it is very labor-intensive.

Method used

Machine vision technology is used in combination with industrial cameras and through-beam laser sensors. An air-cooled protective cover is used to keep the camera running stably. The yolo v4 target detection network is used for image recognition to achieve accurate statistics of the number of steel billets.

Benefits of technology

It achieves efficient, accurate and fair billet counting, reduces labor costs, and the equipment operates stably without time constraints. It has high recognition rate and fast speed, and is suitable for various steel materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112734751B
    Figure CN112734751B
Patent Text Reader

Abstract

The invention provides a system and method for counting steel billets using machine vision technology, including a laser sensor for detecting whether the steel billets have arrived, an industrial camera, an industrial computer, and an electrical box. The laser sensor and the industrial camera are connected to the industrial computer for counting steel billets using machine vision technology through the electrical box; an air-cooled protective cover is installed on the outside of the industrial camera, and the air-cooled protective cover includes an air duct and a cover shell, and the upper end of the air duct extends out of the cover shell and is connected to the air source; the middle part is arranged on the inside of the cover shell and surrounded by the outside of the industrial camera, and the lower end is connected to a circular pipe arranged with the outer end face of the industrial camera shooting lens as the center of the circle, and the air duct and the circular pipe are both provided with multiple air outlets near the inside of the industrial camera. The industrial computer described in the invention improves the technical accuracy of steel billet counting through image machine vision technology, and ensures the long-term efficient and stable operation of the system by air cooling the industrial camera that shoots images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of technical application of artificial intelligence in the steel industry, and in particular relates to a system and method for counting steel billets using machine vision technology. Background Art

[0002] In actual industrial scenarios, product counting is a very important task, which is of positive significance for factories to estimate production and calculate scrap rates. However, sometimes the number counting is not so smart, especially in the production and rolling process of steel billets. Since each steel billet weighs more than 10 tons, there is no accurate and objective counting method. For steel mills that have been producing for many years, the long-term accumulated error is very large.

[0003] There are many methods for counting steel billets, such as manual visual inspection and laser beaming, but they all have their own drawbacks. Manual visual inspection is affected by the workers' sense of responsibility and attention, and the counting results are often large in error. When multiple people's statistics are inconsistent, it is not known who to use as the standard. And as workers' wages are getting higher and higher, this is a considerable expense in steel mills with four shifts. Using laser beaming for counting cannot solve the problem of counting when two steel billets are connected head to tail. It is only more accurate when there is a large gap between the billets.

[0004] In recent years, machine vision technology has made significant progress and is widely used in the fields of face recognition and license plate recognition. It refers to obtaining a target image through a camera or camera. The system program abstracts features based on the pixel, texture, color and other information of the target image for judgment or measurement. The use of machine vision technology to count the number of steel billets has the characteristics of strong real-time performance, high accuracy and continuous operation, and is an excellent counting method. Invention content

[0005] In view of this, the present invention aims to propose a system and method for counting steel billets using machine vision technology. By setting an air-cooled protective cover to maintain the stable operation of the industrial camera, the industrial computer uses machine vision technology to count the steel billets on the images taken by the industrial camera, thereby solving the problem of inaccurate counting caused by worker negligence or fatigue in the existing manual counting process, which is efficient and saves manpower.

[0006] To achieve the above object, the technical solution created by the present invention is implemented as follows:

[0007] On the one hand, the present application provides a system for counting steel billets using machine vision technology, including a laser sensor arranged at the entrance of the steel billet for detecting whether the steel billet has arrived, an industrial camera arranged at a position capable of taking a picture of the arrived steel billet as a whole, an industrial computer, and an electrical box, wherein the laser sensor and the industrial camera are both connected to the electrical box, and the electrical box is connected to the industrial computer for controlling the operation of the entire system and counting steel billets using machine vision technology;

[0008] An air-cooling protective cover is installed on the outside of the industrial camera, and the air-cooling protective cover includes an air supply duct and a cover shell arranged around the industrial camera. The upper end of the air supply duct extends out of the through hole of the side wall of the cover shell through a duct adapter and is connected to an air source; the middle part is arranged on the inner side of the cover shell and spirally surrounds the outside of the industrial camera, and the lower end is connected to a circular pipe arranged with the outer end face of the industrial camera shooting lens as the center of the circle. The air supply duct and the circular pipe are both provided with multiple air outlets on the inner side close to the industrial camera.

[0009] Furthermore, the industrial camera is arranged above the steel billet, the air supply duct and the circular duct are both hard circular tubes, and the air source has a pressure of more than 0.8Mpa.

[0010] Furthermore, it includes a mounting frame, the industrial camera is arranged in a mounting groove formed by punching downward in the middle of the mounting frame, a circular hole with the same size as the outer diameter of the industrial camera head is arranged in the middle of the bottom plate of the mounting groove, the depth of the mounting groove is the same as the length of the industrial camera, and a temperature sensor for detecting the temperature of the industrial camera is also arranged on the inner wall of the mounting groove, and the temperature sensor is connected to the industrial computer through an electrical box.

[0011] Furthermore, the air-cooled protective cover is sleeved on the outside of the mounting groove, and the side wall of the mounting groove is provided with a strip hole for facilitating cooling of the industrial camera. The mounting frame has a circular ring plate extending outward from the upper end opening of the mounting groove, and the lower surface of the circular ring plate is fixedly connected to the upper surface of the cover shell. The lower end of the cover shell extends inward to form an annular limiting plate for limiting the air supply duct and the circular ring duct from sliding out of the cover shell.

[0012] Furthermore, the opposing laser sensor is a special industrial laser opposing laser sensor that can withstand high temperatures above 150° C., and there are no other obstacles between the opposing laser sensors except the steel billets to be counted.

[0013] Furthermore, it includes an industrial light source, which is a machine vision light source and is arranged around the industrial camera to assist the industrial camera in collecting images of the number of high-quality steel billets.

[0014] Furthermore, the industrial computer is also provided with a screen for realizing human-computer interaction and displaying the number of steel billets in real time.

[0015] Furthermore, the electric wires and network cables connecting the industrial computer and the electrical box, and between the electrical box and various components, need to include hard tubes on the outside of the lines.

[0016] On the other hand, the present application provides a method for counting steel billets using machine vision technology, comprising:

[0017] Step 1: The laser beam sensor determines whether the billet has arrived;

[0018] Step 2: After the industrial computer receives the steel billet arrival signal from the sensor, it starts the industrial camera to take pictures;

[0019] Step 3: The industrial computer performs billet area detection through the network model of the billet detection network;

[0020] Step 4: The industrial computer determines the number of steel billets by using the threshold value judgment method based on the detection results.

[0021] Furthermore, the network model and threshold judgment of the steel billet detection network are obtained by multiple iterations of training and detection using the YOLO V4 target detection network;

[0022] By annotating the images taken by the industrial camera, that is, telling the deep neural network system which are the billets and which are the background, use the mouse to frame the billet area. If two or more billets are very close, frame the ones that are close.

[0023] The YOLO v4 target detection network is used for training. After the training, a network model is obtained. This network model is used to detect steel billets on images obtained during the actual production process, and all detection areas are obtained. The detection areas are several rectangular boxes.

[0024] The rectangular frame format is two-point coordinates:

[0025] Obj[]=Yolo_Result[][Xn1,Yn1,Xn2,Yn2]

[0026] -Xn1,Yn1 coordinates of the upper left corner of the nth rectangle;

[0027] -Xn2,Yn2 coordinates of the lower right corner of the nth rectangle;

[0028] Ignore the height and only calculate the width Wn of the rectangle:

[0029] Wn=|X2-X1|*k

[0030] -k is the width / pixel conversion factor;

[0031] The total row width of billets is:

[0032] Wd=∑Wn;

[0033] Assuming the roller width is Wr and the billet width is Wb, the maximum number of billets on the roller Nmax is:

[0034] Nmax=Roundup(Wr / Wb)

[0035] -Roundup is the round-up function;

[0036] Set Nmax-1 thresholds Wi:

[0037] Wi=Wb*i+di

[0038] -Wi is the i-th detection threshold;

[0039] -di is the configurable i-th threshold correction value;

[0040] Compare the actual width with the detection threshold:

[0041] If (Wd>Wi&Wd≤Wi+1), N=i;

[0042] Elseif(Wd>WNmax-1), N=Nmax;

[0043] Test the above detection effects, adjust network parameters, and complete the iteration.

[0044] Compared with the prior art, the system for counting steel billets using machine vision recognition technology created by the present invention has the following advantages:

[0045] The air-cooled protective cover created by the present invention maintains the stable operation of the industrial camera and performs steel billet statistics through image machine vision technology, thereby solving the problem of inaccurate counting caused by worker negligence or fatigue in the existing manual counting process. The equipment shell can operate stably for a long time without being restricted by time; it has a high recognition rate, fast speed, and timely recording, which is more fair and objective than manual counting and is universal for steel materials such as profiles and pipes. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings constituting part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0047] Figure 1 A schematic diagram of a system and method for counting steel billets using machine vision technology according to an embodiment of the present invention;

[0048] Figure 2 This is a schematic diagram of the lower structure of the industrial camera and the air-cooled protective cover according to the embodiment of the present invention;

[0049] Figure 3 This is a schematic diagram of the upper structure of the industrial camera and the air-cooled protective cover according to the embodiment of the present invention;

[0050] Figure 4 A schematic diagram of the structure of the air-cooled protective cover according to an embodiment of the present invention;

[0051] Figure 5 This is a schematic diagram of the matching structure of the industrial camera and the mounting bracket described in the embodiment of the present invention.

[0052] Description of reference numerals:

[0053] 1-through-beam laser sensor; 2-industrial camera; 3-industrial computer; 4-electrical box; 5-air-cooling protective cover; 51-air duct; 52-cover; 521-annular limiting plate; 522-through hole; 53-circular pipe; 6-steel billet; 7-mounting frame; 71-mounting slot; 711-circular hole; 712-strip hole; 72-circular plate; 8-temperature sensor; 9-industrial light source. DETAILED DESCRIPTION

[0054] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0055] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0056] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the invention can be understood according to specific circumstances.

[0057] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0058] This embodiment provides a system for counting steel billets using machine vision technology, including a through-beam laser sensor 1 arranged at the entrance of the steel billet 6 for detecting whether the steel billet has arrived, an industrial camera 2 arranged at a position capable of taking a picture of the arrived steel billet 6 as a whole, an industrial computer 3, and an electrical box 4, wherein the through-beam laser sensor 1 and the industrial camera 2 are both connected to the electrical box 4, and the electrical box 4 is connected to the industrial computer 3 for controlling the operation of the entire system and counting steel billets using machine vision technology;

[0059] The industrial camera captures images, and the industrial computer performs counting through images. The method may be the prior art or the counting method provided in the present application.

[0060] An air-cooling protective cover 5 is installed on the outside of the industrial camera 2. The air-cooling protective cover 5 includes an air supply duct 51 and a cover shell 52 arranged around the industrial camera. The upper end of the air supply duct 51 extends out of the side wall through hole 522 of the cover shell 52 through a duct adapter and is connected to an air source; the middle part is arranged on the inner side of the cover shell and spirally surrounds the outside of the industrial camera, and the lower end is connected to a circular pipe 53 arranged with the outer end surface of the industrial camera shooting lens as the center of the circle. The air supply duct 51 and the circular pipe 53 are both provided with multiple air outlets on the inner side near the industrial camera 2.

[0061] like Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 As shown, the industrial camera 2 is arranged above the steel billet 6, the air delivery duct 51 and the annular duct 53 are both hard circular tubes, and the air source is selected to have a pressure of more than 0.8 Mpa.

[0062] like Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5As shown, it includes a mounting frame 7, and the industrial camera 2 is arranged in a mounting groove 71 formed by punching downward in the middle of the mounting frame 7. A circular hole 711 equal to the outer diameter of the industrial camera head is arranged in the middle of the bottom plate of the mounting groove. The depth of the mounting groove 71 is the same as the length of the industrial camera. A temperature sensor 8 for detecting the temperature of the industrial camera is also arranged on the inner wall of the mounting groove 71. The temperature sensor 8 is connected to the industrial computer through an electrical box.

[0063] The industrial computer can use the temperature sensor 8 to understand whether the temperature around the industrial camera is normal, thereby ensuring that the industrial camera outputs images continuously and stably.

[0064] like Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 As shown, the air-cooling protective cover 5 is sleeved on the outside of the mounting groove 71, and the side wall of the mounting groove 71 is provided with a strip hole 712 for cooling the industrial camera. The mounting frame 7 has a circular plate 72 extending outward from the upper end opening of the mounting groove, and the lower surface of the circular plate 72 is fixedly connected to the upper surface of the cover shell 52. The lower end of the cover shell 52 extends inward to form an annular limiting plate 521 for limiting the air supply duct 51 and the circular duct 53 from sliding out of the cover shell.

[0065] like Figure 1 As shown, the incident laser sensor 1 is a special industrial laser incident laser sensor that can withstand high temperatures above 150° C., and there are no other obstacles between the incident laser sensors 1 except the steel billets to be counted.

[0066] When installing the through-beam laser sensor 1, the laser emitting end is installed first, and then the laser receiving end is installed, so that the laser is aligned with the receiving end.

[0067] like Figure 1 As shown, it includes an industrial light source 9, which is a machine vision light source and is arranged around the industrial camera 2 to assist the industrial camera in collecting images of the number of high-quality steel billets.

[0068] Industrial machine vision light source illumination has high brightness and stability, ensuring the high clarity of the collected images.

[0069] like Figure 1 As shown, the industrial computer 3 is also provided with a screen for realizing human-computer interaction and displaying the number of steel billets in real time.

[0070] like Figure 1 As shown, the electric wires and network cables connecting the industrial computer 3 and the electrical box 4, and between the electrical box 4 and various components, need to include hard tubes on the outside of the lines.

[0071] like Figure 1As shown, this embodiment also provides a method for counting steel billets using machine vision technology, including:

[0072] Step 1: The laser beam sensor determines whether the billet has arrived;

[0073] Step 2: After the industrial computer receives the steel billet arrival signal from the sensor, it starts the industrial camera to take pictures;

[0074] Step 3: The industrial computer performs billet area detection through the network model of the billet detection network;

[0075] Step 4: The industrial computer determines the number of steel billets by using the threshold value judgment method based on the detection results.

[0076] like Figure 1 As shown, the network model and threshold judgment of the steel billet detection network are obtained by multiple iterations of training and detection of the YOLO V4 target detection network;

[0077] By annotating the images taken by the industrial camera, that is, telling the deep neural network system which are the billets and which are the background, use the mouse to frame the billet area. If two or more billets are very close, frame the ones that are close.

[0078] The yolo v4 target detection network is used for training. After the training, a network model is obtained. This network model is used to detect steel billets on images obtained in the actual production process to obtain all detection areas. The detection areas are several rectangular boxes, and the rectangular box format is two-point coordinates:

[0079] Obj[]=Yolo_Result[][Xn1,Yn1,Xn2,Yn2]

[0080] -Xn1,Yn1 coordinates of the upper left corner of the nth rectangle;

[0081] -Xn2,Yn2 coordinates of the lower right corner of the nth rectangle;

[0082] Ignore the height and only calculate the width Wn of the rectangle:

[0083] Wn=|X2-X1|*k

[0084] -k is the width / pixel conversion factor;

[0085] The total row width of billets is:

[0086] Wd=∑Wn;

[0087] Assuming the roller width is Wr and the billet width is Wb, the maximum number of billets on the roller Nmax is:

[0088] Nmax=Roundup(Wr / Wb)

[0089] -Roundup is the round-up function;

[0090] Set Nmax-1 thresholds Wi:

[0091] Wi=Wb*i+di

[0092] -Wi is the i-th detection threshold;

[0093] -di is the configurable i-th threshold correction value;

[0094] Compare the actual width with the detection threshold:

[0095] If (Wd>Wi&Wd≤Wi+1), N=i;

[0096] Elseif(Wd>WNmax-1), N=Nmax;

[0097] Test the above detection effects, adjust network parameters, and complete the iteration.

[0098] Working process:

[0099] 1. Use laser beam sensors to detect whether the billet has arrived;

[0100] 2. After the laser beam sensor detects the arrival of the steel billet, it sends a signal to the industrial computer, which then controls the industrial camera to take photos;

[0101] 3. After the industrial camera collects the image of the steel billet, it performs image recognition to determine the number of steel billets that arrive at the same time;

[0102] 4. Count the number of steel billets this time into the accumulator, calculate the total number within a certain period of time, and display it in real time on the human-computer interaction screen.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A system for counting steel billets using machine vision technology, characterized in that: The invention comprises a through-beam laser sensor (1) arranged at the entrance of a steel billet (6) for detecting whether the steel billet has arrived, an industrial camera (2) arranged at a position capable of taking a picture of the arrived steel billet (6) as a whole, an industrial computer (3), and an electrical box (4), wherein the through-beam laser sensor (1) and the industrial camera (2) are both connected to the electrical box (4), and the electrical box (4) is connected to the industrial computer (3) for controlling the operation of the entire system and counting the steel billets through machine vision technology; An air-cooling protective cover (5) is installed on the outside of the industrial camera (2), and the air-cooling protective cover (5) includes an air supply duct (51) and a cover shell (52) arranged around the industrial camera. The upper end of the air supply duct (51) extends out of a through hole (522) on the side wall of the cover shell (52) through a duct adapter and is connected to an air source; the middle part is arranged on the inside of the cover shell and spirally surrounds the outside of the industrial camera, and the lower end is connected to a circular pipe (53) arranged with the outer end surface of the industrial camera shooting lens as the center of the circle. The air supply duct (51) and the circular pipe (53) are both provided with a plurality of air outlet holes on the inner side close to the industrial camera (2).

2. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: The industrial camera (2) is arranged above the steel billet (6), the air supply pipeline (51) and the annular pipeline (53) are both hard circular tubes, and the air source is selected to have a pressure greater than 0.8 Mpa.

3. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: The industrial camera (2) comprises a mounting frame (7), wherein the industrial camera (2) is arranged in a mounting groove (71) formed by punching downward in the middle of the mounting frame (7), a circular hole (711) having the same size as the outer diameter of the industrial camera head is arranged in the middle of the bottom plate of the mounting groove, the depth of the mounting groove (71) is the same as the length of the industrial camera, and a temperature sensor (8) for detecting the temperature of the industrial camera is also arranged on the inner wall of the mounting groove (71), and the temperature sensor (8) is connected to the industrial computer through an electrical box.

4. The system for counting steel billets using machine vision technology according to claim 3, characterized in that: The air-cooling protective cover (5) is sleeved on the outside of the mounting groove (71), and the side wall of the mounting groove (71) is provided with a strip hole (712) for cooling the industrial camera. The mounting frame (7) has a circular plate (72) extending outward from the upper opening of the mounting groove, and the lower surface of the circular plate (72) is fixedly connected to the upper surface of the cover shell (52). The lower end of the cover shell (52) extends inward to form an annular limiting plate (521) for limiting the air supply duct (51) and the circular duct (53) from sliding out of the cover shell.

5. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: The incident laser sensor (1) is a special industrial laser incident laser sensor that can withstand high temperatures above 150° C., and there are no other obstacles between the incident laser sensors (1) except the steel billets to be counted.

6. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: It comprises an industrial light source (9), which is a machine vision light source and is arranged at a position around the industrial camera (2) to assist the industrial camera in collecting a quantity image of high-quality steel billets.

7. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: The industrial control computer (3) is also provided with a screen for realizing human-computer interaction and displaying the number of steel billets in real time.

8. The system for counting steel billets using machine vision technology according to claim 1, characterized in that: The electric wires and network cables connecting the industrial computer (3) and the electrical box (4), and between the electrical box (4) and various components, must include hard pipes on the outside of the lines.

9. A counting method based on the system for counting steel billets using machine vision technology according to claim 1, characterized in that: include Step 1: The laser beam sensor determines whether the billet has arrived; Step 2: After the industrial computer receives the steel billet arrival signal from the sensor, it starts the industrial camera to take pictures; Step 3: The industrial computer performs billet area detection through the network model of the billet detection network; Step 4: The industrial computer determines the number of steel billets by using the threshold value judgment method based on the detection results.

10. The method for counting steel billets using machine vision technology according to claim 9, characterized in that: The network model and threshold judgment of the steel billet detection network are obtained by multiple iterations of training and detection of the YOLO V4 target detection network; By annotating the images taken by the industrial camera, that is, telling the deep neural network system which are the billets and which are the background, use the mouse to frame the billet area. If two or more billets are very close, frame the ones that are close. The YOLO v4 target detection network is used for training. After the training, a network model is obtained. This network model is used to detect steel billets on images obtained during the actual production process, and all detection areas are obtained. The detection areas are several rectangular boxes. The rectangular frame format is two-point coordinates: Obj[]=Yolo_Result[][Xn1,Yn1,Xn2,Yn2] -Xn1,Yn1 coordinates of the upper left corner of the nth rectangle; -Xn2,Yn2 coordinates of the lower right corner of the nth rectangle; Ignore the height and only calculate the width Wn of the rectangle: Wn=|X2-X1|*k -k is the width / pixel conversion factor; The total row width of billets is: Wd=∑Wn; Assuming the roller width is Wr and the billet width is Wb, the maximum number of billets on the roller Nmax is: Nmax=Roundup(Wr / Wb) -Roundup is the round-up function; Set Nmax-1 thresholds Wi: Wi=Wb*i+di -Wi is the i-th detection threshold; -di is the configurable i-th threshold correction value; Compare the actual width with the detection threshold respectively: If (Wd>Wi&Wd≤Wi+1), N=i; Elseif(Wd>WNmax-1), N=Nmax; Test the above detection effects, adjust network parameters, and complete the iteration.