树洞 OCR 文字识别(一款跨平台的 OCR 小工具)
https://tree-hole-ocr-docs.vercel.app/
- Please do not include Chinese characters in the installation path;
- This program is developed with JavaFX, and the installation package provided already includes Java.
- Download the latest version from release and unzip it for installation.
After entering the screenshot interface, press and hold the left mouse button, then drag to select the area you want to capture; After completing the selection, you can fine-tune the selected area:
After completing the selection, press Enter or Space key, or double-click the left mouse button to confirm the selection; Once confirmed, the program will automatically perform OCR text recognition on the selected area.
image
result:
wget https://github.com/litongjava/tools-ocr/releases/download/model-ppocr-v4/ch_PP-OCRv4_rec_infer-onnx.zip
wget https://github.com/litongjava/tools-ocr/releases/download/model-ppocr-v4/ch_PP-OCRv4_det_infer-onnx.zip
Unzip the models
mkdir models/ch_PP-OCRv4_rec_infer
mkdir models/ch_PP-OCRv4_det_infer
unzip /Users/mac/Downloads/ch_PP-OCRv4_rec_infer-onnx.zip -d models/ch_PP-OCRv4_rec_infer
unzip /Users/mac/Downloads/ch_PP-OCRv4_det_infer-onnx.zip -d models/ch_PP-OCRv4_det_infer
You can download the code and build it locally. The build commands are as follows: windows
mkdir target\jfx\app
cp -r models target\jfx\app
mvn jfx:native -DskipTests -f pom.xml
macos
rm -rf target/jfx/app
mkdir -p target/jfx/app
cp -r models target/jfx/app
mvn jfx:native -DskipTests -f pom.xml
cd treehole.app/Contents/java/logs
Since screenshot shortcuts are monitored, MAC needs appropriate permissions settings, as shown below:
Settings --> Security and Privacy --> Accessibility
Settings --> Security and Privacy --> Screen Recording
还更新嘛,下载地址全部失效不可用!
M3 Mac 15.0.1,“treehole”已损坏,无法打开。 你应该将它移到废纸篓。
io.github.mymonstercat.Model.ONNX_PPOCR_V4_SERVER 已经被注释,新加载的项目会报错。
如果用户名是中文,咋办,不想更改中路路径
linux编译运行jar包崩溃
问题
推荐个基于paddleocr的第三方包,不需要djl
增加朝鲜语,繁体中文识别功能
建议添加新功能
大分辨率200%缩放屏幕对齐有问题