Endoscope optical fiber detection device and method

Through the design of the endoscope fiber detection device, different light sources and RGB identification processing are used to solve the problem that the total number of fiber filaments cannot be identified in the prior art, and the accurate judgment of the fiber bundle quality is achieved, and the accuracy of detection is improved.

CN119290326APending Publication Date: 2025-01-10SCIVITA MEDICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411614007.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The prior art cannot accurately identify the total number of fiber filaments in the endoscope optical fiber bundle, and it is impossible to make quantitative judgments on the quality of the fiber bundle.

Method used

An endoscope fiber detection device is designed, including an optical fiber bundle fixing device, a first and second light sources, a shooting device and a processor. Through the irradiation of different light sources and RGB identification processing, the total number of optical fibers and qualified optical fibers are screened out. Quantity, calculate the yield and defect rate of fiber fiber.

Benefits of technology

Accurate detection of the yield and defect rate of the fiber bundle is achieved, and the total number of fiber fibers and qualified fiber fibers can be counted, which improves the accuracy of fiber bundle quality judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119290326A_ABST
    Figure CN119290326A_ABST
Patent Text Reader

Abstract

The invention discloses an endoscope optical fiber detection device and method.The endoscope optical fiber detection device is used for detecting a to-be-detected optical fiber bundle, and the to-be-detected optical fiber bundle comprises a first end and a second end which are located at the two ends respectively; the endoscope optical fiber detection device comprises an optical fiber bundle fixing device, a first light source, a second light source, a shooting device and a processor, and the optical fiber bundle fixing device comprises a first fixing structure and a second fixing structure which are arranged at an interval; the first fixing structure and the second fixing structure are respectively provided with a first fixing position and a second fixing position which are used for fixing a first end and a second end of a to-be-detected optical fiber bundle; the first light source is installed on the first fixing structure, and a light outlet of the first light source is used for being connected with the first end. The second light source is installed on the second fixing structure, and a light outlet of the second light source is used for being connected with the second end. And a lens of the shooting device is arranged adjacent to the second fixed position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical fiber technology, and in particular to an endoscope optical fiber detection device and 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] In the prior art, the endoscope optical fiber detection device or method can only identify the effective optical fiber filaments, but cannot identify the total number of optical fiber filaments, and cannot make a quantitative and accurate judgment on the quality of the optical fiber bundle.

[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 endoscopic optical fiber detection device and method, aiming to solve the problem that the endoscopic optical fiber detection device or method in the prior art can only identify the effective optical fiber filaments but cannot identify the total number of optical fiber filaments and cannot make quantitative and accurate judgments on the quality of the optical fiber bundle.

[0007] To achieve the above object, the present invention provides an endoscope optical fiber detection device for detecting an optical fiber bundle to be detected, wherein the optical fiber bundle to be detected includes a first end and a second end respectively located at two ends, and the endoscope optical fiber detection device includes:

[0008] An optical fiber bundle fixing device, comprising a first fixing structure and a second fixing structure arranged at intervals, wherein the first fixing structure and the second fixing structure respectively have a first fixing position and a second fixing position for fixing a first end and a second end of the optical fiber bundle to be detected;

[0009] A first light source is mounted on the first fixing structure, and a light outlet of the first light source is used to be connected to the first end;

[0010] A second light source is mounted on the second fixing structure, and a light outlet of the second light source is used to be connected to the second end;

[0011] a photographing device, wherein a lens of the photographing device is disposed adjacent to the second fixed position and perpendicular to the end surface of the second end; and

[0012] The processor is electrically connected to the photographing device.

[0013] Preferably, in the endoscope optical fiber detection device, the light colors of the first light source and the second light source are different or the same.

[0014] Preferably, in the endoscope optical fiber detection device, the first light source is arranged at a first preset angle with the first end; and / or,

[0015] The second light source is disposed at a second preset angle with the second end.

[0016] Preferably, in the endoscopic optical fiber detection device, the first preset angle is less than 90°; and the second preset angle is less than 90°.

[0017] In order to achieve the above object, the present invention further provides a method for detecting an optical fiber, wherein the detection method uses the above detection device to perform detection, and the detection method comprises:

[0018] Only the second light source is turned on, and the second light source illuminates the second end of the optical fiber bundle to be detected close to the shooting device;

[0019] Acquiring a first captured image of the second end of the optical fiber bundle to be inspected by a photographing device;

[0020] Performing RGB recognition and extraction processing on the first captured image to obtain a first RGB distribution map in the first captured image;

[0021] The first 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.

[0022] Preferably, in the optical fiber detection method, the detection method further comprises:

[0023] Only the first light source is turned on, and the first light source irradiates the first end of the optical fiber bundle to be detected away from the shooting device;

[0024] Acquiring a second captured image of the second end of the optical fiber bundle to be inspected by a photographing device;

[0025] The number of qualified optical fiber filaments is determined according to the second captured image.

[0026] Preferably, in the optical fiber detection method, the detection method further comprises:

[0027] Turn on a first light source and a second light source at the same time, the first light source and the second light source have different colors, and the first light source and the second light source are respectively irradiated on two ends of the optical fiber bundle to be detected;

[0028] Acquiring a third photographed image of the second end of the optical fiber bundle to be inspected by a photographing device;

[0029] According to the third captured image, the number of qualified optical fiber filaments is screened out according to the first characteristic and the second characteristic; wherein the first characteristic is the characteristic that the light generated by the first light source passes through the qualified optical fiber filaments, and does not pass through the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be detected; and the second characteristic is the characteristic that the light generated by the second light source passes through the qualified optical fiber filaments and the unqualified optical fiber filaments, and does not pass through the epoxy resin between the optical fibers of the optical fiber bundle to be detected.

[0030] Preferably, in the optical fiber detection method, screening out the number of qualified optical fiber filaments according to the third captured image, the first characteristic and the second characteristic includes:

[0031] Performing RGB recognition and extraction processing on the third captured image to obtain a second RGB distribution map in the third captured image;

[0032] The second RGB distribution map is screened, and the pixel points whose colors are the same as those of the four adjacent pixel points within the preset first color range are determined as qualified pixel points. The adjacent qualified pixel points are grouped together into a pixel cluster, and the optical fiber filaments whose number of pixel points in the pixel cluster is within the preset numerical range are determined as qualified optical fiber filaments.

[0033] Preferably, in the optical fiber detection method, the detection method further comprises:

[0034] 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.

[0035] Preferably, in the optical fiber detection method, before the step of acquiring a first captured image of the second end of the optical fiber bundle to be detected by a shooting device, the detection method further comprises:

[0036] 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.

[0037] The present invention has at least the following beneficial effects:

[0038] The present invention comprises a first fixing structure and a second fixing structure arranged at intervals through an optical fiber bundle fixing device, wherein the first fixing structure and the second fixing structure respectively have a first fixing position and a second fixing position for fixing the first end and the second end of the optical fiber bundle to be detected; a first light source is installed on the first fixing structure, and a light outlet of the first light source is used to be connected to the first end; a second light source is installed on the second fixing structure, and a light outlet of the second light source is used to be connected to the second end; the lens of the shooting device is arranged adjacent to the second fixing position and is arranged perpendicular to the end face of the second end, so that the yield and defective rate of the optical fiber bundle can be obtained.

[0039] Further, only the second light source is turned on, and the second light source illuminates the second end of the optical fiber bundle to be detected near the shooting device; the first shot image of the second end of the optical fiber bundle to be detected is obtained by the shooting device; the first shot image is processed by RGB recognition and extraction to obtain a first RGB distribution diagram in the first shot image; the first 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 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. That is, the end of the optical fiber bundle close to the lens of the shooting device is illuminated by the second light source, and the light emitted by the second light source is irradiated on the optical fiber filaments, and the light emitted by the second light source 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. When the light emitted by the second light source is irradiated on the epoxy resin between the optical fiber filaments, the light will not pass through the epoxy resin. In this way, the total number of optical fiber filaments can be counted. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of an endoscope optical fiber detection device provided by the present invention;

[0041] Figure 2 A schematic diagram of a first embodiment of the optical fiber detection method provided by the present invention;

[0042] Figure 3 is a schematic diagram of an embodiment of a first captured image captured by a camera when only the second light source is used for illumination according to the present invention;

[0043] Figure 4 This is a schematic diagram of using software to count the total number of optical fibers;

[0044] Figure 5 is a schematic diagram of an image taken after a liquid is dropped on the end of the optical fiber bundle to be detected;

[0045] Figure 6 A schematic diagram of a second embodiment of the optical fiber detection method provided by the present invention;

[0046] Figure 7 This is a schematic diagram of a third embodiment of the optical fiber detection method provided by the present invention.

[0047] Reference numerals of the present invention:

[0048] Label name Label name 110 Endoscope fiber optic detection device 5 processor 1 Fiber optic bundle fixture 6 monitor 12 The second fixed structure 7 Signal line 2 First light source 120 Fiber bundle to be tested 3 Second light source 121 First End 4 Filming equipment 122 Second end

[0049] 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

[0050] 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.

[0051] 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.

[0052] 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.

[0053] In the embodiments of the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0054] 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.

[0055] 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.

[0056] 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:

[0057] 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.

[0058] 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:

[0059] 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;

[0060] 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;

[0061] 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.

[0062] Figure 1 FIG. 1 is a schematic diagram of an endoscope optical fiber detection device provided by the present invention. Figure 1 As shown, the present invention provides an endoscope optical fiber detection device 110, which is used to detect an optical fiber bundle 120 to be detected, wherein the optical fiber bundle 120 to be detected includes a first end 121 and a second end 122 respectively located at both ends, and the endoscope optical fiber detection device 110 includes an optical fiber bundle fixing device 1, a first light source 2, a second light source 3, a shooting device 4 and a processor 5. The optical fiber bundle fixing device 1 includes a first fixing structure and a second fixing structure 12 arranged at intervals, wherein the first fixing structure and the second fixing structure 12 respectively have a first fixing position and a second fixing position for fixing the first end 121 and the second end 122 of the optical fiber bundle 120 to be detected. The first light source 2 is installed on the first fixing structure, and the light outlet of the first light source 2 is used to connect with the first end 121. The second light source 3 is installed on the second fixing structure 12, and the light outlet of the second light source 3 is used to connect with the second end 122. The lens of the shooting device 4 is arranged adjacent to the second fixing position and is arranged perpendicular to the end surface of the second end 122. The processor 5 is electrically connected to the shooting device 4.

[0063] It should be noted that the first fixing structure and the second fixing structure 12 may be a part of the first light source 2 or the second light source 3, or may be separately provided. Figure 1 As shown, the first fixing structure is the housing of the first light source 2, that is, the first end 121 is fixed on the housing of the first light source 2, and the second fixing structure 12 is a separately arranged fixing structure.

[0064] The first light source 2 is used to provide a light source, and the second light source 3 is used to provide a light source. The colors of the light emitted by the first light source 2 and the second light source 3 can be the same or different. The light emitted by the first light source 2 each time can be different or the same. The light emitted by the second light source 3 each time can be different or the same. The specific settings can be determined according to specific needs.

[0065] The first light source 2 is arranged at a first preset angle with the first end 121. That is, the first light source 2 and the end of the adjacent optical fiber bundle can be arranged vertically or non-vertically. In this embodiment, the first preset angle is less than 90°. That is, the first light source 2 and the end of the adjacent optical fiber bundle can be arranged non-vertically, so as to avoid the problem of unclear display when the light of the first light source 2 is too bright. In the specific setting, the end face of the first light source 2 and the adjacent optical fiber bundle can be slightly deviated from the vertical.

[0066] Similarly, the second light source 3 is arranged at a second preset angle with the second end 122. That is, the second light source 3 and the end of the adjacent optical fiber bundle can be arranged vertically or non-vertically. In this embodiment, the second preset angle is less than 90°. That is, the second light source 3 and the end of the adjacent optical fiber bundle can be arranged non-vertically, so as to avoid the problem of unclear display when the light of the second light source 3 is too bright. In the specific setting, the second light source 3 and the end face of the adjacent optical fiber bundle can be slightly deviated from the vertical.

[0067] 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 adjacent to 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 adjacent to the first fixed position, the second camera is provided adjacent to the second fixed position, 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.

[0068] In addition, the endoscope optical fiber detection device 110 may further include a display 6 and a signal line 7. The display 6 may display, but is not limited to, images captured by the camera 4 and images processed by the processor 5. The signal line 7 is used for electrical connection between the processor 5 and the camera 4, and may also be used for connection between the camera 4 and the display 6.

[0069] The present invention provides a method for detecting an optical fiber, wherein the method uses the above-mentioned detection device to perform detection. Figure 2 The figure shows the process of determining the total number of optical fiber filaments in the optical fiber detection method provided by the present invention. Specifically, Figure 2 shown.

[0070] In step S210, only the second light source 3 is turned on, and the second light source 3 irradiates the second end 122 of the optical fiber bundle 120 to be tested close to the shooting device 4. 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 irradiates 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 irradiates the epoxy resin between the optical fiber filaments, the light will not pass through the epoxy resin.

[0071] In step S220, a first captured image of the second end 122 of the optical fiber bundle 120 to be inspected 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. Figure 3 FIG. 4 is a schematic diagram showing an embodiment of a first captured image captured by the camera 4 when only the second light source 3 is used for illumination. Figure 3 It can be seen that there is an obvious color difference between the optical fiber filaments and the epoxy resin, while the color difference between the qualified optical fiber filaments and the unqualified optical fiber filaments is smaller.

[0072] It should be noted that two photographing devices 4 can also be provided, that is, a first camera and a second camera are provided adjacent to the first end 121 and adjacent to the second end 122, respectively. When two photographing devices 4 are provided, it is also possible to only turn on the first light source 2, in which case the photographed image of the first end 121 of the optical fiber bundle 120 to be detected needs to be obtained through the first camera; or only turn on the second light source 3, in which case the photographed image of the second end 122 of the optical fiber bundle 120 to be detected needs to be obtained through the second camera. That is, the light source and the photographing device 4 need to be located on one side of the same end of the optical fiber bundle 120 to be detected. The present invention describes that the photographing device 4 obtains the first photographed image of the second end 122 of the optical fiber bundle 120 to be detected, and it is only for the purpose of illustrating the situation that the photographing device and the light source are both located on one side of the same end of the optical fiber bundle 120 to be detected, but does not exclude the situation that the first light source 2 emits light and the first camera is used to capture the image of the first end 121.

[0073] In step S230, RGB recognition and extraction processing is performed on the first captured image to obtain a first RGB distribution map in the first captured image. The first captured image needs to be processed to obtain a first RGB distribution map. In the first 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 first RGB distribution map can be screened by setting a suitable screening color area.

[0074] In step S240, the first 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 quite 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.

[0075] Specifically, the method for screening optical fiber filaments can be by determining a pixel point whose color is within a preset first color range with four adjacent pixel points as a first pixel point, forming a pixel group with adjacent first pixel points, and determining an optical fiber filament whose number of pixel points in the pixel group meets a preset value range and meets a preset shape as a qualified / unqualified optical fiber filament. The preset value range is usually between 70 and 90.

[0076] The first color range needs to cover the color range of qualified optical fiber filaments and the color range of unqualified optical fiber filaments. In this way, the total number of optical fiber filaments can be counted. Figure 4 Schematic diagram of using software to count the total number of optical fibers.

[0077] It should be noted that, in order to further reduce the interference of the end face epoxy resin, 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 face of the second end 122, so that the refraction of light can be reduced, making the optical fiber filament and the epoxy resin more clearly distinguishable. In other embodiments, when shooting with the first camera, the first light source 2 emits light, and liquid can be dripped on the first end 121 of the optical fiber bundle 120 to be detected. The liquid can be, but is not limited to, alcohol. Figure 5 The image shown is taken after the liquid is dropped. Figure 5 It can be seen that the optical fiber filaments and epoxy resin are more clearly distinguished.

[0078] Figure 6 The figure shows a method for determining qualified optical fiber in the detection method provided by the present invention. Figure 6 Schematic diagram, Figure 6 In step S310 , only the first light source 2 is turned on, and the first light source 2 irradiates the first end 121 of the optical fiber bundle 120 to be detected away from the shooting device 4 .

[0079] In step S320, a second captured image of the second end 122 of the optical fiber bundle 120 to be detected is obtained by the shooting device 4. Of course, when there are two shooting devices 4 including a first camera and a second camera, only the second light source 3 may be turned on, and the first end 121 of the optical fiber bundle 120 to be detected may be photographed by the first camera, which is specifically set according to needs.

[0080] In step S330, the number of qualified optical fiber filaments is determined according to the second captured image. The number of qualified optical fiber filaments can be determined in a conventional manner, such as converting the original color image of the second captured image into a gray image, performing threshold segmentation on the gray image to obtain a binary image, and then screening the binary image for the number of qualified optical fiber filaments.

[0081] Figure 7 Another method for determining qualified optical fiber filaments in the detection method provided by the present invention is illustrated. Figure 7 In step 410, the first light source 2 and the second light source 3 are turned on at the same time. The colors of the first light source 2 and the second light source 3 are different. The first light source 2 and the second light source 3 are respectively irradiated at the two ends of the optical fiber bundle 120 to be detected. It should be noted that the color of the light emitted by the first light source 2 and the color of the light emitted by the second light source 3 can be selected to be as different as possible, so that it is easier to distinguish.

[0082] When the first light source 2 and the second light source 3 simultaneously illuminate the two ends of the optical fiber bundle 120 to be tested, the light emitted by the second light source 3 will pass through the qualified and unqualified optical fiber filaments, and the light emitted by the second light source 3 will not pass through the epoxy resin between the optical fiber filaments. The light emitted by the first light source 2 will pass through the qualified optical fiber filaments, and the light emitted by the first light source 2 will not pass through the unqualified optical fiber filaments and the epoxy resin.

[0083] In step 420, a third captured image of the second end 122 of the optical fiber bundle 120 to be inspected is obtained by the camera 4. Since the light emitted by the second light source 3 can pass through qualified and unqualified optical fiber filaments, and the light emitted by the second light source 3 will not pass through the epoxy resin between the optical fiber filaments, the light emitted by the first light source 2 can pass through qualified optical fiber filaments, and the light emitted by the first light source 2 will not pass through unqualified optical fiber filaments and epoxy resin, at this time, the qualified optical fiber filaments, unqualified optical fiber filaments, and epoxy resin in the third captured image will show three different colors, and can therefore be distinguished by different color ranges.

[0084] In step 430, the number of qualified optical fiber filaments is screened out according to the third captured image, the first characteristic and the second characteristic; wherein the first characteristic is the characteristic that the light generated by the first light source 2 passes through the qualified optical fiber filaments, and does not pass through the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle 120 to be detected, and the second characteristic is the characteristic that the light generated by the second light source 3 passes through the qualified optical fiber filaments and the unqualified optical fiber filaments, and does not pass through the epoxy resin between the optical fibers of the optical fiber bundle 120 to be detected.

[0085] Specifically, the third captured image is processed by RGB recognition and extraction to obtain a second RGB distribution map in the third captured image; the second RGB distribution map is screened to determine the pixel points whose colors with four adjacent pixel points are within the preset first color range as qualified pixel points, the adjacent qualified pixel points are collectively formed into a pixel cluster, and the optical fiber filaments whose number of pixel points in the pixel cluster meets the preset value range are determined as qualified optical fiber filaments. The preset value range is usually between 70-90.

[0086] In addition, in other embodiments, unqualified optical fibers can be determined by screening the second RGB distribution diagram.

[0087] For example, in the second RGB distribution diagram, the RGB range of qualified optical fiber filaments is recorded as RGB2-1, the RGB range of unqualified optical fiber filaments is recorded as RGB2-2, and the RGB range of epoxy resin is recorded as RGB2-3. Therefore, qualified optical fiber filaments can be screened out by selecting the corresponding RGB range. Pixel points whose colors are all within the preset RGB2-1 with four adjacent pixels can be determined as qualified pixels, and adjacent qualified pixels are collectively formed into a pixel group, and the optical fiber filament whose number of pixels in the pixel group meets the first preset numerical range can be determined as qualified optical fiber filament. Pixel points whose colors are all within the preset RGB2-2 with four adjacent pixels can be determined as qualified pixels, and adjacent qualified pixels are collectively formed into a pixel group, and the optical fiber filament whose number of pixels in the pixel group meets the second preset number range can be determined as unqualified optical fiber filament.

[0088] The calculation of the yield of optical fiber filaments can be based on the total number of optical fiber filaments and the number of qualified optical fiber filaments to calculate the yield and defective rate of optical fiber filaments. In some other embodiments, 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 unqualified 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.

[0089] 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. An endoscope optical fiber detection device, used for detecting an optical fiber bundle to be detected, wherein the optical fiber bundle to be detected comprises a first end and a second end respectively located at two ends, characterized in that: include: An optical fiber bundle fixing device, comprising a first fixing structure and a second fixing structure arranged at intervals, wherein the first fixing structure and the second fixing structure respectively have a first fixing position and a second fixing position for fixing a first end and a second end of the optical fiber bundle to be detected; A first light source is mounted on the first fixing structure, and a light outlet of the first light source is used to be connected to the first end; A second light source is mounted on the second fixing structure, and a light outlet of the second light source is used to be connected to the second end; a photographing device, wherein a lens of the photographing device is disposed adjacent to the second fixed position and perpendicular to the end surface of the second end; and The processor is electrically connected to the photographing device.

2. The endoscope optical fiber detection device according to claim 1, characterized in that: The light colors of the first light source and the second light source are different or the same.

3. The endoscope optical fiber detection device according to claim 1, characterized in that: The first light source is disposed at a first preset angle with the first end; and / or, The second light source is disposed at a second preset angle with the second end.

4. The endoscope optical fiber detection device according to claim 3, characterized in that: The first preset angle is less than 90°; the second preset angle is less than 90°.

5. A method for detecting an optical fiber, characterized in that: The detection method uses the detection device according to any one of claims 1 to 4 to perform detection, and the detection method includes: Only the second light source is turned on, and the second light source illuminates the second end of the optical fiber bundle to be detected close to the shooting device; Acquiring a first captured image of the second end of the optical fiber bundle to be inspected by a photographing device; Performing RGB recognition and extraction processing on the first captured image to obtain a first RGB distribution map in the first captured image; The first 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.

6. The optical fiber detection method according to claim 5, characterized in that: The detection method further comprises: Only the first light source is turned on, and the first light source irradiates the first end of the optical fiber bundle to be detected away from the shooting device; Acquiring a second captured image of the second end of the optical fiber bundle to be inspected by a photographing device; The number of qualified optical fiber filaments is determined according to the second captured image.

7. The optical fiber detection method according to claim 5, characterized in that: The detection method further comprises: Turn on a first light source and a second light source at the same time, the first light source and the second light source have different colors, and the first light source and the second light source are respectively irradiated on two ends of the optical fiber bundle to be detected; Acquiring a third photographed image of the second end of the optical fiber bundle to be inspected by a photographing device; According to the third captured image, the number of qualified optical fiber filaments is screened out according to the first characteristic and the second characteristic; wherein the first characteristic is the characteristic that the light generated by the first light source passes through the qualified optical fiber filaments, and does not pass through the unqualified optical fiber filaments and the epoxy resin between the optical fibers of the optical fiber bundle to be detected; and the second characteristic is the characteristic that the light generated by the second light source passes through the qualified optical fiber filaments and the unqualified optical fiber filaments, and does not pass through the epoxy resin between the optical fibers of the optical fiber bundle to be detected.

8. The optical fiber detection method according to claim 7, characterized in that: The method of screening out the number of qualified optical fibers according to the third captured image, the first characteristic and the second characteristic includes: Performing RGB recognition and extraction processing on the third captured image to obtain a second RGB distribution map in the third captured image; The second RGB distribution map is screened, and the pixel points whose colors are the same as those of the four adjacent pixel points within the preset first color range are determined as qualified pixel points. The adjacent qualified pixel points are grouped together into a pixel cluster, and the optical fiber filaments whose number of pixel points in the pixel cluster is within the preset numerical range are determined as qualified optical fiber filaments.

9. The optical fiber detection method according to any one of claims 6 to 8, characterized in that: The detection method further comprises: 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.

10. The optical fiber detection method according to claim 5, characterized in that: Before the step of acquiring a first captured image of the second end of the optical fiber bundle to be detected by a photographing device, the detection method further includes: 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.