{"id":16182732,"url":"https://github.com/brianhuster/ocr_python","last_synced_at":"2025-07-17T01:33:50.362Z","repository":{"id":234226251,"uuid":"788383201","full_name":"brianhuster/ocr_python","owner":"brianhuster","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-28T15:33:48.000Z","size":40229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-28T16:22:34.559Z","etag":null,"topics":[],"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/brianhuster.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":"2024-04-18T10:01:45.000Z","updated_at":"2024-04-28T15:33:50.000Z","dependencies_parsed_at":"2024-10-10T06:53:50.954Z","dependency_job_id":null,"html_url":"https://github.com/brianhuster/ocr_python","commit_stats":null,"previous_names":["brianhuster/read_text_from_camera","brianhuster/ocr_python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brianhuster/ocr_python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Focr_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Focr_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Focr_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Focr_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianhuster","download_url":"https://codeload.github.com/brianhuster/ocr_python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianhuster%2Focr_python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265558614,"owners_count":23787950,"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":[],"created_at":"2024-10-10T06:43:47.334Z","updated_at":"2025-07-17T01:33:50.318Z","avatar_url":"https://github.com/brianhuster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿﻿# OCR_python\r\nThis python script can extract text from image (local or URL), and camera\r\n## Install\r\n```shell\r\ngit clone https://github.com/brianhuster/read_text_from_camera/\r\ncd read_text_from_camera\r\npip install -r requirements.txt\r\n```\r\n\r\n## Usage\r\n```shell\r\npython3 script.py [-h] [-i IMAGEPATH] [-c CAMERASOURCE] [-d {easyocr,tesseract}] [-r {easyocr,easy_ocr,vietocr}] [-l LANGUAGE] [-t {y,n}]\r\n```\r\n\r\nArguments:\r\n- `-h`, `--help`: For help\r\n- `-i IMAGEPATH`, `--ImagePath IMAGEPATH`: Local path or URL to an image\r\n- `-c CAMERASOURCE`, `--CameraSource CAMERASOURCE`: Index or URL of the video camera (default: 0)\r\n- `-d {easyocr,tesseract}`, `--detector {easyocr,tesseract}`: Detector to use (default: easyocr)\r\n- `-r {easyocr,easy_ocr,vietocr}`, `--recognizer {easyocr,easy_ocr,vietocr}`: Recognizer to use (default: easyocr)\r\n- `-l LANGUAGE`, `--language LANGUAGE`: 2-letter code of language to use for OCR (default: vi)\r\n- `-t {y,n}`, `--textCorrector {y,n}`: Use text corrector or not (y/n) for Vietnamese text (default: n)\r\n\r\n### Examples\r\n\r\n1. Recognize text from an image file:\r\n```shell\r\npython3 script.py -i image.jpg\r\n```\r\n2. Recognize text from a camera feed:\r\n```shell\r\npython script.py -c 0\r\n```\r\nor \r\n```shell\r\npython3 script.py\r\n```\r\nSay \"đọc chữ\" or \"read it\" to trigger text recognition and speech synthesis.\r\n\r\nWhile the camera is running, press ```q``` to turn it off\r\n\r\n### Demo video\r\n[![Video](https://i9.ytimg.com/vi/v9YPcHzfTyk/mqdefault.jpg?sqp=CNjYrrEG-oaymwEmCMACELQB8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGGUgQyhCMA8=\u0026rs=AOn4CLCxICP7zv-lwkr3xoMfB8t1JQ5alw)](https://www.youtube.com/watch?v=v9YPcHzfTyk)\r\n\r\n## References\r\n[https://github.com/madmaze/pytesseract](https://github.com/madmaze/pytesseract)\r\n\r\n[https://github.com/pbcquoc/vietocr](https://github.com/pbcquoc/vietocr)\r\n\r\n[https://github.com/JaidedAI/EasyOCR](https://github.com/JaidedAI/EasyOCR)\r\n\r\n[https://github.com/buiquangmanhhp1999/VietnameseOcrCorrection](https://github.com/buiquangmanhhp1999/VietnameseOcrCorrection)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhuster%2Focr_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianhuster%2Focr_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhuster%2Focr_python/lists"}