@scandit/web-datacapture-parser 8.2.0 → 8.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/build/js/chunks/{chunk-ZMLZD7ZY.js → chunk-4DK3BNWP.js} +1 -1
  2. package/build/js/chunks/{chunk-B7Z6X4UA.js → chunk-5VWCOOH7.js} +1 -1
  3. package/build/js/chunks/{chunk-67TWVSKH.js → chunk-G2CX7USG.js} +1 -1
  4. package/build/js/chunks/chunk-SAUHHX3F.js +2 -0
  5. package/build/js/chunks/{chunk-YTLFC2ZT.js → chunk-SWYP7O36.js} +1 -1
  6. package/build/js/chunks/chunk-ZZIR2DCP.js +1 -0
  7. package/build/js/index.js +1 -1
  8. package/build/js/moduleLoader.js +1 -1
  9. package/build/js/parser/Parser.d.ts +1 -1
  10. package/build/js/parser/Parser.js +1 -1
  11. package/build/js/parser/index.js +1 -1
  12. package/build/js/parser/private/ParserInterfaceProxy.js +1 -1
  13. package/build/js/parser/private/ParserLoader.js +1 -1
  14. package/build/js/worker/ParserComponent.d.ts +1 -1
  15. package/build/js/worker/ParserComponent.js +1 -1
  16. package/build/js/worker/parser.inlineWorker.js +1 -1
  17. package/package.json +8 -6
  18. package/sdc-lib/resources/models/aus_mdl_keypoint_detection.17f1b2958a9e.model +0 -0
  19. package/sdc-lib/resources/models/barcode_classification_default.48685f5fe19b.model +0 -0
  20. package/sdc-lib/resources/models/barcode_keypoints_oned.6697cfdb9ce4.model +0 -0
  21. package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.616a59ec3a8d.model +0 -0
  22. package/sdc-lib/resources/models/barcode_localization_default.59f74a846b63.model +0 -0
  23. package/sdc-lib/resources/models/barcode_localization_dpm_default.7e4fe5631f81.model +0 -0
  24. package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.184ecbeb5b83.model +0 -0
  25. package/sdc-lib/resources/models/barcode_localization_oned_default.c547484132c1.model +0 -0
  26. package/sdc-lib/resources/models/barcode_localization_twod_default.4b64523bf755.model +0 -0
  27. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_default.5bc76b6823da.model +0 -0
  28. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.d955dfe2835e.model +0 -0
  29. package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default.d955dfe2835e.model +0 -0
  30. package/sdc-lib/resources/models/eu_dl_localization.c26fc357c7bd.model +0 -0
  31. package/sdc-lib/resources/models/id_ocr.a4a57703430a.model +0 -0
  32. package/sdc-lib/resources/models/id_outline_localization_model_kpts.b7f16ab1f44c.model +0 -0
  33. package/sdc-lib/resources/models/invalidated_id_classification_default.1cd0f5859941.model +0 -0
  34. package/sdc-lib/resources/models/mrz_line_localization.577844e2ebed.model +0 -0
  35. package/sdc-lib/resources/models/mrz_localization.77e331c44b52.model +0 -0
  36. package/sdc-lib/resources/models/ocr_barcode_semantics_default.adb845cfe44c.model +0 -0
  37. package/sdc-lib/resources/models/ocr_mrz_default.08761e1a9c3b.model +0 -0
  38. package/sdc-lib/resources/models/ocr_price_label_default.4ad5b33a61d3.model +0 -0
  39. package/sdc-lib/resources/models/price_label_localization.a8a9771e8fcc.model +0 -0
  40. package/sdc-lib/resources/models/price_localization_in_whole_label.555b33695325.model +0 -0
  41. package/sdc-lib/resources/models/text_semantics_ocr_detector.fb3a9fc4fb56.model +0 -0
  42. package/sdc-lib/resources/models/uk_dl_code_localization.c26fc357c7bd.model +0 -0
  43. package/sdc-lib/resources/models/via_id_template_database.a1a557cc0045.model +1 -0
  44. package/sdc-lib/resources/models/via_orientation_classification.19281ecdf9b6.model +0 -0
  45. package/sdc-lib/scandit-datacapture-sdk-parser-pthreads.js +1 -1
  46. package/sdc-lib/scandit-datacapture-sdk-parser-pthreads.wasm +0 -0
  47. package/sdc-lib/scandit-datacapture-sdk-parser-simd-pthreads.js +1 -1
  48. package/sdc-lib/scandit-datacapture-sdk-parser-simd-pthreads.wasm +0 -0
  49. package/sdc-lib/scandit-datacapture-sdk-parser-simd.js +1 -1
  50. package/sdc-lib/scandit-datacapture-sdk-parser-simd.wasm +0 -0
  51. package/sdc-lib/scandit-datacapture-sdk-parser.js +1 -1
  52. package/sdc-lib/scandit-datacapture-sdk-parser.wasm +0 -0
  53. package/build/js/chunks/chunk-TJVROFMF.js +0 -1
  54. package/build/js/chunks/chunk-ZDQZDQU7.js +0 -2
  55. package/sdc-lib/resources/models/barcode_classification_default.fde280355f0b.model +0 -0
  56. package/sdc-lib/resources/models/barcode_keypoints_oned.ef764d7717ba.model +0 -0
  57. package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.77afd87bb1ae.model +0 -0
  58. package/sdc-lib/resources/models/barcode_localization_default.ea245fd6454e.model +0 -0
  59. package/sdc-lib/resources/models/barcode_localization_dpm_default.313e68d94ae1.model +0 -0
  60. package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.42a9746ffe91.model +0 -0
  61. package/sdc-lib/resources/models/barcode_localization_oned_default.33db0e688e2c.model +0 -0
  62. package/sdc-lib/resources/models/barcode_localization_twod_default.547ff0613d2c.model +0 -0
  63. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_default.8c2870b758fd.model +0 -0
  64. package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.9e7b3e9f0b6c.model +0 -0
  65. package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default.9e7b3e9f0b6c.model +0 -0
  66. package/sdc-lib/resources/models/eu_dl_localization.d02cb8506d3f.model +0 -0
  67. package/sdc-lib/resources/models/id_ocr.1740d002ffbf.model +0 -0
  68. package/sdc-lib/resources/models/invalidated_id_classification_default.655732a12364.model +0 -0
  69. package/sdc-lib/resources/models/mrz_line_localization.4573c5a05b53.model +0 -0
  70. package/sdc-lib/resources/models/mrz_localization.c6b469e57923.model +0 -0
  71. package/sdc-lib/resources/models/ocr_barcode_semantics_default.b60d72805695.model +0 -0
  72. package/sdc-lib/resources/models/ocr_mrz_default.8b80192212c2.model +0 -0
  73. package/sdc-lib/resources/models/ocr_price_label_default.1d18eb896da3.model +0 -0
  74. package/sdc-lib/resources/models/price_label_localization.b1f6616d5e10.model +0 -0
  75. package/sdc-lib/resources/models/price_localization_in_whole_label.614fcbe425d2.model +0 -0
  76. package/sdc-lib/resources/models/text_semantics_ocr_detector.290bf42945e3.model +0 -0
  77. package/sdc-lib/resources/models/uk_dl_code_localization.d02cb8506d3f.model +0 -0
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-B7Z6X4UA.js';import {a}from'./chunk-XO2EOL4N.js';import {LicensedFeature}from'@scandit/web-datacapture-core/build/js/worker/index.js';var o=class n{constructor(t){this.type="parser";this.settings=new a;this.settings.dataFormat=t;}get id(){return `${this.settings.dataFormat}`}static async forFormat(t,e){let i=t,r=new n(e);if(r.parserProxy=new a$1,!await i.isFeatureSupported(LicensedFeature.Parser))throw new Error("Parser not supported by the current license");return await r.parserProxy.create(e),r}async parseStringToJson(t){return this.parserProxy.parseStringToJson(t)}async setOptions(t){return this.parserProxy.setOptions(t)}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject()}}};export{o as a};
1
+ import {a as a$1}from'./chunk-5VWCOOH7.js';import {a}from'./chunk-XO2EOL4N.js';import {LicensedFeature}from'@scandit/web-datacapture-core/build/js/worker/index.js';var o=class n{constructor(t){this.type="parser";this.settings=new a;this.settings.dataFormat=t;}get id(){return `${this.settings.dataFormat}`}static async forFormat(t,e){let i=t,r=new n(e);if(r.parserProxy=new a$1,!await i.isFeatureSupported(LicensedFeature.Parser))throw new Error("Parser not supported by the current license");return await r.parserProxy.create(e),r}async parseStringToJson(t){return this.parserProxy.parseStringToJson(t)}async setOptions(t){return this.parserProxy.setOptions(t)}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject()}}};export{o as a};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-K74I4SRW.js';import {a as a$1,b}from'./chunk-TQGBSFHQ.js';import {a as a$3}from'./chunk-ZDQZDQU7.js';import {a}from'./chunk-TJVROFMF.js';var r=class extends a$2{constructor(){super(...arguments);this.command="djinniAction";}get worker(){return a$3.worker}async parseStringToJson(t){return {}}async setOptions(t){return false}getId(){return `${this.dataFormat}`}async create(t){return this.dataFormat=t,""}};a([a$1()],r.prototype,"parseStringToJson",1),a([a$1({argumentsSerializer:t=>[JSON.stringify(t[0])]})],r.prototype,"setOptions",1),a([a$1()],r.prototype,"create",1),r=a([b("ParserInterface")],r);export{r as a};
1
+ import {a as a$2}from'./chunk-K74I4SRW.js';import {a as a$1,b}from'./chunk-TQGBSFHQ.js';import {a as a$3}from'./chunk-SAUHHX3F.js';import {a}from'./chunk-ZZIR2DCP.js';var r=class extends a$2{constructor(){super(...arguments);this.command="djinniAction";}get worker(){return a$3.worker}async parseStringToJson(t){return {}}async setOptions(t){return false}getId(){return `${this.dataFormat}`}async create(t){return this.dataFormat=t,""}};a([a$1()],r.prototype,"parseStringToJson",1),a([a$1({argumentsSerializer:t=>[JSON.stringify(t[0])]})],r.prototype,"setOptions",1),a([a$1()],r.prototype,"create",1),r=a([b("ParserInterface")],r);export{r as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-ZDQZDQU7.js';import {Logger}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function p(r){return r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"Parser",load:async a$1=>{var i,t;let e=a$1,o=a.create({libraryLocation:(i=r==null?void 0:r.libraryLocation)!=null?i:e.libraryLocation,simdSupport:e.simdSupport,threadsSupport:e.threadsSupport,verifyResponseHash:true,referredOrigin:globalThis.location.origin});await o.setLogLevel((t=a$1.logLevel)!=null?t:Logger.Level.Debug),await o.load();}}}export{p as a};
1
+ import {a}from'./chunk-SAUHHX3F.js';import {Logger}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function p(r){return r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"Parser",load:async a$1=>{var i,t;let e=a$1,o=a.create({libraryLocation:(i=r==null?void 0:r.libraryLocation)!=null?i:e.libraryLocation,simdSupport:e.simdSupport,threadsSupport:e.threadsSupport,verifyResponseHash:true,referredOrigin:globalThis.location.origin});await o.setLogLevel((t=a$1.logLevel)!=null?t:Logger.Level.Debug),await o.load();}}}export{p as a};
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-2APDEN7H.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';function o(t){let e=URL.createObjectURL(new Blob(['"use strict";(()=>{var H=(r,e)=>()=>(r&&(e=r(r=0)),e);var p,n=H(()=>{p={"scandit-datacapture-sdk-parser-pthreads.wasm":{bytes:8061966},"scandit-datacapture-sdk-parser-simd-pthreads.wasm":{bytes:7953437},"scandit-datacapture-sdk-parser.wasm":{bytes:7961298},"scandit-datacapture-sdk-parser-simd.wasm":{bytes:7852205}}});n();n();n();n();var s;(r=>{(l=>(l.Debug="debug",l.Info="info",l.Warn="warn",l.Error="error",l.Quiet="quiet"))(r.Level||(r.Level={}));let e=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),t="debug";function a(l){t=l}r.setLevel=a;function o(l,...d){if(!(e.get(t)>e.get(l)))switch(l){case"debug":{console.debug(...d);break}case"info":{console.log(...d);break}case"warn":{console.warn(...d);break}case"error":{console.error(...d);break}}}r.log=o;function i(...l){o("warn",...l)}r.warn=i;function u(...l){o("debug",...l)}r.debug=u;function c(...l){o("info",...l)}r.info=c;function m(...l){o("error",...l)}r.error=m})(s||(s={}));n();var P=class T extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,T.prototype),this.name=e.name}toString(){return`${this.name}: ${this.message}`}};n();n();n();var C={};function B(r){return[...new Uint8Array(r)].map(e=>{let t=e.toString(16);return t.length===1?`0${t}`:t}).join("")}async function*j(r){let e=r.getReader();try{for(;;){let{done:t,value:a}=await e.read();if(t)return;yield a}}finally{e.releaseLock()}}async function z(r){let e=[],t=0,a=0;for await(let i of j(r))e.push(i),t+=i.length;let o=new Uint8Array(t);for(let i of e)o.set(i,a),a+=i.length;return o.buffer}var D=(r=>(r.VALID="VALID",r.INVALID="INVALID",r.NOT_VERIFIABLE="NOT_VERIFIABLE",r))(D||{});async function N(r,e,t){if(typeof crypto.subtle.digest!="function")return s.log(s.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${t} could not be verified`),"NOT_VERIFIABLE";try{let a=r instanceof Promise?await r:r,o=await crypto.subtle.digest("SHA-256",a),i=B(o);return e==null?(s.log(s.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):i===e?(s.log(s.Level.Debug,`Data Capture library WASM integrity found at ${t} has been verified correctly.`),"VALID"):(s.log(s.Level.Warn,`The Scandit Data Capture library WASM file found at ${t} seems invalid: expected file hash doesn\'t match (received: ${i}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(a){return s.log(s.Level.Warn,"Wasm response could not be verified",a),"NOT_VERIFIABLE"}}var R=new Map([["br",4.4],["gzip",2.9],["none",1]]);function J(r){var e;let t="content-encoding";if(r==null||r.get(t)==null)return R.get("none");let a=new Set(((e=r.get(t))!=null?e:"").split(",").map(o=>o.trim()));for(let[o,i]of R)if(a.has(o))return i;return R.get("none")}function q(r){var e,t;if(r==null)return 0;let a=(e=J(r))!=null?e:1,o=Number.parseInt((t=r.get("content-length"))!=null?t:"0",10);return Number.isNaN(o)?0:Math.floor(o*a*100)/100}function Q(r){let{pathname:e}=new URL(r);for(let[t,a]of Object.entries(C))if(e.endsWith(t))return a.bytes;return 0}function w(r){C=r}var _=(r,e)=>{let t=q(e);return t===0?Q(r):t};function $(r,e,t,{onProgress:a,onError:o,onComplete:i}){if(!e.body)return[e];let u=_(r,e.headers),c=0,m=0;if(typeof TransformStream>"u")return s.warn("TransformStream is not supported in this environment. Progress tracking will be disabled."),[e];let[l,d]=t?e.body.tee():[e.body],f=l.pipeThrough(new TransformStream({async transform(g,b){try{c+=g.length,m=Number((c/u*100).toFixed(2)),u>0&&g.length>0&&m<100?a==null||a({percentage:m,loadedBytes:c,privateUri:r}):u===0&&g.length>0&&(a==null||a({percentage:null,loadedBytes:c,privateUri:r})),b.enqueue(g)}catch(h){b.error(h),o==null||o({error:h})}},flush(g){a==null||a({percentage:100,loadedBytes:c,privateUri:r}),i==null||i({percentage:100,loadedBytes:c,privateUri:r}),g.terminate()}}));return[new Response(f,{headers:new Headers(e.headers),status:e.status,statusText:e.statusText}),d]}async function v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,onComplete:o,onError:i,referredOrigin:u}){let c=await fetch(r,{referrerPolicy:"origin",referrer:u!=null?u:""});if(!c.ok)throw new Error(`HTTP status code is not ok: ${c.status}, ${c.statusText}`);let[m,l]=$(r,c,t,{onProgress:a,onError:i,onComplete:o});return l!=null&&N(z(l),e,r),m}function M({wasmURI:r,expectedHash:e,verifyResponseHash:t,progressCallback:a,successCallback:o,errorCallback:i,importObject:u,referredOrigin:c}){async function m(d){try{let f=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c}),g=await(d!=null?d:f).arrayBuffer(),b=await self.WebAssembly.instantiate(g,u);o(b.instance,b.module)}catch(f){s.log(s.Level.Error,f),s.log(s.Level.Error,`Couldn\'t instantiate Scandit SDK DataCapture library at ${r}, did you configure the path for it correctly?`),i==null||i(f)}}async function l(){let d;try{d=await v({wasmURI:r,expectedHash:e,verifyResponseHash:t,onProgress:a,referredOrigin:c});let f=await self.WebAssembly.instantiateStreaming(d,u);o(f.instance,f.module)}catch(f){s.log(s.Level.Warn,f),s.log(s.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),m((d==null?void 0:d.bodyUsed)===!0?void 0:d)}}typeof self.WebAssembly.instantiateStreaming=="function"?l():m()}async function x(r,e,t,a){return new Promise((o,i)=>{r().then(o).catch(u=>{let c=e*2;if(c>t){i(u);return}a(u),self.setTimeout(()=>{x(r,c,t,a).then(o).catch(i)},e)})})}async function A(r,e){async function t(){return importScripts(r)}try{await x(t,250,4e3,o=>{s.log(s.Level.Warn,o),s.log(s.Level.Warn,`Couldn\'t retrieve Scandit Data Capture library at ${r}, retrying...`)}),self.Module.mainScriptUrlOrBlob=r;let a=self.SDC_WASM_JS_VERSION;return a!==e&&s.log(s.Level.Warn,`The Scandit Data Capture library JS file found at ${r} seems invalid: expected version doesn\'t match (received: ${a}, expected: ${e}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(a){return s.log(s.Level.Error,a),!1}}n();var I=class{constructor(){this.promise=new Promise((r,e)=>{this.reject=e,this.resolve=r})}};n();var S;(r=>{function e(){return"8.3.0-beta.1"}r.sdkVersion=e})(S||(S={}));n();function F(r){return/^https?:\\/\\/(?:[^./]*\\.)*cdn.jsdelivr.net\\//.test(r)?{result:!0,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\\/\\/(?:[^./]*\\.)*unpkg.com\\//.test(r)?{result:!0,cdnBaseURL:"https://unpkg.com/"}:{result:!1,cdnBaseURL:""}}function U(r){let e=/@scandit\\/web-datacapture-[a-z]+/i.exec(r);return e?e[0]:null}function E(r,e,t){let a=e,o=F(a);if(o.result){let u=U(a);u!=null&&(a=`${o.cdnBaseURL}${u}@${r}/sdc-lib/`)}let i=t.replace(".wasm","");return o.result?{jsURI:`${a}${i}.js`,wasmURI:`${a}${i}.wasm`}:{jsURI:`${a}${i}.js?v=${r}`,wasmURI:`${a}${i}.wasm?v=${r}`}}n();function W(r){return typeof r=="object"&&r!=null&&r.document==null&&"addEventListener"in r&&typeof r.importScripts=="function"}n();n();n();n();n();n();var G=r=>r.result!=null&&r.error==null;function y(r,e){return{type:"djinniResult",payload:{id:r.id,className:r.className,methodName:r.methodName,instanceId:r.instanceId,result:e}}}function k(r,e){return{type:"parserLoaderResult",payload:{id:r.id,className:r.className,methodName:r.methodName,result:e}}}function K(r){try{return{type:"result",result:JSON.parse(r)}}catch(e){return{type:"error",error:e}}}var L=class{constructor(e,t){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=t,W(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),w(p)}get Module(){return this.moduleHandler.get()}setLogLevel(e){s.setLevel(e.args[0]),this.workerFunctions.postMessage(k(e,{type:"result",result:!0}))}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(k(e,{type:"result",result:!0}))}catch(t){this.workerFunctions.postMessage(k(e,{type:"error",error:t}))}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{s.log(s.Level.Error,e)}),this.workerSelf.addEventListener("messageerror",e=>{s.log(s.Level.Error,e)})}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),!0}async performDjinniAction(e){var i,u;let t;if(s.log(s.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let c=e.args[0].toString();if(this.parsers.has(c)){this.workerFunctions.postMessage(y(e,{type:"result",result:c}));return}t=this.createParser(e),s.log(s.Level.Debug,t),this.workerFunctions.postMessage(t);return}let a=this.parsers.get((i=e.instanceId)!=null?i:"");if(a==null){this.workerFunctions.postMessage(y(e,{type:"error",error:`parser is not defined: try to access instance with id ${(u=e.instanceId)!=null?u:""}`}));return}let o=a[e.methodName](...e.args);G(o)?(e.methodName.endsWith("ToJson")&&typeof o.result=="string"&&(o=K(o.result)),t=y(e,o)):t=y(e,{type:"error",error:o.error}),this.workerFunctions.postMessage(t)}async setup({libraryLocation:e,threadsSupport:t,simdSupport:a,verifyResponseHash:o,referredOrigin:i}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:u,reject:c,promise:m}=new I;this.setupPromise=m;let l=S.sdkVersion();if(l==="")throw new P({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let d=E(l,e,this.getWasmParserFileName(a,t)),{jsURI:f,wasmURI:g}=d;return this.moduleHandler.set({mainScriptUrlOrBlob:f,locateFile:h=>e+h,onMainComplete:()=>{},onRuntimeInitialized:()=>{u()},print:h=>{s.log(s.Level.Info,h)},instantiateWasm:(h,O)=>(M({importObject:h,wasmURI:g,expectedHash:this.getWasmParserExpectedHash(a,t),verifyResponseHash:o,successCallback:O,progressCallback:()=>{},referredOrigin:i}),{})}),await A(f,l)||c(`Couldn\'t retrieve Parser library at ${f}, did you configure the path for it correctly?`),m}createParser(e){var i,u;let t=this.Module.ParserInterface.create(e.args[0]);if(s.log(s.Level.Debug,`Parser:create returns ${t.type}`,t),t.type==="error")return y(e,t);let a=(u=(i=e.args[0])==null?void 0:i.toString())!=null?u:"",o=y(e,{type:"result",result:a});return this.parsers.set(a,t.result),o}getWasmParserExpectedHash(e,t){return t?e?"acb2902c6c0a75292ff83c81609075bbd92add81e1dfc44b0befc4b22ea4d5c0":"10e979457085442faa58b413b5e2c554783df4ec94409f1d91c146f1cfeb773b":e?"61e843f18a5f9869b973a8f13b93a18d80ba2939df6f30e8dbb545acd29cce5e":"2f762dc855bd8a7aff17f87ab568e081033d680478b4645a66f0199751d2b578"}getWasmParserFileName(e,t){return t?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};var sr=new L(self,{get:()=>self.Module,set:r=>{self.Module=r}});function or(r){}})();\n'],{type:"application/javascript"})),r=new Worker(e,t);return URL.revokeObjectURL(e),r}var i=class t{constructor(e){this.moduleName="Parser";this.id=0;this.loadingOptions=e;}static get worker(){var r;let e=(r=a.get("ParserWorker"))!=null?r:o({name:"ParserWorker"});return a.has("ParserWorker")||a.set("ParserWorker",e),e}static create(e){return new t(e)}async load(){var e;await this.sendMessage({id:this.id++,methodName:"load",className:"ParserLoader",args:[{libraryLocation:this.loadingOptions.libraryLocation,simdSupport:this.loadingOptions.simdSupport,threadsSupport:this.loadingOptions.threadsSupport,verifyResponseHash:this.loadingOptions.verifyResponseHash,referredOrigin:(e=this.loadingOptions.referredOrigin)!=null?e:""}]});}async setLogLevel(e){await this.sendMessage({id:this.id++,methodName:"setLogLevel",className:"ParserLoader",args:[e]});}async sendMessage(e){let r=new Deferred,n=l=>{let{data:s}=l;e.id===s.payload.id&&(s.payload.result.type==="result"?r.resolve(s.payload.result.result):r.reject(s.payload.result.error),t.worker.removeEventListener("message",n));};return t.worker.addEventListener("message",n),t.worker.postMessage(e),r.promise}};
2
+ export{i as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-TJVROFMF.js';import {Logger,DataCaptureVersion,DataCaptureError}from'@scandit/web-datacapture-core';import {getLibraryLocationURIs}from'@scandit/web-datacapture-core/build/js/private/Helper.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';import {isWorkerScope}from'@scandit/web-datacapture-core/build/js/private/utils/isWorkerScope.js';import {instantiateWebAssembly}from'@scandit/web-datacapture-core/build/js/worker/helper.js';import {setWasmMetadata}from'@scandit/web-datacapture-core/build/js/worker/helperFetch.js';import {importWasmScript}from'@scandit/web-datacapture-core/build/js/worker/importWasmScript.js';var _=s=>s.result!=null&&s.error==null;function l(s,e){return {type:"djinniResult",payload:{id:s.id,className:s.className,methodName:s.methodName,instanceId:s.instanceId,result:e}}}function m(s,e){return {type:"parserLoaderResult",payload:{id:s.id,className:s.className,methodName:s.methodName,result:e}}}function k(s){try{return {type:"result",result:JSON.parse(s)}}catch(e){return {type:"error",error:e}}}var f=class{constructor(e,r){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=r,isWorkerScope(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),setWasmMetadata(b);}get Module(){return this.moduleHandler.get()}setLogLevel(e){Logger.setLevel(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}catch(r){this.workerFunctions.postMessage(m(e,{type:"error",error:r}));}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{Logger.log(Logger.Level.Error,e);}),this.workerSelf.addEventListener("messageerror",e=>{Logger.log(Logger.Level.Error,e);});}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),true}async performDjinniAction(e){var n,i;let r;if(Logger.log(Logger.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let d=e.args[0].toString();if(this.parsers.has(d)){this.workerFunctions.postMessage(l(e,{type:"result",result:d}));return}r=this.createParser(e),Logger.log(Logger.Level.Debug,r),this.workerFunctions.postMessage(r);return}let o=this.parsers.get((n=e.instanceId)!=null?n:"");if(o==null){this.workerFunctions.postMessage(l(e,{type:"error",error:`parser is not defined: try to access instance with id ${(i=e.instanceId)!=null?i:""}`}));return}let a=o[e.methodName](...e.args);_(a)?(e.methodName.endsWith("ToJson")&&typeof a.result=="string"&&(a=k(a.result)),r=l(e,a)):r=l(e,{type:"error",error:a.error}),this.workerFunctions.postMessage(r);}async setup({libraryLocation:e,threadsSupport:r,simdSupport:o,verifyResponseHash:a,referredOrigin:n}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:i,reject:d,promise:g}=new Deferred;this.setupPromise=g;let c=DataCaptureVersion.sdkVersion();if(c==="")throw new DataCaptureError({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let M=getLibraryLocationURIs(c,e,this.getWasmParserFileName(o,r)),{jsURI:p,wasmURI:h}=M;return this.moduleHandler.set({mainScriptUrlOrBlob:p,locateFile:u=>e+u,onMainComplete:()=>{},onRuntimeInitialized:()=>{i();},print:u=>{Logger.log(Logger.Level.Info,u);},instantiateWasm:(u,R)=>(instantiateWebAssembly({importObject:u,wasmURI:h,expectedHash:this.getWasmParserExpectedHash(o,r),verifyResponseHash:a,successCallback:R,progressCallback:()=>{},referredOrigin:n}),{})}),await importWasmScript(p,c)||d(`Couldn't retrieve Parser library at ${p}, did you configure the path for it correctly?`),g}createParser(e){var n,i;let r=this.Module.ParserInterface.create(e.args[0]);if(Logger.log(Logger.Level.Debug,`Parser:create returns ${r.type}`,r),r.type==="error")return l(e,r);let o=(i=(n=e.args[0])==null?void 0:n.toString())!=null?i:"",a=l(e,{type:"result",result:o});return this.parsers.set(o,r.result),a}getWasmParserExpectedHash(e,r){return r?e?"512a5050a02f6b0c1200cbaa39e42d7998c2ba9d89f61b2f2e000d157693f56f":"11e5eb7e0bfb8cfd31713707d78ab301717ca62ae2886d7ef9eee903dc836b9f":e?"aa61486a935e1de4f1211106800a68377d90a9a8bfc78087cc5950856b719f2e":"6b1820e472a1aedb165fc22e1a6787653c906dc3a7addcd016a79a12a19fd2e7"}getWasmParserFileName(e,r){return r?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};export{f as a};
1
+ import {b}from'./chunk-ZZIR2DCP.js';import {Logger,DataCaptureVersion,DataCaptureError}from'@scandit/web-datacapture-core';import {getLibraryLocationURIs}from'@scandit/web-datacapture-core/build/js/private/Helper.js';import {Deferred}from'@scandit/web-datacapture-core/build/js/private/utils/deferred.js';import {isWorkerScope}from'@scandit/web-datacapture-core/build/js/private/utils/isWorkerScope.js';import {instantiateWebAssembly}from'@scandit/web-datacapture-core/build/js/worker/helper.js';import {setWasmMetadata}from'@scandit/web-datacapture-core/build/js/worker/helperFetch.js';import {importWasmScript}from'@scandit/web-datacapture-core/build/js/worker/importWasmScript.js';var _=s=>s.result!=null&&s.error==null;function l(s,e){return {type:"djinniResult",payload:{id:s.id,className:s.className,methodName:s.methodName,instanceId:s.instanceId,result:e}}}function m(s,e){return {type:"parserLoaderResult",payload:{id:s.id,className:s.className,methodName:s.methodName,result:e}}}function k(s){try{return {type:"result",result:JSON.parse(s)}}catch(e){return {type:"error",error:e}}}var f=class{constructor(e,r){this.parsers=new Map;this.onMessageListener=this.onMessage.bind(this);this.setupPromise=null;this.workerSelf=e,this.moduleHandler=r,isWorkerScope(e)&&(this.workerFunctions={postMessage:this.workerSelf.postMessage.bind(this.workerSelf)},this.listenToMessages()),setWasmMetadata(b);}get Module(){return this.moduleHandler.get()}setLogLevel(e){Logger.setLevel(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}async load(e){try{await this.setup(e.args[0]),this.workerFunctions.postMessage(m(e,{type:"result",result:true}));}catch(r){this.workerFunctions.postMessage(m(e,{type:"error",error:r}));}}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",e=>{Logger.log(Logger.Level.Error,e);}),this.workerSelf.addEventListener("messageerror",e=>{Logger.log(Logger.Level.Error,e);});}onMessage(e){return e.data.className==="ParserLoader"&&e.data.methodName==="load"&&this.load(e.data),e.data.className==="ParserLoader"&&e.data.methodName==="setLogLevel"&&this.setLogLevel(e.data),e.data.className==="ParserInterface"&&this.performDjinniAction(e.data),true}async performDjinniAction(e){var n,i;let r;if(Logger.log(Logger.Level.Debug,`${e.className}::${e.methodName}(`,e.args,")"),e.methodName==="create"){let d=e.args[0].toString();if(this.parsers.has(d)){this.workerFunctions.postMessage(l(e,{type:"result",result:d}));return}r=this.createParser(e),Logger.log(Logger.Level.Debug,r),this.workerFunctions.postMessage(r);return}let o=this.parsers.get((n=e.instanceId)!=null?n:"");if(o==null){this.workerFunctions.postMessage(l(e,{type:"error",error:`parser is not defined: try to access instance with id ${(i=e.instanceId)!=null?i:""}`}));return}let a=o[e.methodName](...e.args);_(a)?(e.methodName.endsWith("ToJson")&&typeof a.result=="string"&&(a=k(a.result)),r=l(e,a)):r=l(e,{type:"error",error:a.error}),this.workerFunctions.postMessage(r);}async setup({libraryLocation:e,threadsSupport:r,simdSupport:o,verifyResponseHash:a,referredOrigin:n}){if(this.setupPromise!=null)return this.setupPromise;let{resolve:i,reject:d,promise:g}=new Deferred;this.setupPromise=g;let c=DataCaptureVersion.sdkVersion();if(c==="")throw new DataCaptureError({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let M=getLibraryLocationURIs(c,e,this.getWasmParserFileName(o,r)),{jsURI:p,wasmURI:h}=M;return this.moduleHandler.set({mainScriptUrlOrBlob:p,locateFile:u=>e+u,onMainComplete:()=>{},onRuntimeInitialized:()=>{i();},print:u=>{Logger.log(Logger.Level.Info,u);},instantiateWasm:(u,R)=>(instantiateWebAssembly({importObject:u,wasmURI:h,expectedHash:this.getWasmParserExpectedHash(o,r),verifyResponseHash:a,successCallback:R,progressCallback:()=>{},referredOrigin:n}),{})}),await importWasmScript(p,c)||d(`Couldn't retrieve Parser library at ${p}, did you configure the path for it correctly?`),g}createParser(e){var n,i;let r=this.Module.ParserInterface.create(e.args[0]);if(Logger.log(Logger.Level.Debug,`Parser:create returns ${r.type}`,r),r.type==="error")return l(e,r);let o=(i=(n=e.args[0])==null?void 0:n.toString())!=null?i:"",a=l(e,{type:"result",result:o});return this.parsers.set(o,r.result),a}getWasmParserExpectedHash(e,r){return r?e?"acb2902c6c0a75292ff83c81609075bbd92add81e1dfc44b0befc4b22ea4d5c0":"10e979457085442faa58b413b5e2c554783df4ec94409f1d91c146f1cfeb773b":e?"61e843f18a5f9869b973a8f13b93a18d80ba2939df6f30e8dbb545acd29cce5e":"2f762dc855bd8a7aff17f87ab568e081033d680478b4645a66f0199751d2b578"}getWasmParserFileName(e,r){return r?e?"scandit-datacapture-sdk-parser-simd-pthreads.wasm":"scandit-datacapture-sdk-parser-pthreads.wasm":e?"scandit-datacapture-sdk-parser-simd.wasm":"scandit-datacapture-sdk-parser.wasm"}};export{f as a};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var b=(p,s,d,t)=>{for(var a=t>1?void 0:t?i(s,d):s,e=p.length-1,r;e>=0;e--)(r=p[e])&&(a=(t?r(s,d,a):r(a))||a);return t&&a&&c(s,d,a),a};var u={"scandit-datacapture-sdk-parser-pthreads.wasm":{bytes:8061966},"scandit-datacapture-sdk-parser-simd-pthreads.wasm":{bytes:7953437},"scandit-datacapture-sdk-parser.wasm":{bytes:7961298},"scandit-datacapture-sdk-parser-simd.wasm":{bytes:7852205}};export{b as a,u as b};
package/build/js/index.js CHANGED
@@ -1 +1 @@
1
- export{a as parserLoader}from'./chunks/chunk-67TWVSKH.js';export{a as ParserIssueCode}from'./chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'./chunks/chunk-ZMLZD7ZY.js';export{a as ParserDataFormat}from'./chunks/chunk-LRSHQXFM.js';
1
+ export{a as parserLoader}from'./chunks/chunk-G2CX7USG.js';export{a as ParserIssueCode}from'./chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'./chunks/chunk-4DK3BNWP.js';export{a as ParserDataFormat}from'./chunks/chunk-LRSHQXFM.js';
@@ -1 +1 @@
1
- export{a as parserLoader}from'./chunks/chunk-67TWVSKH.js';
1
+ export{a as parserLoader}from'./chunks/chunk-G2CX7USG.js';
@@ -1,5 +1,5 @@
1
1
  import { ParsedField } from './ParsedData.js';
2
- import { DataCaptureComponentJSON, DataCaptureComponent, DataCaptureContext } from '@scandit/web-datacapture-core';
2
+ import { DataCaptureComponent, DataCaptureContext, DataCaptureComponentJSON } from '@scandit/web-datacapture-core';
3
3
  import { ParserDataFormat } from './ParserDataFormat.js';
4
4
  import { ParserSettingsJSON } from './private/ParserSettings.js';
5
5
  import '@scandit/web-datacapture-core/build/js/private/Serializable';
@@ -1 +1 @@
1
- export{a as Parser}from'../chunks/chunk-ZMLZD7ZY.js';
1
+ export{a as Parser}from'../chunks/chunk-4DK3BNWP.js';
@@ -1 +1 @@
1
- export{a as ParserIssueCode}from'../chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'../chunks/chunk-ZMLZD7ZY.js';export{a as ParserDataFormat}from'../chunks/chunk-LRSHQXFM.js';
1
+ export{a as ParserIssueCode}from'../chunks/chunk-U5ZZ3UCW.js';export{a as Parser}from'../chunks/chunk-4DK3BNWP.js';export{a as ParserDataFormat}from'../chunks/chunk-LRSHQXFM.js';
@@ -1 +1 @@
1
- export{a as ParserInterfaceProxy}from'../../chunks/chunk-B7Z6X4UA.js';
1
+ export{a as ParserInterfaceProxy}from'../../chunks/chunk-5VWCOOH7.js';
@@ -1 +1 @@
1
- export{a as ParserLoader}from'../../chunks/chunk-ZDQZDQU7.js';
1
+ export{a as ParserLoader}from'../../chunks/chunk-SAUHHX3F.js';
@@ -1,4 +1,4 @@
1
- import { ParserInterfaceResultMessage, ParserLoadResult, ParserSetLogLevelResult, AugmentedWorker, ParserModule, ParserSetLogLevelAction, ParserLoadAction, ParserInterfaceActionMessage } from './proxyableWorkerRelated.js';
1
+ import { AugmentedWorker, ParserModule, ParserSetLogLevelAction, ParserLoadAction, ParserInterfaceActionMessage, ParserInterfaceResultMessage, ParserLoadResult, ParserSetLogLevelResult } from './proxyableWorkerRelated.js';
2
2
  import '../sdcParserModule-BvuGkFJ7.js';
3
3
  import '@scandit/web-datacapture-core';
4
4
  import '../parser/ParserDataFormat.js';
@@ -1 +1 @@
1
- export{a as ParserComponent}from'../chunks/chunk-YTLFC2ZT.js';
1
+ export{a as ParserComponent}from'../chunks/chunk-SWYP7O36.js';
@@ -1 +1 @@
1
- import {a}from'../chunks/chunk-YTLFC2ZT.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function s(e){}export{s as InlineWorker};
1
+ import {a}from'../chunks/chunk-SWYP7O36.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function s(e){}export{s as InlineWorker};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scandit/web-datacapture-parser",
3
- "version": "8.2.0",
3
+ "version": "8.3.0-beta.1",
4
4
  "description": "Scandit Data Capture SDK for the Web",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -88,13 +88,15 @@
88
88
  "build-dev": "NODE_ENV=debug npx tsup",
89
89
  "build-watch": "NODE_ENV=debug npx tsup --watch",
90
90
  "clean": "rm -rf build/* coverage/* .nyc_output/*",
91
- "test": "jest",
92
- "test-ci": "jest --ci",
93
- "test-ci-coverage": "jest --ci --coverage --silent"
91
+ "test": "vitest run",
92
+ "test-ci": "vitest run",
93
+ "test-ci-coverage": "vitest run --coverage",
94
+ "check": "biome check .",
95
+ "check-ci": "biome ci --diagnostic-level=error ."
94
96
  },
95
97
  "peerDependencies": {
96
- "@scandit/web-datacapture-barcode": "8.2.0",
97
- "@scandit/web-datacapture-core": "8.2.0"
98
+ "@scandit/web-datacapture-barcode": "8.3.0-beta.1",
99
+ "@scandit/web-datacapture-core": "8.3.0-beta.1"
98
100
  },
99
101
  "dependencies": {
100
102
  "@types/emscripten": "1.40.1"
@@ -0,0 +1 @@
1
+ [{"name": "driver_license:AUS:ACT:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:document_type", "box": [[0.197, 0.034], [0.612, 0.093]], "data": "DRIVER LICENSE"}, {"name": "fixed:other_#0", "box": [[0.879, 0.068], [0.976, 0.132]], "data": "ACT"}, {"name": "fixed:issuing_country", "box": [[0.089, 0.145], [0.72, 0.191]], "data": "AUSTRALIAN CAPITAL TERRITORY"}, {"name": "fixed:other_#1", "box": [[0.879, 0.14], [0.976, 0.166]], "data": "Govemment"}, {"name": "value:full_name", "box": [[0.027, 0.251], [0.289, 0.289]], "required": true}, {"name": "value:address_#0", "box": [[0.027, 0.328], [0.51, 0.366]]}, {"name": "value:address_#1", "box": [[0.027, 0.387], [0.356, 0.426]]}, {"name": "value:address_#2", "box": [[0.027, 0.443], [0.311, 0.485]]}, {"name": "id:date_of_birth", "box": [[0.024, 0.537], [0.159, 0.567]], "data": "Date of Birth"}, {"name": "value:date_of_birth", "box": [[0.173, 0.524], [0.357, 0.562]], "date_format": "%d%b%Y;locale=en", "required": true}, {"name": "id:date_of_expiry", "box": [[0.395, 0.55], [0.568, 0.584]], "data": "Licence Expires"}, {"name": "id:document_number", "box": [[0.024, 0.614], [0.154, 0.644]], "data": "Licence No."}, {"name": "value:document_number", "box": [[0.176, 0.601], [0.354, 0.639]], "required": true}, {"name": "value:date_of_expiry", "box": [[0.392, 0.601], [0.568, 0.639]], "date_format": "%d%b%Y;locale=en", "required": true}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.173, 0.678], [0.23, 0.725]]}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.024, 0.691], [0.084, 0.721]], "data": "Class"}, {"name": "id:driver_license_detailed_info.conditions", "box": [[0.022, 0.772], [0.141, 0.802]], "data": "Conditions"}, {"name": "value:driver_license_detailed_info.conditions", "box": [[0.173, 0.759], [0.195, 0.798]]}, {"name": "value:document_additional_number", "box": [[0.657, 0.631], [0.688, 0.961]]}], "image_fields": [{"name": "portrait", "box": [[0.694, 0.362], [0.975, 0.952]]}, {"name": "signature", "box": [[0.179, 0.819], [0.485, 0.956]]}]}, {"name": "driver_license:CHE:0:back", "aspect_ratio": 1.582, "text_fields": [{"name": "fixed:other_#0", "box": [[0.322, 0.07], [0.354, 0.117]], "data": "9."}, {"name": "fixed:other_#1", "box": [[0.499, 0.067], [0.548, 0.12]], "data": "10."}, {"name": "fixed:other_#2", "box": [[0.668, 0.067], [0.715, 0.12]], "data": "11."}, {"name": "fixed:other_#3", "box": [[0.84, 0.067], [0.889, 0.12]], "data": "12."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#0", "box": [[0.321, 0.132], [0.351, 0.185]], "data": "A"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#0", "box": [[0.497, 0.13], [0.649, 0.19]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#1", "box": [[0.322, 0.2], [0.348, 0.25]], "data": "B"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#1", "box": [[0.499, 0.195], [0.649, 0.254]]}, {"name": "fixed:other_#4", "box": [[0.837, 0.197], [0.889, 0.25]], "data": "121"}, {"name": "id:last_name", "box": [[0.014, 0.245], [0.101, 0.282]], "data": "1.Name"}, {"name": "id:first_name", "box": [[0.013, 0.277], [0.128, 0.319]], "data": "2.Vorname"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#2", "box": [[0.321, 0.262], [0.351, 0.314]], "data": "C"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#2", "box": [[0.499, 0.262], [0.646, 0.314]]}, {"name": "id:date_of_birth", "box": [[0.013, 0.307], [0.175, 0.352]], "data": "3.Geburtsdatum"}, {"name": "id:date_of_issue", "box": [[0.013, 0.342], [0.174, 0.382]], "data": "4a.Ausstelldatum"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#3", "box": [[0.321, 0.324], [0.367, 0.382]], "data": "D1"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#3", "box": [[0.499, 0.324], [0.649, 0.384]]}, {"name": "fixed:other_#5", "box": [[0.837, 0.327], [0.893, 0.379]], "data": "106"}, {"name": "id:date_of_entry", "box": [[0.016, 0.379], [0.16, 0.414]], "data": "4b.Ablaufdatum"}, {"name": "id:municipality_of_registration", "box": [[0.016, 0.409], [0.19, 0.447]], "data": "4c.Ausstellbehorde"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#4", "box": [[0.321, 0.392], [0.37, 0.447]], "data": "BE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#4", "box": [[0.501, 0.392], [0.648, 0.447]]}, {"name": "id:document_number", "box": [[0.014, 0.442], [0.254, 0.479]], "data": "5.Nummer des Ausweises"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class", "box": [[0.013, 0.477], [0.134, 0.517]], "data": "9.Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#5", "box": [[0.321, 0.457], [0.37, 0.514]], "data": "CE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#5", "box": [[0.498, 0.457], [0.646, 0.512]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].effective_date", "box": [[0.016, 0.509], [0.299, 0.549]], "data": "10.Erteilungsdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].expiry_date", "box": [[0.016, 0.544], [0.266, 0.582]], "data": "11.Ablaufdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#6", "box": [[0.324, 0.524], [0.389, 0.579]], "data": "D1E"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#6", "box": [[0.501, 0.524], [0.648, 0.577]]}, {"name": "fixed:other_#6", "box": [[0.016, 0.577], [0.177, 0.614]], "data": "12.Zusatzangaben"}, {"name": "value:mrz_line_#0", "box": [[0.038, 0.689], [0.311, 0.754]]}, {"name": "fixed:other_#7", "box": [[0.928, 0.704], [0.963, 0.749]], "data": "OF"}, {"name": "value:mrz_line_#1", "box": [[0.04, 0.767], [0.942, 0.834]]}, {"name": "value:mrz_line_#2", "box": [[0.041, 0.847], [0.941, 0.912]]}, {"name": "id:place_of_birth", "box": [[0.179, 0.312], [0.267, 0.352]], "data": "Heimatort"}], "image_fields": []}, {"name": "driver_license:CHE:0:front", "aspect_ratio": 1.541, "text_fields": [{"name": "fixed:document_type_0", "box": [[0.164, 0.037], [0.815, 0.085]], "data": "Führerausweis-Permis de conduire"}, {"name": "fixed:document_type_1", "box": [[0.164, 0.094], [0.815, 0.143]], "data": "Licenza di condurre. - Permiss da"}, {"name": "fixed:issuing_country", "box": [[0.868, 0.079], [0.954, 0.167]], "data": "CH"}, {"name": "id:last_name", "box": [[0.325, 0.277], [0.347, 0.316]], "data": "1."}, {"name": "value:last_name", "box": [[0.382, 0.267], [0.522, 0.318]], "required": true}, {"name": "id:first_name", "box": [[0.324, 0.34], [0.347, 0.379]], "data": "2."}, {"name": "value:first_name", "box": [[0.382, 0.333], [0.511, 0.392]], "required": true}, {"name": "id:date_of_birth", "box": [[0.324, 0.403], [0.347, 0.442]], "data": "3."}, {"name": "value:date_of_birth", "box": [[0.383, 0.404], [0.539, 0.443]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:place_of_birth", "box": [[0.383, 0.467], [0.453, 0.506]]}, {"name": "id:date_of_issue", "box": [[0.324, 0.532], [0.365, 0.569]], "data": "4a."}, {"name": "value:date_of_issue", "box": [[0.384, 0.531], [0.539, 0.57]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.841, 0.535], [0.937, 0.572]]}, {"name": "id:document_number", "box": [[0.324, 0.596], [0.348, 0.632]], "data": "5."}, {"name": "value:document_number", "box": [[0.384, 0.596], [0.645, 0.634]], "required": true}, {"name": "id:signature", "box": [[0.324, 0.722], [0.348, 0.762]], "data": "7."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info", "box": [[0.324, 0.859], [0.348, 0.895]], "data": "9."}, {"name": "value:driver_license_detailed_info.vehicle_classes_info", "box": [[0.376, 0.859], [0.704, 0.899]]}, {"name": "fixed:document_type_2", "box": [[0.164, 0.15], [0.678, 0.199]], "data": "manischar - Driving Licence"}, {"name": "id:issuing_authority", "box": [[0.789, 0.534], [0.829, 0.571]], "data": "4c."}, {"name": "id:date_of_expiry", "box": [[0.558, 0.533], [0.601, 0.57]], "data": "4b."}, {"name": "value:date_of_expiry", "box": [[0.612, 0.531], [0.772, 0.556]], "date_format": "%d.%m.%Y"}], "image_fields": [{"name": "portrait", "box": [[0.024, 0.25], [0.318, 0.822]]}]}, {"name": "driver_license:CHE:1:back", "aspect_ratio": 1.59, "text_fields": [{"name": "fixed:other_#0", "box": [[0.41, 0.009], [0.445, 0.062]], "data": "9."}, {"name": "fixed:other_#1", "box": [[0.533, 0.01], [0.58, 0.059]], "data": "10."}, {"name": "fixed:other_#2", "box": [[0.7, 0.01], [0.748, 0.063]], "data": "11."}, {"name": "fixed:other_#3", "box": [[0.875, 0.011], [0.92, 0.064]], "data": "12."}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#0", "box": [[0.41, 0.084], [0.441, 0.133]], "data": "A"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#0", "box": [[0.478, 0.081], [0.632, 0.138]]}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#1", "box": [[0.479, 0.141], [0.632, 0.19]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#2", "box": [[0.41, 0.194], [0.441, 0.246]], "data": "C"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#2", "box": [[0.479, 0.198], [0.63, 0.247]]}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#3", "box": [[0.479, 0.25], [0.63, 0.303]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#4", "box": [[0.41, 0.306], [0.46, 0.359]], "data": "BE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#4", "box": [[0.477, 0.307], [0.633, 0.36]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#5", "box": [[0.411, 0.363], [0.46, 0.416]], "data": "CE"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#5", "box": [[0.479, 0.367], [0.633, 0.42]]}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#6", "box": [[0.418, 0.419], [0.472, 0.472]], "data": "D1E"}, {"name": "fixed:other_#4", "box": [[0.025, 0.618], [0.056, 0.649]], "data": "1."}, {"name": "id:last_name", "box": [[0.049, 0.618], [0.103, 0.652]], "data": "Name"}, {"name": "fixed:other_#5", "box": [[0.023, 0.671], [0.047, 0.705]], "data": "3."}, {"name": "id:date_of_birth", "box": [[0.049, 0.667], [0.168, 0.705]], "data": "Geburtsdatum,"}, {"name": "id:first_name", "box": [[0.051, 0.641], [0.127, 0.679]], "data": "Vomame"}, {"name": "id:place_of_birth", "box": [[0.051, 0.694], [0.132, 0.732]], "data": "Heimatort"}, {"name": "fixed:other_#6", "box": [[0.873, 0.142], [0.918, 0.195]], "data": "121"}, {"name": "fixed:other_#7", "box": [[0.873, 0.255], [0.918, 0.308]], "data": "106"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#1", "box": [[0.412, 0.141], [0.443, 0.19]], "data": "B"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class_#3", "box": [[0.415, 0.246], [0.455, 0.303]], "data": "D1"}, {"name": "value:driver_license_detailed_info.vehicle_classes_info[#].effective_date_#6", "box": [[0.479, 0.42], [0.633, 0.473]]}, {"name": "id:date_of_issue", "box": [[0.025, 0.728], [0.168, 0.758]], "data": "4a.Ausstelldatum"}, {"name": "id:date_of_entry", "box": [[0.026, 0.754], [0.154, 0.781]], "data": "4b.Ablaufdatum"}, {"name": "id:municipality_of_registration", "box": [[0.026, 0.781], [0.222, 0.811]], "data": "4c.Ausstellbehorde"}, {"name": "id:document_number", "box": [[0.026, 0.807], [0.284, 0.833]], "data": "5.Nummer des Ausweises"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].vehicle_class", "box": [[0.023, 0.83], [0.13, 0.86]], "data": "9.Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].effective_date", "box": [[0.026, 0.86], [0.27, 0.886]], "data": "10.Erteilungsdatumje Kategorie"}, {"name": "id:driver_license_detailed_info.vehicle_classes_info[#].expiry_date", "box": [[0.026, 0.882], [0.249, 0.916]], "data": "11.Ablaufdatumje Kategorie"}, {"name": "fixed:other_#8", "box": [[0.028, 0.912], [0.171, 0.943]], "data": "12.Zusatzangaben"}], "image_fields": []}, {"name": "driver_license:CHE:1:front", "aspect_ratio": 1.589, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.073, 0.082], [0.158, 0.183]], "data": "CH"}, {"name": "fixed:document_type_0", "box": [[0.262, 0.071], [0.82, 0.123]], "data": "FUHRERAUSWEIS PERMIS DE CONDUIRE"}, {"name": "fixed:document_type_1", "box": [[0.203, 0.15], [0.882, 0.191]], "data": "LICENZA DI CONDURRE PERMISS DA MANISCHAR"}, {"name": "fixed:document_type_2", "box": [[0.382, 0.217], [0.62, 0.262]], "data": "DRIVING LICENCE"}, {"name": "id:last_name", "box": [[0.318, 0.385], [0.344, 0.427]], "data": "1."}, {"name": "value:last_name", "box": [[0.372, 0.374], [0.521, 0.43]], "required": true}, {"name": "id:first_name", "box": [[0.316, 0.445], [0.344, 0.487]], "data": "2."}, {"name": "value:first_name", "box": [[0.375, 0.434], [0.512, 0.49]], "required": true}, {"name": "id:date_of_birth", "box": [[0.318, 0.505], [0.347, 0.55]], "data": "3."}, {"name": "value:date_of_birth", "box": [[0.372, 0.505], [0.537, 0.55]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:place_of_birth", "box": [[0.372, 0.565], [0.495, 0.61]]}, {"name": "id:date_of_issue", "box": [[0.318, 0.625], [0.361, 0.666]], "data": "4a."}, {"name": "value:date_of_issue", "box": [[0.375, 0.621], [0.537, 0.666]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.804, 0.625], [0.905, 0.666]]}, {"name": "id:document_number", "box": [[0.318, 0.681], [0.344, 0.726]], "data": "5."}, {"name": "value:document_number", "box": [[0.375, 0.681], [0.594, 0.722]], "required": true}, {"name": "value:document_additional_number", "box": [[0.627, 0.73], [0.761, 0.79]]}, {"name": "id:signature", "box": [[0.318, 0.756], [0.347, 0.797]], "data": "7."}, {"name": "value:driver_license_detailed_info.vehicle_classes_info", "box": [[0.08, 0.898], [0.427, 0.936]]}, {"name": "fixed:other_#6", "box": [[0.038, 0.898], [0.064, 0.936]], "data": "9."}, {"name": "id:issuing_authority", "box": [[0.747, 0.625], [0.792, 0.666]], "data": "4c."}, {"name": "id:date_of_expiry", "box": [[0.556, 0.625], [0.601, 0.662]], "data": "4b."}, {"name": "value:date_of_expiry", "box": [[0.608, 0.617], [0.74, 0.666]]}], "image_fields": [{"name": "portrait", "box": [[0.021, 0.269], [0.281, 0.801]]}, {"name": "signature", "box": [[0.375, 0.737], [0.578, 0.853]]}]}, {"name": "driver_license:USA:PA:0:front", "aspect_ratio": 1.585, "text_fields": [{"name": "fixed:issuing_country_#0", "box": [[0.035, 0.053], [0.458, 0.201]], "data": "Pennsylvania"}, {"name": "fixed:issuing_country_#1", "box": [[0.403, 0.193], [0.447, 0.218]], "data": "USA"}, {"name": "fixed:document_type_0", "box": [[0.511, 0.06], [0.894, 0.105]], "data": "DRIVER'S LICENSE"}, {"name": "id:document_number", "box": [[0.336, 0.248], [0.411, 0.273]], "data": "4d DLN:"}, {"name": "value:document_number", "box": [[0.43, 0.232], [0.614, 0.275]], "required": true}, {"name": "value:date_of_birth", "box": [[0.43, 0.278], [0.614, 0.323]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.347, 0.723], [0.438, 0.751]], "data": "9 CLASS:"}, {"name": "value:last_name", "box": [[0.355, 0.34], [0.474, 0.375]], "required": true}, {"name": "fixed:other_#0", "box": [[0.337, 0.387], [0.348, 0.413]], "data": "2"}, {"name": "value:first_name", "box": [[0.354, 0.381], [0.591, 0.416]], "required": true}, {"name": "fixed:other_#1", "box": [[0.337, 0.428], [0.35, 0.455]], "data": "8"}, {"name": "value:address_#0", "box": [[0.355, 0.425], [0.57, 0.456]]}, {"name": "value:address_#2", "box": [[0.354, 0.494], [0.707, 0.522]]}, {"name": "id:date_of_issue", "box": [[0.336, 0.608], [0.402, 0.634]], "data": "4a ISS:"}, {"name": "value:date_of_issue", "box": [[0.421, 0.593], [0.606, 0.635]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:date_of_expiry", "box": [[0.421, 0.532], [0.606, 0.576]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.491, 0.89], [0.639, 0.918]]}, {"name": "id:sex", "box": [[0.338, 0.651], [0.41, 0.676]], "data": "15 SEX:"}, {"name": "id:driver_license_detailed_info.endorsements", "box": [[0.337, 0.762], [0.413, 0.787]], "data": "9a END:"}, {"name": "fixed:other_#2", "box": [[0.338, 0.688], [0.409, 0.714]], "data": "16 HGT:"}, {"name": "id:driver_license_detailed_info.restrictions", "box": [[0.337, 0.798], [0.437, 0.823]], "data": "12 RESTR:"}, {"name": "value:driver_license_detailed_info.restrictions", "box": [[0.445, 0.792], [0.516, 0.822]]}, {"name": "id:eye_colour", "box": [[0.457, 0.651], [0.545, 0.676]], "data": "18 EYES:"}, {"name": "id:document_additional_number", "box": [[0.437, 0.894], [0.49, 0.919]], "data": "5DD:"}, {"name": "id:date_of_birth", "box": [[0.336, 0.296], [0.415, 0.323]], "data": "3 DOB:"}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.445, 0.72], [0.463, 0.749]]}, {"name": "id:date_of_expiry", "box": [[0.336, 0.549], [0.41, 0.576]], "data": "4b EXP:"}, {"name": "value:driver_license_detailed_info.endorsements", "box": [[0.422, 0.757], [0.491, 0.786]]}, {"name": "value:sex", "box": [[0.42, 0.648], [0.439, 0.676]], "required": true}, {"name": "value:eye_colour", "box": [[0.551, 0.646], [0.606, 0.677]]}, {"name": "value:height", "box": [[0.42, 0.684], [0.485, 0.713]]}, {"name": "fixed:other_#3", "box": [[0.337, 0.348], [0.346, 0.372]], "data": "1"}, {"name": "fixed:other_#4", "box": [[0.266, 0.191], [0.376, 0.218]], "data": "visitPA.com"}, {"name": "value:address_#1", "box": [[0.353, 0.461], [0.426, 0.491]]}, {"name": "value:document_additional_number_#1", "box": [[0.491, 0.92], [0.628, 0.945]]}, {"name": "fixed:document_type_1", "box": [[0.624, 0.781], [0.698, 0.849]], "data": "DL"}, {"name": "fixed:other_#5", "box": [[0.711, 0.248], [0.773, 0.274]], "data": "DUPS:"}, {"name": "value:other_#0", "box": [[0.781, 0.23], [0.819, 0.276]]}, {"name": "value:other_#1", "box": [[0.759, 0.901], [0.953, 0.934]]}], "image_fields": [{"name": "portrait", "box": [[0.049, 0.229], [0.327, 0.813]]}, {"name": "signature", "box": [[0.05, 0.828], [0.388, 0.931]]}]}, {"name": "driver_license:USA:TX:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:issuing_country_#0", "box": [[0.028, 0.07], [0.326, 0.19]], "data": "TEXAS"}, {"name": "fixed:issuing_country_#1", "box": [[0.326, 0.077], [0.354, 0.095]], "data": "USA"}, {"name": "fixed:document_type", "box": [[0.473, 0.123], [0.698, 0.17]], "data": "DRIVER LICENSE"}, {"name": "value:other_#0", "box": [[0.044, 0.223], [0.099, 0.249]]}, {"name": "id:document_number", "box": [[0.308, 0.275], [0.354, 0.299]], "data": "4d DL"}, {"name": "value:document_number", "box": [[0.36, 0.263], [0.488, 0.302]], "required": true}, {"name": "value:date_of_birth", "box": [[0.585, 0.263], [0.733, 0.303]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:driver_license_detailed_info.vehicle_class", "box": [[0.857, 0.275], [0.906, 0.301]], "data": "9 Class"}, {"name": "value:last_name", "box": [[0.329, 0.327], [0.416, 0.363]], "required": true}, {"name": "id:first_name", "box": [[0.309, 0.39], [0.319, 0.416]], "data": "2"}, {"name": "value:first_name", "box": [[0.328, 0.382], [0.385, 0.415]], "required": true}, {"name": "id:address", "box": [[0.309, 0.429], [0.319, 0.452]], "data": "8"}, {"name": "value:address_#0", "box": [[0.33, 0.431], [0.484, 0.454]]}, {"name": "value:address_#1", "box": [[0.328, 0.46], [0.507, 0.485]]}, {"name": "id:date_of_issue", "box": [[0.308, 0.517], [0.353, 0.542]], "data": "4a Iss"}, {"name": "value:date_of_issue", "box": [[0.365, 0.506], [0.495, 0.541]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:date_of_expiry", "box": [[0.366, 0.555], [0.496, 0.591]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.778, 0.589], [0.826, 0.791]]}, {"name": "id:sex", "box": [[0.31, 0.617], [0.362, 0.644]], "data": "15 Sex"}, {"name": "id:driver_license_detailed_info.endorsements", "box": [[0.506, 0.618], [0.559, 0.645]], "data": "9a End"}, {"name": "id:height", "box": [[0.309, 0.656], [0.361, 0.686]], "data": "16 Hgt "}, {"name": "id:driver_license_detailed_info.restrictions", "box": [[0.507, 0.657], [0.563, 0.684]], "data": "12 Rest"}, {"name": "value:driver_license_detailed_info.restrictions", "box": [[0.569, 0.654], [0.622, 0.684]]}, {"name": "id:eye_colour", "box": [[0.31, 0.697], [0.367, 0.726]], "data": "18 Eyes"}, {"name": "id:document_additional_number_#1", "box": [[0.308, 0.752], [0.348, 0.776]], "data": "5DD"}, {"name": "value:document_additional_number", "box": [[0.355, 0.751], [0.561, 0.778]]}, {"name": "id:date_of_birth", "box": [[0.534, 0.276], [0.58, 0.301]], "data": "3 DOB"}, {"name": "value:driver_license_detailed_info.vehicle_class", "box": [[0.914, 0.265], [0.933, 0.303]]}, {"name": "id:date_of_expiry", "box": [[0.308, 0.564], [0.361, 0.595]], "data": "4b Exp"}, {"name": "value:driver_license_detailed_info.endorsements", "box": [[0.57, 0.613], [0.623, 0.642]]}, {"name": "value:sex", "box": [[0.37, 0.614], [0.38, 0.644]], "required": true}, {"name": "value:eye_colour", "box": [[0.37, 0.69], [0.409, 0.721]]}, {"name": "value:height", "box": [[0.368, 0.652], [0.427, 0.683]]}, {"name": "id:last_name", "box": [[0.309, 0.338], [0.317, 0.363]], "data": "1"}], "image_fields": [{"name": "portrait", "box": [[0.043, 0.249], [0.301, 0.796]]}, {"name": "signature", "box": [[0.027, 0.808], [0.301, 0.95]]}]}, {"name": "id:DEU:0:front", "aspect_ratio": 1.595, "text_fields": [{"name": "fixed:issuing_country_1", "box": [[0.196, 0.05], [0.64, 0.081]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "value:document_number", "box": [[0.715, 0.047], [0.952, 0.093]], "required": true}, {"name": "fixed:issuing_country_0", "box": [[0.087, 0.095], [0.119, 0.126]], "data": "DE"}, {"name": "fixed:issuing_country_2", "box": [[0.196, 0.089], [0.637, 0.103]], "data": "FEDERAL REPUBLIC OF GERMANY | REPUBLIQUE FEDERALE D'ALLEMAGNE"}, {"name": "fixed:document_type_0", "box": [[0.196, 0.119], [0.439, 0.148]], "data": "PERSONALAUSWEIS"}, {"name": "fixed:document_type_1", "box": [[0.196, 0.156], [0.404, 0.17]], "data": "IDENTITY CARD / CARTE D'IDENTITE"}, {"name": "id:last_name", "box": [[0.438, 0.199], [0.626, 0.218]], "data": "[a] Name/Surname/Nom"}, {"name": "id:additional_name_info", "box": [[0.438, 0.225], [0.825, 0.245]], "data": "[b] Geburtsname/Name at birth/Nom de naissance"}, {"name": "value:last_name", "box": [[0.465, 0.267], [0.657, 0.304]], "required": true}, {"name": "value:additional_name_info", "box": [[0.465, 0.332], [0.579, 0.37]]}, {"name": "id:first_name", "box": [[0.438, 0.39], [0.695, 0.409]], "data": "Vornamen/Given names/Prenoms"}, {"name": "value:first_name", "box": [[0.447, 0.43], [0.541, 0.467]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.438, 0.507], [0.632, 0.526]], "data": "Geburtstag/Date of birth/"}, {"name": "id:nationality_0", "box": [[0.66, 0.507], [0.908, 0.528]], "data": "Staatsangehörigkeit/Nationality/"}, {"name": "id:date_of_birth_1", "box": [[0.439, 0.531], [0.578, 0.55]], "data": "Date de naissance"}, {"name": "id:nationality_1", "box": [[0.66, 0.531], [0.741, 0.55]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.448, 0.567], [0.637, 0.605]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.664, 0.566], [0.798, 0.604]], "required": true}, {"name": "id:place_of_birth", "box": [[0.438, 0.619], [0.772, 0.638]], "data": "Geburtsort/place of birth/Lieu de naissance"}, {"name": "value:place_of_birth", "box": [[0.446, 0.656], [0.56, 0.692]]}, {"name": "id:date_of_expiry_0", "box": [[0.437, 0.734], [0.631, 0.757]], "data": "Gültig bis/Date of expiry/"}, {"name": "id:date_of_expiry_1", "box": [[0.438, 0.76], [0.568, 0.781]], "data": "Date d'expiration"}, {"name": "value:document_additional_number", "box": [[0.78, 0.761], [0.944, 0.811]]}, {"name": "value:date_of_expiry", "box": [[0.442, 0.79], [0.632, 0.827]], "date_format": "%d.%m.%Y", "required": true}, {"name": "id:additional_name_info", "box": [[0.438, 0.338], [0.461, 0.365]], "data": "[b]"}, {"name": "id:last_name", "box": [[0.439, 0.274], [0.461, 0.302]], "data": "[a]"}], "image_fields": [{"name": "portrait", "box": [[0.051, 0.21], [0.414, 0.953]]}, {"name": "signature", "box": [[0.484, 0.834], [0.745, 0.967]]}]}, {"name": "id:DEU:1:front", "aspect_ratio": 1.579, "text_fields": [{"name": "fixed:issuing_country_1", "box": [[0.04, 0.038], [0.605, 0.071]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "value:document_number", "box": [[0.713, 0.038], [0.951, 0.087]], "required": true}, {"name": "fixed:issuing_country_2", "box": [[0.049, 0.075], [0.606, 0.095]], "data": "FEDERAL REPUBLIC OF GERMANY | REPUBLIQUE FEDERALE D'ALLEMAGNE"}, {"name": "fixed:document_type_0", "box": [[0.041, 0.107], [0.276, 0.136]], "data": "PERSONALAUSWEIS"}, {"name": "fixed:document_type_1", "box": [[0.049, 0.142], [0.311, 0.16]], "data": "IDENTITY CARD / CARTE D'IDENTITE"}, {"name": "id:last_name", "box": [[0.457, 0.122], [0.614, 0.143]], "data": "Name/Surname/Nom"}, {"name": "value:last_name", "box": [[0.463, 0.161], [0.652, 0.199]], "required": true}, {"name": "value:additional_name_info", "box": [[0.463, 0.226], [0.675, 0.264]]}, {"name": "id:first_name", "box": [[0.457, 0.287], [0.709, 0.307]], "data": "Vornamen/Given names/Prenoms"}, {"name": "value:first_name", "box": [[0.464, 0.328], [0.557, 0.364]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.457, 0.404], [0.649, 0.42]], "data": "Geburtstag/Date of birth/"}, {"name": "id:nationality_0", "box": [[0.678, 0.402], [0.916, 0.423]], "data": "Staatsangehörigkeit/Nationality/"}, {"name": "id:date_of_birth_1", "box": [[0.457, 0.425], [0.594, 0.443]], "data": "Date de naissance"}, {"name": "id:nationality_1", "box": [[0.679, 0.425], [0.758, 0.443]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.466, 0.464], [0.652, 0.501]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.685, 0.464], [0.815, 0.501]], "required": true}, {"name": "id:place_of_birth", "box": [[0.457, 0.538], [0.786, 0.56]], "data": "Geburtsort/place of birth/Lieu de naissance"}, {"name": "value:place_of_birth", "box": [[0.464, 0.578], [0.575, 0.616]]}, {"name": "id:date_of_expiry_0", "box": [[0.457, 0.654], [0.648, 0.675]], "data": "Gültig bis/Date of expiry/"}, {"name": "id:date_of_expiry_1", "box": [[0.457, 0.675], [0.585, 0.693]], "data": "Date d'expiration"}, {"name": "value:document_additional_number", "box": [[0.766, 0.681], [0.937, 0.732]]}, {"name": "value:date_of_expiry", "box": [[0.463, 0.707], [0.653, 0.746]], "date_format": "%d.%m.%Y", "required": true}, {"name": "id:signature", "box": [[0.456, 0.761], [0.749, 0.779]], "data": "Unterschrift der Inhaberin/desInhabers"}, {"name": "id:signature_2", "box": [[0.456, 0.781], [0.878, 0.801]], "data": "Signature of bearer - Signature de la titulaire/du titulaire"}], "image_fields": [{"name": "portrait", "box": [[0.049, 0.196], [0.416, 0.951]]}, {"name": "signature", "box": [[0.449, 0.807], [0.766, 0.967]]}]}, {"name": "id:ESP:0:back", "aspect_ratio": 1.586, "text_fields": [{"name": "id:address", "box": [[0.283, 0.05], [0.359, 0.071]], "data": "DOMICILIO"}, {"name": "value:address_#0", "box": [[0.283, 0.081], [0.594, 0.113]]}, {"name": "value:address_#1", "box": [[0.284, 0.126], [0.386, 0.157]]}, {"name": "value:document_additional_number", "box": [[0.124, 0.164], [0.225, 0.203]]}, {"name": "value:address_#2", "box": [[0.284, 0.172], [0.385, 0.202]]}, {"name": "id:place_of_birth", "box": [[0.283, 0.317], [0.449, 0.339]], "data": "LUGAR DE NACIMIENTO"}, {"name": "value:place_of_birth", "box": [[0.283, 0.353], [0.385, 0.384]]}, {"name": "value:place_of_birth_#1", "box": [[0.283, 0.4], [0.384, 0.431]]}, {"name": "fixed:other", "box": [[0.015, 0.418], [0.038, 0.514]], "data": "EQUIPO"}, {"name": "id:fathers_name", "box": [[0.282, 0.498], [0.349, 0.521]], "data": "HIJO/A DE"}, {"name": "value:fathers_name", "box": [[0.283, 0.534], [0.349, 0.567]]}, {"name": "value:mothers_name", "box": [[0.405, 0.534], [0.506, 0.567]]}, {"name": "value:mrz_line_#0", "box": [[0.052, 0.683], [0.93, 0.734]]}, {"name": "value:mrz_line_#1", "box": [[0.048, 0.758], [0.93, 0.811]]}, {"name": "value:mrz_line_#2", "box": [[0.049, 0.84], [0.929, 0.89]]}, {"name": "value:document_optional_additional_number", "box": [[0.041, 0.289], [0.064, 0.54]]}, {"name": "fixed:other", "box": [[0.37, 0.533], [0.383, 0.568]], "data": "/"}], "image_fields": []}, {"name": "id:ESP:0:front", "aspect_ratio": 1.581, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.328, 0.031], [0.774, 0.106]], "data": "REINO DE ESPAÑA"}, {"name": "fixed:issuing_country_1", "box": [[0.071, 0.079], [0.11, 0.121]], "data": "ES"}, {"name": "fixed:document_type_0", "box": [[0.326, 0.113], [0.769, 0.144]], "data": "DOCUMENTO'NACIONAL DEI IDENTIDAD"}, {"name": "value:personal_id_number", "box": [[0.445, 0.178], [0.742, 0.237]], "required": true}, {"name": "value:document_additional_number", "box": [[0.782, 0.169], [0.876, 0.199]]}, {"name": "value:personal_id_number_1", "box": [[0.017, 0.199], [0.145, 0.236]]}, {"name": "id:personal_id_number", "box": [[0.395, 0.206], [0.432, 0.234]], "data": "DNI"}, {"name": "id:last_name", "box": [[0.394, 0.264], [0.474, 0.285]], "data": "APELLIDOS"}, {"name": "value:last_name", "box": [[0.395, 0.296], [0.532, 0.332]], "required": true}, {"name": "value:additional_name_info", "box": [[0.395, 0.343], [0.533, 0.378]]}, {"name": "id:first_name", "box": [[0.394, 0.402], [0.457, 0.423]], "data": "NOMBRE"}, {"name": "value:first_name", "box": [[0.394, 0.438], [0.496, 0.47]], "required": true}, {"name": "id:sex", "box": [[0.394, 0.492], [0.433, 0.515]], "data": "SEXO"}, {"name": "id:nationality", "box": [[0.508, 0.494], [0.618, 0.516]], "data": "NACIONALIDAD"}, {"name": "id:date_of_birth", "box": [[0.871, 0.497], [0.961, 0.519]], "data": "NACIMIENTO"}, {"name": "value:sex", "box": [[0.395, 0.529], [0.408, 0.56]], "required": true}, {"name": "value:nationality", "box": [[0.511, 0.53], [0.562, 0.562]], "required": true}, {"name": "value:date_of_birth", "box": [[0.792, 0.532], [0.963, 0.565]], "date_format": "%d %m %Y", "required": true}, {"name": "id:date_of_issue", "box": [[0.394, 0.582], [0.455, 0.607]], "data": "EMISION"}, {"name": "id:date_of_expiry", "box": [[0.589, 0.586], [0.651, 0.608]], "data": "VALIDEZ"}, {"name": "value:date_of_issue", "box": [[0.394, 0.621], [0.565, 0.653]], "date_format": "%d %m %Y", "required": true}, {"name": "id:document_additional_number", "box": [[0.394, 0.676], [0.499, 0.697]], "data": "NUM SOPORTE"}, {"name": "value:document_additional_number_1", "box": [[0.395, 0.71], [0.548, 0.743]]}, {"name": "value:document_number", "box": [[0.794, 0.838], [0.962, 0.891]]}, {"name": "fixed:document_type_1", "box": [[0.393, 0.93], [0.942, 0.958]], "data": "NATIONAL IDENTITY CARD/DOCUMENTO NACIONAL IDENTIDAD"}, {"name": "value:date_of_expiry", "box": [[0.59, 0.621], [0.761, 0.653]], "date_format": "%d %m %Y", "required": true}], "image_fields": [{"name": "portrait", "box": [[0.016, 0.247], [0.371, 0.951]]}, {"name": "signature", "box": [[0.398, 0.767], [0.766, 0.911]]}]}, {"name": "id:FRA:0:front", "aspect_ratio": 1.586, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.209, 0.049], [0.783, 0.105]], "data": "REPUBLIQUE FRANCAISE"}, {"name": "fixed:issuing_country_1", "box": [[0.877, 0.082], [0.912, 0.115]], "data": "FR"}, {"name": "fixed:document_type", "box": [[0.211, 0.126], [0.784, 0.155]], "data": "CARTE NATIONALE D'IDENTITE / IDENTITY CARD"}, {"name": "id:last_name", "box": [[0.39, 0.176], [0.496, 0.203]], "data": "NOM / Surname"}, {"name": "value:last_name", "box": [[0.392, 0.209], [0.74, 0.254]], "required": true}, {"name": "id:first_name", "box": [[0.39, 0.321], [0.546, 0.349]], "data": "Prénoms / Given names"}, {"name": "value:first_name", "box": [[0.393, 0.358], [0.826, 0.404]], "required": true}, {"name": "id:nationality", "box": [[0.493, 0.463], [0.7, 0.495]], "data": "NATIONALITE / Nationality"}, {"name": "id:date_of_birth", "box": [[0.734, 0.467], [0.974, 0.493]], "data": "DATE DE NAISS / Date of birth"}, {"name": "value:sex", "box": [[0.391, 0.505], [0.408, 0.541]], "required": true}, {"name": "value:nationality", "box": [[0.494, 0.504], [0.553, 0.543]], "required": true}, {"name": "value:date_of_birth", "box": [[0.734, 0.509], [0.903, 0.546]], "date_format": "%d %m %Y", "required": true}, {"name": "id:place_of_birth", "box": [[0.389, 0.555], [0.67, 0.58]], "data": "LIEU DE NAISSANCE / Place of birth"}, {"name": "value:place_of_birth", "box": [[0.392, 0.593], [0.557, 0.631]]}, {"name": "id:additional_name_info", "box": [[0.389, 0.645], [0.638, 0.671]], "data": "NOM D'USAGE / Altemate name"}, {"name": "value:additional_name_info", "box": [[0.391, 0.682], [0.807, 0.722]]}, {"name": "id:document_number", "box": [[0.389, 0.736], [0.662, 0.761]], "data": "N° DU DOCUMENT / Document No."}, {"name": "id:date_of_expiry", "box": [[0.733, 0.737], [0.945, 0.765]], "data": "DATE D'EXPIR. / Expiry date"}, {"name": "value:document_number", "box": [[0.393, 0.769], [0.674, 0.82]], "required": true}, {"name": "value:date_of_expiry", "box": [[0.734, 0.779], [0.902, 0.815]], "date_format": "%d %m %Y", "required": true}, {"name": "value:document_additional_number", "box": [[0.735, 0.866], [0.926, 0.923]]}, {"name": "id:sex", "box": [[0.39, 0.466], [0.475, 0.492]], "data": "SEXE / Sex"}], "image_fields": [{"name": "portrait", "box": [[0.02, 0.178], [0.368, 0.954]]}, {"name": "signature", "box": [[0.382, 0.829], [0.694, 0.971]]}]}, {"name": "id:KWT:0:back", "aspect_ratio": 1.589, "text_fields": [{"name": "id:document_additional_number_0", "box": [[0.345, 0.507], [0.488, 0.57]], "data": "Serial No:"}, {"name": "value:document_additional_number", "box": [[0.52, 0.514], [0.74, 0.583]]}, {"name": "value:mrz_line_#0", "box": [[0.06, 0.701], [0.918, 0.774]]}, {"name": "value:mrz_line_#1", "box": [[0.059, 0.787], [0.918, 0.859]]}, {"name": "value:mrz_line_#2", "box": [[0.059, 0.854], [0.917, 0.926]]}, {"name": "id:document_additional_number_1", "box": [[0.811, 0.498], [0.953, 0.582]], "data": ":المسلسل"}, {"name": "id:blood_type", "box": [[0.329, 0.02], [0.472, 0.097]], "data": ":فصيلة الدم"}, {"name": "id:additional_address_information_0", "box": [[0.405, 0.226], [0.5, 0.302]], "data": ":القطعة"}, {"name": "value:personal_id_number", "box": [[0.53, 0.03], [0.799, 0.099]]}, {"name": "id:personal_id_number", "box": [[0.803, 0.031], [0.954, 0.097]], "data": ":الرقم المدني"}, {"name": "value:additional_address_information", "box": [[0.377, 0.233], [0.406, 0.296]]}, {"name": "value:profession", "box": [[0.565, 0.097], [0.86, 0.164]]}, {"name": "value:blood_type", "box": [[0.273, 0.023], [0.331, 0.094]]}, {"name": "value:additional_address_information_2", "box": [[0.486, 0.352], [0.621, 0.424]]}, {"name": "id:address", "box": [[0.865, 0.236], [0.963, 0.292]], "data": ":العنوان"}, {"name": "value:additional_address_information_4", "box": [[0.814, 0.364], [0.857, 0.413]]}, {"name": "id:additional_address_information_4", "box": [[0.866, 0.363], [0.95, 0.421]], "data": ":المبنى"}, {"name": "value:additional_address_information_5", "box": [[0.804, 0.424], [0.852, 0.479]]}, {"name": "id:additional_address_information_5", "box": [[0.863, 0.432], [0.963, 0.488]], "data": ":الدور"}, {"name": "value:additional_address_information_3", "box": [[0.423, 0.419], [0.601, 0.493]]}, {"name": "id:additional_address_information_3", "box": [[0.602, 0.423], [0.736, 0.494]], "data": ":الرقم الآلي"}, {"name": "value:additional_address_information_1", "box": [[0.312, 0.351], [0.393, 0.421]]}, {"name": "id:additional_address_information_2", "box": [[0.623, 0.356], [0.717, 0.423]], "data": ":الوحدة"}, {"name": "value:address_#0", "box": [[0.765, 0.234], [0.853, 0.291]]}, {"name": "id:profession", "box": [[0.868, 0.099], [0.953, 0.162]], "data": ":المهنة"}, {"name": "value:address_#1", "box": [[0.821, 0.292], [0.959, 0.353]]}, {"name": "id:additional_address_information_1", "box": [[0.393, 0.353], [0.47, 0.425]], "data": ":الرقم"}, {"name": "id:sponsor", "box": [[0.74, 0.171], [0.954, 0.23]], "data": "كفيل حامل البطاقة"}], "image_fields": []}, {"name": "id:KWT:0:front", "aspect_ratio": 1.584, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.186, 0.176], [0.54, 0.228]], "data": "STATE OF KUWAIT"}, {"name": "id:personal_id_number_#0", "box": [[0.262, 0.239], [0.406, 0.291]], "data": "Civil ID No"}, {"name": "value:personal_id_number", "box": [[0.462, 0.24], [0.736, 0.298]], "required": true}, {"name": "fixed:other", "box": [[0.41, 0.461], [0.719, 0.54]], "data": "SPECIMEN"}, {"name": "id:full_name_#1", "box": [[0.262, 0.52], [0.766, 0.585]], "data": "Name CIVIL ID Card Holder Name"}, {"name": "value:document_number", "box": [[0.537, 0.661], [0.688, 0.715]]}, {"name": "value:nationality", "box": [[0.446, 0.719], [0.527, 0.779]], "required": true}, {"name": "value:sex", "box": [[0.447, 0.773], [0.508, 0.829]], "required": true}, {"name": "value:date_of_birth", "box": [[0.486, 0.832], [0.676, 0.898]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_expiry_#0", "box": [[0.271, 0.893], [0.432, 0.943]], "data": "Expiry Date"}, {"name": "value:date_of_expiry", "box": [[0.488, 0.894], [0.679, 0.964]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_birth_#0", "box": [[0.271, 0.832], [0.411, 0.885]], "data": "Birth Date"}, {"name": "id:sex_#0", "box": [[0.27, 0.768], [0.327, 0.824]], "data": "Sex"}, {"name": "id:nationality_#0", "box": [[0.275, 0.716], [0.426, 0.77]], "data": "Nationality"}, {"name": "id:document_number_#0", "box": [[0.276, 0.654], [0.447, 0.708]], "data": "Passport No"}, {"name": "id:personal_id_number_#1", "box": [[0.818, 0.234], [0.977, 0.292]], "data": "لرقم المدني"}, {"name": "value:full_name", "box": [[0.373, 0.293], [0.741, 0.374]], "required": true}, {"name": "id:full_name_#0", "box": [[0.903, 0.294], [0.978, 0.356]], "data": "الاسم"}, {"name": "id:nationality_#1", "box": [[0.652, 0.714], [0.971, 0.781]], "data": "الجنسية"}, {"name": "id:sex_#1", "box": [[0.663, 0.779], [0.965, 0.843]], "data": "الجنس"}, {"name": "id:date_of_birth_#1", "box": [[0.765, 0.839], [0.967, 0.891]], "data": "تاريخ الميلاد"}, {"name": "id:date_of_expiry_#1", "box": [[0.769, 0.895], [0.961, 0.959]], "data": "تاريخ الانتهاء"}, {"name": "id:document_number_#1", "box": [[0.772, 0.657], [0.962, 0.715]], "data": "رقم الجواز"}, {"name": "fixed:document_type", "box": [[0.55, 0.18], [0.822, 0.229]], "data": "CIVIL ID CARD"}], "image_fields": []}, {"name": "id:KWT:1:back", "aspect_ratio": 1.591, "text_fields": [{"name": "value:mrz_line_#0", "box": [[0.042, 0.694], [0.9, 0.769]]}, {"name": "value:mrz_line_#1", "box": [[0.04, 0.776], [0.902, 0.848]]}, {"name": "value:mrz_line_#2", "box": [[0.039, 0.852], [0.901, 0.926]]}, {"name": "value:blood_type", "box": [[0.233, 0.026], [0.291, 0.099]]}, {"name": "id:blood_type", "box": [[0.322, 0.02], [0.467, 0.101]], "data": ":فصيلة الدم"}, {"name": "value:personal_id_number", "box": [[0.529, 0.03], [0.802, 0.097]]}, {"name": "id:personal_id_number", "box": [[0.799, 0.021], [0.952, 0.091]], "data": ":الرقم المدني"}, {"name": "value:additional_address_information", "box": [[0.292, 0.087], [0.323, 0.151]]}, {"name": "id:additional_address_information_0", "box": [[0.317, 0.082], [0.413, 0.159]], "data": ":القطعة"}, {"name": "value:address_#0", "box": [[0.694, 0.09], [0.784, 0.148]]}, {"name": "id:address", "box": [[0.799, 0.094], [0.959, 0.15]], "data": ":العنوان"}, {"name": "value:address_#1", "box": [[0.744, 0.142], [0.884, 0.205]]}, {"name": "value:additional_address_information_1", "box": [[0.244, 0.201], [0.328, 0.274]]}, {"name": "id:additional_address_information_1", "box": [[0.323, 0.204], [0.4, 0.28]], "data": ":الرقم"}, {"name": "value:additional_address_information_2", "box": [[0.412, 0.207], [0.55, 0.281]]}, {"name": "id:additional_address_information_2", "box": [[0.542, 0.209], [0.638, 0.279]], "data": ":الوحدة"}, {"name": "value:additional_address_information_4", "box": [[0.758, 0.216], [0.8, 0.266]]}, {"name": "id:additional_address_information_4", "box": [[0.795, 0.219], [0.88, 0.279]], "data": ":المبنى"}, {"name": "value:additional_address_information_3", "box": [[0.291, 0.275], [0.471, 0.351]]}, {"name": "id:additional_address_information_3", "box": [[0.477, 0.276], [0.718, 0.346]], "data": ":الرقم الآلي"}, {"name": "value:additional_address_information_5", "box": [[0.747, 0.272], [0.795, 0.327]]}, {"name": "id:additional_address_information_5", "box": [[0.796, 0.276], [0.961, 0.335]], "data": ":الدور"}, {"name": "id:document_additional_number_0", "box": [[0.343, 0.514], [0.484, 0.562]], "data": "Serial No:"}, {"name": "value:document_additional_number", "box": [[0.526, 0.522], [0.733, 0.587]]}, {"name": "id:document_additional_number_1", "box": [[0.815, 0.496], [0.958, 0.581]], "data": ":المسلسل"}], "image_fields": []}, {"name": "id:KWT:1:front", "aspect_ratio": 1.577, "text_fields": [{"name": "fixed:issuing_country", "box": [[0.179, 0.193], [0.532, 0.242]], "data": "STATE OF KUWAIT"}, {"name": "fixed:document_type", "box": [[0.536, 0.188], [0.817, 0.24]], "data": "CIVIL ID CARD"}, {"name": "id:personal_id_number_#1", "box": [[0.817, 0.234], [0.976, 0.292]], "data": "لرقم المدني"}, {"name": "value:personal_id_number", "box": [[0.467, 0.242], [0.74, 0.302]], "required": true}, {"name": "id:personal_id_number_#0", "box": [[0.275, 0.242], [0.419, 0.297]], "data": "Civil ID No"}, {"name": "value:full_name", "box": [[0.372, 0.313], [0.741, 0.391]], "required": true}, {"name": "id:full_name_#0", "box": [[0.894, 0.291], [0.969, 0.353]], "data": "الاسم"}, {"name": "fixed:other", "box": [[0.389, 0.464], [0.698, 0.546]], "data": "SPECIMEN"}, {"name": "id:full_name_#1", "box": [[0.27, 0.566], [0.775, 0.629]], "data": "Name CIVIL ID Card Holder Name"}, {"name": "id:nationality_#0", "box": [[0.281, 0.719], [0.432, 0.775]], "data": "Nationality"}, {"name": "value:nationality", "box": [[0.455, 0.722], [0.536, 0.781]], "required": true}, {"name": "id:nationality_#1", "box": [[0.645, 0.716], [0.966, 0.783]], "data": "الجنسية"}, {"name": "id:sex_#0", "box": [[0.282, 0.778], [0.34, 0.834]], "data": "Sex"}, {"name": "value:sex", "box": [[0.42, 0.781], [0.481, 0.836]], "required": true}, {"name": "id:sex_#1", "box": [[0.652, 0.781], [0.956, 0.847]], "data": "الجنس"}, {"name": "id:date_of_birth_#0", "box": [[0.282, 0.834], [0.423, 0.888]], "data": "Birth Date"}, {"name": "value:date_of_birth", "box": [[0.495, 0.842], [0.686, 0.91]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_birth_#1", "box": [[0.756, 0.835], [0.959, 0.889]], "data": "تاريخ الميلاد"}, {"name": "id:date_of_expiry_#0", "box": [[0.282, 0.902], [0.443, 0.953]], "data": "Expiry Date"}, {"name": "value:date_of_expiry", "box": [[0.494, 0.905], [0.686, 0.976]], "date_format": "%d/%m/%Y", "required": true}, {"name": "id:date_of_expiry_#1", "box": [[0.755, 0.891], [0.948, 0.957]], "data": "تاريخ الانتهاء"}], "image_fields": []}, {"name": "passport:CHE:0:front", "aspect_ratio": 1.412, "text_fields": [{"name": "fixed:document_type_0", "box": [[0.131, 0.028], [0.185, 0.067]], "data": "Pass"}, {"name": "fixed:issuing_country", "box": [[0.299, 0.027], [0.808, 0.069]], "data": "Schweiz Suisse Svizzera Svizra Switzerland"}, {"name": "fixed:document_type_1", "box": [[0.066, 0.067], [0.185, 0.111]], "data": "Passeport"}, {"name": "id:document_subtype", "box": [[0.299, 0.091], [0.329, 0.114]], "data": "Type"}, {"name": "id:issuing_country", "box": [[0.456, 0.091], [0.487, 0.112]], "data": "Code"}, {"name": "id:document_number_0", "box": [[0.628, 0.091], [0.711, 0.113]], "data": "Pass Passeport"}, {"name": "fixed:document_type_2", "box": [[0.052, 0.107], [0.183, 0.147]], "data": "Passaporto"}, {"name": "id:document_number_1", "box": [[0.629, 0.11], [0.847, 0.128]], "data": "Passaporto Passaport Passport No N Nr"}, {"name": "value:document_subtype", "box": [[0.3, 0.122], [0.339, 0.162]]}, {"name": "fixed:issuing_country_1", "box": [[0.457, 0.122], [0.504, 0.162]], "data": "CHE"}, {"name": "value:document_number", "box": [[0.63, 0.127], [0.746, 0.163]], "required": true}, {"name": "fixed:document_type_3", "box": [[0.067, 0.144], [0.185, 0.183]], "data": "Passaport"}, {"name": "id:last_name_0", "box": [[0.301, 0.163], [0.37, 0.18]], "data": "1 Name Nom"}, {"name": "fixed:document_type_4", "box": [[0.081, 0.181], [0.185, 0.22]], "data": "Passport"}, {"name": "id:last_name_1", "box": [[0.301, 0.18], [0.43, 0.199]], "data": "Cognome Num Surname"}, {"name": "value:last_name", "box": [[0.302, 0.196], [0.553, 0.232]], "required": true}, {"name": "id:first_name_0", "box": [[0.3, 0.235], [0.431, 0.253]], "data": "2 Vorname(n) Prénom(s)"}, {"name": "id:first_name_1", "box": [[0.299, 0.25], [0.482, 0.272]], "data": "Nome(i) Prenum(s) Given name(s)"}, {"name": "value:first_name", "box": [[0.298, 0.272], [0.429, 0.308]], "required": true}, {"name": "id:nationality_0", "box": [[0.3, 0.306], [0.441, 0.323]], "data": "3 Nationalitat Nationalité"}, {"name": "id:nationality_1", "box": [[0.3, 0.322], [0.506, 0.344]], "data": "Cittadinanza Naziunalitad Nationality"}, {"name": "value:nationality", "box": [[0.301, 0.34], [0.729, 0.378]], "required": true}, {"name": "id:date_of_birth_0", "box": [[0.3, 0.379], [0.489, 0.397]], "data": "4 Geburtsdatum Date de naissance"}, {"name": "id:sex_0", "box": [[0.629, 0.381], [0.728, 0.398]], "data": "5.Geschlecht Sexe"}, {"name": "id:height_0", "box": [[0.774, 0.381], [0.854, 0.397]], "data": "6 Grösse Taille"}, {"name": "id:date_of_birth_1", "box": [[0.3, 0.395], [0.581, 0.415]], "data": "Data di nascita Data da naschientscha Date of birth"}, {"name": "id:sex_1", "box": [[0.628, 0.397], [0.748, 0.415]], "data": "Sesso.Schlattaina Sex"}, {"name": "id:height_1", "box": [[0.774, 0.397], [0.914, 0.415]], "data": "Statura Grondezza Height"}, {"name": "value:date_of_birth", "box": [[0.303, 0.413], [0.433, 0.45]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:height", "box": [[0.776, 0.415], [0.862, 0.453]]}, {"name": "id:place_of_birth_0", "box": [[0.302, 0.451], [0.443, 0.47]], "data": "7 Heimatort Lieu d'origine"}, {"name": "id:place_of_birth_1", "box": [[0.299, 0.467], [0.556, 0.489]], "data": "Luogo diattinenza Lieu d'origin Place of origin"}, {"name": "value:place_of_birth", "box": [[0.3, 0.484], [0.384, 0.523]]}, {"name": "id:date_of_issue", "box": [[0.3, 0.524], [0.447, 0.541]], "data": "8 Ausgestellt am Délivré le"}, {"name": "id:issuing_authority_0", "box": [[0.628, 0.525], [0.733, 0.541]], "data": "9 Behörde Autorité"}, {"name": "id:date_of_issue", "box": [[0.3, 0.539], [0.492, 0.56]], "data": "Rilasciato il Emess ils Date of issue"}, {"name": "id:issuing_authority_1", "box": [[0.628, 0.541], [0.783, 0.56]], "data": "Autorita Autoritad Authority"}, {"name": "value:date_of_issue", "box": [[0.301, 0.557], [0.423, 0.593]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:issuing_authority", "box": [[0.63, 0.559], [0.711, 0.593]]}, {"name": "id:date_of_expiry_1", "box": [[0.3, 0.612], [0.571, 0.632]], "data": "Data di scadenza Data da scadenza Date of expiry"}, {"name": "id:date_of_expiry_0", "box": [[0.301, 0.597], [0.469, 0.615]], "data": "10 Gültig bis Date d'expiration"}, {"name": "value:date_of_expiry", "box": [[0.302, 0.63], [0.433, 0.665]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:mrz_line_#0", "box": [[0.043, 0.797], [0.956, 0.84]]}, {"name": "value:mrz_line_#1", "box": [[0.042, 0.869], [0.954, 0.913]]}, {"name": "value:sex", "box": [[0.631, 0.415], [0.645, 0.448]], "required": true}], "image_fields": [{"name": "portrait", "box": [[0.062, 0.232], [0.285, 0.66]]}]}, {"name": "passport:DEU:0:front", "aspect_ratio": 1.406, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.126, 0.034], [0.546, 0.063]], "data": "BUNDESREPUBLIK DEUTSCHLAND"}, {"name": "fixed:document_type_0", "box": [[0.752, 0.042], [0.856, 0.071]], "data": "REISEPASS"}, {"name": "fixed:issuing_country_1", "box": [[0.125, 0.069], [0.602, 0.088]], "data": "FEDERAL REPUBLIC OF GERMANY·RÉPUBLIQUE FEDÉRALE D'ALLEMAGNE"}, {"name": "fixed:document_type_1", "box": [[0.745, 0.077], [0.856, 0.094]], "data": "PASSPORT-PASSEPORT"}, {"name": "id:document_subtype", "box": [[0.333, 0.101], [0.431, 0.118]], "data": "Typ / Type / Type"}, {"name": "id:country_code", "box": [[0.486, 0.101], [0.596, 0.117]], "data": "Kode/Code/Code"}, {"name": "id:document_number", "box": [[0.63, 0.102], [0.854, 0.118]], "data": "Pass-Nr. / Passport No. / Passeport No."}, {"name": "value:document_subtype", "box": [[0.334, 0.13], [0.346, 0.155]]}, {"name": "value:country_code", "box": [[0.486, 0.131], [0.498, 0.155]]}, {"name": "value:document_number", "box": [[0.633, 0.134], [0.779, 0.158]], "required": true}, {"name": "id:last_name", "box": [[0.319, 0.173], [0.479, 0.19]], "data": "1.[a]Name / Surname / Nom"}, {"name": "id:maiden_name", "box": [[0.494, 0.172], [0.791, 0.19]], "data": "[b]Geburtsname/Name at birth/Nom de naissance"}, {"name": "fixed:other_#0", "box": [[0.323, 0.204], [0.337, 0.221]], "data": "[a]"}, {"name": "value:last_name", "box": [[0.344, 0.201], [0.475, 0.225]], "required": true}, {"name": "fixed:other_#1", "box": [[0.324, 0.244], [0.337, 0.261]], "data": "[b]"}, {"name": "value:maiden_name", "box": [[0.345, 0.241], [0.421, 0.265]]}, {"name": "fixed:other_#2", "box": [[0.318, 0.277], [0.328, 0.292]], "data": "2."}, {"name": "id:first_name", "box": [[0.343, 0.278], [0.552, 0.292]], "data": "Vornamen/Given names/Prénoms"}, {"name": "value:first_name", "box": [[0.344, 0.306], [0.409, 0.331]], "required": true}, {"name": "fixed:other_#3", "box": [[0.318, 0.383], [0.328, 0.397]], "data": "3."}, {"name": "id:date_of_birth_0", "box": [[0.344, 0.382], [0.496, 0.398]], "data": "Geburtstag / Date of birth /"}, {"name": "fixed:other_#4", "box": [[0.528, 0.382], [0.538, 0.396]], "data": "4."}, {"name": "id:sex_0", "box": [[0.55, 0.383], [0.653, 0.396]], "data": "Geschlecht / Sex /"}, {"name": "fixed:other_#5", "box": [[0.693, 0.382], [0.703, 0.396]], "data": "5."}, {"name": "id:nationality_0", "box": [[0.711, 0.382], [0.9, 0.398]], "data": "Staatsangehörigkeit / Nationality /"}, {"name": "id:date_of_birth_1", "box": [[0.344, 0.403], [0.449, 0.417]], "data": "Date.de naissance"}, {"name": "id:sex_1", "box": [[0.55, 0.402], [0.577, 0.416]], "data": "Sexe"}, {"name": "id:nationality_1", "box": [[0.712, 0.402], [0.77, 0.415]], "data": "Nationalité"}, {"name": "value:date_of_birth", "box": [[0.346, 0.431], [0.474, 0.455]], "date_format": "%d.%m.%Y", "required": true}, {"name": "value:nationality", "box": [[0.711, 0.43], [0.803, 0.454]], "required": true}, {"name": "value:other_#0", "box": [[0.913, 0.442], [0.967, 0.522]]}, {"name": "fixed:other", "box": [[0.318, 0.468], [0.327, 0.482]], "data": "6."}, {"name": "id:place_of_birth", "box": [[0.342, 0.468], [0.603, 0.482]], "data": "Geburtsort/Place ofbirthLieu denaissance"}, {"name": "value:place_of_birth", "box": [[0.344, 0.493], [0.422, 0.517]]}, {"name": "id:date_of_issue_0", "box": [[0.344, 0.538], [0.49, 0.553]], "data": "Ausstellungsdatum/Date"}, {"name": "fixed:other_#6", "box": [[0.528, 0.538], [0.538, 0.552]], "data": "8."}, {"name": "id:date_of_expiry_0", "box": [[0.549, 0.538], [0.699, 0.554]], "data": "Gültig bis/Date of expiry/"}, {"name": "fixed:other_#7", "box": [[0.73, 0.537], [0.9, 0.553]], "data": "10.Unterschrift der Inhaberin,"}, {"name": "id:date_of_issue_1", "box": [[0.344, 0.557], [0.505, 0.573]], "data": "of issue/Date de délivrance"}, {"name": "id:date_of_expiry_1", "box": [[0.55, 0.558], [0.645, 0.572]], "data": "Date d'expiration"}, {"name": "fixed:other_#8", "box": [[0.753, 0.557], [0.952, 0.572]], "data": "des nhabers/Signatureof bearer/"}, {"name": "value:date_of_expiry", "box": [[0.551, 0.583], [0.681, 0.606]], "date_format": "%d.%m.%Y", "required": true}, {"name": "fixed:other_#9", "box": [[0.753, 0.575], [0.948, 0.592]], "data": "Signature de la titulaire, du titulaire"}, {"name": "value:date_of_issue", "box": [[0.345, 0.584], [0.477, 0.608]], "date_format": "%d.%m.%Y", "required": true}, {"name": "fixed:other_#10", "box": [[0.318, 0.621], [0.328, 0.634]], "data": "9"}, {"name": "id:issuing_authority", "box": [[0.343, 0.619], [0.507, 0.634]], "data": "Behorde/Authority/Autorité"}, {"name": "value:issuing_authority", "box": [[0.345, 0.643], [0.475, 0.672]]}, {"name": "value:mrz_line_#0", "box": [[0.051, 0.801], [0.953, 0.836]]}, {"name": "value:mrz_line_#1", "box": [[0.053, 0.871], [0.953, 0.909]]}, {"name": "fixed:other_#11", "box": [[0.318, 0.539], [0.328, 0.552]], "data": "7."}, {"name": "value:sex", "box": [[0.55, 0.431], [0.562, 0.454]], "required": true}], "image_fields": [{"name": "portrait", "box": [[0.028, 0.176], [0.303, 0.681]]}, {"name": "signature", "box": [[0.735, 0.594], [0.98, 0.709]]}]}, {"name": "passport:USA:0:front", "aspect_ratio": 1.428, "text_fields": [{"name": "fixed:issuing_country_0", "box": [[0.316, 0.031], [0.976, 0.087]], "data": "THE UNITED STATES OF AMERICA"}, {"name": "fixed:document_type_0", "box": [[0.077, 0.047], [0.186, 0.071]], "data": "PASSPORT"}, {"name": "fixed:document_type_1", "box": [[0.043, 0.079], [0.22, 0.096]], "data": "PASSEPORT/PASAPORTE"}, {"name": "id:document_subtype", "box": [[0.309, 0.121], [0.41, 0.143]], "data": "Type/Type/Tipo"}, {"name": "id:country_code", "box": [[0.435, 0.118], [0.561, 0.138]], "data": "CodelCode/Codigo"}, {"name": "id:document_number", "box": [[0.591, 0.115], [0.913, 0.137]], "data": "Passport No./No.du Passeport/No.de Pasaporte"}, {"name": "value:country_code", "box": [[0.485, 0.151], [0.526, 0.174]]}, {"name": "value:document_number", "box": [[0.664, 0.143], [0.838, 0.188]], "required": true}, {"name": "value:document_subtype", "box": [[0.362, 0.153], [0.373, 0.174]]}, {"name": "fixed:issuing_country_1", "box": [[0.062, 0.174], [0.194, 0.234]], "data": "USA"}, {"name": "id:last_name", "box": [[0.287, 0.213], [0.448, 0.232]], "data": "Surname/Nom/Apellidos"}, {"name": "value:last_name", "box": [[0.291, 0.241], [0.42, 0.271]], "required": true}, {"name": "id:first_name", "box": [[0.286, 0.282], [0.502, 0.3]], "data": "Given names/Prenoms/Nombres"}, {"name": "value:first_name", "box": [[0.293, 0.309], [0.376, 0.339]], "required": true}, {"name": "id:nationality", "box": [[0.341, 0.353], [0.579, 0.371]], "data": "Nationality/Nationalité/Nacionalidad"}, {"name": "value:nationality", "box": [[0.341, 0.378], [0.623, 0.403]], "required": true}, {"name": "id:date_of_birth", "box": [[0.341, 0.414], [0.693, 0.429]], "data": "Date of birth/Date de naissance/Fecha de nacimiento"}, {"name": "value:date_of_birth", "box": [[0.345, 0.437], [0.498, 0.471]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "id:sex", "box": [[0.341, 0.476], [0.44, 0.493]], "data": "Sex/Sexe/Sexo"}, {"name": "value:sex", "box": [[0.346, 0.499], [0.365, 0.53]], "required": true}, {"name": "id:place_of_birth", "box": [[0.342, 0.537], [0.696, 0.554]], "data": "Place of birth/Didudenaissance/Lugar.danacimiento"}, {"name": "value:place_of_birth", "box": [[0.346, 0.556], [0.681, 0.59]]}, {"name": "id:date_of_issue", "box": [[0.342, 0.598], [0.698, 0.616]], "data": "Date of issue/Date de delivrance/Fecha de expedicion"}, {"name": "value:date_of_issue", "box": [[0.344, 0.62], [0.496, 0.653]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "value:date_of_expiry", "box": [[0.345, 0.682], [0.497, 0.716]], "date_format": "%d %b %Y;locale=en", "required": true}, {"name": "id:issuing_authority", "box": [[0.341, 0.725], [0.531, 0.743]], "data": "Authority/Autorité/Autoridad"}, {"name": "value:document_additional_number", "box": [[0.822, 0.72], [0.876, 0.737]]}, {"name": "value:issuing_authority", "box": [[0.342, 0.748], [0.734, 0.773]]}, {"name": "value:mrz_line_#0", "box": [[0.047, 0.807], [0.953, 0.842]]}, {"name": "value:mrz_line_#1", "box": [[0.048, 0.89], [0.951, 0.927]]}, {"name": "id:date_of_expiry", "box": [[0.341, 0.658], [0.717, 0.679]], "data": "Date of expiration/Date d'expiration/Fecha de caducidad"}], "image_fields": [{"name": "portrait", "box": [[0.028, 0.251], [0.257, 0.682]]}]}, {"name": "region_specific:us_medical_marijuana_card:AZ:0:mobile", "aspect_ratio": 0.634, "text_fields": [{"name": "fixed:other", "box": [[0.123, -0.118], [0.524, -0.062]], "data": "My ID Cards"}, {"name": "fixed:issuing_country_#0", "box": [[0.19, 0.034], [0.596, 0.062]], "data": "ARIZONA DEPARTMENT"}, {"name": "fixed:issuing_country_#1", "box": [[0.186, 0.062], [0.58, 0.097]], "data": "OF HEALTH SERVICES"}, {"name": "fixed:other_#0", "box": [[0.065, 0.119], [0.564, 0.147]], "data": "Not Authorized to Cultivate"}, {"name": "fixed:other_#1", "box": [[0.573, 0.177], [0.794, 0.209]], "data": "PATIENT"}, {"name": "id:date_of_issue", "box": [[0.572, 0.248], [0.76, 0.271]], "data": "ISSUE DATE"}, {"name": "value:date_of_issue", "box": [[0.572, 0.276], [0.775, 0.301]], "date_format": "%m/%d/%Y", "required": true}, {"name": "id:date_of_expiry", "box": [[0.575, 0.326], [0.707, 0.349]], "data": "EXPIRES"}, {"name": "value:date_of_expiry", "box": [[0.574, 0.355], [0.775, 0.378]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:full_name", "box": [[0.067, 0.459], [0.503, 0.495]], "required": true}, {"name": "value:address_#0", "box": [[0.069, 0.603], [0.467, 0.627]]}, {"name": "value:address_#1", "box": [[0.067, 0.633], [0.35, 0.66]]}, {"name": "value:date_of_birth", "box": [[0.168, 0.666], [0.368, 0.693]], "date_format": "%m/%d/%Y", "required": true}, {"name": "value:document_number", "box": [[0.156, 0.769], [0.841, 0.81]], "required": true}, {"name": "fixed:other_#2", "box": [[0.093, 0.961], [0.905, 0.978]], "data": "THERE MAY BE POTENTIAL DANGERS TO FETUSES CAUSED BY SMOKING OR"}, {"name": "fixed:other_#3", "box": [[0.145, 0.979], [0.854, 1.001]], "data": "INGESTING MARIJUANA WHILE PREGNANT OR TO INFANTS WHILE"}, {"name": "id:date_of_birth", "box": [[0.069, 0.662], [0.164, 0.695]], "data": "DOB:"}], "image_fields": []}]