Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
react-native-tesseract-ocr
Advanced tools
react-native-tesseract-ocr is a react-native wrapper for Tesseract OCR
This project uses:
NOTE: It is recommended to use react-native >= 0.60.0
$ npm i react-native-tesseract-ocr --save
$ react-native link react-native-tesseract-ocr
Check the example by yourself here
Property | Type | Description |
---|---|---|
allowlist | string | List of characters you want to recognize |
denylist | string | List of characters you DON'T want to recognize |
level | Level | Level of the tokens of the page hierarchy (only used in recognizeTokens ) |
Level
can be one of the following values 'symbol' | 'block' | 'line' | 'paragraph' | 'word'
import TesseractOcr, { LANG_ENGLISH } from 'react-native-tesseract-ocr';
const tessOptions = {};
TesseractOcr.recognize(imageSource, LANG_ENGLISH, tessOptions);
import TesseractOcr, { LANG_ENGLISH, LEVEL_WORD } from 'react-native-tesseract-ocr';
const tessOptions = { level: LEVEL_WORD };
TesseractOcr.recognizeTokens(imageSource, LANG_ENGLISH, tessOptions);
import React, { useState } from 'react';
import { useEventListener } from 'react-native-tesseract-ocr';
function App() {
const [progress, setProgress] = useState(0);
useEventListener('onProgressChange', (p) => {
setProgress(p.percent / 100);
});
// return ...
}
This is a commitizen friendly
repository, so instead of creating commits using git commit
, please use our custom CLI by running:
$ npm run cz
Thanks goes to these wonderful people (emoji key):
Jonathan Palma 💻 📖 💡 | Johan Runsten 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © jonathanpalma
This library wouldn't be possible without these amazing projects:
FAQs
Tesseract OCR wrapper for React Native
The npm package react-native-tesseract-ocr receives a total of 30 weekly downloads. As such, react-native-tesseract-ocr popularity was classified as not popular.
We found that react-native-tesseract-ocr 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.