{"id":19535950,"url":"https://github.com/miyako/4d-plugin-microsoft-ocr","last_synced_at":"2026-05-12T12:02:22.182Z","repository":{"id":147172394,"uuid":"326441141","full_name":"miyako/4d-plugin-microsoft-ocr","owner":"miyako","description":"Use native OCR on Windows.","archived":false,"fork":false,"pushed_at":"2021-01-03T23:48:05.000Z","size":3230,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T04:18:33.641Z","etag":null,"topics":["4d-plugin","ocr","winrt"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miyako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-03T15:41:43.000Z","updated_at":"2023-01-21T02:49:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"81dacc69-8d37-46a1-9625-3107d019615a","html_url":"https://github.com/miyako/4d-plugin-microsoft-ocr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/miyako/4d-plugin-microsoft-ocr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-microsoft-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-microsoft-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-microsoft-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-microsoft-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-microsoft-ocr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-microsoft-ocr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32938003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["4d-plugin","ocr","winrt"],"created_at":"2024-11-11T02:20:24.220Z","updated_at":"2026-05-12T12:02:22.144Z","avatar_url":"https://github.com/miyako.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![platform](https://img.shields.io/static/v1?label=platform\u0026message=win-32%20|%20win-64\u0026color=blue)\n![version](https://img.shields.io/badge/version-17%2B-3E8B93)\n[![license](https://img.shields.io/github/license/miyako/4d-plugin-microsoft-ocr)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-microsoft-ocr/total)\n\n# 4d-plugin-microsoft-ocr\nUse native OCR on Windows.\n\nThanks to [C++/WinRT](https://blogs.windows.com/windowsdeveloper/2016/11/28/standard-c-windows-runtime-cwinrt/), it is no longer necessary to use all sorts of [tricks](https://qiita.com/Yukio-Ichikawa/items/f8d3111a60a337adfd48) to call [Universal Windows Platform](https://en.wikipedia.org/wiki/Universal_Windows_Platform) API from C++. \n\nThis plugin is using the [Windows.Media.Ocr](https://docs.microsoft.com/en-us/uwp/api/Windows.Media.Ocr?view=winrt-19041) API. \n\n#### Visual Studio 2017\n\nTo enable `co_await`\n\n* add the compiler flag `/await` to project\n* set the c++ language standard to `ISO C++ Latest Draft Standard (/std:c++latest)`\n* add `windowsapp.lib` to additional libraries\n\nThe project requires `10.0.17763` SDK, released in conjunction with Windows 10 version 1809.\n\nTo use on v17, move manifest.json to contents.\n\n#### Example\n\n```4d\n$file:=Folder:C1567(fk resources folder:K87:11).file(\"4d-website-jpr.jpg\")\n$data:=$file.getContent()\n$status:=ocr get text ($data)\n```\n\n![screenshot](https://user-images.githubusercontent.com/1725068/103483342-f40c3b00-4e29-11eb-95ab-bfd62f265208.png)\n\n![image](https://github.com/miyako/4d-plugin-microsoft-ocr/blob/main/OCR/test/Resources/4d-website-jpr.jpg)\n\n#### References\n\n* [Consume APIs with C++/WinRT](https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/consume-apis)\n* [More advanced concurrency and asynchrony with C++/WinRT](https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/concurrency-2)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-microsoft-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-microsoft-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-microsoft-ocr/lists"}