Skip to the content
2 layersFilter, the printed circuit board in 3D

Automatic PCB Analysis and Reverse Engineering

Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
7
Pads
18
Tracks, vias
40, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Jul 2026
Updated
26 Jul 2026

Overview

Filter is an open-source printed circuit board by KamMalinski, from the KamMalinski/PRISM repository on GitHub, published under the AGPL-3.0 licence. It is a 2-layer board with 7 parts on 7 nets, routed with 40 tracks and 0 vias.

Its parts include 2 capacitors, 2 connectors, 2 inductors and 1 resistor.

README

README.md

PRISM logo

PRISM

PCB Recognition and Intelligent Schematic Mapping

PRISM reconstructs an editable KiCad schematic from aligned images of the top and bottom sides of a PCB. It combines image processing, pad and trace detection, OCR-assisted component recognition, connectivity analysis, manual correction tools, and schematic optimization in one desktop application.

PRISM is currently alpha software. Generated connectivity and component assignments must be reviewed before they are used for manufacturing, servicing, or safety-critical work.

Features

  • guided import of TOP and BOTTOM PCB images;
  • automatic or manually sampled solder-mask and copper colors;
  • board alignment, pad pairing, trace detection, and net reconstruction;
  • OCR-assisted labels and component candidates;
  • interactive correction editor for pads, traces, pairs, OCR, and components;
  • text netlist and KiCad schematic export;
  • optional KiCad CLI validation and schematic optimization;
  • native desktop builds for Windows, macOS, and Linux.

Requirements

  • Python 3.11 or newer when running from source;
  • Tk 8.6 or newer;
  • Tesseract OCR for OCR features;
  • KiCad with kicad-cli for round-trip validation and optimized previews.

PRISM searches PATH first and then conventional installation locations for the current operating system. Tesseract can also be selected manually in the interface.

On Debian or Ubuntu, install the native GUI and OpenCV runtime libraries before running from source or building:

bash
sudo apt-get install python3-venv python3-tk libgl1 libglib2.0-0

Run From Source

Create and activate a virtual environment, then install the project:

bash
python -m venv .venv

Windows PowerShell:

powershell
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
prism

macOS and Linux:

bash
source .venv/bin/activate
python -m pip install -r requirements.txt
prism

Windows users can alternatively run .\run.ps1.

Build Native Packages

PyInstaller creates native applications and does not cross-compile. Run the matching script on each target operating system:

powershell
# Windows
.\scripts\build\build_windows.ps1
bash
# macOS
bash scripts/build/build_macos.sh

# Linux
bash scripts/build/build_linux.sh

The scripts create an isolated .venv-build environment and use the shared configuration in scripts/build/package.py.

PlatformOutput
Windowsdist/PRISM/PRISM.exe
macOSdist/PRISM.app
Linuxdist/PRISM/PRISM

Windows and Linux use PyInstaller's onedir layout. Distribute the complete dist/PRISM directory, not only the executable. The macOS application is unsigned; public releases should be code-signed and notarized by the release owner.

Basic Workflow

  1. Select images of the top and bottom PCB sides.
  2. Confirm automatic color detection or collect color samples manually.
  3. Run the analysis.
  4. Review detected geometry and connectivity in the correction editor.
  5. Recalculate after corrections and inspect the generated netlist.
  6. Open the result directory and validate the KiCad schematic.

Generated files are written under ~/PRISM/results by default. Set the PRISM_OUTPUT_DIR environment variable to use a different location. A local results/ directory is also excluded from version control.

Dataset

Dataset/ contains twelve PCB examples with TOP/BOTTOM images and reference KiCad projects. It is intended for repeatable development and evaluation, not as a formal train/test split.

Reproducible Evaluation

evaluation/ contains the versioned reference annotations and English-language tools for synthetic regression tests and ablation studies. A baseline run is started from the repository root with:

bash
python evaluation/run_evaluation.py

The six supported ablation configurations can be executed with:

bash
python evaluation/run_ablations.py

The tools generate machine-readable JSON reports, compact Markdown summaries, and a LaTeX ablation table under evaluation/results/. See the evaluation guide for sample selection, dependency requirements, command-line options, report interpretation, and the exact scope of the synthetic results. These tests exercise controlled KiCad-derived board images; they do not validate PRISM on photographs of physical PCBs.

Project Structure

text
.
|-- Dataset/                         Test images and reference KiCad projects
|-- evaluation/                      Synthetic evaluation, ablations, and reference annotations
|-- scripts/build/                   Native build entry points and shared build logic
|-- src/schematic_generator/
|   |-- assets/                      Application and executable icons
|   |-- correction_editor/           Manual reconstruction editor
|   |-- detection/                   Pad, trace, plane, and pair detection
|   |-- diagnostics/                 Diagnostic reports
|   |-- geometry/                    Alignment and rectification
|   |-- gui/                         Main desktop workflow
|   |-- kicad/                       KiCad serialization and routing
|   |-- netlist/                     Connectivity and component inference
|   |-- schematic/                   Validation and optimization
|   |-- platform_support.py          Operating-system integration
|   `-- __main__.py                  Application entry point
|-- pyproject.toml                  Package metadata and runtime dependencies
|-- requirements-build.txt          Build-only dependencies
`-- requirements.txt                Editable development installation

Automated Builds

The GitHub Actions workflow in .github/workflows/build.yml runs smoke tests and creates Windows, macOS, and Linux artifacts using the same scripts as local builds.

Contributing

Keep platform-independent behavior in the application modules. Operating-system differences belong in platform_support.py, while packaging differences belong in scripts/build/package.py. New detection or reconstruction behavior should be checked against multiple samples from Dataset/.

License

No project license has been selected yet. Add a LICENSE file before presenting PRISM as open-source software or accepting external contributions.

Parts

7
QtyValueFootprintReferences
1100RResistor_THT:R_Axial_Power_L20.0mm_W6.4mm_P25.40mmR1
120mFCapacitor_THT:CP_Radial_Tantal_D8.0mm_P5.00mmC1
120nHInductor_THT:L_Axial_L20.0mm_D8.0mm_P7.62mm_VerticalL1
1330mHInductor_THT:L_Axial_L29.9mm_D14.0mm_P38.00mm_Horizontal_Vishay_IHA-105L2
1470pFCapacitor_THT:C_Rect_L9.0mm_W4.9mm_P7.50mm_MKTC2
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ2
1Conn_01x04Connector_Wire:SolderWire-0.5sqmm_1x04_P4.8mm_D0.9mm_OD2.3mmJ1

More from KamMalinski/PRISM

10
  • 2 layersElements, the printed circuit board in 3D

    Elements

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    20 parts7AGPL-3.0
  • 2 layersCascade, the printed circuit board in 3D

    Cascade

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    19 parts7AGPL-3.0
  • 2 layersConnector, the printed circuit board in 3D

    Connector

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    6 parts7AGPL-3.0
  • 2 layersCrossover, the printed circuit board in 3D

    Crossover

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    6 parts7AGPL-3.0
  • 2 layersTransistors, the printed circuit board in 3D

    Transistors

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    5 parts7AGPL-3.0
  • 2 layersDivider, the printed circuit board in 3D

    Divider

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    4 parts7AGPL-3.0
  • 2 layersFloating, the printed circuit board in 3D

    Floating

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    4 parts7AGPL-3.0
  • 2 layersGroundplane, the printed circuit board in 3D

    Groundplane

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    4 parts7AGPL-3.0
  • 2 layersRound, the printed circuit board in 3D

    Round

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    4 parts7AGPL-3.0
  • 2 layersMeander, the printed circuit board in 3D

    Meander

    KamMalinski/PRISM

    Automatic PCB Analysis and Reverse Engineering

    3 parts7AGPL-3.0

Similar boards

  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

    STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    7 parts1kGPL-3.0
  • 2 layersRj45 breakout, the printed circuit board in 3D

    Rj45 breakout

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    7 parts990GPL-3.0

Questions

What parts does the Filter use?

7 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Filter KiCad files?

From the KamMalinski/PRISM repository on GitHub, at the commit this page was made from: the board is Dataset/Filter/Filter/Filter.kicad_pcb and its schematic Dataset/Cascade/Cascade/Cascade.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Filter design in my own project?

Its repository publishes it under the AGPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).