{"id":19681492,"url":"https://github.com/rois2coeurs/prog-multimedia-analyse-image","last_synced_at":"2026-04-16T01:31:51.221Z","repository":{"id":230929871,"uuid":"775479876","full_name":"rois2coeurs/prog-multimedia-analyse-image","owner":"rois2coeurs","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-31T21:04:41.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T07:16:00.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rois2coeurs.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}},"created_at":"2024-03-21T13:20:37.000Z","updated_at":"2024-04-01T14:47:05.000Z","dependencies_parsed_at":"2024-04-01T17:01:17.468Z","dependency_job_id":"4dc5b016-fae1-4b92-aacd-68c08380275d","html_url":"https://github.com/rois2coeurs/prog-multimedia-analyse-image","commit_stats":null,"previous_names":["rois2coeurs/prog-multimedia-analyse-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rois2coeurs/prog-multimedia-analyse-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rois2coeurs%2Fprog-multimedia-analyse-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rois2coeurs%2Fprog-multimedia-analyse-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rois2coeurs%2Fprog-multimedia-analyse-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rois2coeurs%2Fprog-multimedia-analyse-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rois2coeurs","download_url":"https://codeload.github.com/rois2coeurs/prog-multimedia-analyse-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rois2coeurs%2Fprog-multimedia-analyse-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31867710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":[],"created_at":"2024-11-11T18:08:00.199Z","updated_at":"2026-04-16T01:31:51.204Z","avatar_url":"https://github.com/rois2coeurs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Image Classification Project\n\nThis project is a simple image classification application using K-Nearest Neighbors (KNN) algorithm. The project is implemented in Python and uses the scikit-learn library for the KNN classifier.\n\n## Project Structure\n\nThe project consists of the following main components:\n\n- `DataManager.py`: This file contains the `DataManager` class which is responsible for handling the image data. It includes methods for reading images from a directory, converting them to grayscale, and resizing them.\n\n- `knn.py`: This file contains the `KNNClassifier` class which is responsible for training the KNN classifier, making predictions, and saving/loading the trained model.\n\n- `network.py`: This file contains the neuronal network which is responsible for training the Network, making predictions, and saving/loading the trained model.\n\n- `main.py`: This is the main entry point of the application. It checks if a trained model exists, if not, it trains a new model and saves it. Then, it uses the model to make predictions on the test data.\n\n## Dependencies\n\nThe project has the following dependencies:\n\n- tensorflow\n- keras\n- seaborn\n- scikit-learn\n- numpy\n- PIL\n- matplotlib\n\nThese can be installed using pip:\n\n```bash\npip install -r requirements.txt\n```\n\nYou can add the information about the new command-line arguments to the `Usage` section of your `README.md` file. Here's how you can update it:\n\n## Usage\n\n### Args\n\n- `--train \u003cpath\u003e` : Path to the training dataset\n- `--test \u003cpath\u003e` : Path to the testing dataset\n- `--no-cache` : Ignore any previously saved classifiers and train a new one\n- `--confusion-matrix` : Display confusion matrix after testing the classifier \n- `--knn` : Use the knn algorithm\n- `--neuronal \u003cint\u003e` : Use the neuronal algorithm with the specified epochs\n\n### Exemple\n#### KNN\n```bash\npython main.py --train datas/MNIST/training --test datas/MNIST/testing --confusion-matrix --knn\n```\n#### Neuronal\n```bash\npython main.py --train datas/MNIST/training --test datas/MNIST/testing --confusion-matrix --neuronal 10\n```\n#### Both\n```bash\npython main.py --train datas/MNIST/training --test datas/MNIST/testing --confusion-matrix --neuronal 10 --knn\n```\n\nReplace `path_to_training_dataset` and `path_to_testing_dataset` with the actual paths to your datasets.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frois2coeurs%2Fprog-multimedia-analyse-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frois2coeurs%2Fprog-multimedia-analyse-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frois2coeurs%2Fprog-multimedia-analyse-image/lists"}