https://github.com/idawid/screencapture
Screen capture with OCR to clipboard
https://github.com/idawid/screencapture
cpp win32api winapi
Last synced: over 1 year ago
JSON representation
Screen capture with OCR to clipboard
- Host: GitHub
- URL: https://github.com/idawid/screencapture
- Owner: Idawid
- License: agpl-3.0
- Created: 2023-05-18T00:37:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T17:29:26.000Z (about 3 years ago)
- Last Synced: 2025-01-29T16:31:59.628Z (over 1 year ago)
- Topics: cpp, win32api, winapi
- Language: C++
- Homepage:
- Size: 1.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ScreenCapture
## Dependencies
#### Libraries
The project requires tesseract and leptonica libraries.
The easiest way is to install them via `vcpkg`
To install Tesseract library (x64 Windows):
`./vcpkg install tesseract:x64-windows`
To automatically link against the installed libraries:
`./vcpkg integrate install`
#### OCR Language model:
The application requires loading a language model at runtime.
To include the required language model folder in the executable directory during the build process, follow these steps:
1. Go to `{Project}` -> `Properties` -> `Build Events` -> `Post-Build Event`.
2. In the `Command Line` field, add the following command:
`echo d | xcopy "$(SolutionDir)tessdata" "$(TargetDir)tessdata" /s /y`
Done.
## Controls:
Shortcut: `Ctrl` + `Win` + `S`
Press `Esc` to exit selection without capturing the text
You can exit the application via the system tray