{"id":13804965,"url":"https://github.com/jeenyuhs/vesseract","last_synced_at":"2025-05-13T18:33:05.193Z","repository":{"id":46102978,"uuid":"424750874","full_name":"jeenyuhs/vesseract","owner":"jeenyuhs","description":"A V wrapper for Tesseract-OCR","archived":false,"fork":false,"pushed_at":"2021-11-14T20:58:14.000Z","size":3427,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T05:27:39.743Z","etag":null,"topics":["ocr","tesseract","v","wrapper"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeenyuhs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-04T21:56:30.000Z","updated_at":"2024-01-06T13:08:48.000Z","dependencies_parsed_at":"2022-08-27T03:23:35.361Z","dependency_job_id":null,"html_url":"https://github.com/jeenyuhs/vesseract","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/jeenyuhs%2Fvesseract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeenyuhs%2Fvesseract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeenyuhs%2Fvesseract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeenyuhs%2Fvesseract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeenyuhs","download_url":"https://codeload.github.com/jeenyuhs/vesseract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003472,"owners_count":21997891,"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","tesseract","v","wrapper"],"created_at":"2024-08-04T01:00:55.727Z","updated_at":"2025-05-13T18:33:03.361Z","avatar_url":"https://github.com/jeenyuhs.png","language":"V","funding_links":[],"categories":["Libraries"],"sub_categories":["Command line interface (CLI) / Terminal / Shell"],"readme":"# Vesseract\n\nA \"WIP\" V wrapper for Tesseract-OCR inspired by pytesseract wrapper!\n\nTesseract OCR is a optical character recognition software made by Google,\nit can \"read\" text from an image.\n\nYou need to install Tesseract 4 and register it in your path.\n\nInstall the package from VPM:\n```\nv install barrack-obama.vesseract\n```\n# Quickstart\n\n```v\nimport barrack-obama.vesseract\n\n// Extract text from image\n// Image: path - lang: Language for tesseract - args: custom arguments\ntext := vesseract.image_to_string(\n        image: 'sample/demo.png', lang: 'eng', args: '') or {\n\t\tpanic(err)\n}\n// Or simply: vesseract.image_to_string_path('sample/demo.png')\n// \"Got: Hi from Vesseract !\"\nprintln(\"Got: $text\")\n\n// Get Tesseract version\nversion := vesseract.get_tesseract_version() or { panic(err) }\n// 4.1.0 installed: \"Tesseract 4 - 1 - 0 detected!\"\nprintln(\"Tesseract $version.major - $version.minor - $version.patch detected!\")\n\n\n// Get languages supported by Tesseract\nlangs := vesseract.get_languages() or { panic(err) }\n// Example: \"['afr', 'amh', 'ara', 'asm', ... 'uzb_cyrl', 'vie', 'yid', 'yor']\"\nprintln(\"$langs\")\n\n\n// Get alto xml - Require Tesseract \u003e4.1.0\nalto := vesseract.image_to_alto_xml_path('sample/demo.png') or { panic(err) }\n// \"XML: \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e ... \"\nprintln(\"XML: $alto\")\n\n\n// Get bounding boxes for letters\nboxes := image_to_boxes(image: 'sample/demo.png', lang: 'eng', args: '') or { panic(err) }\nprintln(\"$boxes\")\n/* \"[.Tesseract_box{\n    letter: 'H'\n    x1: 68\n    y1: 206\n    x2: 91\n    y2: 235\n    page: 0\n}, ... \"\n\n\n// Check if a language model exists in Tesseract\nif (vesseract.is_language_code_supported(\"fra\")) {\n    // Do stuff...\n} else {\n    // Use another model instead...\n}\n\n```\n# License\n\nThis wrapper is licensed under the MIT License, see ```LICENSE``` for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeenyuhs%2Fvesseract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeenyuhs%2Fvesseract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeenyuhs%2Fvesseract/lists"}