UNPKG

@angloqq03/gpv

Version:

OCR-powered GCash screenshot proof validation for Node.js using Tesseract.js and Brain.js.

256 lines • 8.39 kB
{ "sizes": [ 12, 8, 5, 1 ], "layers": [ { "textConfidence": {}, "hasReference": {}, "hasAmount": {}, "hasDate": {}, "hasExpectedReference": {}, "amountMatchesExpected": {}, "dateMatchesExpected": {}, "dateIsRecent": {}, "mentionsGcash": {}, "mentionsCimb": {}, "mentionsMariBank": {}, "mentionsTransfer": {} }, { "0": { "bias": -0.3939431309700012, "weights": { "textConfidence": -0.09857070446014404, "hasReference": 0.01573973335325718, "hasAmount": -0.02417127788066864, "hasDate": 0.0219461340457201, "hasExpectedReference": 0.2811673879623413, "amountMatchesExpected": 0.321140319108963, "dateMatchesExpected": 0.6010546684265137, "dateIsRecent": 0.584189236164093, "mentionsGcash": 0.14895616471767426, "mentionsCimb": -0.37379786372184753, "mentionsMariBank": 0.1533730924129486, "mentionsTransfer": 0.0054769632406532764 } }, "1": { "bias": -0.6257258057594299, "weights": { "textConfidence": -0.12722156941890717, "hasReference": -0.04441467300057411, "hasAmount": -0.23754943907260895, "hasDate": -0.05566143989562988, "hasExpectedReference": 0.4125416576862335, "amountMatchesExpected": 0.7114183306694031, "dateMatchesExpected": 0.8001934885978699, "dateIsRecent": 0.7372905611991882, "mentionsGcash": 0.014977402985095978, "mentionsCimb": -0.3377562463283539, "mentionsMariBank": -0.05758357420563698, "mentionsTransfer": -0.03409101441502571 } }, "2": { "bias": -0.044575173407793045, "weights": { "textConfidence": -0.16191822290420532, "hasReference": -0.025133442133665085, "hasAmount": 0.11783234775066376, "hasDate": -0.21934965252876282, "hasExpectedReference": -0.40914374589920044, "amountMatchesExpected": -0.15040630102157593, "dateMatchesExpected": -0.1990344375371933, "dateIsRecent": -0.1606895923614502, "mentionsGcash": 0.032972510904073715, "mentionsCimb": 0.20689669251441956, "mentionsMariBank": 0.028797071427106857, "mentionsTransfer": 0.08488021045923233 } }, "3": { "bias": 0.008287688717246056, "weights": { "textConfidence": 0.05646037310361862, "hasReference": -0.2123280167579651, "hasAmount": 0.01048083882778883, "hasDate": -0.28132566809654236, "hasExpectedReference": -0.24051040410995483, "amountMatchesExpected": -0.17700393497943878, "dateMatchesExpected": -0.09174402803182602, "dateIsRecent": -0.1645105928182602, "mentionsGcash": -0.22039556503295898, "mentionsCimb": 0.16120584309101105, "mentionsMariBank": 0.13800597190856934, "mentionsTransfer": -0.25178176164627075 } }, "4": { "bias": -0.8913845419883728, "weights": { "textConfidence": 0.061664316803216934, "hasReference": -0.061578381806612015, "hasAmount": -0.29241979122161865, "hasDate": -0.23006056249141693, "hasExpectedReference": 0.8358150720596313, "amountMatchesExpected": 0.7030099630355835, "dateMatchesExpected": 0.6909412145614624, "dateIsRecent": 0.5430424213409424, "mentionsGcash": -0.04552099108695984, "mentionsCimb": -0.6473008394241333, "mentionsMariBank": 0.08766556531190872, "mentionsTransfer": -0.1668626368045807 } }, "5": { "bias": 0.4465169310569763, "weights": { "textConfidence": 0.07311723381280899, "hasReference": -0.23011162877082825, "hasAmount": 0.16292239725589752, "hasDate": 0.014960975386202335, "hasExpectedReference": -0.3543351888656616, "amountMatchesExpected": -0.5893429517745972, "dateMatchesExpected": -0.7503520250320435, "dateIsRecent": -0.6292994022369385, "mentionsGcash": 0.08409719914197922, "mentionsCimb": 0.1704401969909668, "mentionsMariBank": 0.1855810433626175, "mentionsTransfer": -0.02640962228178978 } }, "6": { "bias": -0.10770283639431, "weights": { "textConfidence": 0.2196456491947174, "hasReference": 0.024108560755848885, "hasAmount": -0.07747284322977066, "hasDate": 0.18703746795654297, "hasExpectedReference": 0.2701450288295746, "amountMatchesExpected": 0.012002851814031601, "dateMatchesExpected": 0.04735622555017471, "dateIsRecent": 0.2197929173707962, "mentionsGcash": 0.05354347825050354, "mentionsCimb": -0.0009432712686248124, "mentionsMariBank": 0.04027232155203819, "mentionsTransfer": -0.08054918795824051 } }, "7": { "bias": 0.07547938078641891, "weights": { "textConfidence": -0.12847809493541718, "hasReference": 0.11154893785715103, "hasAmount": -0.13794705271720886, "hasDate": -0.07875803858041763, "hasExpectedReference": -0.17833080887794495, "amountMatchesExpected": -0.35932013392448425, "dateMatchesExpected": -0.34890216588974, "dateIsRecent": -0.18762481212615967, "mentionsGcash": -0.10142002254724503, "mentionsCimb": 0.16785351932048798, "mentionsMariBank": 0.18049916625022888, "mentionsTransfer": -0.1980801522731781 } } }, { "0": { "bias": 0.17669986188411713, "weights": { "0": -0.31735506653785706, "1": -0.7468209862709045, "2": 0.2991536855697632, "3": 0.204173281788826, "4": -0.7849785089492798, "5": 0.35835957527160645, "6": -0.2851657569408417, "7": 0.041126880794763565 } }, "1": { "bias": 0.4222467839717865, "weights": { "0": -0.5570710897445679, "1": -1.1201437711715698, "2": 0.44652995467185974, "3": 0.4447646737098694, "4": -1.1495658159255981, "5": 1.0941290855407715, "6": 0.027595745399594307, "7": 0.6080606579780579 } }, "2": { "bias": 0.28105250000953674, "weights": { "0": -0.5603551864624023, "1": -0.9675740599632263, "2": 0.4608747959136963, "3": 0.5323977470397949, "4": -1.1218119859695435, "5": 0.9732905030250549, "6": -0.04821716621518135, "7": 0.7509113550186157 } }, "3": { "bias": 0.12279832363128662, "weights": { "0": 0.13207486271858215, "1": 0.3905181884765625, "2": -0.3225541412830353, "3": -0.18444456160068512, "4": 0.4206336438655853, "5": -0.5596098303794861, "6": 0.1126617044210434, "7": -0.26090696454048157 } }, "4": { "bias": -0.16998335719108582, "weights": { "0": 0.48308098316192627, "1": 0.47212114930152893, "2": -0.04163268208503723, "3": -0.28953635692596436, "4": 0.6995096802711487, "5": -0.6698649525642395, "6": 0.141188383102417, "7": -0.09238110482692719 } } }, { "legitimate": { "bias": 0.8245031237602234, "weights": { "0": -1.1024501323699951, "1": -2.2077598571777344, "2": -2.1531286239624023, "3": 1.1117216348648071, "4": 1.5098384618759155 } } } ], "outputLookup": true, "inputLookup": true, "activation": "sigmoid", "trainOpts": { "iterations": 4000, "errorThresh": 0.005, "log": false, "logPeriod": 10, "learningRate": 0.3, "momentum": 0.1, "callbackPeriod": 10, "beta1": 0.9, "beta2": 0.999, "epsilon": 1e-8 } }