CN114743086A - Line sequence identification detection method and system - Google Patents
Line sequence identification detection method and system Download PDFInfo
- Publication number
- CN114743086A CN114743086A CN202210453187.5A CN202210453187A CN114743086A CN 114743086 A CN114743086 A CN 114743086A CN 202210453187 A CN202210453187 A CN 202210453187A CN 114743086 A CN114743086 A CN 114743086A
- Authority
- CN
- China
- Prior art keywords
- image
- detected
- cable
- regions
- pixel point
- 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.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 26
- 238000000034 method Methods 0.000 claims abstract description 20
- 238000012163 sequencing technique Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 6
- 239000003086 colorant Substances 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 239000000463 material Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 239000012212 insulator Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004033 plastic Substances 0.000 description 1
- 229920003023 plastic Polymers 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention relates to the technical field of line sequence detection, in particular to a line sequence identification detection method and a line sequence identification detection system, wherein the method comprises the following steps: placing a standard cable on a background plate, collecting an image of the standard cable, and removing the background to obtain a reference image; dividing pixel points in the reference image into a plurality of continuous areas, and sequencing the continuous areas to serve as reference values; when the cable to be tested moves to the background plate, photographing the cable to be tested, and removing the background to obtain an image to be tested; dividing pixel points in the image to be measured into a plurality of regions to be measured, sequencing the plurality of regions to be measured along the sequence in the image to be measured, and taking average R values, G values and B values of the pixel points in each region to be measured as values to be measured; comparing the sorted to-be-detected areas with the corresponding continuous areas in sequence, and if the difference value between the to-be-detected value and the reference value is smaller than a preset threshold value, judging that the color of the to-be-detected area is the same as that of the continuous areas; and if the area to be detected with the color different from that of the continuous area exists, judging that the cable sequence is unqualified.
Description
Technical Field
The invention relates to the technical field of line sequence detection, in particular to a line sequence identification detection method and system.
Background
The automotive wiring harness is a network body of an automotive circuit, which is used for connecting and functioning electrical and electronic parts of an automobile, and is a component which is formed by pressing a contact terminal punched by a copper material and a wire cable, then molding and pressing an insulator or adding a metal shell on the outer surface of the contact terminal, and bundling the contact terminal with a wiring harness to form a connecting circuit. With the increase of automobile functions and the common application of electronic control technology, more and more electrical parts are provided, the number of circuits and wiring harnesses on an automobile is obviously increased, and the design and layout of the automobile wiring harnesses become very important components in the automobile production process.
The connection between the wiring harness and between the wiring harness and the electric component adopts a connecting plug-in or a lug, the connecting plug-in is made of plastics and is divided into a plug and a socket, the wiring harness and the wiring harness are connected by the connecting plug-in, and the connection between the wiring harness and the electric component is connected by the connecting plug-in or the lug.
The purpose of the wire color of the wiring harness for the vehicle is specified, and the wires with different colors are connected with different electronic elements, so that the wiring harness at the connector must be arranged according to a specified sequence, and if the sequence is mixed up, the circuit connection error can be caused, even the circuit short circuit can be caused, and the serious result can be caused.
In view of the above problems, the designer is actively researched and innovated based on the abundant practical experience and professional knowledge of many years of engineering application of such products and with the application of theory, so as to create a line sequence identification and detection method and system, which is more practical.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention provides a line sequence identification detection method and a line sequence identification detection system, so that the problems in the background technology are effectively solved.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows: a line sequence identification detection method comprises the following steps:
placing the standard cable on a background plate, keeping the wire harnesses parallel, collecting an image of the wire harnesses, and removing the background to obtain a reference image;
dividing pixel points in the reference image into a plurality of continuous areas, sequencing the continuous areas according to a line sequence, and taking an average R value, a G value and a B value of the pixel points in each continuous area as reference values;
when the cable to be tested moves to the background plate, photographing the cable to be tested, and removing the background to obtain an image to be tested;
dividing pixel points in an image to be measured into a plurality of regions to be measured, sequencing the plurality of regions to be measured along the sequence in the image to be measured, and taking an average R value, a G value and a B value of the pixel points in each region to be measured as values to be measured;
comparing the sorted to-be-detected area with the corresponding continuous area according to the sequence, and if the difference value between the to-be-detected value and the reference value is smaller than a preset threshold value, judging that the color of the to-be-detected area is the same as that of the continuous area;
and if the area to be detected with the color different from that of the continuous area exists, judging that the cable sequence is unqualified.
Further, the background removing comprises the following steps:
photographing the background plate to obtain a first image;
shooting an image of the cable on a background plate to obtain a second image;
and subtracting the intersection from the union set of the pixel point sets in the second image and the first image to obtain a set of the pixel points without the background.
Furthermore, a positioning area is arranged on the background plate, when the cable to be detected moves to the background plate, the color and/or brightness of the positioning area in the collected second image are different from those of the positioning area in the first image, the color and/or brightness of the whole second image are filled, and then background removal is carried out.
Furthermore, the method for dividing the pixel points in the reference image into a plurality of continuous areas and the pixel points in the image to be detected into a plurality of areas to be detected comprises the following steps:
the method comprises the following steps: traversing each pixel point in the image, establishing a first pixel point set by taking one pixel point as a starting point, and putting a coordinate of the starting point into the first pixel point set;
step two: if a pixel point exists in 8 pixel point regions around the starting point, the pixel point and the starting point are judged to be adjacent pixel points, and the pixel point coordinate is placed into a first pixel point set;
step three: until the residual pixel points of the image do not have any pixel point which is adjacent to any pixel point in the first pixel point set;
step four: establishing a second pixel point set by taking any one pixel point as a starting point in the residual pixel points of the image, and putting the coordinates of the starting point into the second pixel point set;
and repeating the second step to the fourth step until the pixel points in the image are divided into a plurality of pixel point sets to be used as a plurality of continuous areas or a plurality of areas to be detected.
Further, before the sorted areas to be detected are compared with the corresponding continuous areas according to the sequence, the continuous areas and the number of the areas to be detected are compared, and if the area m to be detected is smaller than the continuous area n, the line sequence is judged to be unqualified; and if the area m to be measured is larger than the continuous area n, removing the area to be measured with the minimum number of pixel points, and keeping the m = m-1 until the m = n.
Furthermore, before sequencing the plurality of regions to be detected in the sequence of the image to be detected, the deviation of each region to be detected is corrected, which comprises the following steps:
connecting any two pixel points with the distance larger than a preset value in the area to be detected, and calculating the slope of the connection to obtain the slope range of the area to be detected;
judging a slope median value in the slope range;
and rotating the whole area to be measured until the slope median rotates to 0.
Further, when the plurality of areas to be tested are sequenced in the image to be tested in sequence, the rotated areas to be tested are sequenced into 1-m and m-1 according to the Y axis of the image, the areas to be tested are respectively compared with the corresponding continuous areas according to 1-m and m-1, and if the color of the corresponding area to be tested in one sequence is the same as that of the continuous areas, the cable line sequence is judged to be qualified.
Further, the preset value is at least twice of the number of the pixel points occupied by the width of the wires in the cable.
Further, when the whole region to be detected is rotated, the rotation point is a pixel point with the minimum coordinate x + y in the region to be detected.
The invention also includes a line sequence identification detection system, which includes:
the device comprises a conveying assembly, a background plate, a camera, a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor is electrically connected with the camera, the conveying assembly conveys a cable to be tested, the camera takes a picture of the cable to be tested when the cable to be tested moves to the background plate, and the processor executes the computer program to realize the method.
The invention has the beneficial effects that: the method comprises the steps of firstly collecting images of a standard cable to obtain the color of each wire sequence in the standard cable, then referencing, then collecting images of the cable to be detected, removing a background to obtain the image to be detected, wherein a plurality of regions to be detected in the image to be detected represent a plurality of wires in the cable to be detected, comparing the regions to be detected with corresponding continuous regions one by one according to the sequence, if the difference value between a value to be detected and the reference value is smaller than a preset threshold value, judging that the two colors are the same, if the colors of all the regions to be detected are the same as the colors of the corresponding continuous regions, indicating that the wire sequence of the cable to be detected is qualified, and detecting more accurately by comparing the average R value, the G value and the B value of pixel points in the regions to be detected and the continuous regions.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
As shown in fig. 1: a line sequence identification detection method comprises the following steps:
placing the standard cable on a background plate, keeping the wire harnesses parallel, collecting an image of the wire harnesses, and removing the background to obtain a reference image;
dividing pixel points in a reference image into a plurality of continuous areas, sequencing the continuous areas according to a line sequence, and taking an average R value, a G value and a B value of the pixel points in each continuous area as reference values;
when the cable to be tested moves to the background plate, photographing the cable to be tested, and removing the background to obtain an image to be tested;
dividing pixel points in the image to be measured into a plurality of regions to be measured, sequencing the plurality of regions to be measured along the sequence in the image to be measured, and taking average R values, G values and B values of the pixel points in each region to be measured as values to be measured;
comparing the sorted to-be-detected areas with the corresponding continuous areas in sequence, and if the difference value between the to-be-detected value and the reference value is smaller than a preset threshold value, judging that the color of the to-be-detected area is the same as that of the continuous areas;
and if the area to be detected with the color different from that of the continuous area exists, judging that the cable sequence is unqualified.
The method comprises the steps of firstly collecting images of a standard cable to obtain the sequential color of each wire in the standard cable, referring, then collecting images of the cable to be detected, removing a background to obtain the image to be detected, wherein a plurality of regions to be detected, which represent a plurality of wires in the cable to be detected, are compared with corresponding continuous regions one by one according to the sequence, if the difference value between a value to be detected and a reference value is smaller than a preset threshold value, the two colors are judged to be the same, if the colors of all the regions to be detected are the same as the colors of the corresponding continuous regions, the wire sequence of the cable to be detected is qualified, and the detection is more accurate by comparing the average R value, the G value and the B value of pixel points in the regions to be detected and the continuous regions.
In this embodiment, background removal includes the following steps:
photographing the background plate to obtain a first image;
shooting an image of the cable on the background plate to obtain a second image;
and subtracting the intersection from the union set of the pixel point sets in the second image and the first image to obtain a set of the pixel points without the background.
The intersection is subtracted from the union set of the pixel point sets in the second image and the first image, the difference position between the second image and the first image is judged, the difference position is extracted to be the cable to be detected, the number of the pixel points of follow-up processing is reduced, and the processing efficiency is improved.
Sometimes, due to the change of ambient light, when the cable to be detected is photographed, the brightness and color of the image are different from those of the reference image, so that the subsequent identification precision is influenced, a positioning area is arranged on the background plate, when the cable to be detected moves to the background plate, the color and/or the brightness of the positioning area in the collected second image are different from those of the positioning area in the first image, the whole color and/or the brightness of the second image are filled, and then background removal is performed.
In this embodiment, the method for dividing the pixel points in the reference image into a plurality of continuous regions and dividing the pixel points in the image to be detected into a plurality of regions to be detected includes the following steps:
the method comprises the following steps: traversing each pixel point in the image, establishing a first pixel point set by taking one pixel point as a starting point, and putting a coordinate of the starting point into the first pixel point set;
step two: if a pixel point exists in 8 pixel point regions around the starting point, the pixel point and the starting point are judged to be adjacent pixel points, and the pixel point coordinate is placed into a first pixel point set;
step three: until the residual pixel points of the image do not have any pixel point which is adjacent to any pixel point in the first pixel point set;
step four: establishing a second pixel point set by taking any one pixel point as a starting point in the residual pixel points of the image, and putting the coordinates of the starting point into the second pixel point set;
and repeating the second step to the fourth step until the pixel points in the image are divided into a plurality of pixel point sets to be used as a plurality of continuous areas or a plurality of areas to be detected.
And placing adjacent pixel points in the image into a pixel point set, and taking the pixel point set as a continuous area or an area to be detected, so that the subsequent judgment on the color and the line sequence is facilitated.
In the qualified cable, the number of the areas to be tested is the same as that of the continuous areas, if the number of the areas to be tested is less than that of the continuous areas, the number of the cables to be tested is less, the cables to be tested are determined to be unqualified, and sometimes noise may exist in an image when the cables to be tested are photographed, so that the number of the areas to be tested is more than that of the continuous areas, so that the number of the continuous areas and the number of the areas to be tested are compared firstly before the areas to be tested are compared with the corresponding continuous areas according to the sequence after sequencing, and if the area m to be tested is less than the continuous area n, the line sequence is determined to be unqualified, subsequent color comparison is not needed, and the processing amount is reduced; if the m of the region to be detected is larger than the n of the continuous region, removing the region to be detected with the minimum number of pixel points, wherein m = m-1, if the number of the region to be detected is larger than the number of the continuous region until m = n, the noise exists in the image, and the region to be detected with the minimum number of pixel points is removed every time, so that the average noise reduction or Gaussian noise reduction is not required to be performed on the image, and the processing speed is increased.
When shooing the cable that awaits measuring, the electric wire is not necessarily parallel to each other in the cable that awaits measuring, may disturb subsequent sequencing to influence the judgement of line sequence, so before sequencing in the image of awaiting measuring in the region of will awaiting measuring along the image of awaiting measuring in a plurality of, rectify earlier each region that awaits measuring, including following step:
connecting any two pixel points with the distance larger than a preset value in the region to be detected, and calculating the slope of the connection to obtain the slope range of the region to be detected;
judging a slope median value in the slope range, wherein the slope median value can be close to the length extension direction of the wire in the cable to be tested;
therefore, the whole region to be measured is rotated until the slope median value is rotated to 0, so that the region to be measured is rotated to be approximately horizontal, and therefore, no deviation is generated during sorting.
When the plurality of areas to be tested are sequenced along the sequence in the image to be tested, the rotated areas to be tested are sequenced into 1-m and m-1 according to the Y axis of the image, the areas to be tested are respectively compared with the corresponding continuous areas according to 1-m and m-1, and if the color of the corresponding areas to be tested in one sequence is the same as that of the continuous areas, the cable sequence is judged to be qualified.
The cable to be tested is possibly in an overturning state on the background board, so that the line sequence is opposite to the standard line sequence, when the cable to be tested is sequenced, the area to be tested is respectively compared with the corresponding continuous areas according to 1-m and m-1, and if one of the sequences is qualified, the line sequence of the cable to be tested is judged to be qualified.
In this embodiment, the predetermined value is at least twice the number of pixels occupied by the width of the wire in the cable.
If two adjacent pixel points in the area to be measured are connected, the slope and the extending direction of the length of the wire can be greatly deviated, so that the rotating angle of the area to be measured is greatly deviated, and the preset distance value of the two pixel points is at least twice of the number of the pixel points occupied by the width of the wire in the cable.
As a preferable example of the foregoing embodiment, when the whole region to be measured is rotated, the rotation point is a pixel point with the smallest coordinate x + y in the region to be measured.
When the area to be detected is rotated, the pixel point closest to the lower left corner in the image in the area to be detected is taken as a rotation point, the sequence of wires in the cable to be detected in the area to be detected after rotation is ensured, and therefore the detection precision is ensured.
The embodiment further includes a line sequence identification and detection system, including:
the system comprises a conveying assembly, a background plate, a camera, a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor is electrically connected with the camera, the conveying assembly conveys a cable to be tested, the camera shoots the cable to be tested when the cable to be tested moves to the background plate, and the processor executes the computer program to realize the method.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The meaning of "plurality" is two or more unless explicitly defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (10)
1. A line sequence identification detection method is characterized by comprising the following steps:
placing the standard cable on a background plate, keeping the wire harnesses parallel, collecting an image of the wire harnesses, and removing the background to obtain a reference image;
dividing pixel points in a reference image into a plurality of continuous areas, sequencing the continuous areas according to a line sequence, and taking an average R value, a G value and a B value of the pixel points in each continuous area as reference values;
when the cable to be tested moves to the background plate, photographing the cable to be tested, and removing the background to obtain an image to be tested;
dividing pixel points in the image to be measured into a plurality of regions to be measured, sequencing the plurality of regions to be measured along the sequence in the image to be measured, and taking average R values, G values and B values of the pixel points in each region to be measured as values to be measured;
comparing the sorted to-be-detected areas with the corresponding continuous areas in sequence, and if the difference value between the to-be-detected value and the reference value is smaller than a preset threshold value, judging that the color of the to-be-detected area is the same as that of the continuous areas;
and if the area to be detected with the color different from that of the continuous area exists, judging that the cable sequence is unqualified.
2. The line sequence identification detection method of claim 1, wherein the background removing comprises the steps of:
photographing the background plate to obtain a first image;
shooting an image of the cable on the background plate to obtain a second image;
and subtracting the intersection from the union set of the pixel point sets in the second image and the first image to obtain a set of the pixel points without the background.
3. The line sequence identification and detection method according to claim 2, wherein a positioning area is arranged on the background plate, when the cable to be detected moves to the background plate, and the color and/or brightness of the positioning area in the second image acquired are different from those of the positioning area in the first image, the color and/or brightness of the whole second image are filled, and then background removal is performed.
4. The line sequence identification detection method of claim 1, wherein the steps of dividing the pixel points in the reference image into a plurality of continuous regions and dividing the pixel points in the image to be detected into a plurality of regions to be detected comprise:
the method comprises the following steps: traversing each pixel point in the image, establishing a first pixel point set by taking one pixel point as a starting point, and putting a coordinate of the starting point into the first pixel point set;
step two: if a pixel point exists in 8 pixel point regions around the starting point, the pixel point and the starting point are judged to be adjacent pixel points, and the pixel point coordinate is placed into a first pixel point set;
step three: until the residual pixel points of the image do not have any pixel point which is adjacent to any pixel point in the first pixel point set;
step four: establishing a second pixel point set by taking any one pixel point as a starting point in the residual pixel points of the image, and putting the coordinates of the starting point into the second pixel point set;
and repeating the second step to the fourth step until the pixel points in the image are divided into a plurality of pixel point sets to be used as a plurality of continuous areas or a plurality of areas to be detected.
5. The line sequence identification and detection method according to claim 4, wherein before the sorted regions to be detected are compared with the corresponding continuous regions in sequence, the number of the continuous regions and the number of the regions to be detected are compared, and if the region m to be detected is smaller than the continuous region n, the line sequence is judged to be unqualified; and if the area m to be measured is larger than the continuous area n, removing the area to be measured with the minimum number of pixel points, and if m = m-1, until m = n.
6. The line sequence identification and detection method of claim 1, wherein before the plurality of regions to be detected are sequenced in the image to be detected, each region to be detected is subjected to deviation rectification, and the method comprises the following steps:
connecting any two pixel points with the distance larger than a preset value in the region to be detected, and calculating the slope of the connection to obtain the slope range of the region to be detected;
judging a slope median value in the slope range;
and rotating the whole area to be measured until the slope median rotates to 0.
7. The line sequence identification and detection method according to claim 6, wherein when the plurality of regions to be detected are sequenced along the sequence in the image to be detected, the rotated regions to be detected are sequenced into 1 to m and m to 1 according to the Y axis of the image, the regions to be detected are respectively compared with the corresponding continuous regions according to 1 to m and m to 1, and if the color of the corresponding region to be detected in one sequence is the same as that of the continuous regions, the cable line sequence is judged to be qualified.
8. The line sequence identification detection method of claim 6, wherein the predetermined value is at least twice the number of pixels occupied by the width of the wire in the cable.
9. The line sequence identification and detection method of claim 6, wherein when the whole region to be detected is rotated, the rotation point is a pixel point with the minimum coordinate x + y in the region to be detected.
10. A line sequence identification detection system, comprising:
the system comprises a conveying assembly, a background plate, a camera, a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor is electrically connected with the camera, the conveying assembly conveys a cable to be tested, the camera takes a picture of the cable to be tested when the cable to be tested moves to the background plate, and the processor executes the computer program to realize the method as claimed in any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210453187.5A CN114743086A (en) | 2022-04-24 | 2022-04-24 | Line sequence identification detection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210453187.5A CN114743086A (en) | 2022-04-24 | 2022-04-24 | Line sequence identification detection method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114743086A true CN114743086A (en) | 2022-07-12 |
Family
ID=82284234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210453187.5A Withdrawn CN114743086A (en) | 2022-04-24 | 2022-04-24 | Line sequence identification detection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114743086A (en) |
-
2022
- 2022-04-24 CN CN202210453187.5A patent/CN114743086A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115311301B (en) | PCB welding spot defect detection method | |
CN111047615B (en) | Image-based straight line detection method and device and electronic equipment | |
CN111598913A (en) | Image segmentation method and system based on robot vision | |
CN107967679B (en) | Method for automatically selecting positioning core based on vector graph of PCB product | |
CN115775244A (en) | Coil winding detection method and device, electronic equipment and storage medium | |
CN115496794A (en) | Concrete crack width calculation method and system, computer device and storage medium | |
CN113781508B (en) | She Xingkong image contour line extraction and segmentation method, system, equipment and storage medium | |
CN114743086A (en) | Line sequence identification detection method and system | |
CN112565615B (en) | Method and device for determining trigger point of flying shooting | |
CN116797604B (en) | Glass insulator defect identification method, device, equipment and medium | |
JP5924272B2 (en) | Wire state inspection method and wire state inspection device | |
CN116993654B (en) | Camera module defect detection method, device, equipment, storage medium and product | |
CN117911332A (en) | Method for identifying burrs of crimping pipe | |
CN115830027B (en) | Machine vision-based automobile wire harness cladding defect detection method | |
CN115908999B (en) | Method for detecting rust of top hardware fitting of distribution pole tower, medium and edge terminal equipment | |
CN111986245A (en) | Depth information evaluation method and device, electronic equipment and storage medium | |
CN113643296B (en) | Method and device for detecting assembly quality of inductance element, electronic equipment and storage medium | |
Melnyk et al. | PCB open, short and shift defects detection by logical comparison of mask images | |
CN112150553A (en) | Calibration method and device for vehicle-mounted camera | |
JP2019007787A (en) | Inspection device and inspection method | |
CN118052861B (en) | Zero plane acquisition method, system, medium and electronic equipment | |
CN117372426B (en) | Rigid PCB metal hole copper-embedded structure visual detection system | |
JP4845934B2 (en) | Electric wire terminal inspection device | |
CN117593302B (en) | Defective part tracing method and system | |
JP6911442B2 (en) | Inspection equipment and inspection method |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220712 |