Breaks down a ANSI INCITS 378-2004 Finger Minutiae Format
Supports go versions > 1.12.1. To install add this line to your go.mod
file
github.com/yombu360/ANSI-378-Decoder
-
Get Record headers
RecordHeaders(fmd []byte) (*RecordHeader, error)
Takes in a
fmd
byte array which is an array of bytes and returns the address ofRecordHeader
The following headers are returned
type RecordHeader struct { FormatIdentifier string VersionNumber string RecordLength uint16 CBEFFOwner uint16 CBEFFType uint16 EquipmentCompliance uint16 EquipmentID uint16 ImageSizeX uint16 ImageSizeY uint16 ImageResolutionX uint16 ImageResolutionY uint16 Views uint8 Reserved byte }
-
Get View Data
ViewRecords(fmd []byte, views uint8) ([]ViewRecord, error)
Takes in a
fmd
byte array which is an array of bytes andviews
(Can be obtained from record header) and returns an array ofViewRecords