CN106846298B - Optical fiber flat cable identification method and device - Google Patents

Optical fiber flat cable identification method and device Download PDF

Info

Publication number
CN106846298B
CN106846298B CN201611202193.4A CN201611202193A CN106846298B CN 106846298 B CN106846298 B CN 106846298B CN 201611202193 A CN201611202193 A CN 201611202193A CN 106846298 B CN106846298 B CN 106846298B
Authority
CN
China
Prior art keywords
optical fiber
color
detected
sample image
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611202193.4A
Other languages
Chinese (zh)
Other versions
CN106846298A (en
Inventor
张涛
王铎
杨新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Huineng Robot Technology Co ltd
Tsinghua University
Original Assignee
Wuhan Huineng Robot Technology Co ltd
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Huineng Robot Technology Co ltd, Tsinghua University filed Critical Wuhan Huineng Robot Technology Co ltd
Priority to CN201611202193.4A priority Critical patent/CN106846298B/en
Publication of CN106846298A publication Critical patent/CN106846298A/en
Application granted granted Critical
Publication of CN106846298B publication Critical patent/CN106846298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides an optical fiber cable arrangement identification method and device, which relate to the technical field of optical fiber cable arrangement and comprise the following steps: inputting standard style information of an optical fiber product, selecting target style information from the standard style information, dividing a working flow into two parts of sampling training and detection, acquiring optical fiber flat cable sample images with specified color sequence through a camera during the sampling training, and sequentially recording standard pixel values of each color; during detection, an optical fiber sample image to be detected is acquired through a camera, a region of interest (ROI) is selected from the optical fiber sample image to be detected, the ROI is preprocessed and subjected to neighbor classification with standard pixel values of various colors, so that the number of wire cores, the color sequence and the positions of each wire core in the optical fiber sample image to be detected are determined, gray values of the pixels are counted along the direction of a flat cable, color circle information is determined according to the gray values, the number of the wire cores, the color sequence, the color circle information and the flat cable interval information are displayed, and therefore the influence of gaps among the wire cores can be eliminated.

Description

Optical fiber flat cable identification method and device
Technical Field
The invention relates to the technical field of optical fiber cables, in particular to an optical fiber cable identification method and device.
Background
The optical fiber flat cable inspection is mainly divided into two forms, namely manual inspection and machine inspection. Because the optical fiber flat cable is very fine in arrangement, the optical fiber flat cable is not easy to distinguish by naked eyes, and the traditional manual inspection mode has low efficiency and low accuracy; the manufacturing enterprises need to employ a large number of inspection staff, and the production cost is high.
The machine inspection is performed through an optical fiber inspection system, and the optical fiber inspection system has various requirements on the operation of a user, such as the need of arranging optical fibers in a specified position in a fine and orderly manner, the deflection angle cannot be excessively large, and the like; the robustness to the change of the illumination condition of the working environment is not strong enough; the flat cable formed by the pure-color wire cores can only be identified, and the optical fibers with intervals between the flat cables or with chromatic rings (namely small black segments on the flat cable cores) cannot be accurately identified, so that the inspection range is limited.
Disclosure of Invention
In view of the above, the present invention aims to provide a method and a device for identifying an optical fiber ribbon cable, so as to eliminate the influence of gaps between cable cores.
In a first aspect, an embodiment of the present invention provides a method for identifying an optical fiber ribbon, where the method includes:
inputting standard style information of an optical fiber product, and selecting target style information from the standard style information, wherein the target style information comprises wire core number, color sequence, color ring information and arrangement interval information;
collecting an optical fiber sample image to be detected through a camera, and selecting a region of interest (ROI) from the optical fiber sample image to be detected;
preprocessing the ROI, and performing neighbor classification with standard pixel values of all colors, so as to determine the number of wire cores of the optical fiber sample image to be detected, the color sequence and the position of each wire core in the optical fiber sample image to be detected;
counting gray values of pixels along the direction of the flat cable, and determining the color ring information according to the gray values;
and displaying the number of the wire cores, the color sequence, the color ring information and the row line interval information.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the preprocessing the ROI includes:
and carrying out morphological filtering, hough transformation linear detection, picture rotation and front background separation on the ROI.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the determining, by performing neighbor classification with the standard pixel values of the respective colors, the number of cores, the color sequence, and the position of each core in the optical fiber sample image to be inspected includes:
setting sampling points at intervals of a preset interval in the horizontal direction of the pretreatment area;
collecting a row of pixels along the vertical winding displacement direction of each sampling point, and performing neighbor classification by using the standard pixel values of each color, so as to obtain the number of the wire cores, the color sequence and the positions of each wire core in the optical fiber sample image to be detected, wherein the number of the wire cores, the color sequence and the positions of each wire core are corresponding to each row of pixels;
counting the number of the wire cores corresponding to each row of pixels, the color sequence and the frequency of occurrence of the positions of each wire core in the optical fiber sample image to be detected, and taking the wire core number, the color sequence and the positions of each wire core in the optical fiber sample image to be detected, which are the most frequently occurring, as the optical fiber sample image to be detected.
With reference to the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the determining color ring information according to the gray value includes:
counting a pixel gray level histogram of the wire core;
taking the average value of the pixel gray scales in the interval with the largest pixel distribution quantity as the total gray scale value of the wire core;
selecting a plurality of pixels with the minimum pixel gray levels of the wire cores, and calculating the average value of the gray levels of the pixels;
calculating a difference between the average value and the overall gray value;
calculating the ratio of the difference value to the overall gray value;
comparing the ratio with a preset threshold;
if the ratio is less than the preset threshold, the color ring exists;
if the ratio is not less than the preset threshold, the color circle is not present.
With reference to the first aspect, the present embodiment provides a fourth possible implementation manner of the first aspect,
the method further comprises the steps of: and acquiring fiber cable sample images with specified color sequences by the camera, and sequentially recording the standard pixel values of each color.
In a second aspect, an embodiment of the present invention further provides an optical fiber cable identification device, where the device includes a camera, a terminal, and a touch screen;
the camera is connected with the terminal and used for collecting an optical fiber sample image to be detected and sending the optical fiber sample image to be detected to the terminal;
the terminal is connected with the camera and is used for receiving the optical fiber sample image to be detected sent by the camera, selecting a region of interest (ROI) from the optical fiber sample image to be detected, preprocessing the ROI, detecting to obtain a detection result, wherein the detection result comprises wire core number, color sequence, color ring information and row interval information, and sending the wire core number, the color sequence, the color ring information and the row interval information to a touch screen;
the touch screen is connected with the terminal and used for receiving the wire core number, the color sequence, the color ring information and the row space information sent by the terminal and displaying the wire core number, the color sequence, the color ring information and the row space information.
With reference to the second aspect, the embodiment of the present invention provides a first possible implementation manner of the second aspect, where the device further includes a support frame and a bottom plate, and the support frame is disposed on the bottom plate and is connected perpendicularly to the bottom plate.
With reference to the first possible implementation manner of the second aspect, the embodiment of the present invention provides a second possible implementation manner of the second aspect, wherein a cross beam is disposed between the first upright and the second upright of the support frame, and the camera is disposed in a middle portion of the cross beam.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the touch screen is disposed on the first pillar and the second pillar.
With reference to the third possible implementation manner of the second aspect, the embodiment of the present invention provides a fourth possible implementation manner of the second aspect, wherein the device further includes a lamp, and the lamp is disposed on a back surface of the first pillar and the second pillar.
The embodiment of the invention provides an optical fiber flat cable identification method and device, standard style information of an optical fiber product is input, target style information is selected from the standard style information, wherein the target style information comprises the number of wire cores, color sequence, color ring information and flat cable interval information, an optical fiber sample image to be detected is acquired through a camera, a region of interest (ROI) is selected from the optical fiber sample image to be detected, the ROI is preprocessed and is subjected to neighbor classification with standard pixel values of all colors, so that the number of the wire cores, the color sequence and the positions of each wire core in the optical fiber sample image to be detected of the optical fiber sample image to be detected are determined, gray values of pixels are counted along the direction of the flat cable, the color ring information is determined according to the gray values, and the number of the wire cores, the color sequence, the color ring information and the flat cable interval information are displayed, thereby the influence of gaps among the wire cores can be eliminated.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for identifying an optical fiber cable according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a product style editing interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a product detection interface according to a first embodiment of the present invention;
fig. 4 is a schematic diagram of an optical fiber flat cable identification device according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of another optical fiber flat cable identification device according to a second embodiment of the present invention.
Icon:
1-a camera; 2-a touch screen; 3-supporting frames; 4-a bottom plate;
31-a first upright; 32-a second upright; 33-a cross beam; 5-lamp;
6, a cover; 7-sample tabletting.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the convenience of understanding the present embodiment, first, the embodiment of the present invention will be described in detail.
Embodiment one:
fig. 1 is a flowchart of a method for identifying an optical fiber cable according to an embodiment of the present invention.
Referring to fig. 1, step S101, standard style information of an optical fiber product is entered, and target style information is selected from the standard style information, wherein the target style information includes the number of wire cores, color sequence, color ring information and arrangement interval information;
here, the target style information further includes a style name, the number of optical fiber lines, and style type information, wherein the style type information includes a product style and a sampling style.
The fiber ribbon recognition method mainly comprises three parts, namely style editing, sampling training and detection.
Specifically, standard style information of the optical fiber product is recorded as a style editing part, and different product styles can be conveniently switched for detection through recording.
The style editing part may specifically refer to fig. 2, as shown in fig. 2:
the product style includes a style name, the number of optical fiber lines, whether the color ring exists, and a style type, for example, the style name is "12se", the number of optical fiber lines is "12", whether the color ring exists, the style type is "product style"; the style name is "6se", the number of optical fiber lines is "6", the color ring is "none", the style type is "product style"; the style name is "6sehuan", the number of optical fiber lines is "6", whether the chromatic circle is "there is" and the style type is "product style".
Color sequence is also displayed, e.g., number 1 corresponds to blue; the serial number 2 corresponds to orange; the number 3 corresponds to green.
Step S102, acquiring an optical fiber sample image to be detected through a camera, and selecting a region of interest (ROI) from the optical fiber sample image to be detected;
here, the optical fiber sample image to be detected is collected by the camera as the detection part, and the sampling training part is added in consideration of the fact that the change of the illumination condition can influence the pixel value of the color picture and further can influence the detection result.
Step S103, preprocessing the ROI, and carrying out neighbor classification on the ROI and standard pixel values of each color, so as to determine the number of wire cores of the optical fiber sample image to be detected, the color sequence and the position of each wire core in the optical fiber sample image to be detected;
here, the ROI is selected from the image of the fiber sample to be detected, and the ROI needs to be preprocessed, so that the subsequent detection can be performed.
Specifically, the influence caused by image noise, dirt on the optical fiber and incorrect placement angle can be effectively eliminated through repeated detection.
Step S104, counting gray values of pixels along the direction of the flat cable, and determining color ring information according to the gray values;
step S105 displays the number of line cores, the color sequence, the color circle information, and the arrangement interval information.
Here, the system interface displays not only the inspection results, that is, the number of wire cores, the color sequence, the color ring information and the row interval information, but also the standard style information of the optical fiber product, so as to give the user whether the style of the product to be inspected is correct or not, and the error gives detailed error information, thereby facilitating the user to modify.
Referring specifically to fig. 3, the detection result is obtained by detecting the optical fiber sample to be detected, for example: the pattern color corresponding to the serial number 1 is blue, the detection result is blue, and the detection judgment is correct; the pattern color corresponding to the serial number 2 is 'orange', the detection result is 'orange', and the detection judgment is 'correct'; the pattern color corresponding to the serial number 3 is green, the detection result is green, and the detection judgment is correct; the pattern color corresponding to the serial number 4 is brown, the detection result is brown, the detection judgment is correct, and the like until the detection is completed, if the detection judgment is correct, the pattern color is brown, and the detection judgment is correct, the pattern color is correct and the pattern color is correct! Clicking on the next product detection ≡! ", thereby performing the detection of the next product.
Further, preprocessing the ROI to obtain a preprocessed region includes:
and performing morphological filtering, hough transformation linear detection, picture rotation and front background separation on the ROI.
Further, performing neighbor classification with standard pixel values of each color, so as to determine the number of wire cores of the optical fiber sample image to be detected, the color sequence and the position of each wire core in the optical fiber sample image to be detected, wherein the method comprises the following steps:
setting sampling points at intervals of a preset distance in the horizontal direction;
collecting a row of pixels along the vertical winding displacement direction of each sampling point, and performing neighbor classification by using standard pixel values of each color to obtain the number of wire cores corresponding to each row of pixels, the color sequence and the position of each wire core in the optical fiber sample image to be detected;
counting the number and color sequence of the wire cores corresponding to each column of pixels and the occurrence frequency of the positions of each wire core in the to-be-detected optical fiber sample image, and taking the wire core number and color sequence with the highest occurrence frequency as the to-be-detected optical fiber sample image and the positions of each wire core in the to-be-detected optical fiber sample image.
Further, determining color circle information from the gray value includes:
counting a pixel gray level histogram of the wire core;
taking the average value of the pixel gray scales in the interval with the largest pixel distribution quantity as the total gray scale value of the wire core;
selecting a plurality of pixels with the minimum pixel gray levels of the wire cores, and calculating the average value of the gray levels of the pixels;
calculating a difference between the average value and the overall gray value;
calculating the ratio of the difference value to the overall gray value;
comparing the ratio with a preset threshold;
if the ratio is less than the preset threshold, the color ring exists;
if the ratio is not less than the preset threshold, the color circle is not present.
Further, the method further comprises:
and acquiring fiber cable sample images with specified color sequences by the camera, and sequentially recording standard pixel values of each color.
Specifically, the workflow is divided into two parts of sampling training and detection, when the sampling training is carried out, the camera is used for collecting the fiber optic cable sample images with the designated color sequence, and the standard pixel value of each color is recorded in sequence.
The embodiment of the invention provides an optical fiber flat cable identification method, standard style information of an optical fiber product is input, target style information is selected from the standard style information, wherein the target style information comprises wire core number, color sequence, color ring information and flat cable interval information, a region of interest (ROI) is selected from an optical fiber sample image to be detected, the ROI is preprocessed and subjected to neighbor classification with standard pixel values of various colors, so that the number of wire cores, the color sequence and the position of each wire core in the optical fiber sample image to be detected are determined, gray values of pixels are counted along the flat cable direction, the color ring information is determined according to the gray values, and the number of wire cores, the color sequence, the color ring information and the flat cable interval information are displayed, thereby eliminating the influence of gaps among the wire cores.
Embodiment two:
fig. 4 is a schematic diagram of an optical fiber flat cable identification device according to a second embodiment of the present invention.
Referring to fig. 4, the apparatus includes a camera 1, a terminal, and a touch screen 2;
the camera 1 is connected with the terminal and is used for collecting an optical fiber sample image to be detected and sending the optical fiber sample image to be detected to the terminal;
here, the camera is an industrial camera.
The terminal is connected with the camera 1 and is used for receiving the optical fiber sample image to be detected sent by the camera 1, selecting a region of interest (ROI) from the optical fiber sample image to be detected, preprocessing the ROI, detecting to obtain a detection result, wherein the detection result comprises the number of wire cores, the color sequence, the color ring information and the interval information of the flat cables, and sending the number of wire cores, the color sequence, the color ring information and the interval information of the flat cables to the touch screen 2;
here, the terminal is a computer.
The touch screen 2 is connected with the terminal and is used for receiving the number of the wire cores, the color sequence, the color ring information and the interval information of the flat cable sent by the terminal and displaying the number of the wire cores, the color sequence, the color ring information and the interval information of the flat cable.
The device also comprises a support frame 3 and a bottom plate 4, wherein the support frame 3 is arranged on the bottom plate 4 and is vertically connected with the bottom plate 4.
A cross beam 33 is arranged between the first upright 31 and the second upright 32 of the support frame 3, and the camera 1 is arranged in the middle of the cross beam 33.
The touch screen 2 is disposed on the first and second posts 31, 32.
The device further comprises a lamp 5 arranged at the back of the first upright 31 and the second upright 32.
The bottom plate 4 is also provided with a sample pressing sheet 7 for fixing a sample of the optical fiber to be detected.
The device also comprises a cover 6, wherein the cover 6, the bottom plate 4 and the support frame 3 form a cavity structure with one end open. Reference is made in particular to fig. 5.
The optical fiber flat cable identification system comprises the optical fiber flat cable identification device.
The computer program product provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to perform the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method of identifying a fiber optic cable, the method comprising:
inputting standard style information of an optical fiber product, and selecting target style information from the standard style information, wherein the target style information comprises wire core number, color sequence, color ring information and arrangement interval information;
collecting an optical fiber sample image to be detected through a camera, and selecting a region of interest (ROI) from the optical fiber sample image to be detected;
preprocessing the ROI, and performing neighbor classification with standard pixel values of all colors, so as to determine the number of wire cores of the optical fiber sample image to be detected, the color sequence and the position of each wire core in the optical fiber sample image to be detected;
counting gray values of pixels along the direction of the flat cable, and determining the color ring information according to the gray values;
displaying the number of the wire cores, the color sequence, the color ring information and the row line interval information;
the neighbor classification is performed on the standard pixel values of the colors, so that the number of the wire cores of the optical fiber sample image to be detected, the color sequence and the position of each wire core in the optical fiber sample image to be detected are determined, and the method comprises the following steps:
setting sampling points at intervals of a preset distance in the horizontal direction;
collecting a row of pixels along the vertical winding displacement direction of each sampling point, and performing neighbor classification by using the standard pixel values of each color, so as to obtain the number of the wire cores, the color sequence and the positions of each wire core in the optical fiber sample image to be detected, wherein the number of the wire cores, the color sequence and the positions of each wire core are corresponding to each row of pixels;
counting the number of the wire cores corresponding to each row of pixels, the color sequence and the frequency of occurrence of the positions of each wire core in the optical fiber sample image to be detected, and taking the wire core number, the color sequence and the positions of each wire core in the optical fiber sample image to be detected, which are the most frequently occurring, as the optical fiber sample image to be detected;
the determining color circle information according to the gray value includes:
counting a pixel gray level histogram of the wire core;
taking the average value of the pixel gray scales in the interval with the largest pixel distribution quantity as the total gray scale value of the wire core;
selecting a plurality of pixels with the minimum pixel gray levels of the wire cores, and calculating the average value of the gray levels of the pixels;
calculating a difference between the average value and the overall gray value;
calculating the ratio of the difference value to the overall gray value;
comparing the ratio with a preset threshold;
if the ratio is less than the preset threshold, the color ring exists;
if the ratio is not less than the preset threshold, the color circle is not present.
2. The method of claim 1, wherein the pre-processing the ROI comprises:
and carrying out morphological filtering, hough transformation linear detection, picture rotation and front background separation on the ROI.
3. The method of claim 1, further comprising: and acquiring fiber cable sample images with specified color sequences by the camera, and sequentially recording the standard pixel values of each color.
4. An optical fiber flat cable identification device is characterized by comprising a camera, a terminal and a touch screen;
the camera is connected with the terminal and used for collecting an optical fiber sample image to be detected and sending the optical fiber sample image to be detected to the terminal;
the terminal is connected with the camera and is used for receiving the optical fiber sample image to be detected sent by the camera, selecting a region of interest (ROI) from the optical fiber sample image to be detected, preprocessing the ROI, detecting to obtain a detection result, wherein the detection result comprises wire core number, color sequence, color ring information and row interval information, and sending the wire core number, the color sequence, the color ring information and the row interval information to a touch screen;
the touch screen is connected with the terminal and used for receiving the wire core number, the color sequence, the color ring information and the row space information sent by the terminal and displaying the wire core number, the color sequence, the color ring information and the row space information;
the terminal is specifically used for:
setting sampling points at intervals of a preset distance in the horizontal direction;
collecting a row of pixels along the vertical winding displacement direction of each sampling point, and performing neighbor classification by using the standard pixel values of each color, so as to obtain the number of wire cores corresponding to each row of pixels, the color sequence and the positions of each wire core in the optical fiber sample image to be detected;
counting the number of the wire cores corresponding to each row of pixels, the color sequence and the frequency of occurrence of the positions of each wire core in the optical fiber sample image to be detected, and taking the wire core number, the color sequence and the positions of each wire core in the optical fiber sample image to be detected, which are the most frequently occurring, as the optical fiber sample image to be detected;
the terminal is specifically used for:
counting a pixel gray level histogram of the wire core;
taking the average value of the pixel gray scales in the interval with the largest pixel distribution quantity as the total gray scale value of the wire core;
selecting a plurality of pixels with the minimum pixel gray levels of the wire cores, and calculating the average value of the gray levels of the pixels;
calculating a difference between the average value and the overall gray value;
calculating the ratio of the difference value to the overall gray value;
comparing the ratio with a preset threshold;
if the ratio is less than the preset threshold, the color ring exists;
if the ratio is not less than the preset threshold, the color circle is not present.
5. The fiber optic cable routing identification device of claim 4, further comprising a support bracket and a base plate, the support bracket being disposed on the base plate and being connected perpendicular to the base plate.
6. The fiber optic cable routing identification device of claim 5, wherein a cross beam is disposed between the first and second posts of the support frame, and the camera is disposed in a middle portion of the cross beam.
7. The fiber optic cable routing identification device of claim 6, wherein the touch screen is disposed on the first post and the second post.
8. The fiber optic cable routing identification device of claim 7, further comprising a light disposed on a rear face of the first post and the second post.
CN201611202193.4A 2016-12-22 2016-12-22 Optical fiber flat cable identification method and device Active CN106846298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611202193.4A CN106846298B (en) 2016-12-22 2016-12-22 Optical fiber flat cable identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611202193.4A CN106846298B (en) 2016-12-22 2016-12-22 Optical fiber flat cable identification method and device

Publications (2)

Publication Number Publication Date
CN106846298A CN106846298A (en) 2017-06-13
CN106846298B true CN106846298B (en) 2023-07-14

Family

ID=59135814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611202193.4A Active CN106846298B (en) 2016-12-22 2016-12-22 Optical fiber flat cable identification method and device

Country Status (1)

Country Link
CN (1) CN106846298B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108682016B (en) * 2018-05-18 2020-10-23 深圳市星火云科技有限公司 Fiber insertion identification method and system
CN110136098B (en) * 2019-04-15 2023-07-18 江苏大学 Cable sequence detection method based on deep learning
CN110288540B (en) * 2019-06-04 2021-07-06 东南大学 Carbon fiber wire X-ray image online imaging standardization method
CN113012141B (en) * 2021-04-01 2023-10-31 常德富博智能科技有限公司 Wire color recognition and automatic sequencing system and method
CN114785410B (en) * 2022-04-25 2024-02-27 贵州电网有限责任公司 Accurate recognition system based on optical fiber coding
CN115690234B (en) * 2022-11-04 2023-07-25 深圳云码通科技有限公司 Novel optical fiber color line sequence detection method and system
CN116558777B (en) * 2023-03-27 2024-04-09 珠海科技学院 Optical fiber conductivity test method and system
CN116740385B (en) * 2023-08-08 2023-10-13 深圳探谱特科技有限公司 Equipment quality inspection method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6633383B1 (en) * 1999-10-25 2003-10-14 Linetech Industries, Inc. Method and apparatus for the automated inspection of yarn packages
CN101063737A (en) * 2006-04-30 2007-10-31 上海光纤有限公司 Optical fibre identification method and apparatus
CN104897366A (en) * 2015-06-12 2015-09-09 长飞光纤光缆股份有限公司 Method, device and system for on-line detection of chromatic circle fibers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6633383B1 (en) * 1999-10-25 2003-10-14 Linetech Industries, Inc. Method and apparatus for the automated inspection of yarn packages
CN101063737A (en) * 2006-04-30 2007-10-31 上海光纤有限公司 Optical fibre identification method and apparatus
CN104897366A (en) * 2015-06-12 2015-09-09 长飞光纤光缆股份有限公司 Method, device and system for on-line detection of chromatic circle fibers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design of a Transoceanic Cable Protection System;Isaac Geisler et al.;《 IEEE Xplore》;全文 *
基于机器视觉的色标判读系统;朱光;杨永跃;张建杰;;现代显示(第Z1期);全文 *

Also Published As

Publication number Publication date
CN106846298A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106846298B (en) Optical fiber flat cable identification method and device
JP5207719B2 (en) Label with color code, color code extraction means, and three-dimensional measurement system
JP5010001B2 (en) 3D image display panel evaluation method and system
CN113674273B (en) Optical detection method and system based on product defects and readable storage medium
CN108701237A (en) Method for automatically generating public-measurement across multiple module units
CN106412573A (en) Method and device for detecting lens stain
JP2007101276A (en) Three-dimensional measuring projector and system
CN104103069B (en) Image processing apparatus, image processing method and recording medium
JP4848166B2 (en) Projection apparatus and system for three-dimensional measurement
CN105139384B (en) The method and apparatus of defect capsule detection
CN111681234A (en) Method, system and equipment for detecting standard of trial product placed on store shelf
JP5695821B2 (en) Color code target, color code discrimination device, and color code discrimination method
CN112419229A (en) Display screen linear defect detection method and device and storage medium
JP2006309405A (en) Meter recognition system, meter recognition method, and meter recognition program
CN106017328A (en) Method and device for measuring various types of line widths
CN112036391B (en) Electronic inspection method and system based on shale gas field production station
JP5350943B2 (en) Color code target, color code discrimination device, and color code discrimination method
CN113705350A (en) Pointer instrument reading identification method and device for transformer substation, medium and electronic equipment
CN206946047U (en) Optical fiber winding displacement identification device and system
KR102505519B1 (en) Method and device for detecting axis of chart
JP5045211B2 (en) Character recognition device, appearance inspection device, and character recognition method
US6894716B1 (en) Method and apparatus for identifying a position of a predetermined object in free space using a video image
CN108898584A (en) A kind of full-automatic veneering capacitor welding equipment polarity discriminating method based on image analysis
US20170150058A1 (en) Method and apparatus for improving the efficiency of remote diagnosis of electronic and other equipment
CN103186789A (en) Method for automatically identifying part correctness

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant