I am trying to develop an application to capture fingerprints with the device U.are.U 5300 and its SDK of DigitalPersona
in C #, to compress in WSQ
format.
What happens is that I need a requirement that has the following characteristics: 512 x 512 of dimension, dpi 500 and bpp 8.
The following is the event of a delegate in which the input parameter is the object of the capture. Until the conversion to the WSQ format all good, dpi and bpp all good.
By default when I get the dimensions, by default vIsoFid.Views [0] .Width returns 400 and in vIsoFid.Views [0] .Height 500 and when I modify it to 512, 512 gives me an error of out of rank, I do not know if someone has worked with this type of device and can give me a hand.
void CaptureCallback_On_Captured(CaptureResult captura)
{
if (captura.Quality == Constants.CaptureQuality.DP_QUALITY_GOOD)
{
DPUruNet.Compression.Start();
DPUruNet.Compression.SetWsqBitrate(100, 0);
Fid vIsoFid = captura.Data;
byte[] vCompresionRaw = DPUruNet.Compression.CompressRaw(vIsoFid.Views[0].Width, vIsoFid.Views[0].Height,
500, 8, vIsoFid.Views[0].RawImage, CompressionAlgorithm.COMPRESSION_WSQ_NIST);
File.WriteAllBytes("ArchivoWSQ.wsq", vCompresionRaw);
}
}