{"id":27206067,"url":"https://github.com/grayoj/image-classifier","last_synced_at":"2025-06-26T22:35:17.721Z","repository":{"id":46703989,"uuid":"477741328","full_name":"grayoj/image-classifier","owner":"grayoj","description":"A python-image-classification web application project, written in Python and served through the Flask Microframework. This Project implements the VGG16 covolutional neural network, through Keras and Tensorflow wrappers, to make predictions on uploaded images.","archived":false,"fork":false,"pushed_at":"2022-11-10T14:26:37.000Z","size":1087,"stargazers_count":22,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T23:09:10.209Z","etag":null,"topics":["image-classification"],"latest_commit_sha":null,"homepage":"","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/grayoj.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}},"created_at":"2022-04-04T14:37:23.000Z","updated_at":"2024-08-30T15:29:17.000Z","dependencies_parsed_at":"2023-01-21T21:18:36.191Z","dependency_job_id":null,"html_url":"https://github.com/grayoj/image-classifier","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/grayoj/image-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Fimage-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Fimage-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Fimage-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Fimage-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grayoj","download_url":"https://codeload.github.com/grayoj/image-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Fimage-classifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262151861,"owners_count":23266929,"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":["image-classification"],"created_at":"2025-04-09T23:09:05.356Z","updated_at":"2025-06-26T22:35:17.698Z","avatar_url":"https://github.com/grayoj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Classification in Python\n![CI](https://github.com/grayoj/image-classifier/actions/workflows/tests.yml/badge.svg)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/grayoj/image-classifier.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/grayoj/image-classifier/alerts/) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/grayoj/image-classifier.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/grayoj/image-classifier/context:python) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/grayoj/image-classifier.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/grayoj/image-classifier/context:javascript)\n\u003ca href=\"https://codeclimate.com/github/grayoj/image-classifier/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/c1ff1ab86be5707ea0cf/maintainability\" /\u003e\u003c/a\u003e\n\n**Implementing image classification in Flask using Keras.**\n\nThe VGG16 is a convolution neural network model architecture that is the best classifier for images till today. This project implements the classifier through Keras. This appplication was written in Python. It also utilizes the \u003ca href=\"https://flask.palletsprojects.com/en/2.1.x/\"\u003eFlask Microframework\u003c/a\u003e, as the server to render a template, and pass the submitted file to the prediction model. It also uses \u003ca href=\"https://keras.io/\"\u003eKeras\u003c/a\u003e modules to perform image classification.\n\n## Requirements \n\n* **Python 3.5+**\n* **Pip (For installing modules)**\n* **Flask** \u003ca href=\"https://flask.palletsprojects.com/en/2.1.x/\"\u003eDownload\u003c/a\u003e \n* **Tensorflow**\n* **Keras Modules**\n\n## Installation\n\n### (Plain Set Up)\n\nGo ahead an clone this specific repository. You could do this through the command below:\n\n```git\ngit clone https://github.com/grayoj/Python-Image-Classification.git\n```\nThen navigate to the directory. If you use VSCode, you could avoid interacting with the terminal.\n\nRun the following commands in the directory:\n\n```git\npython -m flask run\n```\n\n### (Full Set Up)\n\nGo ahead an clone this specific repository. You could do this through the command below:\n\n```git\ngit clone https://github.com/grayoj/Python-Image-Classification.git\n```\n\nTo install Python, download \u003ca href=\"python.org\"\u003ehere\u003c/a\u003e. If you already have Python 3.5 installed, you may proceed to the next steps below:\n\nYou will notice this line of code in the ``app.py`` file:\n\n\u003cimg src=\"img/flask-import.png\"\u003e\n\nTo ensure the modules would be imported on your system, into the project, run the following command:\n\n```powershell\npip install flask\n```\n\nThat would install flask on your local machine.\nNext step is to install the Keras Modules, and packages required. Run the following command:\n\n    \u003e pip install keras\n\nIf you use Pylance, it should validate the imports above in the ``app.py``. i.e show no errors, of modules missing. Modules being installed:\n\n\u003cimg src=\"img/keras-modules.png\"\u003e\n\nYou would have to install Tensorflow as well.\n\n    \u003e pip install tensorflow\n\nYou are set. Now let's dial in to a localhost port.\n\n    \u003e python -m flask run\n\nViola, the application should load sucessfully. If there are any errors, ensure you installed the modules properly.\n\n    Http://127.0.0.1:5000 \n\nDon't worry if you notice a sudden download process. Tensorflow would begin to download dependencies for the VGG16 Covolutional Neural network model.\n\n\n\u003cimg src=\"img/terminal.png\"\u003e\n\n## Prediction in action\n\nNow, the fun part. This should have loaded open:\n\n\u003cimg src=\"img/pic.png\"\u003e\n\nLet's see whether our model can predict what this animal is:\nThe picture used is in the repository. You could use other images, and have fun.\n\n\u003cimg src=\"images/cat.jpg\"\u003e\n\nNow let's input it\n\n\u003cimg src=\"img/choose.png\"\u003e\n\nClick on predict\n\n\u003cimg src=\"img/predict.png\"\u003e\n\nOur model predicted a tiger cat! Epic.\n\n## More Information\n\nReach out to me if you have questions or suggestions. Would love to connect.\n\n****\nTwitter: @geraldabuchi\n\n# Python-Image-Classification - MIT License\nFlask, Keras, Tensorflow, VGG16\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayoj%2Fimage-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrayoj%2Fimage-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayoj%2Fimage-classifier/lists"}