{"id":17102516,"url":"https://github.com/motemen/macos-obs-websocket-ocr","last_synced_at":"2026-05-05T12:33:59.878Z","repository":{"id":246036300,"uuid":"816902824","full_name":"motemen/macos-obs-websocket-ocr","owner":"motemen","description":"A proxy for obs-websocket that adds Optical Character Recognition (OCR) capabilities.","archived":false,"fork":false,"pushed_at":"2024-06-28T04:01:18.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T18:27:43.496Z","etag":null,"topics":["macos","obs","vision-framework"],"latest_commit_sha":null,"homepage":"","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/motemen.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":"2024-06-18T16:05:42.000Z","updated_at":"2024-06-28T04:01:21.000Z","dependencies_parsed_at":"2024-06-28T05:21:18.761Z","dependency_job_id":null,"html_url":"https://github.com/motemen/macos-obs-websocket-ocr","commit_stats":null,"previous_names":["motemen/macos-obs-websocket-ocr"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/motemen/macos-obs-websocket-ocr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fmacos-obs-websocket-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fmacos-obs-websocket-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fmacos-obs-websocket-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fmacos-obs-websocket-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motemen","download_url":"https://codeload.github.com/motemen/macos-obs-websocket-ocr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fmacos-obs-websocket-ocr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["macos","obs","vision-framework"],"created_at":"2024-10-14T15:29:14.769Z","updated_at":"2026-05-05T12:33:59.854Z","avatar_url":"https://github.com/motemen.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OBS WebSocket OCR Proxy for macOS\n\nA proxy for obs-websocket that adds Optical Character Recognition (OCR) capabilities.\n\nUtilizes macOS’s [Vision framework](https://developer.apple.com/documentation/vision) to perform OCR on captured screenshots.\n\nCurrently, it introduces one special request type: `__GetTextFromLastScreenshot`. See below for details.\n\n## Usage\n\n    obs-websocket-ocr [--upstream-url URL] [--port PORT] [--hostname HOSTNAME]\n\n- `--upstream-url URL`: The URL of the upstream obs-websocket server. Default: `ws://localhost:4455`.\n- `--port PORT`: The port to bind to. Default: `4456`.\n- `--hostname HOSTNAME`: The hostname to bind to. Default: `localhost`.\n\nWhen started, the proxy will listen on `localhost:4456` and forward all messages to the upstream obs-websocket server.\nYou can connect to the proxy using the obs-websocket client as you would with a normal obs-websocket server.\n\n## Request types\n\nIn addition to the [standard obs-websocket request types](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#getversion), the proxy adds one special request type: `__GetTextFromLastScreenshot`.\n\n### \\_\\_GetTextFromLastScreenshot\n\nDoes OCR on the last screenshot taken by OBS and returns the recognized text items and the bounding boxes of them.\n\n#### Response fields:\n\n| Name           | Type                | Description                |\n| -------------- | ------------------- | -------------------------- |\n| `text_results` | `Array\u003cTextResult\u003e` | The recognized text items. |\n\nTextResult:\n\n| Name           | Type                 | Description                   |\n| -------------- | -------------------- | ----------------------------- |\n| `text`         | `string`             | The recognized text.          |\n| `bounding_box` | `Array\u003cBoundingBox\u003e` | The bounding box of the text. |\n\nBoundingBox:\n\n| Name     | Type     | Description                              |\n| -------- | -------- | ---------------------------------------- |\n| `x`      | `number` | The x-coordinate of the top-left corner. |\n| `y`      | `number` | The y-coordinate of the top-left corner. |\n| `width`  | `number` | The width of the bounding box.           |\n| `height` | `number` | The height of the bounding box.          |\n\n## Author\n\nHironao Otsubo (motemen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotemen%2Fmacos-obs-websocket-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotemen%2Fmacos-obs-websocket-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotemen%2Fmacos-obs-websocket-ocr/lists"}