PHP code example of jaschweder / secugen

1. Go to this page and download the library: Download jaschweder/secugen library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jaschweder / secugen example snippets


use Jaschweder\FingerprintImage\Image;
use Jaschweder\FingerprintImage\Processor;
use Jaschweder\FingerprintImage\Format;

$image = new Image;
$processor = new Processor($image);

// Normal JPEG file
$image->load(__DIR__ . '/tests/mocks/normal.jpg');
$processor->run();

// HEX file
$image->load(__DIR__ . '/tests/mocks/hex.txt', Format::HEX);
$processor->run();

$tmp = __DIR__ . '/.temp';
if (!file_exists($tmp)) {
    mkdir($tmp);
}

$image->save(__DIR__ . '/.temp/output.jpg');