Vision-Based Reconstruction of Electrical Schematics from Printed Circuit Board Photographs
Reverse engineering of printed circuit boards is still largely manual when original computer-aided design documentation is unavailable. This paper presents a semi-automatic vision-based pipeline that prepares an editable KiCad schematic draft for use in an Electronic Design Automation (EDA) workflow from paired TOP and BOTTOM board images. The method combines color-profile estimation, pad and through-hole detection, trace segmentation, optical character recognition, component inference, an explicit evidence graph and schematic export with drawn wires. A separate readability step aligns symbols to a grid and reroutes the reconstructed nets with orthogonal wires; it does not change the reconstructed netlist. The primary quantitative evaluation used twelve synthetic KiCad fixtures and three solver configurations: the default sequential pipeline, an opt-in global component solver and an opt-in probabilistic contact solver. These fixtures provide controlled regression cases and are complemented by a small exploratory acquisition trial on real photographed boards. All configurations completed all runs and passed the export round-trip validation without falling back to label-only connectivity. This round-trip check confirms consistency between the internal reconstruction and the exported schematic, but it is reported separately from electrical correctness against the KiCad reference design. The stricter reconstruction-quality criterion still failed on four stress cases involving repeated component chains, long meandering variable-width traces, circular distractors near pads and two-sided transistor layouts. The probabilistic contact solver was therefore kept as an opt-in diagnostic mode rather than enabled by default; it reduced the global pin-to-pin netlist edit distance from 642 to 525 while preserving schematic export checks. The real-board trial indicates that pad and hole detection can transfer to simple photographs, with trace extraction remaining sensitive to uncontrolled illumination and weak copper contrast. The results support the use of the system as a human-in-the-loop reconstruction assistant and identify component grouping, trace-contact reasoning, real-photograph benchmarking and safe missing-edge activation as the main remaining research problems.
Authors
- Kamil Maliński (ORCID: https://orcid.org/0000-0003-2589-3776)
- Krzysztof Okarma (ORCID: https://orcid.org/0000-0002-6721-3241)
Institutions
- West Pomeranian University of Technology in Szczecin (PL)
Publication Details
- Journal
- Electronics
- Published
- 2026-07-15
- DOI
- https://doi.org/10.3390/electronics15143125
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00