{"id":15160647,"url":"https://github.com/eetagent/deno-ocrmac","last_synced_at":"2026-02-10T18:02:06.481Z","repository":{"id":196357427,"uuid":"695813974","full_name":"EETagent/deno-ocrmac","owner":"EETagent","description":" Deno module for the macOS Vision framework image OCR","archived":false,"fork":false,"pushed_at":"2025-01-29T13:42:38.000Z","size":1383,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T20:41:12.678Z","etag":null,"topics":["deno","deno-module","esm","macos","module","objective-c","objective-c-library","ocr","vision"],"latest_commit_sha":null,"homepage":"https://esm.sh/gh/EETagent/deno-ocrmac/mod.ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EETagent.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-09-24T10:04:20.000Z","updated_at":"2025-01-29T13:42:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c11f8fa0-32b0-4913-ba36-e498a81677d3","html_url":"https://github.com/EETagent/deno-ocrmac","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"c567932dcc88abbcb57bfee15040459bb938433b"},"previous_names":["eetagent/deno-ocrmac"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EETagent/deno-ocrmac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EETagent%2Fdeno-ocrmac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EETagent%2Fdeno-ocrmac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EETagent%2Fdeno-ocrmac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EETagent%2Fdeno-ocrmac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EETagent","download_url":"https://codeload.github.com/EETagent/deno-ocrmac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EETagent%2Fdeno-ocrmac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270110384,"owners_count":24529059,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deno","deno-module","esm","macos","module","objective-c","objective-c-library","ocr","vision"],"created_at":"2024-09-26T23:05:05.413Z","updated_at":"2026-02-10T18:02:06.465Z","avatar_url":"https://github.com/EETagent.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```typescript\nimport OCRMac, {\n  Orientation,\n  RecognitionLevel,\n} from \"jsr:@eetagent/deno-ocrmac\";\n\nusing ocr = new OCRMac();\n\nconst result = await ocr.getTextFromImageByteArray(\n  Deno.readFileSync(\"./image.png\"),\n  RecognitionLevel.Accurate,\n  true,\n  Orientation.Left,\n);\n\nconsole.log(result);\n```\n\n```typescript\n/**\n * Constants that identify the performance and accuracy of the text recognition.\n * @enum {number}\n */\nexport enum RecognitionLevel {\n  Accurate = 0,\n  Fast = 1,\n}\n\n/**\n * The orientation of the image/buffer based on the EXIF specification.\n * For details see kCGImagePropertyOrientation.\n * The value has to be an integer from 1 to 8.\n * This supersedes every other orientation information.\n * @enum {number}\n */\nexport enum Orientation {\n  Up = 1,\n  UpperMirrored = 2,\n  Down = 3,\n  DownMirrored = 4,\n  Left = 8,\n  LeftMirrored = 5,\n  Right = 6,\n  RightMirrored = 7,\n}\n\nexport type BoundingBox = {\n  y: number;\n  w: number;\n  x: number;\n  h: number;\n};\n\nexport type Result = Array\u003c{\n  boundingBox: BoundingBox;\n  text: string;\n}\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feetagent%2Fdeno-ocrmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feetagent%2Fdeno-ocrmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feetagent%2Fdeno-ocrmac/lists"}