Skip to main content

A Python application to generate header images using mask and input images

Project description


license: mit title: pic-to-header sdk: streamlit emoji: 🐨 colorFrom: blue colorTo: purple pinned: false app_file: pic_to_header/app.py

Pic-to-Header

Pic-to-Header Result

GitHub license GitHub stars GitHub issues GitHub release GitHub tag PyPI version

Python Streamlit OpenCV

Pic-to-Headerは、マスク画像と入力画像を使用してヘッダー画像を生成するPythonアプリケーションです。 バージョン 0.1.0 がリリースされました。

🚀 プロジェクト概要

Pic-to-Headerは、マスク画像と入力画像を使用して簡単にヘッダー画像を生成し、ダウンロードできるStreamlitアプリケーションです。PyPIにも公開されています。

✨ 主な機能

  • マスク画像と入力画像のアップロード
  • ヘッダー画像の生成
  • 生成されたヘッダー画像のプレビューとダウンロード
  • コマンドラインインターフェース (CLI) を使用した画像処理

方法1: PyPIからのインストール

Pic-to-Headerは、PyPIで利用可能です。以下のコマンドでインストールできます:

pip install pic-to-header

方法2: ソースからのインストール

  1. リポジトリをクローンします:

  2. インストール:

    pip install -r requirements.txt
    
  3. Streamlit アプリケーションの起動:

    streamlit run pic_to_header/app.py
    
  4. ブラウザで表示されるURLにアクセスし、入力画像とマスク画像をアップロードして、「ヘッダー画像を生成」ボタンをクリックしてください。

  5. パッケージをインストールします:

pip install -e .
  1. リポジトリをクローンします:
    git clone https://github.com/Sunwood-ai-labs/pic-to-header.git
    cd pic-to-header
    
  2. 必要な依存関係をインストールします:
    pip install -r requirements.txt
    

Streamlitウェブアプリケーション

  1. Streamlitアプリケーションを起動します:
  • リポジトリ名が HarmonAI III から Pic-to-Header に変更されました。
  • READMEにリリース、タグ、PyPIバージョンのバッジを追加しました。
  • PyPIへのパッケージ公開を自動化しました。
  • Streamlitアプリケーションの機能強化とデザイン改善を行いました。
  • 入力サンプル画像、生成サンプル画像、マスク画像を追加しました。
  1. ブラウザで表示されるURLにアクセスします。

  2. 入力画像とマスク画像をアップロードします。

  3. "ヘッダー画像を生成"ボタンをクリックします。

  4. 生成されたヘッダー画像をプレビューし、必要に応じてダウンロードします。

コマンドラインインターフェース (CLI)

CLIを使用して画像を処理することもできます:

pic-to-header input_image.png mask_image.png output_image.png

例:

pic-to-header assets/sample.png assets/mask.png output_image.png

💻 開発

  • pic_to_header/core.py: 画像処理の主要な機能を含みます。
  • pic_to_header/app.py: Streamlitを使用したWebインターフェースを提供します。
  • pic_to_header/cli.py: コマンドラインインターフェースを提供します。

📄 ライセンス

このプロジェクトはMITライセンスの下で公開されています。詳細については、LICENSEファイルを参照してください。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pic_to_header-0.1.1.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

pic_to_header-0.1.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page