Giter Club home page Giter Club logo

ean-13-barcode-reader-for-ios's Introduction

EAN-13 Reader for iOS

Build Status

Небольшое ios-приложение, демонстрирующее возможности алгоритма распознавания штриховых кодов в формате EAN-13 с реальных фотографий. После загрузки фотографии штрихкода из галереи, алгоритм автоматически запустится, а результат отобразится под фото. Алгоритм построен на анализе битовой карты, полученной из предоставленного изображения.

Иллюстрация к проекту

Constrains [Ограничения]

Note that the algorithm analyzes the bitmap from left to right. Therefore, it only works with photographs of a certain kind. The left side of the image must begin with a white area. Otherwise, the algorithm will not work correctly.

[Обратите внимание, что алгоритм в текущем своем исполнении анализирует битовое изображение слева направо. Он работает только с фотографиями определенного вида. Левая сторона изображения обязана начинаться с белой области, то есть визуальный мусор должен быть предварительно обрезан. В противном случае, алгоритм не будет работать корректно.]

Корректное и некорректное распознавание

Images suitable for the algorithm are given in the Resources ⟶ Examples ⟶ Real-Photos folder. [Подходящие под алгоритм изображения приведены в папке Resources ⟶ Examples ⟶ Real-Photos.]

Additional [Дополнительно]

Логика распознавания находится в Core ⟶ EAN13Parser.

Для понимания специфики работы Core необходимо ознакомиться с теорией: как устроены штрих-коды EAN-13

Преобразование к черно-белой битовой картинке: bitmap

ean-13-barcode-reader-for-ios's People

Stargazers

 avatar  avatar

Watchers

 avatar

ean-13-barcode-reader-for-ios's Issues

Null pointer exception

VectorScanLine has Null pointer - BarcodeFrom Image line 61. Occurs 80 percent of time but works with some images... but unable to decode barcode correctly on images that it works with.

Iphone SE, 12.4.1

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.