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
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.