{"id":23201181,"url":"https://github.com/codedotjs/pytesser-module","last_synced_at":"2025-04-05T09:26:34.720Z","repository":{"id":32267439,"uuid":"35841993","full_name":"CodeDotJS/Pytesser-module","owner":"CodeDotJS","description":"Python wrapper for the tesseract OCR engine. The module is based on OpenCV.","archived":false,"fork":false,"pushed_at":"2015-05-29T10:39:32.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:18.980Z","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/CodeDotJS.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}},"created_at":"2015-05-18T20:52:42.000Z","updated_at":"2015-05-18T20:53:57.000Z","dependencies_parsed_at":"2022-09-12T01:41:25.629Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/Pytesser-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FPytesser-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FPytesser-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FPytesser-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FPytesser-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/Pytesser-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314757,"owners_count":20918909,"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-12-18T15:14:03.793Z","updated_at":"2025-04-05T09:26:34.693Z","avatar_url":"https://github.com/CodeDotJS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytesser-module\nPython wrapper for the tesseract OCR engine. The module is based on OpenCV.\n\nPytesser\n========\n\nPython wrapper for the tesseract OCR engine. The module is based on OpenCV.\n\n\nInformations\n------------\n\nThere is already multiples tesseract python modules, but none of them satisfied me. This one is different on the following point:\n\n* All the classes are put in the same file and all inessential class are removed\n* Use OpenCV instead of PIL (to really an advantage because PIL as far more widespread, but better fit my needs ;))\n* Use subprocess.communicate instead of subprocess.wait to avoid any output in the shell or in the programs that use the module.\n* Management of the differents languages via the option '-l' because the original pytesser use the default language which is english. By this way the detection of french for instance is totally inacurrate.\n* Management of of the pagesegmode, which allow to modify the behavior of tesseract if we want for instance to detect only one character, a word or a line.\n* The code is far more straightforward (my opinion)\n\nHow to use it ?\n---------------\n\nThere is to ways to use it. Either you give it a filename, either directly an IplImage. For a filename you can do:\n\n    import pytesser\n    txt = pytesser.image_to_string(\"myimage.jpg\") #By default language is eng, and page seg mode auto\n\n    #To give specifify parameters:\n    txt = pytesser.image_to_string(\"myimage.jpg\",\"fra\",pytesser.PSM_SINGLE_WORD) #Analyse image as a single french word\n\n\nOr you can directly give it an IplImage like this:\n\n    image = cv.LoadImage(\"myimage.jpg\")\n    txt = pytesser.iplimage_to_string(image) \n\nOr give it a mat:\n\n    image = cv2.imwrite(\"myimage.jpg\")\n    txt = pytesser.mat_to_string(image) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fpytesser-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fpytesser-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fpytesser-module/lists"}