Giter Club home page Giter Club logo

image-detection's Introduction

Image Detection (Write Metadata) Streamlit App

Welcome to the Image Detection (Write Metadata) Streamlit App!

With this Streamlit app, you can easily:

-Upload images

-Detect objects within them

-Generate text descriptions

-Add metadata to the images

The models employed in this app are sourced from Hugging Face and include "facebook/detr-resnet-50" for object detection and "Salesforce/blip-image-captioning-base" for text generation.

Getting Started

Follow these steps to set up and run the Streamlit app on your local machine.

Prerequisites

  • Python (>=3.9)
  • pip (Python package manager)

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/timooo-thy/image-detection.git
    cd image-detection
    
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate # On Windows: venv\Scripts\activate
    
  3. Install the required packages:

    pip install -r requirements.txt
    

Setup Environment Variables

  1. Create a .env file in the root directory of the project.

  2. Add your huggingface token information to the .env file in the following format: HUGGINGFACEHUB_API_TOKEN = your_api_key_here

  3. Make sure to include .env in your .gitignore file to keep your sensitive information secure.

Running the App

  1. Open a terminal and navigate to the project directory.

  2. Activate the virtual environment if you created one:

    source venv/bin/activate # On Windows: venv\Scripts\activate
    
  3. Run the Streamlit app:

    streamlit run app.py
    
  4. The app should open in your default web browser.

Deploying to Production

For deploying the app to a production environment, consider deploying from Streamlit. Be sure to adjust configurations and follow deployment instructions for your chosen platform.

Author

©Timothy Lee

image-detection's People

Contributors

timooo-thy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.