# Example pseudocode – not real SourceAFIS API from sourceafis import FingerprintTemplate, Matcher
Raw fingerprint images are often noisy, dry, or wet. sfg demo fingerprint software source code
or the AS608. While the exact source code for the "SFGDemo.exe" program is not publicly available, you can achieve the same functionality (enrolling, searching, and deleting fingerprints) using open-source libraries. Arduino (C++) Example # Example pseudocode – not real SourceAFIS API
int SFG_CompareTemplates(SFG_Template *t1, SFG_Template *t2) int matched_points = 0; // Align the two minutiae sets (rotation and translation compensation) // Iterate and count overlapping minutiae within tolerance radius // Return similarity score (0-100) return score; SFG_Template *t2) int matched_points = 0
The demo’s matching function computes a similarity score. A score above a threshold (e.g., 40) indicates a match.
The most common way to interact with these sensors is via the Adafruit Fingerprint Sensor Library on GitHub.