
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
node-zbardecoder-bgrfix
Advanced tools
Forked from https://github.com/ivfisunov/node-zbardecoder
This barcode reader is a Node.js C++ addon wrapper over the open source ZBar and OpenCV libraries.
It works with a static image files, supports multiple barcodes in the image and detects barcode types.
ZBar code reader and OpenCV have to be installed on your machine.
Before npm install you need to install packages.
For linux users:
apt-get install libzbar0 libzbar-dev
apt-get install python3-opencv libopencv-dev
or
yum install zbar zbar-devel
yum install opencv opencv-devel
After this install Barcode Reader
npm i node-zbardecoder
const bardecoder = require('node-zbardecoder');
const result = JSON.parse(bardecoder.decode('image.jpg'));
console.log(result);
/*
{
results: [
{ type: 'CODE-128', data: 'ARD000083' },
{ type: 'CODE-128', data: 'ARD000066' }
]
}
*/
For better results use images no larger then 1500px on the long side and images with sharp and large barcodes.
See the test folder for example.
FAQs
Bar/Qr code image decoder
The npm package node-zbardecoder-bgrfix receives a total of 7 weekly downloads. As such, node-zbardecoder-bgrfix popularity was classified as not popular.
We found that node-zbardecoder-bgrfix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.