dyne / frei0r

A large collection of free and portable video plugins
https://frei0r.dyne.org/
GNU General Public License v2.0
419 stars 90 forks source link

Port facebl0r to OpenCV C++ API #97

Closed StefanBruens closed 4 years ago

StefanBruens commented 4 years ago

TrackedObj has been converted to a class, and the update_hue_image and camshift_track_face methods are now members of it, instead of passing the object as a parameter.

Also, the various cv::Mat instances are kept, instead of destroying and recreating these on various occasions.

The plugin now only accepts BGRA8888 as image format, as this is the expected layout throughout the code (default openCV channel order).

The plugin has been tested using the following gstreamer pipeline: gst-launch-1.0 v4l2src ! image/jpeg,width=640,rate=1/15 \ ! jpegdec ! videoconvert \ ! frei0r-filter-facebl0r ellipse=1 \ classifier=/usr/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml \ ! videoconvert ! autovideosink

This probably fixes #91 and #93.

ddennedy commented 4 years ago

superseded by #101