Tag Keeper is an AI-powered application that allows users to capture and process garment tags before cutting them off. By leveraging computer vision and OCR, the app extracts care instructions from clothing labels and retrieves detailed washing and maintenance guidance via external APIs like Laundry Buddy. The goal is to provide an effortless and scalable way to manage garment care information while enabling future smart wardrobe extensions.
- Tag Recognition: Uses OCR and computer vision to extract care instructions from clothing tags.
- Garment Identification: Optionally detects the garment type using a trained model.
- API Integration: Connects with external laundry services for additional care recommendations.
- Image Processing: Implements OpenCV-based preprocessing and optional tag segmentation.
- Local & Cloud Storage: Saves processed images and extracted text on the device or cloud.
- User-Friendly Interface: Provides a clean and intuitive UI for both mobile and web users.
-
Clone the repository
-
Set up a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask server:
python app.py
The API will be available at
http://127.0.0.1:5000/
- Navigate to the
frontend
directory:cd frontend
- Install dependencies:
npm install
- Start the development server:
The web app will be available at
npm start
http://localhost:3000/
- Install dependencies:
npm install -g expo-cli
- Run the application:
Use the Expo Go app to test it on a mobile device.
expo start
- Upload an Image: Select a picture of a clothing tag (or both the garment and tag together).
- Image Processing & OCR: The system detects the tag, extracts the text, and removes noise for improved accuracy.
- API Call: The extracted text is sent to an external API (e.g., Laundry Buddy) for care instructions.
- View Results: Users receive detailed washing and care instructions in the app.
- POST
/upload
: Upload an image for processing.- Request: Multipart form-data with an image file.
- Response: JSON containing extracted text and API results.
- Enhanced Tag Detection: Improve accuracy using deep learning models like YOLO.
- Garment Type Classification: Automatically identify clothing type for better care instructions.
- Personalized Laundry Recommendations: Store user preferences and suggest care routines.
- Cloud Sync & Multi-Device Support: Save and access tag data across devices.
- Smart Wardrobe Expansion: Integrate with inventory apps for complete clothing management.
This project is licensed under the MIT License.
Contributions are welcome! Feel free to open issues or submit pull requests.
For inquiries or support, reach out