How sathishcr777/pcb-image-processing works
This is an industrial PCB inspection and metrology platform: a camera client submits board images to a FastAPI service, which aligns the image, detects 2D and depth defects, computes quality and measurements, and returns annotated results while recording an audit trail. The README also documents CAD-based ROI ingestion, photometric inspection, solder profiling, X-ray analysis, and IPC-CFX telemetry. The sampled server excerpt does not establish all runtime dispatch paths, so uncertain links to those engines are dashed and uncited.
Main entry points: main.py REST Service · capture_and_send.py Camera Client · app.js Web Dashboard · detector_depth.py Depth Inspection
Components 17
Image Capture
- Camera Client
client/capture_and_send.py
Inspection Service
- REST Service
server/main.py - Web Dashboard
server/static/app.js
Inspection Engines
- Image Alignment
server/pipeline/aligner.py - 2D Defect Detection
server/pipeline/detector_2d.py - Depth Inspection
server/pipeline/detector_depth.py - Substrate Leveling
server/pipeline/substrate_leveler.py - IPC Metrology
server/pipeline/metrology_engine.py - CAD ROI Ingestion
server/pipeline/cad_parser.py - Photometric Stereo
server/pipeline/photometric_stereo.py - Solder Profiling
server/pipeline/solder_profiler.py - X-Ray Inspection
server/pipeline/xray_engine.py
Quality & Traceability
- Health & Verdict
server/pipeline/health_index.py - Result Visualization
server/pipeline/visualizer.py - CFX Telemetry
server/pipeline/cfx_dispatcher.py - Audit Log
server/audit/logger.py
Other components
- Line Operator
Connections 17
- Line Operator → Camera Client: captures board
- Camera Client → REST Service: submits image
- Line Operator → Web Dashboard: views results
- Web Dashboard → REST Service: requests API
- REST Service → Image Alignment: aligns image
server/main.py - REST Service → 2D Defect Detection: detects defects
server/main.py - REST Service → Depth Inspection: checks depth
server/main.py - Depth Inspection → Substrate Leveling: levels depth
server/pipeline/detector_depth.py - REST Service → IPC Metrology: measures components
server/main.py - REST Service → CAD ROI Ingestion: imports centroids
server/main.py - REST Service → Photometric Stereo: runs stereo
server/main.py - REST Service → Solder Profiling: profiles solder
server/main.py - REST Service → X-Ray Inspection: inspects X-ray
server/main.py - REST Service → Health & Verdict: computes verdict
server/main.py - REST Service → Result Visualization: renders overlay
server/main.py - REST Service → Audit Log: writes record
server/main.py - REST Service → CFX Telemetry: dispatches events
server/main.py