{"id":28898564,"url":"https://github.com/junya737/face_mosaic_app","last_synced_at":"2026-02-01T22:01:31.153Z","repository":{"id":299087921,"uuid":"1002013947","full_name":"junya737/face_mosaic_app","owner":"junya737","description":"アップロードした写真に人の顔があればモザイクをかけるwebアプリ","archived":false,"fork":false,"pushed_at":"2025-06-14T16:19:32.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-14T16:28:36.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/junya737.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,"zenodo":null}},"created_at":"2025-06-14T14:28:24.000Z","updated_at":"2025-06-14T16:25:14.000Z","dependencies_parsed_at":"2025-06-14T16:28:39.730Z","dependency_job_id":"eb78b1ec-7243-4c86-b08f-30fc8a569b70","html_url":"https://github.com/junya737/face_mosaic_app","commit_stats":null,"previous_names":["junya737/mosic_ai_codex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/junya737/face_mosaic_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junya737%2Fface_mosaic_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junya737%2Fface_mosaic_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junya737%2Fface_mosaic_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junya737%2Fface_mosaic_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junya737","download_url":"https://codeload.github.com/junya737/face_mosaic_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junya737%2Fface_mosaic_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28992633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T20:57:35.821Z","status":"ssl_error","status_checked_at":"2026-02-01T20:57:29.580Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-06-21T07:31:01.838Z","updated_at":"2026-02-01T22:01:31.148Z","avatar_url":"https://github.com/junya737.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# face_mosaic_app\n\nアップロードした写真に人の顔があればモザイクをかける Web アプリです。\n\n## 使い方\n\n1. 依存ライブラリをインストールします。\n   ```bash\n   pip install -r requirements.txt\n   ```\n   `uv` を利用する場合は次のように仮想環境を作成してインストールできます。\n   ```bash\n   uv venv .venv\n   source .venv/bin/activate\n   uv pip install -r requirements.txt\n   ```\n2. アプリを起動します。\n   ```bash\n   python app.py\n   ```\n   ポート `5000` が使用中の場合は環境変数 `PORT` で別のポート番号を指定できます。\n   例: `PORT=8000 python app.py`\n3. ブラウザで `http://localhost:5000` (別ポートを指定した場合はその番号) を開き、画像をアップロードすると、顔部分にモザイクがかかった画像が表示されます。\n\n## ファイル構成\n- `app.py` : Flask アプリ本体\n- `templates/index.html` : アップロードフォーム\n- `requirements.txt` : 必要な Python パッケージ\n\n## Terraform でのデプロイ例\nAWS 上に EC2 インスタンスを作成してアプリを公開するシンプルなサンプルを `terraform`\nディレクトリに用意しています。以下のように実行します。\n\n```bash\ncd terraform\nterraform init\nterraform apply\n```\n\n`ami_id` や `key_name` などの変数は `-var` オプションや `terraform.tfvars`\nファイルで指定してください。適用後、出力される `instance_public_ip` にブラウザ\nからアクセスすることでアプリを確認できます。\n\n### AWS での利用手順\n1. AWS アカウントを作成し、[IAM ユーザー](https://docs.aws.amazon.com/ja_jp/IAM/latest/UserGuide/id_users_create.html) を用意します。アクセスキーを取得したら `aws configure` でクレデンシャルを設定します。\n2. EC2 用のキーペアを [マネジメントコンソール](https://console.aws.amazon.com/ec2/) から作成し、`terraform.tfvars` に `key_name` を設定します。キーファイル (`.pem`) は SSH 接続で必要になるので安全に保管してください。\n3. デプロイするリージョンや AMI ID を `terraform.tfvars` で指定します。Ubuntu の AMI は [AWS マーケットプレイス](https://aws.amazon.com/marketplace) などで検索できます。\n4. GitHub からアプリを取得するため `repo_url` 変数を設定します。自身のフォークを利用する場合は `https://github.com/\u003cユーザー名\u003e/face_mosaic_app` の形式で指定してください。\n5. 変数を用意したら次を実行します。\n   ```bash\n   cd terraform\n   terraform init\n   terraform apply\n   ```\n6. 数分待つと EC2 インスタンスが起動し、`instance_public_ip` が表示されます。ブラウザで `http://\u003c表示されたIP\u003e:\u003cport\u003e` を開くとアプリにアクセスできます。\n7. 必要に応じて次のコマンドで SSH 接続も行えます。\n   ```bash\n   ssh -i \u003c作成したpemファイル\u003e ubuntu@\u003cinstance_public_ip\u003e\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunya737%2Fface_mosaic_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunya737%2Fface_mosaic_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunya737%2Fface_mosaic_app/lists"}