
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Command line client for several Japanese OCR providers derived from Manga OCR.
This has been tested with Python 3.11, 3.12 and 3.13. It can be installed with pip install owocr
.
Basic usage is comparable to Manga OCR as in, owocr
keeps scanning for images and performing text recognition on them. Similarly, by default it will read images from the clipboard and write text back to the clipboard (or optionally, read images from a folder and/or write text to a .txt file if you specify -r=<folder path>
or -w=<txt file path>
).
Additionally:
-r=websocket
and/or -w=websocket
parameters (the port is 7331 by default, and is configurable in the config file)/tmp/owocr.sock
) with -r=unixsocket
-r=screencapture
. By default it will open a coordinate picker so you can select an area of the screen and then read from it every 3 seconds, but you can change it to screenshot the whole screen, a manual set of coordinates x,y,width,height
or just a specific window (with the window title). You can also change the delay between screenshots or specify a keyboard combo if you don't want screenshots to be taken periodically. Refer to the config file or to owocr --help
for more details about the screen capture settings-rs=
, the arguments are the same as -r
-p
option or with a specific provider with the -e
option (refer to owocr -h
for the list)owocr -h
)-a=seconds
option if you're not using screen capture. 0 (the default) disables it.-n
to show the text with a native OS notification if you're not using screen capture with automatic screenshots. Important for macOS users: if you use Python from brew, you need to enter this command in your terminal before the first notification: codesign -f -s - $(brew --cellar python)/3.*/Frameworks/Python.framework
(works on Ventura/Sonoma). Older macOS versions might require Python to be installed from the official website. Nothing can be done about this unfortunately.pip install owocr[faster-png]
(requires setting up a developer environment on most operating systems/Python versions)pip install owocr[accurate-filtering]
user directory/.config/owocr_config.ini
, on Windows user directory
is the C:\Users\yourusername
folder) can be used to configure the script, as an example to limit providers (to reduce clutter/memory usage) as well as specifying provider settings such as api keys etc. A sample config file is also provided here*ocr_ignore*
is copied with an image, the image will be ignored (mostly useful for devs making their own sender tool)pip install owocr[mangaocr]
("m" key)pip install owocr[easyocr]
("e" key)pip install owocr[rapidocr]
("r" key)pip install owocr[winocr]
on Windows 10 and later. It can also be used by installing winocr on a Windows virtual machine and running the server there (winocr_serve
) and specifying the IP address of the Windows VM/machine in the config file ("w" key)pip install owocr[oneocr]
on Windows 10 and later. In my experience it's pretty good, though not as much as the Apple one. You need to copy 3 system files from Windows 11 to use it, refer to the readme here. It can also be used by installing oneocr on a Windows virtual machine and running the server there (oneocr_serve
) and specifying the IP address of the Windows VM/machine in the config file ("z" key)pip install owocr[lens]
("l" key)pip install owocr[lensweb]
("k" key)pip install owocr[gvision]
, you also need a service account .json file named google_vision.json in user directory/.config/
("g" key)pip install owocr[azure]
, you also need to specify an api key and an endpoint in the config file ("v" key)This uses code from/references these projects:
FAQs
Japanese OCR
We found that owocr demonstrated a healthy version release cadence and project activity because the last version was released less than 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.