Git Product home page Git Product logo

fingerlprint's Introduction

FINGER PRINT TOOLS FOR ERLANG

OVERVIEW
~~~~~~~~
The port driver makes a comparison between 2 FMD's for check if match or not.
Before start, ensure that in you environment system exists the nexts paths:


	ERL_ROOT 	 = /usr/local/lib/erlang
	ISAMPLERFLAGSUaU = /opt/DigitalPersona/UareUSDK/Linux/Samples/UareUSample/
	IFLAGSUaU 	 = /opt/DigitalPersona/UareUSDK/Include/
	LFLAGSUaU 	 = /opt/DigitalPersona/UareUSDK/Linux/lib/x86


BUILDING
~~~~~~~~
To build the port driver and shared object:	

	$ make lib=fingerlprint

The param lib is for naming the port driver shared object (.so)
All c_src & src code must be compiled and a lib directory must contain a fingerlprint.so,
this is the shared object to communicate erlang and C


HOW TO USE AND IMPLEMENT
~~~~~~~~~~~~~~~~~~~~~~~~
Now we are available to start and test:
NOTE: You must got any valid FMD to send in the port driver, a FMD is a binary term in erlang
To start application:

	$ make demo

An erlang shell must be opened, now type the next line to ensure that fingerlprint is started:

	> application:which_applications().
	[{fingerlprint,"Finger Print Tools","0.2"},
	..... % skip output

Now just send two FMD's in the port and wait for the respone, example:

	> FMDx = <<.....>>
	> FMDy = <<.....>>
	> fingerlprint:compare([FMDx, FMDy]).
	.... % skip output

There are four possibles responses:
	
	1.- when comparison match: 		{ok, {access, 'YES'}}
	2.- when comparison not match:		{ok, {access, 'NO'}}
	3.- when cannot allocate memmory:	{ok, {error, 'Cannot allocate memmory'}}
	4.- when comparison fails:		{ok, {error, 'UNKNOWN', Error}} 


DISTRIBUTED
~~~~~~~~~~~
If you want call the erlang port driver fingerlprint from another node, just start it on a valid nodename,
sets the same cookie and call the function with a simple rpc.


AUTHOR
~~~~~~
Jorge Garrido <[email protected]>

fingerlprint's People

Contributors

zgbjgg avatar thehover avatar

Watchers

James Cloos avatar  avatar Hurakann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.