tesseract.js-core
Advanced tools
Comparing version 4.0.3 to 4.0.4
{ | ||
"name": "tesseract.js-core", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Tesseract C++ API in Pure Javascript", | ||
@@ -12,3 +12,2 @@ "main": "index.js", | ||
"index.js", | ||
"tesseract-core.asm.js", | ||
"tesseract-core.js", | ||
@@ -15,0 +14,0 @@ "tesseract-core.wasm", |
@@ -25,10 +25,12 @@ tesseract.js-core | ||
1. Allows for lines (and therefore page angle) to be detected without running unnecessary steps afterwards | ||
1. Added public `GetAngle` function to `baseapi.h` and `baseapi.cpp` for reporting page angle | ||
1. Added `WriteImage` function to `baseapi.h` and `baseapi.cpp` for saving images (original, grey, and binary) | ||
1. Added `SaveParameters` and `RestoreParameters` functions to `baseapi.h` and `baseapi.cpp` for saving and restoring parameters | ||
1. Added calls to `EM_ASM_ARGS` to `src/ccmain/control.cpp` for progress logging (and added `<emscripten.h>` header) | ||
2. Rewrote `tprintf` function in `src/ccutil/tprintf.cpp` to force flushing | ||
3. Added new version of `SetImage` to `src/api/baseapi.cpp` and `include/tesseract/baseapi.h` that reads image from filesystem | ||
1. Added public `GetGradient` function to `baseapi.h` and `baseapi.cpp` for reporting page angle | ||
1. Also required minor changes to `src/ccmain/tesseractclass.h`, `src/ccmain/pagesegmain.cpp`, `src/textord/textord.cpp`, and `src/textord/textord.h` | ||
1. See this commit: https://github.com/Balearica/tesseract/commit/db6951f655263878f6344380a5ddb95e678d7c09 | ||
2. Added `WriteImage` function to `baseapi.h` and `baseapi.cpp` for saving images (original, grey, and binary) | ||
3. Added `SaveParameters` and `RestoreParameters` functions to `baseapi.h` and `baseapi.cpp` for saving and restoring parameters | ||
4. Added calls to `EM_ASM_ARGS` to `src/ccmain/control.cpp` for progress logging (and added `<emscripten.h>` header) | ||
5. Rewrote `tprintf` function in `src/ccutil/tprintf.cpp` to force flushing | ||
6. Added new version of `SetImage` to `src/api/baseapi.cpp` and `include/tesseract/baseapi.h` that reads image from filesystem | ||
1. This was done to resolve memory leak--see [this issue](https://github.com/naptha/tesseract.js/issues/678) | ||
4. Edited `ParamUtils::PrintParams` in `src/ccutil/params.cpp` to remove description text (resolves bug) | ||
7. Edited `ParamUtils::PrintParams` in `src/ccutil/params.cpp` to remove description text (resolves bug) | ||
1. The bug was reported in [this](https://github.com/tesseract-ocr/tesseract/issues/3943) Git Issue, so we can cut this point if resolved in a future version of Tesseract | ||
@@ -35,0 +37,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59
16662582
10
3185
11