{"id":21009669,"url":"https://github.com/yannick-cw/notion-ocr","last_synced_at":"2025-05-15T02:33:14.305Z","repository":{"id":50617614,"uuid":"220439214","full_name":"yannick-cw/notion-ocr","owner":"yannick-cw","description":"Adding OCR support to Notion","archived":false,"fork":false,"pushed_at":"2020-09-14T06:48:25.000Z","size":4122,"stargazers_count":141,"open_issues_count":7,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-03T03:02:14.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yannick-cw.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-08T10:04:22.000Z","updated_at":"2025-03-05T18:33:05.000Z","dependencies_parsed_at":"2022-09-24T16:01:54.109Z","dependency_job_id":null,"html_url":"https://github.com/yannick-cw/notion-ocr","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannick-cw%2Fnotion-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannick-cw%2Fnotion-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannick-cw%2Fnotion-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannick-cw%2Fnotion-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannick-cw","download_url":"https://codeload.github.com/yannick-cw/notion-ocr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254262580,"owners_count":22041447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:17:33.618Z","updated_at":"2025-05-15T02:33:13.773Z","avatar_url":"https://github.com/yannick-cw.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Currently unmaintained\n\n# notion-ocr: 🖼 to ✍ for Notion\n\nMake your images searchable in Notion!\n\nNotion is a great alternative to Evernote, but one feature that is still greatly missed, is that the text in your images is searchable as well. Notion promises to do this someday, but it's not there yet, so this is the alternative.\n\nThis tool allows you to add the words `add_ocr` below any image in your notion account and it will try to extract the text from the image and put it below the image. Thus making the text searchable.\n\n![adding ocr](./add_ocr.gif)\n\n### Install\n\n#### Prerequisites Tesseract\n\nYou'll need [tesseract](https://github.com/tesseract-ocr/tesseract), as it is used for doing the actual ocr in the image.\n\n##### Mac\n\n```\nbrew install tesseract\n```\n\nWithout brew check [installing](https://github.com/yannick-cw/notion-ocr/releases) tesseract.\n\n##### Linux\n\n```\nsudo apt install tesseract-ocr\n```\n\nWithout apt check [installing](https://github.com/yannick-cw/notion-ocr/releases) tesseract.\n\nMake sure `tesseract` works as a command in the terminal!\n\n#### Install notion-ocr\n\n##### Mac\n\nWith Homebrew:\n\n```\nbrew install yannick-cw/homebrew-tap/notion-ocr\n```\n\nWith wget:\n\n```\nwget https://github.com/yannick-cw/notion-ocr/releases/download/0.1.5/notion-ocr_mac.zip \\\n  \u0026\u0026 unzip notion-ocr_mac.zip \\\n  \u0026\u0026 chmod +x notion-ocr \\\n  \u0026\u0026 ./notion-ocr --help\n```\n\nYou should see this now\n\n```bash\nnotion-ocr - enrich images with the text in the image\n...\n```\n\nYou can run it now from the current directory with\n`./notion-ocr-0.1_mac/bin/notion-ocr`\n\nOr just get the latest release from [releases](https://github.com/yannick-cw/notion-ocr/releases).\n\nYou can also move the executable into your `PATH` to make running it more convenient.\n\n##### Linux\n\nWith wget:\n\n```\nwget https://github.com/yannick-cw/notion-ocr/releases/download/0.1.5/notion-ocr_x86_64-linux.zip \\\n  \u0026\u0026 unzip notion-ocr_x86_64-linux.zip \\\n  \u0026\u0026 chmod +x notion-ocr \\\n  \u0026\u0026 ./notion-ocr --help\n```\n\nYou should see this now\n\n```bash\nnotion-ocr - enrich images with the text in the image\n...\n```\n\nYou can run it now from the current directory with\n`./notion-ocr`\n\nOr just get the latest release from [releases](https://github.com/yannick-cw/notion-ocr/releases).\n\nYou can also move the executable into your `PATH` to make running it more convenient.\n\n### Running it\n\n1. Get the `token_v2` token from https://www.notion.so/\n\n- when using chrome [here](https://developers.google.com/web/tools/chrome-devtools/storage/cookies) is some info on how to read a cookie\n\n![get_cookie](./get_cookie.gif)\n\n2. Run `notion-ocr` with the token\n\n- `notion-ocr -t \"token_here\" -s 10` or if not in your path `./notion-ocr -t \"token_here\" -s 10`\n- the `-s` option specifies to scan every `x` minutes and can also be left out to run just once\n\n3. In the line **right** below any image in notion write `add_ocr`, the next time the tool runs, it replaces that with the text scanned from the image.\n\n### Trouble Shooting\n\n- Did you install `tesseract`? Is it executable from the terminal?\n- Did you write the line `add_ocr` exactly in the line below the image?\n\n### Known Limitations\n\n- Does not yet work with handwriting\n- Small images might lead to bad results\n- Not sure if other languages beside English work right now\n- when you get `Failed loading language `eng` you might need to install the tesseract eng language pack`, e.g. on Arch I needed to run `pacman -S tesseract-data-eng`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannick-cw%2Fnotion-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannick-cw%2Fnotion-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannick-cw%2Fnotion-ocr/lists"}