Thanks to visit codestin.com
Credit goes to github.com

Skip to content

example: added an opencv face detection example#1689

Merged
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:opencv-example
May 24, 2018
Merged

example: added an opencv face detection example#1689
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:opencv-example

Conversation

@beardypig

Copy link
Copy Markdown
Member

As this has come up a couple of times (#857 and #1386), I decided to make a more expanded example.

In this example a stream from streamlink is read by opencv (opencv-python module is required), and the faces in the stream a detected and highlighted in real-time. It might not work for every stream, and it doesn't support any special streamlink options (proxies, etc.) - but it's an example. Plus, it was quite fun to do and it's amusing to watch 😄

@codecov

codecov Bot commented May 24, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1689 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1689   +/-   ##
=======================================
  Coverage   33.35%   33.35%           
=======================================
  Files         230      230           
  Lines       12993    12993           
=======================================
  Hits         4334     4334           
  Misses       8659     8659

@gravyboat

Copy link
Copy Markdown
Member

Very cool, thanks @beardypig.

@gravyboat gravyboat merged commit 221946b into streamlink:master May 24, 2018
@felipegcampos

Copy link
Copy Markdown

Hey @beardypig . Firstly, thank you for the example, it's really good and self-explanatory. However, I could not get it to work with Twitch. Do you know if Twitch is one of those streams that it should not work? Thank you in advance.

@beardypig

Copy link
Copy Markdown
Member Author

@felipegcampos I’m not sure now. I think I tested it on some live TV stream. Lemme check and get back to you next week. I don’t see any particular reason why it wouldn’t work on twitch though.

@felipegcampos

Copy link
Copy Markdown

Hey @beardypig . I appreciate your time. I feel it could be some sort of cross-origin restriction. I'm just guessing though.

mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
example: added an opencv face detection example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants