Skip to main content

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ファイルを参照してください。

Release files for pic-to-header 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pic-to-header 0.1.1
File Size Uploaded
pic_to_header-0.1.1.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pic-to-header 0.1.1
File Interpreter ABI Platform
pic_to_header-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / pic_to_header-0.1.1.tar.gz

Download URL pic_to_header-0.1.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88a0f64835a11155379bf76731c1b022f1a4bfaa277f4a7577ff32ab9b3d40dd
BLAKE2b-256 checksum
How to use checksums
7a4de13788e3cebb5bddf5995033236aa694e48bf8961dfda73fe15ce620eafa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / pic_to_header-0.1.1-py3-none-any.whl

Download URL pic_to_header-0.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27cf13e296275efab401079ea035345653bc0b8610694f4c4c9de228e8fe3fc7
BLAKE2b-256 checksum
How to use checksums
19a6010d9db9851abbcce7c92945153ff93b82c79af6396b254a937ccacb826c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page