{"id":37070905,"url":"https://github.com/lucidprogrammer/ocraccuracyreporter","last_synced_at":"2026-01-14T08:16:58.563Z","repository":{"id":57447731,"uuid":"121382614","full_name":"lucidprogrammer/ocraccuracyreporter","owner":"lucidprogrammer","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-16T02:27:00.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T23:30:20.124Z","etag":null,"topics":["ocr","python","text-analysis"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/lucidprogrammer.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2018-02-13T12:56:53.000Z","updated_at":"2018-02-13T13:00:16.000Z","dependencies_parsed_at":"2022-09-15T22:20:37.713Z","dependency_job_id":null,"html_url":"https://github.com/lucidprogrammer/ocraccuracyreporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucidprogrammer/ocraccuracyreporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidprogrammer%2Focraccuracyreporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidprogrammer%2Focraccuracyreporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidprogrammer%2Focraccuracyreporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidprogrammer%2Focraccuracyreporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucidprogrammer","download_url":"https://codeload.github.com/lucidprogrammer/ocraccuracyreporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucidprogrammer%2Focraccuracyreporter/sbom","scorecard":{"id":602578,"data":{"date":"2025-08-11","repo":{"name":"github.com/lucidprogrammer/ocraccuracyreporter","commit":"1f050ee5d0682c4df3301a94274a0e9375184f2b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T00:47:37.008Z","repository_id":57447731,"created_at":"2025-08-21T00:47:37.008Z","updated_at":"2025-08-21T00:47:37.008Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ocr","python","text-analysis"],"created_at":"2026-01-14T08:16:57.908Z","updated_at":"2026-01-14T08:16:58.554Z","avatar_url":"https://github.com/lucidprogrammer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"============\nOverview\n============\n\nYour OCR pipeline may have various stages and may use various tools.\nYou need a simple way to run sample/s as a whole or piece by piece and have a way to say that the OCR accuracy is say 98%.\n\n=========\nUsage\n=========\n\n\u003e\u003e\u003e pip install ocraccuracyreporter\n\u003e\u003e\u003e from ocraccuracyreporter.oar import oar\n\n.. topic:: initialising the reporter\n\n\u003e\u003e\u003e oreport = oar(expected='john', given='joh', label='name')\n\n\u003e\u003e\u003e print(oreport)\n\u003e\u003e\u003e name,john,joh,86,100,86,86,94,1\n\nor you may have various ocr results for the same item, so you may want to initialise the expected alone\nwith or without a label\n\n\u003e\u003e\u003e oreport = oar(expected='john', label='name')\n\u003e\u003e\u003e oreport.given = 'joh'\n\u003e\u003e\u003e repr(oreoprt)\nif you are creating a csv report with header info\n\u003e\u003e\u003elabel,expected,given,ratio,partial_ratio,token_sort_ratio,token_set_ratio,jaro_winkler,distance\n  name,john,joh,86,100,86,86,94,1\n\n  .. topic:: Items in the report\n\n\n  ratio - uses pure Levenshtein Distance based matching\n          (100 - means perfect match)\n\n  partial_ratio - matches based on best substrings\n\n  token_sort_ratio - tokenizes the strings and sorts them alphabetically\n\n  token_set_ratio - tokenizes the strings and compared the intersection\n\n  jaro_winkler - this algorithm giving more weight to common prefix\n                 (for example, some parts are good, missing others)\n\n  distance - this shows how many characters are really different in given\n             compared to expected\n\n\n\n\n=========\nClass variables\n=========\n\nlabel  - a meaningful name for the ocr string.\nexpected - expected result\ngiven - result you got out of ocr pipeline\n\ntotal_expected_char_count - calculated expected char count\ntotal_expected_word_count - calculated expected word count\n\ntotal_given_char_count - calculated given char count\ntotal_given_word_count - calculated given word count\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidprogrammer%2Focraccuracyreporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucidprogrammer%2Focraccuracyreporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucidprogrammer%2Focraccuracyreporter/lists"}