Convert from SDK template to FMD / FID

General information about Neurotechnology and its software

Convert from SDK template to FMD / FID

Postby yaramohamed78 » Jul 18, 2018 11:23

I need to convert from the template of the SDK to FMD-Ansi template
when i tried to convert to FM that what i received
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<fmr:FingerMinutia xmlns:cmn="http://standards.iso.org/iso-iec/19794/-1/ed-2/amd/2" xmlns:fmr="http://standards.iso.org/iso-iec/19794/-2/ed-2/amd/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.iso.org/isoiec/19794/-2/ed-2/amd/2 19794-2_ed2_amd2.xsd">
<fmr:Version>
<cmn:Major>3</cmn:Major>

<cmn:Minor>0</cmn:Minor>
</fmr:Version>

<fmr:RepresentationList>
<fmr:Representation>
<fmr:CaptureDevice>
<fmr:DeviceID>
<cmn:Organization>0</cmn:Organization>

<cmn:Identifier>0</cmn:Identifier>
</fmr:DeviceID>

<fmr:ScannerXSpatialSamplingRate>
<fmr:SamplesPerUnit>0</fmr:SamplesPerUnit>

<fmr:UnitDimension>Cm</fmr:UnitDimension>
</fmr:ScannerXSpatialSamplingRate>

<fmr:ScannerYSpatialSamplingRate>
<fmr:SamplesPerUnit>0</fmr:SamplesPerUnit>

........

However i need the output to be like something like this
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><Fid><Bytes>Rk1SACAyMAABggAz/v8AAAFlAYgAxADEAQAAAFY7QOUAiZZdQNEA84NdQPYBDoVbgK4A4YJagPYA4I1aQN0BAYJZgOUAwo1XQRMAxZJWQREAFD9VQRYAozxUQIMAoApSgHsAaG1QgKoAXqVQgEQAxoFLQMUA4IdLQL8AmktHgEEAtB5GQF8A7IlGgMsA84FGQN0BB4NGQMUBFShGQK8BNnxGgEsASxdFQLQAy4tEQI8A7StEgI4A+ydEQIMBAS9DgCsAoR9CgIkA54VBQEIAjhpAQFYA5ItAQEgA7SxAQLAAGlo+QEUAV248QGUAinU8gKQBE3Q8QHcA5ow6gMkBHSg6QCgAmnc3gEUAXW42AEgA2yI1AFEA4YczAFcA6ycyAH8ADgIxAEgA0HoxAFYANm0xAGMBDjIuAD4A430tAH8BETMtAJcAFgAtAQMBEYssACkAuRssAJQA0YcsAC4AjR4rAHkBGYkqATEAc5spAF0BDjopAG4BGzMpAEYA4x4oAAA=</Bytes><Format>1769473</Format><Version>1.0.0</Version></Fid>


How can i reach this output ?
Thank a lot in advance.
yaramohamed78
 
Posts: 1
Joined: Jul 18, 2018 11:18

Re: Convert from SDK template to FMD / FID

Postby MartynasV » Jul 18, 2018 13:27

yaramohamed78 wrote:I need to convert from the template of the SDK to FMD-Ansi template
when i tried to convert to FM that what i received
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<fmr:FingerMinutia xmlns:cmn="http://standards.iso.org/iso-iec/19794/-1/ed-2/amd/2" xmlns:fmr="http://standards.iso.org/iso-iec/19794/-2/ed-2/amd/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.iso.org/isoiec/19794/-2/ed-2/amd/2 19794-2_ed2_amd2.xsd">
<fmr:Version>
<cmn:Major>3</cmn:Major>

<cmn:Minor>0</cmn:Minor>
</fmr:Version>

<fmr:RepresentationList>
<fmr:Representation>
<fmr:CaptureDevice>
<fmr:DeviceID>
<cmn:Organization>0</cmn:Organization>

<cmn:Identifier>0</cmn:Identifier>
</fmr:DeviceID>

<fmr:ScannerXSpatialSamplingRate>
<fmr:SamplesPerUnit>0</fmr:SamplesPerUnit>

<fmr:UnitDimension>Cm</fmr:UnitDimension>
</fmr:ScannerXSpatialSamplingRate>

<fmr:ScannerYSpatialSamplingRate>
<fmr:SamplesPerUnit>0</fmr:SamplesPerUnit>

........

However i need the output to be like something like this
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><Fid><Bytes>Rk1SACAyMAABggAz/v8AAAFlAYgAxADEAQAAAFY7QOUAiZZdQNEA84NdQPYBDoVbgK4A4YJagPYA4I1aQN0BAYJZgOUAwo1XQRMAxZJWQREAFD9VQRYAozxUQIMAoApSgHsAaG1QgKoAXqVQgEQAxoFLQMUA4IdLQL8AmktHgEEAtB5GQF8A7IlGgMsA84FGQN0BB4NGQMUBFShGQK8BNnxGgEsASxdFQLQAy4tEQI8A7StEgI4A+ydEQIMBAS9DgCsAoR9CgIkA54VBQEIAjhpAQFYA5ItAQEgA7SxAQLAAGlo+QEUAV248QGUAinU8gKQBE3Q8QHcA5ow6gMkBHSg6QCgAmnc3gEUAXW42AEgA2yI1AFEA4YczAFcA6ycyAH8ADgIxAEgA0HoxAFYANm0xAGMBDjIuAD4A430tAH8BETMtAJcAFgAtAQMBEYssACkAuRssAJQA0YcsAC4AjR4rAHkBGYkqATEAc5spAF0BDjopAG4BGzMpAEYA4x4oAAA=</Bytes><Format>1769473</Format><Version>1.0.0</Version></Fid>


How can i reach this output ?
Thank a lot in advance.

Hello yaramohamed78,

If you want to convert from our NTemplate to ISO FMR, then use "SDK\Tutorials\BiometricStandards\CS\NTemplateToFMRecordCS" tutorial. In it you can choose whether save it in XML encoding or binary and as I see you chose to save in XML. How XML looks is specified in ISO format, so it is how it saved. The required output contains bytes saved what is seems in Base64(if I’m not mistaken), we don’t save like that, so you will have to do it yourself. NTemplate -> FMR in binary format -> Base64 string -> string saved in XML file. For first bolded part use our tutorial, for following parts you should find standard or some 3rd party libraries.
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 390
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 2 guests

cron