{"id":19023962,"url":"https://github.com/harleyszhang/opencv_samples","last_synced_at":"2025-04-23T11:58:37.708Z","repository":{"id":109702579,"uuid":"148968945","full_name":"harleyszhang/opencv_samples","owner":"harleyszhang","description":"一些采用opencv3图像处理库做的一些项目，有检测人脸位置、人脸特效、头顶加LOGO等","archived":false,"fork":false,"pushed_at":"2022-10-31T12:03:57.000Z","size":31326,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T11:58:27.754Z","etag":null,"topics":["face-detection","opencv","opencv3-python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/harleyszhang.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":"2018-09-16T06:14:34.000Z","updated_at":"2025-03-28T02:25:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9754039-e259-4661-b251-14235c71f988","html_url":"https://github.com/harleyszhang/opencv_samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleyszhang%2Fopencv_samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleyszhang%2Fopencv_samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleyszhang%2Fopencv_samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleyszhang%2Fopencv_samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harleyszhang","download_url":"https://codeload.github.com/harleyszhang/opencv_samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430589,"owners_count":21429323,"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","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":["face-detection","opencv","opencv3-python"],"created_at":"2024-11-08T20:34:11.282Z","updated_at":"2025-04-23T11:58:37.684Z","avatar_url":"https://github.com/harleyszhang.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OpenCV 的一些有趣应用\n\n一些采用 `opencv3` 图像处理库做的一些玩具项目，有检测人脸应用和基本的图像处理操作等。\n\n## 环境说明\n\n- `Windows10`、`Ubuntu16.0+`、`Mac OS`\n- `Python3.5+`\n- `OpenCV3.1+`\n- `VSCode、PyCharm`\n\n\n`Steps`: 例如在 `windows` 的 `cmd` 窗口下跳转到程序仓库目录运行 `python face_detect.0.py`，或者用 `VSCode` 代码编辑打开源代码按 `f5` 运行即可。\n\n### 人脸应用\n\n代码及算法思路博客文章讲解在[这里](从零开始实现人脸检测+抖音特效+1024特效功能)。\n\n1，[人脸检测](face_detect_demo/face_detect.py)。程序运行后输出效果图:\n\n![opencv实现人脸检测效果](./face_detect_demo/images/face_detect.png)\n\n2，[人脸抖音晃眼睛特效](face_detect_demo/douyin_effect.py)\n\n![对比图](./face_detect_demo/images/douyin_effect.png)\n\n3，[头顶加LOGO标志](face_detect_demo/add_logo.py)\n\n![给程序员加上1024节日庆祝标志](./face_detect_demo/images/add_logo2.png)\n![给程序员加上1024节日庆祝标志](./face_detect_demo/images/add_logo.png)\n\n4，[头顶加帽子](face_detect_demo/add_hat.py)\n\n![给人的头顶加上帽子](./face_detect_demo/images/add_hat.png)\n\n5，[视频流中实现人脸检测+抖音特效+1024特效功能](face_detect_demo/opencv_face_demo.py)\n\n![效果图](./face_detect_demo/images/output.png)\n\n## Reference\n1. [LearnOpenCV](https://learnopencv.com/read-display-and-write-an-image-using-opencv/)\n1. https://github.com/CharlesPikachu/pydrawing\n2. https://google.github.io/mediapipe/solutions/face_detection.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharleyszhang%2Fopencv_samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharleyszhang%2Fopencv_samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharleyszhang%2Fopencv_samples/lists"}