{"id":43308415,"url":"https://github.com/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras","last_synced_at":"2026-02-12T21:00:38.640Z","repository":{"id":236561036,"uuid":"269152132","full_name":"HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras","owner":"HossamBalaha","description":"Deep Learning Classification System using PHP and Keras (Python)","archived":false,"fork":false,"pushed_at":"2020-07-27T02:41:37.000Z","size":9751,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T19:44:28.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/HossamBalaha.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":"2020-06-03T17:29:31.000Z","updated_at":"2024-04-27T19:44:30.397Z","dependencies_parsed_at":"2024-04-27T19:54:33.931Z","dependency_job_id":null,"html_url":"https://github.com/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras","commit_stats":null,"previous_names":["hossambalaha/deep-learning-classification-system-using-php-and-keras"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HossamBalaha","download_url":"https://codeload.github.com/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-02-01T21:00:22.048Z","updated_at":"2026-02-12T21:00:38.628Z","avatar_url":"https://github.com/HossamBalaha.png","language":"JavaScript","funding_links":[],"categories":["Interop \u0026 Model Serving"],"sub_categories":["Tokenizers \u0026 Prompt Utilities"],"readme":"# Deep Learning Classification System using PHP and Keras\nBy: **Hossam M. Balaha**\n\u003cbr\u003e\nC.V.: http://bit.ly/2wAZ2nI\n\n\n## Project Description\nThis project aims to create an interface between PHP (Web) and Python.\nThe website is developed using HTML, CSS, JavaScript, Bootstrap, jQuery and PHP.\nYou can add a classifier by using the HDF5 exported file from Keras (TensorFlow) and \nlabels file (a text a file where each label in put in a single line).\nAfter that, you can use that classifier record to perform different classification.\nThe current progress is performed on images.\n\n\n## Project Tutorial\nYou can follow the following steps to be able to understand the project.\n\n(1) When you surf the website, you can find the following:\n\n![alt text](./assets/images/shot-1.png)\n\nYou can change the configurations such as website name, slider info, footer info \nand cards info from the database tables named: `website_configuations`,\n `website_cards` and `website_slider`.\n\n(2) You need to create an account. You can register from the `Register` button \nin the slider.\n\n![alt text](./assets/images/shot-2.png)\n\nYou need to enter the required fields: `First Name`, `Username`, `Email`, \n`Password`, and `Retype Password`.\n\n(3) If you created the account successfully, a success message will be displayed \nand you will be redirected to the login webpage as shown in the following figure.\n\n![alt text](./assets/images/shot-3.png)\n\n(4) You need to login with the `Username` and `Password`.\n\n(5) You will be redirected to your `Dashboard` after your success login as shown\nin the following figure.\n\n![alt text](./assets/images/shot-4.png)\n\n(6) You can add a classifier and check your classifiers from the\n`Classifiers` card and you can check your classification history from \nthe `Classification History` card as shown in the following two figures.\n\n![alt text](./assets/images/shot-5.png)\n\n![alt text](./assets/images/shot-6.png)\n\n(7) You can add a new classifier from the `Add New Classifier` button in the\n`Classifiers` card or from the drop down menu in the navigation bar\nas shown in the following figure.\n\n![alt text](./assets/images/shot-7.png)\n\n(8) You need to fill in the the required fields: `Title`, `Type`, `Model File`\nand `Labels File`. The `Title` field is the nickname of your classifier.\nThe `Type` field is the type of input data (currently only images are available).\nThe `Model File` must be the model file with an extension of `hdf5`.\nThe `Labels File` must be a text file with an extension of `txt`. The labels must\nbe ordered in the same order used in the training process. The following figure shows\na sample filling of the fields.\n\n![alt text](./assets/images/shot-8.png)\n\n(9) The classifier will be added as shown in the following figure.\n\n![alt text](./assets/images/shot-9.png)\n\nYou can delete it from the delete button (shown in red in the last column: `Operations`).\n\n(10) You can add a new classification from the `Add New Classification` button in the\n`Classifications` card or from the drop down menu in the navigation bar\nas shown in the following figure.\n\n![alt text](./assets/images/shot-10.png)\n\n(11) You need to select a `Classifier` and `File`. For example:\n\n![alt text](./assets/images/shot-11.png)\n\nThis image is for a patient with a `COVID-19`. It is just used as an example.\nThe classification process may take a while according to your computer (server) speed\nand model complexity.\n\n(12) The results are shown in the table in the `Classifications History` card\nas shown in the following figure.\n\n![alt text](./assets/images/shot-12.png)\n\nThe record shows the output of the first three predictions \n(in percentages with four decimals)\nin case of you have more than three classes (labels). \nIn our example, it showed that:\n`COVID-19: 99.9968% Viral Pneumonia: 0.0031% NORMAL: 0%`\n\n\n## Database Design\nThe database is designed in SQL using MySQL DBMS. The design is shown\nin the following figure.\n\n![alt text](./assets/images/shot-13.png)\n\n\n## Requirements\n- XAMPP for local servers.\n- Anaconda with Python 3.\n- Create a new environment and upgrade libraries using:\n    - Open the command window.\n    - Create a new environment using the command:\n     `conda create -n tf-gpu tensorflow-gpu`.\n    - Activate the created environment using the command:\n     `activate tf-gpu`.\n    - Install (and upgrade) the libraries using the command:\n     `pip install --upgrade pandas sklearn matplotlib opencv-python`.\n- Notice that:\n    - The name of environment must be `tf-gpu` as Python will search for that name.\n\n\n## Project Repo. on GitHub\n**Link**: https://github.com/HossamBalaha/Deep-Learning-Classification-System-using-PHP-and-Keras\n\n\n## Copyright\nAll rights reserved. No part of this publication may be reproduced, distributed or \ntransmitted in any form or by any means, including photocopying, recording or other \nelectronic or mechanical methods, without the prior written permission of me, except in \nthe case of brief quotations embodied in critical reviews and certain other non-\ncommercial uses permitted by copyright law. For permission requests, write to the \npublisher at the address below.\nEmail: `h3ossam@gmail.com`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHossamBalaha%2FDeep-Learning-Classification-System-using-PHP-and-Keras/lists"}