{"id":26490490,"url":"https://github.com/vrajvyas11/easyocr-js","last_synced_at":"2026-04-11T06:01:56.136Z","repository":{"id":281226388,"uuid":"944614568","full_name":"VrajVyas11/easyocr-js","owner":"VrajVyas11","description":"easyocr-js is a lightweight wrapper for EasyOCR that enables seamless text recognition in JavaScript. It simplifies integration with EasyOCR's Python backend, allowing developers to perform OCR tasks effortlessly in JS environments.","archived":false,"fork":false,"pushed_at":"2025-03-27T10:18:21.000Z","size":2397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T11:27:59.780Z","etag":null,"topics":["easyocr","ocr","optical-character-recognition","wrapper"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/easyocr-js","language":"JavaScript","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/VrajVyas11.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":"2025-03-07T16:56:21.000Z","updated_at":"2025-03-27T10:18:24.000Z","dependencies_parsed_at":"2025-03-07T18:20:41.902Z","dependency_job_id":"64ffd0b4-98d5-4900-9577-20b1fea6ceef","html_url":"https://github.com/VrajVyas11/easyocr-js","commit_stats":null,"previous_names":["vrajvyas11/easyocr-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VrajVyas11/easyocr-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VrajVyas11%2Feasyocr-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VrajVyas11%2Feasyocr-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VrajVyas11%2Feasyocr-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VrajVyas11%2Feasyocr-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VrajVyas11","download_url":"https://codeload.github.com/VrajVyas11/easyocr-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VrajVyas11%2Feasyocr-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266210928,"owners_count":23893343,"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":["easyocr","ocr","optical-character-recognition","wrapper"],"created_at":"2025-03-20T07:58:35.096Z","updated_at":"2025-12-30T22:07:00.994Z","avatar_url":"https://github.com/VrajVyas11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyocr-js\n\nA Node.js wrapper for the Python EasyOCR library\n\n## Description\n\neasyocr-js is a lightweight Node.js wrapper for the EasyOCR Python library, allowing developers to perform Optical Character Recognition (OCR) in their Node.js applications with minimal setup. This package provides a simple interface to leverage EasyOCR's capabilities within JavaScript/TypeScript projects.\n\n## Installation\n\n```bash\nnpm install easyocr-js\n```\n\n### Prerequisites\n- Python 3.6+ must be installed on your system.\n- Pip package manager is required.\n- The necessary Python dependencies will be installed automatically during the npm installation process.\n\n## Usage\n\neasyocr-js supports CommonJS module systems. Below is an example:\n\n### Example\n\n```javascript\nconst EasyOCRWrapper = require(\"easyocr-js\");\n\n(async () =\u003e {\n    const ocr = new EasyOCRWrapper();\n    console.log(await ocr.init(\"en\"));\n    console.log(await ocr.readText(\"path/to/yourimage.jpg\")); // Replace with actual image path\n    console.log(await ocr.close());\n})();\n```\n\n## API\n\n### `init(languages: string): Promise\u003cobject\u003e`\nInitializes the OCR reader with the specified languages.\n\n- `languages`: Comma-separated language codes (e.g., `'en,fr'`).\n- Returns a Promise resolving to a status object.\n\n### `readText(imagePath: string): Promise\u003cobject\u003e`\nPerforms OCR on the specified image.\n\n- `imagePath`: Path to the image file.\n- Returns a Promise resolving to an array of detected text objects:\n\n```json\n{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"bbox\": [[x1, y1], [x2, y2]],\n      \"text\": \"Detected text\",\n      \"confidence\": 0.98\n    }\n  ]\n}\n```\n\n### `close(): Promise\u003cobject\u003e`\nCloses the OCR reader and releases resources.\n\n## Requirements\n\n- Node.js 14.0.0 or higher\n- Python 3.6 or higher\n- Pip (Python package installer)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please submit a pull request with your improvements.\n\n## Issues\n\nIf you encounter any bugs or have feature suggestions, please open an issue in the [GitHub repository](https://github.com/VrajVyas11/easyocr-js/issues).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrajvyas11%2Feasyocr-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrajvyas11%2Feasyocr-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrajvyas11%2Feasyocr-js/lists"}