Reputation: 1977
I need to apply OpenCV filter(face recognition) to the video stream. Is there any possibility to use python for this? Or it must be C/C++?
If it is possible to use openCV-python could you please point me to an example.
Any help will be appreciated!
Upvotes: 4
Views: 443
Reputation: 561
Are you looking for a specific filter?
A simple example (it goes from the start) is here using python and opencv. It is for an image, but you can just loop it for every frame of the video, if you are not extremely concerned with performances and looking for something simple here an explanation on how to extract frames from video with python and openCV.
There are also several tutorial using neural networks (and python and OpenCV of course), like this one for example. These should have better results but they could be a bit more complicated and you may need CUDA (so a GPU) to run them..
Upvotes: 0