{"id":21157889,"url":"https://github.com/yhotta240/face_features","last_synced_at":"2026-04-19T05:32:46.416Z","repository":{"id":241063065,"uuid":"804204162","full_name":"yhotta240/face_features","owner":"yhotta240","description":"このリポジトリは、顔検出および特徴量抽出のための様々な Python スクリプトを含んでいます。各スクリプトは異なるアルゴリズムや手法を使用しており、簡単に実行できるようになっています。","archived":false,"fork":false,"pushed_at":"2024-05-22T19:53:19.000Z","size":71119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T15:27:54.013Z","etag":null,"topics":["canny-edge-detection","colab","colab-notebook","colaboratory","dlib","dlib-face","face-detection","face-landmark-detection","grayscale","haar-like-features","hog-features","opencv","python"],"latest_commit_sha":null,"homepage":"https://colab.research.google.com/github/yhotta240/face_features/blob/main/face_features.ipynb","language":"Python","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/yhotta240.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}},"created_at":"2024-05-22T06:40:15.000Z","updated_at":"2024-05-22T19:53:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"848e65d3-2e33-490b-870a-5ca476a674a0","html_url":"https://github.com/yhotta240/face_features","commit_stats":null,"previous_names":["yhotta240/face_features"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yhotta240/face_features","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fface_features","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fface_features/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fface_features/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fface_features/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhotta240","download_url":"https://codeload.github.com/yhotta240/face_features/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fface_features/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281600620,"owners_count":26528905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["canny-edge-detection","colab","colab-notebook","colaboratory","dlib","dlib-face","face-detection","face-landmark-detection","grayscale","haar-like-features","hog-features","opencv","python"],"created_at":"2024-11-20T12:11:55.278Z","updated_at":"2025-10-29T09:50:37.180Z","avatar_url":"https://github.com/yhotta240.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 顔検出＆特徴量抽出 Python プログラム\n\nこのリポジトリは、顔検出および特徴量抽出のための様々な Python スクリプトを含んでいます。各スクリプトは異なるアルゴリズムや手法を使用しており、簡単に実行できるようになっています。\n\n### Google Colab での実行\nこのリポジトリのコードを Google Colab 上で実行することも可能です。\n| Colab name | Colab Page |\n| --- | --- |\nface_features.ipynb | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/yhotta240/face_features/blob/main/face_features.ipynb)  \n\n\n## リポジトリのクローン\n\nまず、リポジトリをクローンします：\n\n```bash\ngit clone https://github.com/yhotta240/face_features.git\ncd face_features\n```\n\n## セットアップ\n\n### 依存関係のインストール\n\n必要なパッケージをインストールするために、以下のコマンドを実行してください：\n\n```bash\npip install -r requirements.txt\n\n```\n\n## 画像のアップロード\nimagesフォルダに画像をアップロードします。\n\n## 設定の変更\n\n`initialize.py` には、ユーザーが変更できる設定が含まれています。以下の設定を必要に応じて変更してください：\n\n```python\n# initialize.py\n\n# 入力画像のパス\nimage_path = \"images/sample.png\"\n\n# 画像のリサイズ設定\nisResize = True\nwidth_size = 256\nhight_size = 256\n\n# プロット設定\nisPlot = True\nplt_axis = \"off\"\n\n# 出力画像の保存設定\nisOutputImage = True\n\n```\n## 実行方法\n\n以下のコマンドを実行して run.py を開始します：\n\n```python\npython run.py\n\n```\n\nリポジトリには以下のスクリプトが含まれています。run.py を実行して、実行するスクリプトを選択できます。\n1. `face_canny_edge.py` - Canny エッジ検出 \u003cbr\u003e\n2. `face_corner.py` - Harris コーナー検出 \u003cbr\u003e\n3. `face_detection.py` - 顔検出 \u003cbr\u003e\n4. `face_dlib.py` - dlib を使用した顔検出 \u003cbr\u003e\n5. `face_dlib_features_csv.py` - dlib を使用した顔特徴点抽出と CSV 出力 \u003cbr\u003e\n6. `face_goodFeaturesToTrack.py` - Shi-Tomasi 角点検出 \u003cbr\u003e\n7. `face_haar-like.py` - Haar-like 特徴量を使用した顔検出 \u003cbr\u003e\n8. `face_hog_descriptor.py` - HOG 特徴量抽出 \u003cbr\u003e\n9. `face_landmark_detection.py` - 顔ランドマーク検出 \u003cbr\u003e\n10. `grayscale.py` - グレースケール変換 \u003cbr\u003e\n11. `hog_descriptor.py` - HOG 特徴量抽出 \u003cbr\u003e\n\n実行後、番号を入力して対応するスクリプトを選択します。\n\n例：\n\n```bash\n1. face_canny_edge.py\n2. face_corner.py\n3. face_detection.py\n...\n選択してください: 1\n```\n選択したスクリプトが実行されます。\n\n## 実行処理後の画像保存\n実行処理後の画像は、output フォルダが存在しない場合、自動で作成され、その中に今日の日付のフォルダが生成されます。その日付フォルダの中に実行後の画像が保存されます。\n\n## プロジェクト構成\n```\nface_features/\n│\n├── images/\n│   └── sample.png         # サンプル画像（変更可）\n│\n├── models/\n│   └── shape_predictor_68_face_landmarks.dat # 顔ランドマーク検出用モデル\n│\n├── scripts/\n│   ├── face_canny_edge.py     # Canny エッジ検出スクリプト\n│   ├── face_corner.py         # Harris コーナー検出スクリプト\n│   ├── face_detection.py      # 顔検出スクリプト\n│   ├── face_dlib.py           # dlib を使用した顔検出スクリプト\n│   ├── face_dlib_features_csv.py # dlib を使用した顔特徴点抽出と CSV 出力スクリプト\n│   ├── face_goodFeaturesToTrack.py # Shi-Tomasi 角点検出スクリプト\n│   ├── face_haar-like.py      # Haar-like 特徴量を使用した顔検出スクリプト\n│   ├── face_hog_descriptor.py # HOG 特徴量抽出スクリプト\n│   ├── face_landmark_detection.py # 顔ランドマーク検出スクリプト\n│   ├── grayscale.py           # グレースケール変換スクリプト\n│   └── hog_descriptor.py      # HOG 特徴量抽出スクリプト\n│\n├── face_features.ipynb    # Colab を使用して作成された Jupyter ノートブック\n│\n├── initialize.py          # 設定ファイル　\n│\n├── requirements.txt       # 依存関係ファイル\n│\n└── run.py                 # スクリプト選択および実行ファイル\n\n```\nこの README は、リポジトリの概要、セットアップ方法、設定の変更方法、スクリプトの実行方法、およびプロジェクト構成について説明しています。必要に応じて内容を追加や修正してください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhotta240%2Fface_features","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhotta240%2Fface_features","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhotta240%2Fface_features/lists"}