Skip to content

NBioBSP module for Ruby to device Nitgen Hamster III.

License

Notifications You must be signed in to change notification settings

xxpauloxx/ruby-nbiobsp

Repository files navigation

NBioBSP Module for Ruby

Digital fingerprint reader module for Ruby using Nitgen device. Install the driver that is the "driver" directory.

git clone https://github.com/paulopinda/ruby-nbiobsp.git
cd ruby-nbiobsp
ruby extconf.rb

Edit Makefile in line "ldflags" and add flag "-lNBioBSP".

make
ruby test.rb

Simple code

require './nbiobsp'

nbio = NBioBSP.new
nbio.init

puts "Insert the first fingerprint: "
fir1 = nbio.capture 4000

puts "Insert the second fingerprint: "
fir2 = nbio.capture 4000

is_same = nbio.match(fir1, fir2)
if is_same == true
	puts "OK!"
else
	puts "NOK!"
end

nbio.close

About

NBioBSP module for Ruby to device Nitgen Hamster III.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published