tigranbs / face-detection-tests

Python Face Detection experiment for given YouTube videos

Home Page:https://www.youtube.com/watch?v=J5Yr5vwGM0k

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ABOUT

This project is a test implementation of extracting unique faces detected on YouTube videos with a given URL. I have not implemented CLI tools or video ID extraction. It is a plain coded URL that you must change or extend functionality to deliver new video URLs or process batch videos.

The core of this project is built on top of the face_recognition and rembg Python libraries, which are doing pretty much all of the work; I just made a composable reading from a given video file using Python OpenCV.

Running Locally

This project doesn’t have external service dependencies, and everything is inside an [experiment.py](http://experiment.py) file, where it will handle the video download using the pytube library and write extracted frames inside the same directory.

pip install -r requirements.txt

python experiment.py

What’s Next Here?

This project doesn’t have that much in it, because it was very small functionality that I am building for one of my products within [treescale.com](http://treescale.com) as a Face detection API Endpoint.

About

Python Face Detection experiment for given YouTube videos

https://www.youtube.com/watch?v=J5Yr5vwGM0k

License:MIT License


Languages

Language:Python 100.0%