{"id":26965753,"url":"https://github.com/jamesql/tensorflow-classification-server","last_synced_at":"2025-04-03T07:34:21.072Z","repository":{"id":285491719,"uuid":"958321960","full_name":"jamesql/tensorflow-classification-server","owner":"jamesql","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T03:22:12.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T03:26:45.843Z","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/jamesql.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":"2025-04-01T02:20:55.000Z","updated_at":"2025-04-01T03:22:15.000Z","dependencies_parsed_at":"2025-04-01T03:37:05.680Z","dependency_job_id":null,"html_url":"https://github.com/jamesql/tensorflow-classification-server","commit_stats":null,"previous_names":["jamesql/tensorflow-classification-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesql%2Ftensorflow-classification-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesql%2Ftensorflow-classification-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesql%2Ftensorflow-classification-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesql%2Ftensorflow-classification-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesql","download_url":"https://codeload.github.com/jamesql/tensorflow-classification-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246956791,"owners_count":20860499,"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":[],"created_at":"2025-04-03T07:32:51.305Z","updated_at":"2025-04-03T07:34:21.063Z","avatar_url":"https://github.com/jamesql.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TensorFlow Image Classification Server\n\nThis repository contains a Python-based server for performing image classification using a pre-trained TensorFlow model. The server processes images sent from a client, classifies them using TensorFlow, and sends the classification result back to the client. This setup is ideal for integrating edge AI applications, where the server performs real-time image classification, and the client handles image capture and display.\n\n## Features\n\n- **Image Classification with TensorFlow:** The server uses a pre-trained TensorFlow model (e.g., MobileNetV2) to classify images.\n- **Client-Server Communication:** The system supports communication over TCP sockets, allowing the client to send images to the server for classification and receive results back.\n- **Real-time Processing:** The server processes images in real-time, making it ideal for applications that require quick decision-making based on visual data.\n- **Scalable Architecture:** This architecture can be extended to support additional AI applications and integrated with biometric authentication systems or other machine learning tasks.\n\n## Getting Started\n\nTo run the TensorFlow classification server and client, follow the steps below:\n\n### Prerequisites\n\n- **Python 3.x** (preferably 3.8 or higher)\n- **TensorFlow 2.1 or higher** for AI image classification\n- **OpenCV** for image processing and capturing images on the client-side\n- **NumPy** for efficient array operations\n- **Socket programming** for server-client communication\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/jamesql/tensorflow-classification-server.git\n   cd tensorflow-classification-server\n   ```\n\n2. Install requirements\n   ```bash\n   pip install -r requirements.txt\n   ```\nThis will install:\n\n- `tensorflow==2.1` for image classification\n\n- `opencv-python` for image capture and processing\n\n- `numpy` for array manipulation\n\n- `socket` for server-client communication\n\nUsage\n1. Start the Server\nThe server runs a socket listener to receive images, classify them, and send back the results. To start the server:\n\n```bash\npython server.py\nThe server will listen on a predefined IP address and port (typically localhost and port 5000 by default). You can modify these settings in the script as needed.\n```\n\n2. Start the Client\nThe client captures an image (using OpenCV), sends it to the server for classification, and displays the result.\n\n```bash\npython client.py\nThe client will capture an image (e.g., from the webcam) and send it to the server. The server will classify the image using a pre-trained TensorFlow model, and the classification result will be displayed on the client-side.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesql%2Ftensorflow-classification-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesql%2Ftensorflow-classification-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesql%2Ftensorflow-classification-server/lists"}