Giter VIP home page Giter VIP logo

barcodereader's Introduction

BarcodeReader

A simple Barcodereader for Code128, Code93, Code39 and EAN-13 barcodes in javascript. Supports multiple barcodes in one image and detects what type of barcodes there are.

It seems that when taking a picture with a smartphone, decreasing the resolution increases the chance for a successful decoding.

I'm currently working on comments for the code, just in case someone actually tries to understand my scribbles.

I've added two options for when you post a message to the decode worker, priority and skip.

Priority simply is the order in which the worker checks for a matching barcode and works as follows:

Default order is ["Code128","Code93","Code39","EAN-13"].

DecodeWorker.postMessage({pixels: image-data, cmd: normal/flip/left/right, priority: ["Code39"]});

This will make the order ["Code39","Code128","Code93","EAN-13"].

Skip is which encodings to ignore, useful for speeding up decoding if you're only looking for some types and works as follows:

DecodeWorker.postMessage({pixels: image-data, cmd: normal/flip/left/right, skip: ["Code39","Code128"]});

This will make it decode only EAN-13 and Code93.

barcodereader's People

Contributors

eddiela avatar chrisbarnett1 avatar

Watchers

James Cloos avatar Pete O'Connell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.