{"id":18040593,"url":"https://github.com/overflowcat/paddleocr","last_synced_at":"2025-04-09T16:44:33.096Z","repository":{"id":61109942,"uuid":"548405885","full_name":"OverflowCat/paddleocr","owner":"OverflowCat","description":"A simple wrapper for hiroi-sora/PaddleOCR-json.","archived":false,"fork":false,"pushed_at":"2023-10-20T15:05:33.000Z","size":18,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:58:52.374Z","etag":null,"topics":["ocr","paddleocr","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/paddleocr/latest/paddleocr/struct.Ppocr.html","language":"Rust","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/OverflowCat.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":"2022-10-09T14:00:35.000Z","updated_at":"2025-01-22T07:00:52.000Z","dependencies_parsed_at":"2023-09-26T12:49:50.220Z","dependency_job_id":"6c126f70-87d2-4ed5-be15-c3a2b76da0ec","html_url":"https://github.com/OverflowCat/paddleocr","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"66afaa1fca829b6a2dccaa658a872e16d8f42295"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fpaddleocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fpaddleocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fpaddleocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OverflowCat%2Fpaddleocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OverflowCat","download_url":"https://codeload.github.com/OverflowCat/paddleocr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248069807,"owners_count":21042706,"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":["ocr","paddleocr","rust"],"created_at":"2024-10-30T15:07:00.973Z","updated_at":"2025-04-09T16:44:33.053Z","avatar_url":"https://github.com/OverflowCat.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crate `paddleocr`\r\n\r\n[![](https://img.shields.io/crates/v/paddleocr.svg)](https://crates.io/crates/paddleocr/)\r\n\r\nA simple wrapper for [`hiroi-sora/PaddleOCR-json`](https://github.com/hiroi-sora/PaddleOCR-json).\r\n\r\n## Usage\r\n\r\n```rust\r\nlet mut p = paddleocr::Ppocr::new(\r\n    PathBuf::from(\".../PaddleOCR-json.exe\"), // path to binary\r\n    Default::default(), // language config_path, default `zh_CN`\r\n)\r\n.unwrap(); // initialize\r\n\r\nlet now = std::time::Instant::now(); // benchmark\r\n{\r\n    // OCR files\r\n    println!(\"{}\", p.ocr(Path::new(\".../test1.png\").into()).unwrap());\r\n    println!(\"{}\", p.ocr(Path::new(\".../test2.png\").into()).unwrap());\r\n    println!(\"{}\", p.ocr(Path::new(\".../test3.png\").into()).unwrap());\r\n\r\n    // OCR clipboard\r\n    println!(\"{}\", p.ocr_clipboard().unwrap());    \r\n}\r\nprintln!(\"Elapsed: {:.2?}\", now.elapsed());\r\n```\r\n\r\nUse `ocr_and_parse` to get structured results.\r\n\r\nBy enabling the `bytes` feature, you can pass image data as a byte array (`AsRef\u003c[u8]\u003e`).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverflowcat%2Fpaddleocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foverflowcat%2Fpaddleocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverflowcat%2Fpaddleocr/lists"}