Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redirect function #4192

Open
xiaoxstz opened this issue Feb 24, 2024 · 1 comment
Open

Add redirect function #4192

xiaoxstz opened this issue Feb 24, 2024 · 1 comment

Comments

@xiaoxstz
Copy link

Your Feature Request

Many command supports redirect usage, for example

echo "HelloWorld" > 1.txt
echo "HelloWorld" | clip

If tesseract supports it, it will be more user-friendly.

@xiaoxstz
Copy link
Author

xiaoxstz commented Feb 24, 2024

I write a script to snapshot and then recognize it (for Windows).

ksnip.exe -c -p "d:\temp\source.png" &&
tesseract.exe "d:\temp\source.png" "d:\temp\ocr_result" -l eng &&
cat "d:\temp\ocr_result.txt" | clip

It will be more simple a lot if tesseract supports redirecting function like many commands, such as cat. If it supports, the script will be

ksnip.exe -c -p "d:\temp\source.png" &&
tesseract.exe "d:\temp\source.png" -l eng | clip

Redirecting function give users freedom to save result to anywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant