{"id":22317340,"url":"https://github.com/ib0b/kenya-elections-ocr","last_synced_at":"2026-03-19T22:23:34.239Z","repository":{"id":106213760,"uuid":"537572637","full_name":"ib0b/kenya-elections-ocr","owner":"ib0b","description":"Kenya Elections tallied by AI and Crowdsourcing","archived":false,"fork":false,"pushed_at":"2022-09-20T19:06:07.000Z","size":471,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T03:41:53.448Z","etag":null,"topics":["deep-learning","ocr"],"latest_commit_sha":null,"homepage":"","language":null,"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/ib0b.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":"2022-09-16T18:17:23.000Z","updated_at":"2023-01-30T21:16:55.000Z","dependencies_parsed_at":"2023-06-18T11:37:18.999Z","dependency_job_id":null,"html_url":"https://github.com/ib0b/kenya-elections-ocr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ib0b/kenya-elections-ocr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fkenya-elections-ocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fkenya-elections-ocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fkenya-elections-ocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fkenya-elections-ocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ib0b","download_url":"https://codeload.github.com/ib0b/kenya-elections-ocr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fkenya-elections-ocr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29850529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deep-learning","ocr"],"created_at":"2024-12-03T23:09:24.623Z","updated_at":"2026-02-26T06:41:07.696Z","avatar_url":"https://github.com/ib0b.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Kenya Elections OCR\nThis repo contains Form34A tallies from the Kenya August 2022 eleciton. This data has been collected via crowdsourcing and is not the official results. For official results please see the [Independent Electoral and Boundaries Commission website](https://www.iebc.or.ke/)\n\nThis data is provided for education purposes only.\n\n## Introduction\nIn August 2022, elections were held in Kenya to decide the next leaders, the main one being the presidential elections.\n\nThe way elections work is, that there are **46,229 polling centers** where elections take place. After the voting period ends (typically around 5pm on election day) the polling station officials commence counting of votes.\n\nThey then record the tally manually on a physical form. This form is referred to as Form 34A. The form is then uploaded on public portal for transparency. This repo contains the results of an OCR project that focused on extracting those numbers and creating a tally. For more info on the project see this blog post: [Using AI to verify Kenya Election Results](https://bob.africa/using-ai-to-verify-kenya-election-results/).\n\n## Task\nTrain an OCR model that correctly identifies the hand written digits. Use the data in this repo ~ ***forms-export.csv***\nA sample pipeline looks like this.\n\n**Download Images -\u003e Crop Images -\u003e Train an OCR model -\u003e Analyse Accuracy -\u003e Submit results here**\n\nGet the images from the IEBC website [here](https://forms.iebc.or.ke/#/downloads?contest=34)\n\nWhen cropping images, you may have to crop individual numbers as most OCR models using deep learning can only read one line at a time.\n\n## Submit\nTo submit feel free to create an issue, and share you results and methodology. \nPlease note that the data is truncated and only **30,000** out of the **46,000** forms are provided. This is to enusre no cheating, once submitted you can share you model weights, also a jupyter or colab notebook if possible and I will run on a test the remaining data.\n\n## Prizes\nIn this economy, we do it the for the glory.\n\n\u003cimg width=\"300\" alt=\"bud\" src=\"https://user-images.githubusercontent.com/18010106/190708607-a633ad4e-0962-4a1e-b58d-9e8029471ee6.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fib0b%2Fkenya-elections-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fib0b%2Fkenya-elections-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fib0b%2Fkenya-elections-ocr/lists"}