npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

finhance

v1.1.0

Published

Production-ready wrapper for fingerprint image enhancement using Gabor filters

Readme

finhance

A production-ready Node.js wrapper for high-performance python fingerprint image enhancement using Gabor filters.

This package allows you to integrate complex python fingerprint enhancement directly into your Node.js pipelines effortlessly, or process images from your terminal using the built-in CLI.

Requirements

Since the core enhancement engine is written in Python, you must have Python installed and available in your environment, along with the following packages:

pip install numpy opencv-python scipy

Installation

Install locally inside your Node.js project:

npm install finhance

Or run directly via npx (make sure dependencies are installed!):

npx finhance <input_path>

CLI Usage

The executable takes a file, directory, or .zip archive as input.

# Enhance a single image
npx finhance ./image.jpg --output ./results

# Recursively enhance a folder of images
npx finhance ./dataset --recursive

# Process an entire ZIP file automatically
npx finhance ./dataset.zip --format jpg

# Only flip images horizontally (no enhancement)
npx finhance ./dataset --flip-only

# Enhance AND flip images
npx finhance ./dataset --flip

# Upscale and enhance to 4k resolution
npx finhance ./image.jpg --res 4k

Options

  • --output, -o: Target output folder (Defaults to <input_dir>/finhance_output)
  • --recursive, -r: Recursively search subdirectories for images
  • --format, -f: Output image format (png or jpg)
  • --flip-only: Bypass enhancement and just flip the images horizontally
  • --flip: Applies enhancement AND flipping
  • --res: Enhance image resolution (1080p, 2k, 4k) to fix blur
  • --keep-temp: Prevent the system from cleaning up the temporary zip extraction folder

API Usage

You can seamlessly integrate finhance into your Node.js code using async/await.

const { enhance } = require('finhance');

async function processFingerprints() {
    try {
        const results = await enhance('./fingerprints.zip', {
            outputDir: './enhanced-output',
            recursive: true,
            format: 'png',
            flip: true, // enhances and flips
            res: '1080p' // upscale to 1080p
        });

        const successes = results.filter(r => r.status === 'success');
        console.log(`Processed ${successes.length} images!`);
    } catch (e) {
        console.error("Execution failed:", e.message);
    }
}

processFingerprints();

enhance(inputPath, [options])

Returns: Promise<Array> - An array of objects detailing the operation status (success or error) and output locations.

Options Object

  • outputDir (string) - Absolute or relative path to output directory
  • recursive (boolean) - Set to true to traverse subfolders (default: false)
  • format (string) - "png" or "jpg" (default: "png")
  • cleanup (boolean) - Set to false to keep temp expanded zip files (default: true)
  • flipOnly (boolean) - Set to true to ONLY flip images, ignoring enhancement.
  • flip (boolean) - Set to true to perform both enhancement and flipping.
  • res (string) - Target resolution for upscaling (e.g., '1080p', '2k', '4k').

Credits & Attribution

This npm package acts as an orchestrator wrapper around the excellent Python structural logic created by Utkarsh-Deshmukh.

The underlying Python source code is licensed under the BSD 2-Clause License. See THIRD_PARTY_LICENSES.md for the full license text.