All Projects → syneo-tools-gmbh → Javascript Bcr Library

syneo-tools-gmbh / Javascript Bcr Library

Licence: apache-2.0
Offline business card reader

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Javascript Bcr Library

ocr
Simple app to extract text from pictures using Tesseract
Stars: ✭ 98 (+308.33%)
Mutual labels:  ocr, tesseract
Ccextractor
CCExtractor - Official version maintained by the core team
Stars: ✭ 356 (+1383.33%)
Mutual labels:  ocr, tesseract
breach-protocol-autosolver
Solve breach protocol minigame in second(s). Windows/Linux/GeForce Now/Google Stadia. Every language.
Stars: ✭ 28 (+16.67%)
Mutual labels:  ocr, tesseract
TesseractStudio.Net
A free Windows graphical interface to the Tesseract 4.0 OCR engine.
Stars: ✭ 38 (+58.33%)
Mutual labels:  ocr, tesseract
Tesseract
A PHP wrapper for the Tesseract OCR engine
Stars: ✭ 19 (-20.83%)
Mutual labels:  ocr, tesseract
cordova-plugin-tesseract
Cordova Plugin for OCR process using Tesseract
Stars: ✭ 70 (+191.67%)
Mutual labels:  ocr, tesseract
Card Ocr
身份证识别OCR
Stars: ✭ 345 (+1337.5%)
Mutual labels:  ocr, tesseract
textocry
Textocry - Copy text from Images (chrome extension)
Stars: ✭ 29 (+20.83%)
Mutual labels:  ocr, tesseract
Ocrmypdf
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
Stars: ✭ 5,549 (+23020.83%)
Mutual labels:  ocr, tesseract
React Native Tesseract Ocr
Tesseract OCR wrapper for React Native
Stars: ✭ 384 (+1500%)
Mutual labels:  ocr, tesseract
IdCardRecognition
Android id card recognition based on OCR. 安卓基于OCR的身份证识别。
Stars: ✭ 35 (+45.83%)
Mutual labels:  ocr, tesseract
Tesseract.js
Pure Javascript OCR for more than 100 Languages 📖🎉🖥
Stars: ✭ 25,246 (+105091.67%)
Mutual labels:  ocr, tesseract
tesseract-ocr
Node.js wrapper for Tesseract OCR CLI.
Stars: ✭ 29 (+20.83%)
Mutual labels:  ocr, tesseract
staff identity card ocr project
Staff Identity Card OCR Project
Stars: ✭ 15 (-37.5%)
Mutual labels:  ocr, tesseract
LaraOCR
Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract
Stars: ✭ 88 (+266.67%)
Mutual labels:  ocr, tesseract
Qanswer
【Deprecated】🥇🥇🥇 冲顶大会等游戏答题助手,提供答题辅助决策 ,帮助顺利吃鸡
Stars: ✭ 326 (+1258.33%)
Mutual labels:  ocr, tesseract
Nkocr
🔎📝 This is a module to make specifics OCRs at food products and nutritional tables.
Stars: ✭ 15 (-37.5%)
Mutual labels:  ocr, tesseract
OCRmyPDF
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
Stars: ✭ 6,560 (+27233.33%)
Mutual labels:  ocr, tesseract
Tessdata
Trained models with support for legacy and LSTM OCR engine
Stars: ✭ 4,173 (+17287.5%)
Mutual labels:  ocr, tesseract
Easyocr
Java OCR 识别组件(基于Tesseract OCR 引擎)。能自动完成图片清理、识别 CAPTCHA 验证码图片内容的一体化工作。Java Image cleanup, OCR recognition component (based Tesseract OCR engine, automatically cleanup image and identification CAPTCHA verification code picture content).
Stars: ✭ 466 (+1841.67%)
Mutual labels:  ocr, tesseract

Javascript BCR Library 1.0.12

Authors: Gaspare Ferraro, Renzo Sala, Simone Ponte, Paolo Macco

BCR Library is a javascript library, using the OCR engine Tesseract.JS, that extracts name, company name, job, address, phone numbers, email and web address out of a business card picture.

The library is written in Javascript and can be used in any Javascript project (included in projects using frameworks for hybrid mobile applications, like Apache Cordova, Phonegap or Ionic).

The library can be used offline, no online dependencies are required.

Installation

Copy the content of the repository and reference bcr via script tag in your HTML project:

<script type="text/javascript" src="src/bcr.js"></script>

Sample

The sample application in the repository must be executed on a web server.

If you have python it's enough to run python -m http.server 8000 in the project folder.

If you use cordova, you can add the browser platform and run it (it works on other platforms like Android or iOS too).

Reference

Methods

Init methods

bcr.initialize(ocrEngine, crop, language, width, height, QRScanner, dynamicInclude);

Initialize the bcr reader. If ocrEngine is set to ocrEngines.TESSERACT, initialize the tesseract engine. If ocrEngine is set to ocrEngines.GOOGLEVISION, initialize bcr reader given the ocr from google mobile vision text recognition API (cordova-plugin-mobile-ocr).

Where:

  • STRING ocrEngine the selected engine (see ocrEngines), default ocrEngines.TESSERACT.
  • STRING crop: the crop strategy (see languages), default languages.GERMAN.
  • STRING language: the language trained data (see cropStrategy), default cropStrategy.SMART.
  • NUMBER width: max internal width, default 2160.
  • NUMBER height: max internal height, default 1440.
  • BOOLEAN QRScanner: check first for VCard QR Code in image, default true.
  • BOOLEAN dynamicInclude: if the references are not included externally, default true.
  • Return Promise about JS loading.

Recognize business card

bcr.recognize(base64image, displayResultCallback, displayProgressCallback, ocr);

Where:

  • STRING base64image: base64 string of the image to analyze.
  • FUNCTION displayResultCallback(result_data) function called when the analysis of the business card is completed.
  • FUNCTION displayProgressCallback(progress_data) function called after each progress in the analysis.
  • OBJECT ocr: object containing ocr results data from google mobile vision (optional, default ``).

Getter methods

bcr.cropStrategy()
  • Return the strategy label internally set.

bcr.maxWidth()
  • Return the value of the max width used internally to normalize the resolution.

bcr.maxHeight()
  • Return the value of the max height used internally to normalize the resolution.

bcr.language()
  • Return the value of the language trained data.

bcr.tesseract()
  • Return the initialized tesseract worker.

bcr.ocr()
  • Return the ocr passed.

bcr.ocrEngine()
  • Return the ocr engine selected.

bcr.qrScanner()

-if VCard QRScanner read is enabled.


Object

result_data

JSON object in the format:

{
  "Company": "STRING",
  "Email": "STRING",
  "Address": {
      "StreetAddress": "STRING",
      "ZipCode": "STRING",
      "Country": "STRING",
      "Text": "STRING",
      "City": "STRING"
  },
  "Web": "STRING",
  "Phone": "STRING",
  "Text": "STRING",
  "Fax": "STRING",
  "Job": "STRING",
  "Mobile": "STRING",
  "Name": {
      "Text": "STRING",
      "Surname": "STRING",
      "Name": {
          "FirstName": "STRING",
          "Text": "STRING",
          "MiddleName": "STRING",
          "ExtraName": "STRING"
      }
  }
}

progress_data

JSON object in the format:

{
  "section": "STRING",
  "progress": {
    "status": "STRING",
    "progress": "FLOAT"
  }
}

ENUM

languages

  • languages.DANISH: Danish language
  • languages.GERMAN: German language
  • languages.ENGLISH: English language
  • languages.FRENCH: French language
  • languages.ITALIAN: Italian language
  • languages.SPANISH: Spanish language
  • languages.SWEDISH: Swedish language

cropStrategy

  • cropStrategy.SMART: clean the image

ocrEngines

  • ocrEngines.TESSERACT: use the tesseract internal engine
  • ocrEngines.GOOGLEVISION: use Google Mobile Vision external engine

JS Libraries used

Required Cordova Plugins (in case of cordova project)

  • cordova-plugin-ionic-webview - 4.0.0
    A Web View plugin for Cordova, focused on providing the highest performance experience for Ionic apps (but can be used with any Cordova app).

Contribution

The current status of the library is alpha. Looking forward for your contribution to make the first release.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].