{"id":15063866,"url":"https://github.com/ashrw/handwritten_digit_recognizer","last_synced_at":"2026-01-03T04:45:17.673Z","repository":{"id":257137723,"uuid":"857405646","full_name":"AshRW/handwritten_digit_recognizer","owner":"AshRW","description":"A handwritten digit recognition system using Python and Scikit-learn to preprocess images and classify digits with a trained SVM model.","archived":false,"fork":false,"pushed_at":"2024-09-14T19:19:06.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T08:37:49.314Z","etag":null,"topics":["ml","python","scikit-learn"],"latest_commit_sha":null,"homepage":"","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/AshRW.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":"2024-09-14T15:15:35.000Z","updated_at":"2024-09-14T19:19:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"46fd07d2-3446-4228-a3b2-1f92880947ff","html_url":"https://github.com/AshRW/handwritten_digit_recognizer","commit_stats":null,"previous_names":["ashrw/handwritten_digit_recognizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshRW%2Fhandwritten_digit_recognizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshRW%2Fhandwritten_digit_recognizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshRW%2Fhandwritten_digit_recognizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshRW%2Fhandwritten_digit_recognizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshRW","download_url":"https://codeload.github.com/AshRW/handwritten_digit_recognizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243779162,"owners_count":20346668,"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":["ml","python","scikit-learn"],"created_at":"2024-09-25T00:08:16.791Z","updated_at":"2026-01-03T04:45:17.632Z","avatar_url":"https://github.com/AshRW.png","language":"Python","readme":"# Handwritten Digit Recognition\n\nThis project implements a handwritten digit recognition system using Python and Scikit-learn. The system processes custom images of handwritten digits, trains a Support Vector Machine (SVM) model on the Scikit-learn `digits` dataset, and predicts the digits from new images.\n\n## Features\n\n- **Image Preprocessing**: Resize and normalize custom images to 8x8 pixels.\n- **Model Training**: Train an SVM classifier using Scikit-learn's `digits` dataset.\n- **Prediction**: Classify digits from preprocessed images using the trained model.\n\n## Demo Video\n\nhttps://github.com/user-attachments/assets/76f3ef5f-d52d-4615-98ae-4867ea490571\n\n\n\n## Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/your-username/handwritten-digit-recognition.git\n   cd handwritten-digit-recognition\n   ```\n\n2. **Set Up the Virtual Environment**:\n   ```bash\n   python -m venv env\n   ```\n\n3. **Activate the Virtual Environment**:\n   - **Windows**:\n     ```bash\n     .\\env\\Scripts\\activate\n     ```\n   - **macOS/Linux**:\n     ```bash\n     source env/bin/activate\n     ```\n\n4. **Install Dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\n1. **Train the Model**:\n   ```bash\n   python train_model.py\n   ```\n\n2. **Predict Digits**:\n   ```bash\n   python predict.py --image path_to_your_image.png\n   ```\n\n## Project Structure\n\n- `train_svm.py`: Script to train and save the SVM model.\n- `load_model.py`: Script to load the model and predict digits from custom images.\n- `preprocessing.py`: Contains functions to preprocess images for the model.\n\n## Dependencies\n\n- OpenCV\n- Numpy\n- Scikit-learn\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgements\n\n- Scikit-learn for the `digits` dataset and machine learning tools.\n- OpenCV for image preprocessing.\n\n## Contact\n\nFor questions or suggestions, please open an issue or contact me.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashrw%2Fhandwritten_digit_recognizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashrw%2Fhandwritten_digit_recognizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashrw%2Fhandwritten_digit_recognizer/lists"}