Categorygithub.com/flannel-dev-lab/ANSI-378-Decoder
repositorypackage
0.0.16
Repository: https://github.com/flannel-dev-lab/ansi-378-decoder.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Go Report Card

ANSI-378 Decoder

Breaks down a ANSI INCITS 378-2004 Finger Minutiae Format

Information

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 of RecordHeader

    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 and views (Can be obtained from record header) and returns an array of ViewRecords