Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.46 KB

SHAREX.md

File metadata and controls

37 lines (20 loc) · 1.46 KB

Custom Sharex OCR

To use it in sharex instead of the usual OCR, you must:

  1. Install Node.js 18+ or Bun.sh (and don't forget to select "Add to PATH")
  2. Download this repository

download button

  1. In the folder, type npm install or bun install (depending on what you are using)
  2. Open ShareX Settings and go to Task Settings.

sharex settings

  1. Go to the "Actions" tab and click "Add..."

add action

  1. Fill out the form as shown in the screenshot (do not forget to change the paths to your own)

creating action

File path - path to Node.js or Bun.sh exe file

Arguments - path to ya-ocr folder + "/sharex.js" at the end

  1. Save and make sure that the "ya-ocr" checkbox is selected

  2. Now you can use your hotkey to capture a region and it will OCR it using Google Lens API (once it shows screenshot on your screen, text should be copied to your clipboard).

  3. In the "After capture tasks" settings, enable "Perform actions"

perform actions checkbox

  1. Done

result