Skip to content

Commit a849ee5

Browse files
committed
feat(ai): add AI-powered automatic face detection and blur
- Add MediaPipe and OpenCV dependencies for face detection capabilities - Implement auto_blur_faces() function with frame-by-frame face detection - Update README with Auto Blur Faces (AI) feature in capabilities table - Add face blur to features comparison matrix with MediaPipe AI details - Enhance project metadata with multimedia suite description - Expand badge section with downloads, stars, forks, issues, and platform info - Add FFmpeg and OpenAI Whisper technology badges to README - Streamline pyproject.toml keywords and classifiers for clarity - Update project dependencies to include opencv-python and mediapipe - Simplify project URLs in pyproject.toml configuration - Update requirements.txt with new AI/vision dependencies
1 parent 6ca695d commit a849ee5

File tree

5 files changed

+379
-47
lines changed

5 files changed

+379
-47
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@
44
<a href="https://pypi.org/project/peg-this/">
55
<img src="https://img.shields.io/pypi/v/peg_this?color=blue&label=version" alt="PyPI Version">
66
</a>
7-
<a href="https://pypi.org/project/peg-this/">
8-
<img src="https://img.shields.io/pypi/pyversions/peg_this.svg" alt="PyPI Python Versions">
7+
<a href="https://pepy.tech/project/peg-this">
8+
<img src="https://static.pepy.tech/badge/peg-this" alt="Downloads">
9+
</a>
10+
<a href="https://github.com/hariharen9/ffmpeg-this/stargazers">
11+
<img src="https://img.shields.io/github/stars/hariharen9/ffmpeg-this?color=yellow" alt="GitHub Stars">
12+
</a>
13+
<a href="https://github.com/hariharen9/ffmpeg-this/network/members">
14+
<img src="https://img.shields.io/github/forks/hariharen9/ffmpeg-this?color=lightgrey" alt="GitHub Forks">
15+
</a>
16+
<a href="https://github.com/hariharen9/ffmpeg-this/issues">
17+
<img src="https://img.shields.io/github/issues/hariharen9/ffmpeg-this?color=red" alt="GitHub Issues">
918
</a>
1019
<a href="https://github.com/hariharen9/ffmpeg-this/blob/main/LICENSE">
1120
<img src="https://img.shields.io/github/license/hariharen9/ffmpeg-this" alt="License">
1221
</a>
13-
<a href="https://pepy.tech/project/peg-this">
14-
<img src="https://static.pepy.tech/badge/peg-this" alt="Downloads">
22+
<br>
23+
<a href="https://github.com/hariharen9/ffmpeg-this">
24+
<img src="https://img.shields.io/badge/platform-win%20%7C%20macos%20%7C%20linux-blueviolet" alt="Supported Platforms">
25+
</a>
26+
<a href="https://ffmpeg.org/">
27+
<img src="https://img.shields.io/badge/FFmpeg-Powered-007808?logo=ffmpeg&logoColor=white" alt="FFmpeg">
28+
</a>
29+
<a href="https://github.com/openai/whisper">
30+
<img src="https://img.shields.io/badge/AI-Whisper-743ec7?logo=openai&logoColor=white" alt="OpenAI Whisper">
1531
</a>
1632
</p>
1733

@@ -56,6 +72,7 @@ A powerful and user-friendly Python CLI tool for converting, manipulating, and i
5672
| | Color Correction | Brightness, contrast, saturation with presets |
5773
| | Denoise Video | Reduce grain/noise (hqdn3d fast / nlmeans quality) |
5874
| | Blur/Pixelate Region | Visual selection to blur or pixelate areas |
75+
| | Auto Blur Faces (AI) | AI-powered automatic face detection and blur |
5976
| | Add Watermark | Overlay image or text with custom positioning |
6077
| | Picture-in-Picture | Overlay smaller video on main video |
6178
| | Video Stabilization | Reduce camera shake (Light/Medium/Heavy) |
@@ -90,6 +107,7 @@ A powerful and user-friendly Python CLI tool for converting, manipulating, and i
90107
| **Color Correction** | Any video | Same format | eq filter | Yes |
91108
| **Denoise** | Any video | Same format | hqdn3d/nlmeans filter | Yes |
92109
| **Blur/Pixelate** | Any video | Same format | Visual selection + boxblur/scale | Yes |
110+
| **Auto Blur Faces** | Any video | Same format | MediaPipe AI + frame-by-frame | Yes |
93111
| **Picture-in-Picture** | Two videos | Same format | overlay filter | Yes |
94112
| **Stabilize** | Any video | Same format | vidstab (two-pass) | Yes |
95113
| **Add Watermark** | Any video | Same format | Overlay filter | Yes |

pyproject.toml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,60 +8,32 @@ version = "4.2.0"
88
authors = [
99
{ name="Hariharen S S", email="thisishariharen@gmail.com" },
1010
]
11-
maintainers = [
12-
{ name="Hariharen S S", email="thisishariharen@gmail.com" },
13-
]
14-
description = "A powerful and intuitive command-line video editor, built on FFmpeg."
11+
description = "A powerful and intuitive command-line multimedia editor suite for video, audio, and image processing, built on FFmpeg."
1512
readme = "README.md"
1613
license = { text = "MIT" }
1714
requires-python = ">=3.8"
1815
keywords = [
19-
"ffmpeg",
20-
"video",
21-
"audio",
22-
"media",
23-
"converter",
24-
"editor",
25-
"cli",
26-
"subtitles",
27-
"whisper",
28-
"transcription",
29-
"trim",
30-
"crop",
31-
"compress",
32-
"gif",
33-
"batch"
16+
"ffmpeg", "video", "audio", "image", "multimedia", "editor", "suite", "cli", "tui",
17+
"converter", "subtitles", "whisper", "transcription", "trim", "crop", "compress",
18+
"batch", "automation", "processing", "effects", "filters"
3419
]
3520
classifiers = [
3621
"Development Status :: 4 - Beta",
3722
"Environment :: Console",
38-
"Intended Audience :: Developers",
39-
"Intended Audience :: End Users/Desktop",
4023
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.8",
42-
"Programming Language :: Python :: 3.9",
43-
"Programming Language :: Python :: 3.10",
44-
"Programming Language :: Python :: 3.11",
45-
"Programming Language :: Python :: 3.12",
4624
"License :: OSI Approved :: MIT License",
4725
"Operating System :: OS Independent",
48-
"Operating System :: MacOS",
49-
"Operating System :: POSIX :: Linux",
50-
"Operating System :: Microsoft :: Windows",
51-
"Topic :: Multimedia",
5226
"Topic :: Multimedia :: Video",
53-
"Topic :: Multimedia :: Video :: Conversion",
54-
"Topic :: Multimedia :: Video :: Non-Linear Editor",
55-
"Topic :: Multimedia :: Sound/Audio",
56-
"Topic :: Multimedia :: Sound/Audio :: Conversion",
5727
"Topic :: Utilities"
5828
]
5929
dependencies = [
6030
"ffmpeg-python==0.2.0",
6131
"questionary>=2.0.0",
6232
"rich>=13.0.0",
6333
"Pillow>=9.0.0",
64-
"faster-whisper>=1.0.0"
34+
"faster-whisper>=1.0.0",
35+
"opencv-python>=4.8.0",
36+
"mediapipe>=0.10.0"
6537
]
6638

6739
[project.optional-dependencies]
@@ -73,12 +45,9 @@ dev = [
7345
]
7446

7547
[project.urls]
76-
"Homepage" = "https://github.com/hariharen9/ffmpeg-this"
77-
"Documentation" = "https://github.com/hariharen9/ffmpeg-this/blob/main/README.md"
7848
"Repository" = "https://github.com/hariharen9/ffmpeg-this"
7949
"Changelog" = "https://github.com/hariharen9/ffmpeg-this/releases"
80-
"Bug Tracker" = "https://github.com/hariharen9/ffmpeg-this/issues"
81-
"Funding" = "https://www.buymeacoffee.com/hariharen"
50+
"Issues" = "https://github.com/hariharen9/ffmpeg-this/issues"
8251
"Sponsor" = "https://github.com/sponsors/hariharen9"
8352

8453
[project.scripts]
@@ -92,7 +61,7 @@ peg_this = ["py.typed"]
9261

9362
[tool.black]
9463
line-length = 100
95-
target-version = ["py38", "py39", "py310", "py311", "py312"]
64+
target-version = ["py38"]
9665

9766
[tool.ruff]
9867
line-length = 100
@@ -102,5 +71,4 @@ ignore = ["E501"]
10271

10372
[tool.pytest.ini_options]
10473
testpaths = ["tests"]
105-
python_files = ["test_*.py"]
106-
addopts = "-v --tb=short"
74+
addopts = "-v --tb=short"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ pyinstaller
44
Pillow
55
ffmpeg-python
66
faster-whisper
7+
opencv-python
8+
mediapipe

0 commit comments

Comments
 (0)