{"id":25397292,"url":"https://github.com/fny/swiftocr","last_synced_at":"2025-10-30T21:30:29.536Z","repository":{"id":277534702,"uuid":"898525508","full_name":"fny/swiftocr","owner":"fny","description":"macOS OCR command-line tool for almost any image format","archived":false,"fork":false,"pushed_at":"2025-02-14T12:12:01.000Z","size":207,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T13:25:47.938Z","etag":null,"topics":["command-line","image-to-text","macos","ocr"],"latest_commit_sha":null,"homepage":"","language":"Python","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/fny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-12-04T14:53:26.000Z","updated_at":"2025-02-14T13:16:26.000Z","dependencies_parsed_at":"2025-02-14T13:25:51.498Z","dependency_job_id":"4ff85e32-70c8-44f7-bdeb-b5ebb3d0b024","html_url":"https://github.com/fny/swiftocr","commit_stats":null,"previous_names":["fny/swiftocr"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fswiftocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fswiftocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fswiftocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fswiftocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fny","download_url":"https://codeload.github.com/fny/swiftocr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239060449,"owners_count":19574969,"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":["command-line","image-to-text","macos","ocr"],"created_at":"2025-02-15T21:39:45.971Z","updated_at":"2025-10-30T21:30:24.222Z","avatar_url":"https://github.com/fny.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftOCR 📖\n\nOCR command line tool for macOS using [Vision Framework](https://developer.apple.com/documentation/vision/).\n\nThis works with almost any image format: png, pdf, heic, jpeg, ai, tiff, webp and\nmore! If you can open it with Preview or\n[`NSImage`](https://developer.apple.com/documentation/appkit/nsimage), it should\nwork.\n\n## Installation\n\nMake sure you have XCode installed. If not, you can install the command line\ntools with the following command:\n\n```\nxcode-select --install\n```\n\nThen simply run `sh bash.sh` to build `swiftocr`, and move it somewhere in your\npath like `/usr/local/bin/swiftocr`.\n\n## Usage\n\n```\nUsage:\n\n  swiftocr \u003cimage-path\u003e [options]\n  cat \u003cimage-path\u003e | swiftocr - [options]\n\nOptions:\n\n    --fast                      Use fast recognition (lower accuracy)\n    --languages en,fr,...       Specify recognition languages (ISO 639)\n    --correction                Enable language correction\n    --custom-words w1,w2,...    Add custom words to improve recognition\n    --custom-words-file w.txt   Add custom words from a file (line separated)\n\nReturns the following list with unsorted keys:\n\n    [{\n        \"text\" : str,\n        \"confidence\": float,\n        \"boundingBox\" : {\n            \"x\" : int,\n            \"y\" : int,\n            \"width\" : int,\n            \"height\" : int\n        }\n    }, ...]\n\nWorks on almost any image format.\n```\n\nBounding box values for `x` and `y` start from the top left corner of the image\nwith `x` increasing to the right and `y` increasing downwards.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fswiftocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffny%2Fswiftocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fswiftocr/lists"}