Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@phiresky/ocr-pdf-via-document-ai
Advanced tools
Takes a set of jpg files, runs OCR on them via Google Cloud Document AI and outputs
Example:
Input Image | Debug Output |
---|---|
Tesseract is the best open-source OCR engine, but sadly the Google Service performs much better and has the following extra features:
Currently the price is $1.5 per 1000 pages (see here).
You'll need to set up the following env variables:
eu-documentai.googleapis.com
projects/00000000000/locations/eu/processors/fffffffffffff
Then run:
yarn install
yarn run ocr --writePdf out.pdf --writeTxt --input input_dir/*.jpg
The aw document-ai output is always written so if you run it again it will only do API calls for new files.
pdftotext
(also compare with hocr-pdf)FAQs
Unknown package
The npm package @phiresky/ocr-pdf-via-document-ai receives a total of 0 weekly downloads. As such, @phiresky/ocr-pdf-via-document-ai popularity was classified as not popular.
We found that @phiresky/ocr-pdf-via-document-ai 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.