An HTTP server app which provides an API interface to read barcodes in Express
Dynamsoft Barcode Reader is used for barcode reading.
npm install
npm run start
-
Endpoint:
/readBarcodes
-
Request:
Headers:
{ "Content-Type":"application/json" }
Body:
{ "SDK": "pass DBRCPP to use the C++ version of Dynamsoft Barcode Reader, or the WASM version will be used" "base64": "the base64 string of the image for decoding" }
-
Example response:
{
"elapsedTime": 0,
"results": [
{
"barcodeText":"",
"barcodeFormat":"",
"barcodeBytes":"",
"confidence":0,
"x1":0,
"x2":0,
"x3":0,
"x4":0,
"y1":0,
"y2":0,
"y3":0,
"y4":0
}
]
}