how to scan a barcode image in a meteor application -


i'd put mobile-friendly data acquisition app app used in data center, means working in disconnected mode app needs carry (on client) mongodb collection of asci| character codes, matched incoming barcodes once being online, app should sync acquired data back-end mongodb

based on these requirements, think, meteor choice

my questions is: there meteor packages, can scan image, , translate image ascii character code?

to barcode scanning capability, use barcodescanner cordova plugin:

meteor add cordova:com.phonegap.plugins.barcodescanner@2.0.1 

template

<head>   <title>barcode scanner</title> </head>  <body   {{> barcode_scanner}} </body>  <template name="barcode_scanner">   <button>scan</button> </template> 

js

if (meteor.iscordova) {    template.barcode_scanner.events({     'click button': function () {        cordova.plugins.barcodescanner.scan(         function (result) {           alert("we got barcode\n" +             "result: " + result.text + "\n" +             "format: " + result.format + "\n" +             "cancelled: " + result.cancelled);         },          function (error) {           alert("scanning failed: " + error);         }      );      }    });  } 

for offline data capability, take grounddb


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -