# Quality Control of Cable Mounting

**URL:** <https://forum.opencv.org/t/quality-control-of-cable-mounting/11984>\
**Category:** Uncategorized\
**Created:** [February 13, 2023, 1:30pm UTC](https://forum.opencv.org/t/quality-control-of-cable-mounting/11984 "2023-02-13T13:30:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGFqwe812](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AGFqwe812](https://forum.opencv.org/u/AGFqwe812)\
**Post date:** [February 13, 2023, 1:30pm UTC](https://forum.opencv.org/t/quality-control-of-cable-mounting/11984/1 "2023-02-13T13:30:37Z")

</div>

I want to do quality control on the pictures I added below.  
Which method will be suitable for this?  
OK =\> blue-brown-black-white

Test images =\> [Link](https://drive.google.com/drive/folders/1pnyiln5cbCvF838iuoLs-lJMykYhlbsk?usp=share_link)

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2023, 1:48pm UTC](https://forum.opencv.org/t/quality-control-of-cable-mounting/11984/2 "2023-02-13T13:48:18Z")

</div>

it’ll get much easier, if you can define, what “quality control” means here…  
what are you looking for, exactly, in those images ?

also, please rather put images _here_, not on a ggl drive  
(where they will expire, and render this question useless), thank you

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [February 13, 2023, 1:56pm UTC](https://forum.opencv.org/t/quality-control-of-cable-mounting/11984/3 "2023-02-13T13:56:02Z")

</div>

automated optical inspection?

using _a thumbnail of_ a snapshot from a mobile phone pointed at the thing arbitrarily, instead of industrial standard practices?

this is a “hard” problem because your scene has variability you didn’t nail down.

even if you locate the PCB, which is doable with feature matching and homography, you still have the wires going any which way.

you will need a picture with a lot better illumination. more resolution would also help.

I can imagine that if you had registered the PCB to its model, you could look for non-pcb colored pixels near each pad, and take that to be the wire insulation’s color.

---

<div class="post-metadata">

**Author:** ![AGFqwe812](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AGFqwe812](https://forum.opencv.org/u/AGFqwe812)\
**Post date:** [February 13, 2023, 1:58pm UTC](https://forum.opencv.org/t/quality-control-of-cable-mounting/11984/4 "2023-02-13T13:58:56Z")

</div>

Cables can sometimes be soldered incorrectly.  
I want to detect incorrect cable connections.
