{"id":17855351,"url":"https://github.com/aarongrider/vision-camera-ocr","last_synced_at":"2025-04-04T11:10:04.251Z","repository":{"id":40945013,"uuid":"460690183","full_name":"aarongrider/vision-camera-ocr","owner":"aarongrider","description":"VisionCamera Frame Processor Plugin to detect text in real time using MLKit Text Detector (OCR)","archived":false,"fork":false,"pushed_at":"2024-07-31T13:04:59.000Z","size":6451,"stargazers_count":255,"open_issues_count":34,"forks_count":97,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T10:04:44.380Z","etag":null,"topics":["camera","mobile","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","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/aarongrider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-02-18T03:04:41.000Z","updated_at":"2025-03-06T16:38:54.000Z","dependencies_parsed_at":"2024-11-17T16:07:45.472Z","dependency_job_id":"c1fb5247-a972-4e1c-940e-e93ebd5a7975","html_url":"https://github.com/aarongrider/vision-camera-ocr","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"b7a36f7b58e4385d16b78615031313cd0a9d562e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarongrider%2Fvision-camera-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarongrider%2Fvision-camera-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarongrider%2Fvision-camera-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aarongrider%2Fvision-camera-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aarongrider","download_url":"https://codeload.github.com/aarongrider/vision-camera-ocr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["camera","mobile","react-native"],"created_at":"2024-10-28T02:03:54.805Z","updated_at":"2025-04-04T11:10:04.225Z","avatar_url":"https://github.com/aarongrider.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"right\"\u003e\n\u003cimg align=\"right\" src=\"docs/demo.gif\"\u003e\n\u003c/div\u003e\n\n# vision-camera-ocr\n\nA [VisionCamera](https://github.com/mrousavy/react-native-vision-camera) Frame Processor Plugin to preform text detection on images using [**MLKit Vision** Text Recognition](https://developers.google.com/ml-kit/vision/text-recognition).\n\n## Installation\n\n```sh\nyarn add vision-camera-ocr\ncd ios \u0026\u0026 pod install\n```\n\nAdd the plugin to your `babel.config.js`:\n\n```js\nmodule.exports = {\n  plugins: [\n    [\n      'react-native-reanimated/plugin',\n      {\n        globals: ['__scanOCR'],\n      },\n    ],\n\n    // ...\n```\n\n\u003e Note: You have to restart metro-bundler for changes in the `babel.config.js` file to take effect.\n\n## Usage\n\n```js\nimport { labelImage } from \"vision-camera-image-labeler\";\n\n// ...\nconst frameProcessor = useFrameProcessor((frame) =\u003e {\n  'worklet';\n  const scannedOcr = scanOCR(frame);\n}, []);\n```\n\n## Data\n\n`scanOCR(frame)` returns an `OCRFrame` with the following data shape. See the example for how to use this in your app.\n\n ``` jsx\n  OCRFrame = {\n    result: {\n      text: string, // Raw result text\n      blocks: Block[], // Each recognized element broken into blocks\n    ;\n};\n```\n\nThe text object closely resembles the object documented in the MLKit documents.\nhttps://developers.google.com/ml-kit/vision/text-recognition#text_structure\n\n```\nThe Text Recognizer segments text into blocks, lines, and elements. Roughly speaking:\n\na Block is a contiguous set of text lines, such as a paragraph or column,\n\na Line is a contiguous set of words on the same axis, and\n\nan Element is a contiguous set of alphanumeric characters (\"word\") on the same axis in most Latin languages, or a character in others\n```\n\n\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarongrider%2Fvision-camera-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faarongrider%2Fvision-camera-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarongrider%2Fvision-camera-ocr/lists"}