hidglobal / digitalpersona-devices

DigitalPersona Security Devices support library
https://hidglobal.github.io/digitalpersona-devices/index.html
MIT License
64 stars 41 forks source link

Convert SampleFormat Intermediate to PngImg or PngImg to Intermediate #49

Closed rangerisrael closed 11 months ago

rangerisrael commented 11 months ago

sir @a-bronx it's possible to convert PNG Image to Intermediate sample format or Intermediate to Png Image Format?

a-bronx commented 11 months ago

"Intermediate -> PNG" is impossible in principle, because in the Intermediate format all the original image information is lost, only a set of fingerprint features is stored.

"PNG -> Intermediate" requires a call to the DigitalPersona Fingerprint Engine to convert the image into a feature set. The library does not provide access to the engine, but you can get DigitalPersona SDK which allows this.

rangerisrael commented 10 months ago

@a-bronx can you give sample how I convert Png to Intermediate?

rangerisrael commented 10 months ago

@a-bronx what is encoded in Intermediate Sample Format it is base64 / Utf8 / base64 url?

a-bronx commented 10 months ago

can you give sample how I convert Png to Intermediate?

Such sample is a part of the DigitalPersona SDK, you need to obtain the SDK first.

what is encoded in Intermediate Sample Format it is base64 / Utf8 / base64 url?

A fingerprint feature set in a DigitalPersona proprietary format.

rangerisrael commented 10 months ago

can you give sample how I convert Png to Intermediate?

Such sample is a part of the DigitalPersona SDK, you need to obtain the SDK first.

what is encoded in Intermediate Sample Format it is base64 / Utf8 / base64 url?

A fingerprint feature set in a DigitalPersona proprietary format.

@a-bronx yes I already implement the sdk for digital persona at I get fingerprint image accurately, I just want to know how could convert Png Image to Intermediate

rangerisrael commented 10 months ago

image

a-bronx commented 10 months ago

I already implement the sdk for digital persona at I get fingerprint image accurately,

I do not understand what do you mean by this? DigitalPersona Fingerprint SDK is a commercial product, which contains a fingerprint engine (a native Windows dynamic library) and distributed by HID Global. If you have purchased the SDK already, then you should have samples of the code with the distributives, as well as contacth of the SDK support team which can help you.

I just want to know how could convert Png Image to Intermediate

You need to invoke the DigitalPersona Fingerprint Engine functions. You cannot do it in JavaScript, as this is a native API, and it is out of the scope of the @digitalpersona/devices library.