Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@scribe.js/tesseract.js-core
Advanced tools
Fork of tesseract.js-core used for scribe.js. Tesseract C++ API in Pure Javascript
Core part of tesseract.js, which compiles original tesseract from C to JavaScript WebAssembly.
To build tesseract-core.js by yourself, please install docker and run:
bash build-with-docker.sh
The generated files will be stored in root path. When compiling, errors sometimes occur due to race conditions (some dependencies do not appear to compile properly in parallel). Re-running generally resolves.
build-scripts
folderjavascript
folderthird_party
folder
CMakeLists.txt
to build with emscriptenltrresultiterator.h
and ltrresultiterator.cpp
to add WordChoiceIterator
classsrc/arch_see
folder, which is used instead of src/arch
for the simd-enabled build
src/textord/colfind.cpp
to prevent this from printing to consolesrc/ccmain/thresholder.cpp
, src/ccmain/thresholder.h
, src/api/baseapi.cpp
, and include/tesseract/baseapi.h
to add exif
and angle
arguments for rotating imagesFindLines
from "protected" to "public" in baseapi.h
to expose to Javascript
GetGradient
function to baseapi.h
and baseapi.cpp
for reporting page angle
src/ccmain/tesseractclass.h
, src/ccmain/pagesegmain.cpp
, src/textord/textord.cpp
, and src/textord/textord.h
WriteImage
function to baseapi.h
and baseapi.cpp
for saving images (original, grey, and binary)SaveParameters
and RestoreParameters
functions to baseapi.h
and baseapi.cpp
for saving and restoring parametersEM_ASM_ARGS
to src/ccmain/control.cpp
for progress logging (and added <emscripten.h>
header)tprintf
function in src/ccutil/tprintf.cpp
to force flushingSetImage
to src/api/baseapi.cpp
and include/tesseract/baseapi.h
that reads image from filesystem
ParamUtils::PrintParams
in src/ccutil/params.cpp
to remove description text (resolves bug)
src/ccmain/tessedit.cpp
to save error log to separate file (/debugDev.txt
)ComputeWordBounds
in src/ccstruct/pageres.cpp
to fix bug with incorrect LSTM bounding boxesTo run the browser examples, launch a web server in the root of the repo (i.e. run http-server
). Then navigate to the pages in examples/web/minimal/
in your browser.
To run the node examples, navigate to examples/node/minimal/
and then run e.g. node index.wasm.js [input_file]
.
The "benchmark" examples behave similarly, except that they take longer to run and report runtime instead of recognition text. All other examples are experimental and should not be expected to run.
As we leverage git-submodule to manage dependencies, remember to add recursive when cloning the repository:
git clone --recursive https://github.com/naptha/tesseract.js-core
FAQs
Fork of tesseract.js-core used for scribe.js. Tesseract C++ API in Pure Javascript
The npm package @scribe.js/tesseract.js-core receives a total of 178 weekly downloads. As such, @scribe.js/tesseract.js-core popularity was classified as not popular.
We found that @scribe.js/tesseract.js-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.