A method for detecting optical fiber
By acquiring images with fixed devices and multi-color light sources in the optical fiber detection method for RGB processing, the existing optical fiber detection methods have solved the problem of large dependence on light sources and poor detection accuracy, and the accurate identification and distinction of optical fiber filaments are achieved.
Patent Information
- Application Number
- CN202411614086.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2044-11-13
AI Technical Summary
The existing fiber detection methods are highly dependent on light sources and are susceptible to factors such as epoxy resin covering, unsmooth end surface of the fiber fiber, and interference from ambient light, resulting in the insignificant distinction between qualified fiber fiber and unqualified fiber fiber, and poor detection accuracy.
By fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, the first light source and the photographing device obtain the image when light in different color ranges irradiates the first end of the optical fiber bundle, perform RGB identification and extraction processing, and generate an RGB distribution map, and determine the number of qualified optical fibers based on the light transmission characteristics comparison distribution map of the optical fiber fiber and the epoxy resin.
It reduces the dependence of light sources, and can accurately identify qualified fiber filaments under epoxy resin covering, unsmooth end surface of fiber filaments, and ambient light interference, improving the accuracy and reliability of detection.
Smart Images

Figure CN119124562B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber technology, and in particular to an optical fiber detection method. Background Art
[0002] Fiber optic is short for optical fiber. It is a fiber made of glass or plastic. It can be used as a light transmission tool to connect two different places. It can effectively isolate the heat generated by the light source and only transmit light and shadow to the destination. It is widely used in medical, testing and industrial fields. Especially in the application of endoscopes, it can be used to transmit images and provide lighting. Whether it is used for image transmission or lighting, it is the core optical device of the endoscope and an important factor affecting the performance of endoscope products.
[0003] The light-guiding fiber bundles used for lighting and the image-transmitting fiber bundles used for image transmission (hereinafter referred to as fiber bundles for both functions) are bundled together by hundreds or thousands of very thin optical fibers. The diameter of each fiber can currently be less than 10um. The fiber filaments are filled with epoxy resin. At both ends of some fiber bundles, a metal ring is added to the outer circle to protect the fiber bundle. The quality of the fiber filaments in the fiber bundle is directly related to the final light flux and lighting brightness, or the area of the image transmission black and gray points and the imaging quality.
[0004] The optical fiber detection method in the prior art is highly dependent on the light source, and the detection is easily affected by the epoxy resin often covering the end face of the optical fiber, the optical fiber end face is not polished smoothly and flat, the interference of ambient light, the color or reflection of the optical fiber and epoxy resin themselves, resulting in unclear distinction between qualified optical fiber and unqualified optical fiber, epoxy resin, etc., and the need to repeatedly adjust the light source brightness or inability to accurately identify.
[0005] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present invention is to provide an optical fiber detection method, aiming to solve the problems that the optical fiber detection method in the prior art is highly dependent on the light source, the detection is easily affected by the epoxy resin often covering the end face of the optical fiber, the end face of the optical fiber is not polished smoothly and flat, the ambient light interference, the color or reflection of the optical fiber and the epoxy resin themselves, resulting in unclear distinction between qualified optical fiber and unqualified optical fiber, epoxy resin, etc., and the need to repeatedly adjust the light source brightness or cannot be accurately identified.
[0007] To achieve the above object, the present invention provides a method for detecting an optical fiber, the method comprising:
[0008] Fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, wherein the first light source is connected to the first end of the optical fiber bundle to be detected, the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of the shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device;
[0009] Acquire, by means of a photographing device, a first image and a second image respectively when the first light source uses light of different color ranges to illuminate the first end of the optical fiber bundle to be inspected;
[0010] Performing RGB recognition and extraction processing on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image;
[0011] According to the characteristics of the first light source that the light can pass through qualified optical fibers and not pass through unqualified optical fibers and epoxy resin between optical fibers of the optical fiber bundle to be tested, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers.
[0012] Preferably, in the optical fiber detection method, the first light source uses light in a first color range and a second color range respectively;
[0013] Accordingly, the step of determining the number of qualified optical fiber filaments by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the light of the first light source that passes through qualified optical fiber filaments and does not pass through unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, comprises:
[0014] The first RGB distribution map is screened, and a pixel whose colors are within the first color range with four adjacent pixels is determined as a qualified pixel, and the adjacent qualified pixels are collectively formed into a pixel cluster, and an optical fiber filament whose number of pixels in the pixel cluster meets a preset number range and meets a preset shape is determined as a first optical fiber filament;
[0015] The second RGB distribution map is screened, and a pixel whose colors are within the second color range with four adjacent pixels is determined as a qualified pixel, and the adjacent qualified pixels are collectively formed into a pixel cluster, and an optical fiber filament whose number of pixels in the pixel cluster meets a preset number range and meets a preset shape is determined as a second optical fiber filament;
[0016] determining the optical fiber filament common to the first optical fiber filament and the second optical fiber filament as a qualified optical fiber filament;
[0017] The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0018] Preferably, in the optical fiber detection method, the step of determining the number of qualified optical fiber filaments by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the epoxy resin between the optical fibers of the optical fiber bundle to be detected and the qualified optical fiber filaments and the unqualified optical fiber filaments that are not transmitted by the light of the first light source comprises:
[0019] Subtracting the first RGB distribution map from the second RGB distribution map to obtain a third RGB distribution map;
[0020] According to the characteristic that the RGB color range of the qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the qualified optical fiber filaments are screened out;
[0021] The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0022] Preferably, in the optical fiber detection method, the step of screening out qualified optical fiber filaments according to the characteristic that the RGB color range of qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be detected comprises:
[0023] According to the third RGB distribution diagram, optical fiber filaments whose RGB range includes a peak value of the first color range are determined as qualified optical fiber filaments.
[0024] Preferably, in the optical fiber detection method, the step of determining the number of qualified optical fiber filaments by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the epoxy resin between the optical fibers of the optical fiber bundle to be detected and the qualified optical fiber filaments and the unqualified optical fiber filaments that are not transmitted by the light of the first light source comprises:
[0025] Adding the first RGB distribution map and the second RGB distribution map to obtain a fourth RGB distribution map;
[0026] According to the characteristic that the RGB color range of the qualified optical fiber filaments in the third RGB distribution graph is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the qualified optical fiber filaments are screened out;
[0027] The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0028] Preferably, in the optical fiber detection method, according to the feature that the RGB color range of the qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be detected, the qualified optical fiber filaments are screened out, comprising:
[0029] According to the third RGB distribution diagram, an optical fiber filament whose RGB range includes both the peak value of the first color range and the peak value of the second color range is determined as a qualified optical fiber filament.
[0030] Preferably, in the optical fiber detection method, the detection method further comprises:
[0031] Only the second light source connected to the second end of the optical fiber bundle to be detected is turned on, and the light of the second light source is irradiated on the second end;
[0032] Acquire a first captured image of the second end by the shooting device;
[0033] Performing RGB recognition and extraction processing on the first captured image to obtain a fourth RGB distribution map in the first captured image;
[0034] The fourth RGB distribution diagram is screened, and the total number of optical fiber filaments is screened according to the characteristics of the light generated by the second light source passing through the qualified optical fiber filaments and the unqualified optical fiber filaments, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be tested.
[0035] Preferably, in the optical fiber detection method, the fourth RGB distribution diagram is screened to screen out the total number of optical fiber filaments according to the characteristics of the light generated by the second light source passing through the qualified optical fiber filaments and the unqualified optical fiber filaments, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be detected, including:
[0036] The fourth RGB distribution diagram is screened, a pixel point whose colors are all within the third color range with four adjacent pixel points is determined as a first pixel point, the adjacent first pixel points are collectively formed into a pixel cluster, and the optical fiber filaments whose number of pixel points in the pixel cluster meets a preset number range and meets a preset shape are determined as qualified / unqualified optical fiber filaments; wherein the third color range is the color range of qualified optical fiber filaments and unqualified optical fiber filaments;
[0037] The qualified / unqualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0038] Preferably, in the optical fiber detection method, before the step of only turning on the second light source connected to the second end of the optical fiber bundle to be detected and irradiating the second end with light from the second light source, the detection method further comprises:
[0039] Liquid is dropped on the second end of the optical fiber bundle to be detected, and the liquid covers the end surface of the second end.
[0040] Preferably, in the optical fiber detection method, after the step of screening the fourth RGB distribution diagram to screen out the total number of optical fiber filaments according to the characteristics of the light generated by the second light source passing through qualified optical fiber filaments and unqualified optical fiber filaments, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be detected, after the step of comparing the first RGB distribution diagram with the second RGB distribution diagram to determine the number of qualified optical fiber filaments according to the characteristics of the light generated by the first light source passing through qualified optical fiber filaments and not passing through the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be detected, the detection method further comprises:
[0041] The yield rate and defective rate of the optical fiber filaments are calculated according to the total number of optical fiber filaments and the number of qualified optical fiber filaments.
[0042] The present invention has at least the following beneficial effects:
[0043] The present invention fixes the optical fiber bundle to be detected on an optical fiber bundle fixing device, connects a first light source to the first end of the optical fiber bundle to be detected, and the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of a shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device; obtains a first image and a second image respectively when the first light source uses light of different color ranges to irradiate the first end of the optical fiber bundle to be detected by the shooting device; uses RGB recognition and extraction processing to the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image; compares the first RGB distribution map and the second RGB distribution map according to the characteristics of the light of the first light source passing through qualified optical fiber filaments and not passing through unqualified optical fiber filaments and epoxy resin between optical fibers of the optical fiber bundle to be detected, and determines the number of qualified optical fiber filaments. In this way, qualified optical fiber filaments are determined by comparing the first RGB distribution map and the second RGB distribution map of different color ranges. In this way, the dependence on the light source is small, and even if the epoxy resin is often covered on the end face of the optical fiber filament, the end face of the optical fiber filament is not polished smoothly and flat, and there is interference from ambient light, the color or reflection of the optical fiber filament and the epoxy resin itself, the qualified optical fiber filament can be compared and identified;
[0044] Furthermore, when natural light is very strong, especially when the natural light exceeds the color of the light emitted by its own light source (such as the first light source) by more than 30%-50%, the first RGB distribution diagram is subtracted from the second RGB distribution diagram, which is equivalent to directly subtracting the influence of the strong ambient light. At this time, the RGB of the qualified optical fiber will have a positive peak of RGB3-1 or a negative peak of RGB4-1, so the present invention is less dependent on the brightness of the light source. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a first embodiment of the optical fiber detection method provided by the present invention;
[0046] Figure 2 for Figure 1 A schematic diagram of an embodiment of a first image and a second image;
[0047] Figure 3 For the present invention Figure 1 A schematic diagram of an embodiment of the present invention;
[0048] Figure 4 For the present invention Figure 1 A schematic diagram of another embodiment of the present invention;
[0049] Figure 5 For the present invention Figure 1 A schematic diagram of yet another embodiment;
[0050] Figure 6 A schematic diagram of a second embodiment of the optical fiber detection method provided by the present invention;
[0051] Figure 7 A schematic diagram of an optical fiber detection device provided by the present invention.
[0052] Reference numerals of the present invention:
[0053] 1-optical fiber bundle fixing device; 2-first light source; 3-second light source; 4-shooting device; 120-optical fiber bundle to be detected; 121-first end; 122-second end.
[0054] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0055] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0056] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0058] In the embodiments of the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0059] In the present invention, unless otherwise specified, the directional words used, such as "up, down, top, bottom", usually refer to the directions shown in the drawings, or to the components themselves in the vertical, perpendicular or gravity directions; similarly, for ease of understanding and description, "inside and outside" refer to the inside and outside relative to the outline of each component itself, but the above-mentioned directional words are not used to limit the present invention.
[0060] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it can be understood by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can also be implemented. The division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0061] Since the individual optical fibers in a single optical fiber bundle are very thin, soft, easy to break, and there are a large number of them, the existing technology generally includes the following two methods to detect the optical fiber bundle:
[0062] One way is to test and evaluate the final fiber bundle, but this method cannot detect the optical fiber filaments. The specific detection process is as follows: connect one end of the fiber bundle to a light source, and observe the brightness of the other end of the fiber bundle with the naked eye or an optical instrument (such as a illuminance meter) to determine whether the fiber bundle is qualified. Obviously, this method can only perform a rough inspection of the fiber bundle, and cannot accurately detect the quality of all the optical fibers in the light-guiding fiber bundle. In addition, when the optical instrument (illuminance meter) is used to detect the fiber bundle, there are strict requirements on the test light source and the coupling optical path between the light source and the fiber bundle, and it is difficult to accurately reflect the light-guiding characteristics of all the optical fibers.
[0063] Another method is to pass light through the optical fiber bundle, and obtain the image of the optical fiber bundle to be tested after microscope magnification through CCD as the original color image; the original color image obtained by CCD is transmitted to the image processing system; the original color image is converted into a grayscale image; the grayscale image in the previous step is subjected to background subtraction and denoising to obtain a processed grayscale image; the grayscale image in the previous step is subjected to threshold segmentation to obtain a binary image; the binary image is traversed to find the connected area with a brightness value of 1 and a four-connected relationship between adjacent pixels, and the optical fiber filaments corresponding to the connected area are recorded as effective optical fiber filaments to obtain the number of effective optical fiber filaments in the optical fiber bundle; it is determined whether the number of effective optical fiber filaments is greater than the threshold value; if it is greater, the optical fiber bundle is determined to be qualified; otherwise, the optical fiber bundle is determined to be unqualified. This method can obtain the number of effective optical fiber filaments in the optical fiber bundle, but it cannot quantitatively determine the quality of the optical fiber bundle. However, this method has the following problems:
[0064] In actual production and testing, the epoxy resin filled around the optical fiber often covers the end face of the optical fiber, or the end face of the optical fiber is not polished smooth and flat, resulting in a small amount of light from the light source, making it difficult to distinguish between qualified optical fiber and unqualified optical fiber, epoxy resin, etc., and the image brightness difference is less than the set threshold difference;
[0065] Or when the light output of the light source is large, the brightness of the optical fiber is very high, illuminating the epoxy resin in the gap, and it is impossible to accurately identify a single optical fiber; or the particularly bright qualified optical fiber often illuminates the unqualified optical fiber and epoxy resin next to it, and it is also impossible to accurately identify a single optical fiber, or distinguish qualified optical fiber from unqualified optical fiber, epoxy resin, etc., which interferes with the accuracy of detection;
[0066] Under a single light source, sometimes due to interference from ambient light, or the color or reflection of the optical fiber and epoxy resin themselves, the brightness difference between qualified optical fiber and unqualified optical fiber and epoxy resin is very small, and the boundaries are difficult to distinguish, which interferes with detection accuracy and cannot be accurately identified.
[0067] Figure 1 A schematic diagram of a first embodiment of the optical fiber detection method provided by the present invention is shown. Figure 7 The schematic diagram of the detection device used in the optical fiber detection method provided by the present invention is shown. Figure 1 and Figure 7 As shown, the number of qualified optical fiber filaments can be determined by the optical fiber detection method.
[0068] In step S110, the optical fiber bundle 120 to be detected is fixed on the optical fiber bundle fixing device 1, wherein the first light source 2 is connected to the first end 121 of the optical fiber bundle 120 to be detected, the second end 122 of the optical fiber bundle 120 to be detected is arranged adjacent to and perpendicular to the lens of the shooting device 4, and the first end 121 of the optical fiber bundle to be detected is arranged away from the lens of the shooting device 4.
[0069] Among them, the first light source 2 is used to provide a light source, and the first light source 2 can emit one or more different colors of light. The first light source 2 is set away from the lens of the shooting device 4. In other embodiments, a second light source 3 can also be set, and the second light source 3 is also used to provide a light source. The second light source 3 is connected to the second end 122 and is located on a side of the lens of the shooting device 4. The color of the light emitted by the second light source 3 can also be one or more colors. It is specifically set according to needs.
[0070] The first light source 2 is connected to the first end 121 of the optical fiber bundle 120 to be detected, but the first light source 2 and the end of the first end 121 may be arranged vertically or non-vertically. In this embodiment, the first light source 2 and the end of the first end 121 are usually not arranged vertically, and may be slightly deviated from the vertical position, so as to avoid the problem of unclear display caused by the light of the first light source 2 being too bright.
[0071] Similarly, the second light source 3 is connected to the second end 122 of the optical fiber bundle 120 to be detected, but the second light source 3 and the end of the second end 122 may be arranged vertically or non-vertically. In this embodiment, the second light source 3 and the end of the second end 122 are usually arranged non-vertically, and may be slightly deviated from the vertical position, so as to avoid the problem of unclear display caused by the light of the second light source 3 being too bright.
[0072] The shooting device 4 can be a high-resolution lens, and the magnification can be adjusted as needed. The resolution of the specific lens can be determined according to actual needs. The end face of the optical fiber bundle 120 to be detected is observed and photographed by the shooting device 4. In some feasible embodiments, two shooting devices 4 can also be provided, which can be respectively provided near the first fixed position and the second fixed position. When two shooting devices 4 are provided, taking the shooting device 4 including a first camera and a second camera as an example, the first camera is provided near the first end 121, the second camera is provided near the second end 122, the first camera is provided perpendicularly to the end face of the first end 121, and the second camera is provided perpendicularly to the end face of the second end 122.
[0073] In step S120, the first image and the second image are respectively obtained by the camera 4 when the first light source 2 uses light of different color ranges to illuminate the first end 121 of the optical fiber bundle 120 to be detected. The first light source 2 can use two or more different colors of light to illuminate the first end 121. When more than two different colors of light are used to illuminate the first end 121, the number of images obtained is also more than two, and the qualified optical fiber can be determined by comparing the color changes of more than two images. For the sake of convenience, it is assumed that two color ranges of light are used to illuminate the first end 121 of the optical fiber bundle 120 to be detected.
[0074] In step S130, RGB recognition and extraction are performed on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image. The first RGB distribution map and the second RGB distribution map obtained by processing the first image and the second image. Figure 2 As shown, Figure 2 A schematic diagram of the first image and the second image is shown in FIG.
[0075] More specifically, in the first RGB distribution diagram, the RGB range of qualified optical fiber filaments is recorded as RGB3-1, the RGB range of unqualified optical fiber filaments is recorded as RGB3-2, and the RGB range of epoxy resin between optical fiber filaments is recorded as RGB3-3. In the second RGB distribution diagram, the RGB range of qualified optical fiber filaments is recorded as RGB4-1, the RGB range of unqualified optical fiber filaments is recorded as RGB4-2, and the RGB range of epoxy resin between optical fiber filaments is recorded as RGB4-3. Then RGB3-1 and RGB4-1 are two completely different color ranges, while the color ranges of RGB3-2 and RGB4-2, and RGB3-3 and RGB4-3 will not be much different.
[0076] In step S140, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers according to the characteristics of the light of the first light source 2 that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle 120 to be tested. The number of qualified optical fibers is determined by comparing the color changes of the first RGB distribution diagram and the second RGB distribution diagram.
[0077] Figure 3 FIG. 1 is a schematic diagram showing an embodiment of step S140 in the optical fiber detection method of the present invention.
[0078] The first light source 2 uses light in a first color range and a second color range as an example. Figure 2 As shown, step S1411 screens the first RGB distribution map, determines the pixel points whose colors are within the first color range with the four adjacent pixel points as qualified pixel points, forms a pixel group with the adjacent qualified pixel points, and determines the optical fiber filament whose number of pixel points in the pixel group meets the preset number range and meets the preset shape as the first optical fiber filament. The preset shape can be a circle, or an approximate circle, which is not specifically limited here. The preset value range is usually between 70 and 90.
[0079] In step S1412, the second RGB distribution diagram is screened, and the pixel points whose colors are all within the second color range with the four adjacent pixel points are determined as qualified pixel points, and the adjacent qualified pixel points are collectively formed into a pixel group, and the optical fiber filaments whose number of pixel points in the pixel group meets the preset number range and meets the preset shape are determined as second optical fiber filaments. The preset value range is usually between 70 and 90.
[0080] In step S1413, the optical fiber filaments common to the first optical fiber filament and the second optical fiber filament are determined as qualified optical fiber filaments. The qualified optical fiber filaments are screened by further comparing the determined first optical fiber filaments with the second optical fiber filaments, so that the areas with similar colors that interfere with the detection can be excluded.
[0081] Figure 4 FIG. 2 is a schematic diagram showing another embodiment of step S140 in the optical fiber detection method of the present invention. Figure 4 As shown, in step S1421, the first RGB distribution diagram and the second RGB distribution diagram are subtracted to obtain a third RGB distribution diagram. In the first RGB distribution diagram, the RGB range of qualified optical fiber filaments is recorded as RGB3-1, the RGB range of unqualified optical fiber filaments is recorded as RGB3-2, and the RGB range of epoxy resin between optical fiber filaments is recorded as RGB3-3. In the second RGB distribution diagram, the RGB range of qualified optical fiber filaments is recorded as RGB4-1, the RGB range of unqualified optical fiber filaments is recorded as RGB4-2, and the RGB range of epoxy resin between optical fiber filaments is recorded as RGB4-3. Then RGB3-1 and RGB4-1 are two completely different color ranges, and the color ranges of RGB3-2 and RGB4-2, and RGB3-3 and RGB4-3 will not be much different. When the natural light is very strong, especially when the natural light exceeds the color of the light emitted by the own light source (such as the first light source 2) by more than 30%-50%, the first RGB distribution diagram is subtracted from the second RGB distribution diagram, which is equivalent to directly subtracting the influence of the strong ambient light. At this time, the RGB of the qualified optical fiber will have a positive peak of RGB3-1 or a negative peak of RGB4-1, so the present invention is less dependent on the brightness of the light source.
[0082] Furthermore, after subtracting the first RGB distribution diagram from the second RGB distribution diagram, the RGB color range of qualified optical fiber filaments includes a group of positive peaks of RGB3-1 or a group of negative peaks of RGB4-1, while the RGB color ranges of unqualified optical fiber filaments and epoxy resins have basically smaller values or negative values. The difference between the values of the RGB range of qualified optical fiber filaments and the RGB range of unqualified optical fiber filaments and epoxy resins will be significantly increased, which is more convenient for identification and screening, and the number of qualified optical fiber filaments can be obtained.
[0083] Furthermore, in conventional technology, the first end 121 is illuminated by a single color of light from the first light source 2, and an image of the shooting device 4 needs to be adjusted a lot when the light source is particularly bright or dark, and the adjustment needs to be very fine. This is mainly because when the light output of the light source is large, the brightness of the optical fiber is very high, illuminating the epoxy resin in the gap, and it is impossible to accurately identify a single optical fiber; or a particularly bright qualified optical fiber often illuminates the unqualified optical fiber and epoxy resin next to it, and it is also impossible to accurately identify a single optical fiber, or distinguish between qualified optical fiber and unqualified optical fiber, epoxy resin, etc., which interferes with the detection accuracy; under a single light source, sometimes due to the interference of ambient light, or the color or reflection of the optical fiber and epoxy resin themselves, the brightness difference between qualified optical fiber and unqualified optical fiber, epoxy resin is very small, and the boundary is difficult to distinguish, which interferes with the detection accuracy and cannot be accurately identified. The method adopted by the present invention is less dependent on the brightness of the light source.
[0084] In step S1422, qualified optical fiber filaments are screened out according to the characteristic that the RGB color range of qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle 120 to be tested. Specifically, according to the third RGB distribution diagram, the optical fiber filaments whose RGB range includes the peak value of the first color range are determined as qualified optical fiber filaments. Of course, in other embodiments, according to the third RGB distribution diagram, the optical fiber filaments whose RGB range includes the negative peak value of the second color range are determined as qualified optical fiber filaments.
[0085] In step S1423, the qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0086] Figure 5 FIG. 2 is a schematic diagram showing another embodiment of step S140 in the optical fiber detection method of the present invention. Figure 5 As shown, in step S1431, the first RGB distribution graph and the second RGB distribution graph are added to obtain a fourth RGB distribution graph. The fourth RGB distribution graph obtained by adding the first RGB distribution graph and the second RGB distribution graph contains two color peaks. For example, the range of qualified optical fiber filaments in the first RGB distribution graph is the red range, and the range of qualified optical fiber filaments in the second RGB distribution graph is the green range, then the range of qualified optical fiber filaments on the fourth RGB distribution graph should include one peak each of red and green. When screening, it is sufficient to screen whether these two peak ranges exist at the same time.
[0087] In step S1432, qualified optical fiber filaments are screened out according to the feature that the RGB color range of qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of unqualified optical fiber filaments and the RGB color range of the epoxy resin between the optical fibers of the optical fiber bundle 120 to be inspected. Specifically, according to the third RGB distribution diagram, optical fiber filaments whose RGB range includes both the peak value of the first color range and the peak value of the second color range are determined as qualified optical fiber filaments.
[0088] In step S1433, the qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
[0089] Figure 6 A schematic diagram of a second embodiment of the optical fiber detection method of the present invention is shown. Figure 5 shown.
[0090] In step S210, only the second light source 3 connected to the second end 122 of the optical fiber bundle 120 to be tested is turned on, and the light of the second light source 3 is irradiated on the second end 122. That is, the end of the optical fiber bundle close to the lens of the shooting device 4 is irradiated by the second light source 3. The light emitted by the second light source 3 is irradiated on the optical fiber filaments, and the light emitted by the second light source 3 will pass through the optical fiber filaments. At this time, both qualified optical fiber filaments and unqualified optical fiber filaments will pass through the light emitted by the second light source 3. When the light emitted by the second light source 3 is irradiated on the epoxy resin between the optical fiber filaments, the light will not pass through the epoxy resin.
[0091] In step S220, the first captured image of the second end 122 is obtained by the camera 4. The camera 4 is disposed on one side of the second end 122. At this time, since the light emitted by the second light source 3 will pass through all optical fiber filaments (both qualified and unqualified) but will not pass through the epoxy resin between the optical fiber filaments, the epoxy resin will reflect brighter at this time. Therefore, in the first captured image captured by the camera 4, there will be obvious color difference between the optical fiber filaments and the epoxy resin.
[0092] In step S230, RGB recognition and extraction processing is performed on the first captured image to obtain a fourth RGB distribution map in the first captured image. The first captured image needs to be processed to obtain a fourth RGB distribution map. In the fourth RGB distribution map, the RGB ranges of qualified optical fiber filaments, unqualified optical fiber filaments, and epoxy resins between optical fiber filaments are all different, among which the RGB ranges of qualified optical fiber filaments and unqualified optical fiber filaments are greatly different from the RGB range of epoxy resins. Therefore, the fourth RGB distribution map can be screened by setting a suitable screening color area.
[0093] In step S240, the fourth RGB distribution diagram is screened, and the total number of optical fibers is screened out according to the characteristics of the light generated by the second light source 3 passing through the qualified optical fibers and the unqualified optical fibers, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle 120 to be detected. Since the RGB range of the qualified optical fibers and the unqualified optical fibers is greatly different from the RGB range of the epoxy resin, the color range of the qualified optical fibers and the unqualified optical fibers can be set to screen out the optical fibers, so that the interference of the epoxy resin can be eliminated. However, the qualified optical fibers and the unqualified optical fibers cannot be accurately distinguished due to the small color difference. For example, the qualified optical fibers are displayed as pure white, while the unqualified optical fibers are displayed as gray.
[0094] Specifically, the fourth RGB distribution diagram is screened, and a pixel point whose color is within the third color range with four adjacent pixel points is determined as a first pixel point, and the adjacent first pixel points are collectively formed into a pixel group, and the optical fiber filaments whose number of pixel points in the pixel group meets the preset number range and meets the preset shape are determined as qualified / unqualified optical fiber filaments; wherein the third color range is the color range of qualified optical fiber filaments and unqualified optical fiber filaments; the qualified / unqualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments. The preset shape can be a circle or an approximate circle, and is not specifically limited here.
[0095] In order to further reduce the interference of the epoxy resin on the end surface, a liquid can be dripped on the second end 122 of the optical fiber bundle 120 to be detected, and the liquid covers the end surface of the second end 122, so that the refraction of light can be reduced, making the optical fiber and the epoxy resin more clearly distinguishable. The liquid can be, but is not limited to, alcohol.
[0096] In addition, the yield and defective rate of optical fiber filaments can also be calculated based on the total number of optical fiber filaments and the number of qualified optical fiber filaments. The yield of optical fiber filaments = the number of qualified optical fiber filaments / the total number of optical fiber filaments. The defective rate of optical fiber filaments = the number of unqualified optical fiber filaments / the total number of optical fiber filaments. When the number of qualified optical fiber filaments is known, the number of unqualified optical fiber filaments = the total number of optical fiber filaments - the number of qualified optical fiber filaments. When the number of unqualified optical fiber filaments is known, the number of qualified optical fiber filaments = the total number of optical fiber filaments - the number of unqualified optical fiber filaments.
[0097] Obviously, the embodiments described above are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, ordinary technicians in this field can make other different forms of changes or modifications without creative work, which should fall within the scope of protection of the present invention.
Claims
1. A method for detecting an optical fiber, characterized in that: include: Fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, wherein the first light source is connected to the first end of the optical fiber bundle to be detected, the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of the shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device; Acquire, by means of a photographing device, a first image and a second image respectively when the first light source uses light of different color ranges to illuminate the first end of the optical fiber bundle to be inspected; Performing RGB recognition and extraction processing on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image; According to the characteristics of the light of the first light source that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers; in, The first light source uses light in a first color range and a second color range respectively; Accordingly, the step of determining the number of qualified optical fiber filaments by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the light of the first light source that passes through qualified optical fiber filaments and does not pass through unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, comprises: The first RGB distribution map is screened, and a pixel whose colors are within the first color range with four adjacent pixels is determined as a qualified pixel, and the adjacent qualified pixels are collectively formed into a pixel cluster, and an optical fiber filament whose number of pixels in the pixel cluster meets a preset number range and meets a preset shape is determined as a first optical fiber filament; The second RGB distribution map is screened, and a pixel whose colors are within the second color range with four adjacent pixels is determined as a qualified pixel, and the adjacent qualified pixels are collectively formed into a pixel cluster, and an optical fiber filament whose number of pixels in the pixel cluster meets a preset number range and meets a preset shape is determined as a second optical fiber filament; determining the optical fiber filament common to the first optical fiber filament and the second optical fiber filament as a qualified optical fiber filament; The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
2. A method for detecting an optical fiber, characterized in that: include: Fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, wherein the first light source is connected to the first end of the optical fiber bundle to be detected, the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of the shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device; Acquire, by means of a photographing device, a first image and a second image respectively when the first light source uses light of different color ranges to illuminate the first end of the optical fiber bundle to be inspected; Performing RGB recognition and extraction processing on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image; According to the characteristics of the light of the first light source that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers; The step of determining the number of qualified optical fibers by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the light of the first light source that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, comprises: Subtracting the first RGB distribution map from the second RGB distribution map to obtain a third RGB distribution map; According to the characteristic that the RGB color range of the qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the qualified optical fiber filaments are screened out; The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
3. The optical fiber detection method according to claim 2, characterized in that: The method of screening out qualified optical fibers according to the characteristic that the RGB color range of qualified optical fibers in the third RGB distribution diagram is different from the RGB color range of unqualified optical fibers and the RGB color range of the epoxy resin between the optical fibers of the optical fiber bundle to be tested, comprises: According to the third RGB distribution diagram, optical fiber filaments whose RGB range includes a peak value of the first color range are determined as qualified optical fiber filaments.
4. A method for detecting an optical fiber, characterized in that: include: Fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, wherein the first light source is connected to the first end of the optical fiber bundle to be detected, the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of the shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device; Acquire, by means of a photographing device, a first image and a second image respectively when the first light source uses light of different color ranges to illuminate the first end of the optical fiber bundle to be inspected; Performing RGB recognition and extraction processing on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image; According to the characteristics of the light of the first light source that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers; The step of determining the number of qualified optical fiber filaments by comparing the first RGB distribution diagram with the second RGB distribution diagram according to the characteristics of the light of the first light source that passes through qualified optical fiber filaments and does not pass through unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested comprises: Adding the first RGB distribution map and the second RGB distribution map to obtain a third RGB distribution map; According to the characteristic that the RGB color range of the qualified optical fiber filaments in the third RGB distribution graph is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the qualified optical fiber filaments are screened out; The qualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
5. The optical fiber detection method according to claim 4, characterized in that: According to the feature that the RGB color range of the qualified optical fiber filaments in the third RGB distribution diagram is different from the RGB color range of the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the qualified optical fiber filaments are screened out, including: According to the third RGB distribution diagram, an optical fiber filament whose RGB range includes both the peak value of the first color range and the peak value of the second color range is determined as a qualified optical fiber filament.
6. A method for detecting an optical fiber, characterized in that: include: Fixing the optical fiber bundle to be detected on the optical fiber bundle fixing device, wherein the first light source is connected to the first end of the optical fiber bundle to be detected, the second end of the optical fiber bundle to be detected is arranged adjacent to and perpendicular to the lens of the shooting device, and the first end of the optical fiber bundle to be detected is arranged away from the lens of the shooting device; Acquire, by means of a photographing device, a first image and a second image respectively when the first light source uses light of different color ranges to illuminate the first end of the optical fiber bundle to be inspected; Performing RGB recognition and extraction processing on the first image and the second image respectively to obtain a first RGB distribution map and a second RGB distribution map corresponding to the first image and the second image; According to the characteristics of the light of the first light source that passes through qualified optical fibers and does not pass through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be tested, the first RGB distribution diagram and the second RGB distribution diagram are compared to determine the number of qualified optical fibers; The detection method further comprises: Only the second light source connected to the second end of the optical fiber bundle to be detected is turned on, and the light of the second light source is irradiated on the second end; Acquire a first captured image of the second end by the shooting device; Performing RGB recognition and extraction processing on the first captured image to obtain a fourth RGB distribution map in the first captured image; The fourth RGB distribution diagram is screened, and the total number of optical fiber filaments is screened according to the characteristics of the light generated by the second light source passing through the qualified optical fiber filaments and the unqualified optical fiber filaments, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be tested.
7. The optical fiber detection method according to claim 6, characterized in that: The fourth RGB distribution diagram is screened to screen out the total number of optical fiber filaments according to the characteristics of the light generated by the second light source passing through the qualified optical fiber filaments and the unqualified optical fiber filaments, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be tested, including: The fourth RGB distribution diagram is screened, a pixel point whose colors are all within the third color range with four adjacent pixel points is determined as a first pixel point, the adjacent first pixel points are collectively formed into a pixel cluster, and the optical fiber filaments whose number of pixel points in the pixel cluster meets a preset number range and meets a preset shape are determined as qualified / unqualified optical fiber filaments; wherein the third color range is the color range of qualified optical fiber filaments and unqualified optical fiber filaments; The qualified / unqualified optical fiber filaments are counted to obtain the number of qualified optical fiber filaments.
8. The optical fiber detection method according to claim 6, characterized in that: Before the step of only turning on the second light source connected to the second end of the optical fiber bundle to be detected, wherein the light of the second light source irradiates the second end, the detection method further comprises: Liquid is dropped on the second end of the optical fiber bundle to be detected, and the liquid covers the end surface of the second end.
9. The optical fiber detection method according to claim 6, characterized in that: After the step of screening the fourth RGB distribution diagram to screen out the total number of optical fibers according to the characteristics of the light generated by the second light source passing through qualified optical fibers and unqualified optical fibers, and not passing through the epoxy resin between the optical fibers of the optical fiber bundle to be detected, after the step of comparing the first RGB distribution diagram with the second RGB distribution diagram to determine the number of qualified optical fibers according to the characteristics of the light generated by the first light source passing through qualified optical fibers, and not passing through unqualified optical fibers and the epoxy resin between the optical fibers of the optical fiber bundle to be detected, the detection method further includes: The yield rate and defective rate of the optical fiber filaments are calculated according to the total number of optical fiber filaments and the number of qualified optical fiber filaments.
Citation Information
Patent Citations
Optical fiber conductivity test method and system
CN116558777A
Device and method for scanning and measuring position of reference optical fiber of astronomical telescope
CN116989673A