example: added an opencv face detection example#1689
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1689 +/- ##
=======================================
Coverage 33.35% 33.35%
=======================================
Files 230 230
Lines 12993 12993
=======================================
Hits 4334 4334
Misses 8659 8659 |
Member
|
Very cool, thanks @beardypig. |
|
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. |
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. |
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-pythonmodule 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 😄