{"id":13479421,"url":"https://github.com/schappim/macOCR","last_synced_at":"2025-03-27T09:32:27.684Z","repository":{"id":38263826,"uuid":"369017240","full_name":"schappim/macOCR","owner":"schappim","description":"Get any text on your screen into your clipboard.","archived":false,"fork":false,"pushed_at":"2024-07-21T19:02:28.000Z","size":6040,"stargazers_count":2261,"open_issues_count":18,"forks_count":108,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-10-30T13:37:43.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schappim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-19T22:33:09.000Z","updated_at":"2024-10-28T12:25:18.000Z","dependencies_parsed_at":"2024-10-30T13:42:59.108Z","dependency_job_id":null,"html_url":"https://github.com/schappim/macOCR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schappim%2FmacOCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schappim%2FmacOCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schappim%2FmacOCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schappim%2FmacOCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schappim","download_url":"https://codeload.github.com/schappim/macOCR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245817596,"owners_count":20677319,"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-07-31T16:02:15.731Z","updated_at":"2025-03-27T09:32:27.422Z","avatar_url":"https://github.com/schappim.png","language":"Swift","funding_links":[],"categories":["Swift","others"],"sub_categories":[],"readme":"# macOCR\n\nmacOCR is a command line app that enables you to turn any text on your screen into text on your clipboard.\nWhen you envoke the `ocr` command, a \"screen capture\" like cursor is shown. \nAny text within the bounds will be converted to text. \n\nYou could invoke the app using the likes of [Alfred.app](https://www.alfredapp.com/), [LaunchBar](https://obdev.at/products/launchbar/index.html), [Hammerspoon](http://www.hammerspoon.org/), [Quicksilver](https://qsapp.com/), [Raycast](https://raycast.com/) etc.\n\nExamples: \n- [macOS Shortcut Workflow](https://www.icloud.com/shortcuts/fa91687e481849d6a27ff873ec71599b)\n- [Alfred.app Workflow](https://files.littlebird.com.au/OCR2-ONrTkn.zip)\n- [Raycast Script](https://gist.github.com/cheeaun/1405816e5ceb397cbc9028204f82dc98)\n- [LaunchBar Aciton](https://github.com/jsmjsm/macOCR-LaunchBar-Action)\n\nAn example Alfred.app workflow is [available here](https://files.littlebird.com.au/OCR2-ONrTkn.zip).\n\nIf you're still wondering \"how does this work ?\", I always find the .gif is the best way to clarify things: \n\n![How it works](https://files.littlebird.com.au/Screen-Recording-2021-05-21-13-27-27-FEPQtcuk6FFweb4QEk7Y1mXhsv8B.gif)\n\n\n## Installation\n\nCompile the code in this repo, or download a prebuilt binary ([Apple Silicon](https://files.littlebird.com.au/ocr.zip), [Intel](https://files.littlebird.com.au/ocr-EPiReQzFJ5Xw9wElWMqbiBayYLVp.zip)) and put it on your path.\n\nApple Silicon Install (via Homebrew):\n\n```\nbrew install schappim/ocr/ocr\n```\n\nOnce installed, you can then use the [macOS Shortcut Workflow](https://www.icloud.com/shortcuts/fa91687e481849d6a27ff873ec71599b) (see below for details)\n\nApple Silicon Install (via Curl):\n\n```\ncurl -O https://files.littlebird.com.au/ocr2.zip; \nunzip ocr.zip;\nsudo cp ocr /usr/local/bin;\n```\n\nIntel Install:\n\n```\ncurl -O https://files.littlebird.com.au/ocr-EPiReQzFJ5Xw9wElWMqbiBayYLVp.zip; \nunzip ocr-EPiReQzFJ5Xw9wElWMqbiBayYLVp.zip;\nsudo cp ocr /usr/local/bin;\n```\n\n\nWhen running the app the first time, you will likely be asked to allow the app access to your screen.\n\n![Enabling access to screen](https://files.littlebird.com.au/Shared-Image-2021-05-20-08-58-38.png)\n\n## Add as Shortcut Workflow (Mac Montery 12+)\n1. Open up [MacOS Shortcuts](https://www.icloud.com/shortcuts/fa91687e481849d6a27ff873ec71599b) available on MacOS 12+.\n2. Create new `Shortcut`\n3. Add `Run Shell script`\n4. Set input as `/usr/local/bin/ocr` (runs this app)\n5. Goto `Shorcut Details` \n  \n\u003cimg width=\"300px\" src=\"https://user-images.githubusercontent.com/11782590/164676495-3c07a73f-5254-47eb-a4ff-d6a943617954.png\" alt=\"settings\" /\u003e\n\n7. Set `Pin in menubar` as true ☑️\n\n![Kapture 2022-04-22 at 19 09 40](https://user-images.githubusercontent.com/11782590/164675564-e4e03c3c-7065-4083-9978-7fd316251b0e.gif)\n\n## OS Support\n\nThis should run on Catalina and above.\n\n## Who made this? \n\nmacOCR was made by [Marcus Schappi](https://twitter.com/schappi). I create software ([and even hardware](https://chickcom.com/hardware)) to automate ecommerce, including: \n\n* [USDZ.app](https://usdz.app). [Create Augmented Reality Object Captures with USDZ.app](https://usdz.app).\n* [Chick Commerce](https://chickcom.com/).\n* This [free Australia Post app on Shopify](https://apps.shopify.com/auspost-shipping).\n* [Script Ninja](https://apps.shopify.com/cockatoo) which enables you to create powerful scripts and tools to automate your Shopify store.\n\n## Thoughts on Sherlocking?\n\nApple, please sherlock this software!\n\n## MIT License \n\nCopyright 2021 Marcus Schappi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschappim%2FmacOCR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschappim%2FmacOCR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschappim%2FmacOCR/lists"}