{"id":15949774,"url":"https://github.com/tomzx/handwriting-recognition-data-generator","last_synced_at":"2025-02-23T04:17:14.158Z","repository":{"id":136859483,"uuid":"96000999","full_name":"tomzx/handwriting-recognition-data-generator","owner":"tomzx","description":"A data generator of images to train a program to do handwriting recognition.","archived":false,"fork":false,"pushed_at":"2017-07-14T00:51:12.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T06:44:36.811Z","etag":null,"topics":["data-generator","glyphs","handwriting-recognition"],"latest_commit_sha":null,"homepage":"https://fkcd.ca/3T1","language":"Python","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/tomzx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-02T03:50:33.000Z","updated_at":"2018-10-09T15:06:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"72149a14-1293-4dbe-86e5-5795ec5e7f26","html_url":"https://github.com/tomzx/handwriting-recognition-data-generator","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/tomzx%2Fhandwriting-recognition-data-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fhandwriting-recognition-data-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fhandwriting-recognition-data-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fhandwriting-recognition-data-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomzx","download_url":"https://codeload.github.com/tomzx/handwriting-recognition-data-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240266875,"owners_count":19774081,"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":["data-generator","glyphs","handwriting-recognition"],"created_at":"2024-10-07T12:55:34.303Z","updated_at":"2025-02-23T04:17:14.053Z","avatar_url":"https://github.com/tomzx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handwriting Recognition Data Generator\n`Handwriting Recognition Data Generator` is a utility that generates images that attempt to look like handwritten documents. The user can specify images to use as background and a source of glyphs images that will be stamped onto the page.\n\n## Getting started\n```bash\npip install -r requirements.txt\npython main.py -h\n```\n\n* Glyphs are expected to be located in folders named after their decimal representation (e.g., A =\u003e 65, a =\u003e 97)\n* Glyphs for the same font are expected to have the same name in each folder (e.g., 65/00001.png, 97/00001.png)\n\n## Limitations\n* Only a subset of Latin/English glyphs (! (ASCII 33) to ~ (ASCII 126))\n* Only a single region (where glyphs are stamped)\n* Glyph images are expected to be jpg or png\n\n## Configuration\n```yml\nbackgrounds:\n  -\n    file: /path/to/file\n    regions:\n      [[100, 100], [500, 500]]\n    line_height: 50\n    dilate: 3\n    blur: 0\n```\n\n* `file`: location of the background image on disk\n* `regions`: array of arrays defining the regions where glyphs may be stamped, in the form (top left x, top left y, bottom right x, bottom right y)\n* `line_height`: the height (in pixels) of the line in the background image\n* `dilate`: amount of morphological dilate to apply to glyphs\n* `blur`: amount of blur to apply to glyphs\n\n## License\nThe code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomzx%2Fhandwriting-recognition-data-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomzx%2Fhandwriting-recognition-data-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomzx%2Fhandwriting-recognition-data-generator/lists"}