{"id":15159330,"url":"https://github.com/shettysach/handwriting-calculator","last_synced_at":"2026-02-09T01:33:58.719Z","repository":{"id":197178117,"uuid":"697635121","full_name":"shettysach/Handwriting-Calculator","owner":"shettysach","description":"A calculator that uses handwritten digits and operators to calculate the result, using contour detection and CNN model prediction. Tensorflow (Keras) is used to create, train and load the neural network model used for predictions. CustomTKinter is used to provide the GUI. OpenCV and Pillow (PIL) are used for contour detection.","archived":false,"fork":false,"pushed_at":"2024-04-15T15:22:04.000Z","size":15607,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T15:53:37.588Z","etag":null,"topics":["basic-arithmetic-operations","calculator","cnn","cnn-keras","convolutional-neural-networks","digit-recognition","handwriting-calculator","handwritten-digit-recognition","jupyter-notebook","keras","keras-models","keras-neural-networks","mnist","mnist-classification","mnist-handwriting-recognition","opencv","opencv2","pillow","tensorflow","tensorflow-models"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/shettysach.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":"2023-09-28T06:51:49.000Z","updated_at":"2024-07-01T10:18:27.000Z","dependencies_parsed_at":"2024-11-03T06:41:55.384Z","dependency_job_id":"277b17fa-f859-4ca9-92e5-d789ced2f732","html_url":"https://github.com/shettysach/Handwriting-Calculator","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"c4f038391adf6f336dc7976185a615864bca55fb"},"previous_names":["shettysach/handwriting-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shettysach/Handwriting-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettysach%2FHandwriting-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettysach%2FHandwriting-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettysach%2FHandwriting-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettysach%2FHandwriting-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shettysach","download_url":"https://codeload.github.com/shettysach/Handwriting-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettysach%2FHandwriting-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29252979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["basic-arithmetic-operations","calculator","cnn","cnn-keras","convolutional-neural-networks","digit-recognition","handwriting-calculator","handwritten-digit-recognition","jupyter-notebook","keras","keras-models","keras-neural-networks","mnist","mnist-classification","mnist-handwriting-recognition","opencv","opencv2","pillow","tensorflow","tensorflow-models"],"created_at":"2024-09-26T21:04:46.340Z","updated_at":"2026-02-09T01:33:58.706Z","avatar_url":"https://github.com/shettysach.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handwriting-Calculator\n\nA calculator that uses handwritten digits and operators to calculate the result, using contour detection and CNN model prediction.\n- Tensorflow (Keras) is used to create, train and load the neural network model used for predictions.\n- CustomTKinter is used to provide the GUI.\n- OpenCV and Pillow (PIL) are used to read input from the GUI canvas and to obtain contours for individual digits/operators.\n- The individual digits/operators are detected and predicted. The predictions are combined into a string and evaluated to get the result.\n\n![demo0](https://github.com/ShettySach/Handwriting-Calculator/assets/132273464/c8643ca4-2bad-46f7-ba14-13b01e7a9d2b)\n\n#### Contour boxes (green), predicted values (blue) and accuracies (red)\n\n![Contours](https://github.com/ShettySach/Handwriting-Calculator/assets/132273464/5e3e7121-21ca-4337-a86c-c5656c305bb2)\n\n## Requirements -\n```bash\npip install -r requirements.txt\n```\n* Tensorflow (Keras)\n* OpenCV\n* Pillow (PIL)\n* Pandas\n* Numpy\n* CustomTkinter\n\n## Instructions -\n* Clone the repo and run the Jupyter notebook, **MAIN.ipynb** or run **MAIN.py**\n* You can use digits `0 to 9`, operators `+ - × /`, decimal point `.` and parentheses `( )`\n* You can also use ×× for exponentiation and // for floor division\n  \n### Data\n* [MNIST dataset](https://www.kaggle.com/datasets/hojjatk/mnist-dataset)\n* [Symbol dateset by Irfan Chahyadi ](https://github.com/irfanchahyadi/Handwriting-Calculator/blob/master/src/dataset/data.pickle)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshettysach%2Fhandwriting-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshettysach%2Fhandwriting-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshettysach%2Fhandwriting-calculator/lists"}