[Bug 678485] opencv templatematch element improvements

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 20 08:38:58 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=678485
  GStreamer | gst-plugins-bad | 0.10.x

--- Comment #2 from wackywim <gnome at williammanley.net> 2012-06-20 15:38:53 UTC ---
Created an attachment (id=216845)
 View: https://bugzilla.gnome.org/attachment.cgi?id=216845
 Review: https://bugzilla.gnome.org/review?bug=678485&attachment=216845

Allow changing template property on the fly

Previously changing the template property resulted in an exception
thrown from cvMatchTemplate, because "dist_image" (the intermediate
match-certainty-distribution) was the wrong size (because the
template image size had changed).

Locking has also been added to allow changing the properties (e.g. the
pattern to match) while the pipeline is playing.

 * gst_element_post_message is moved outside of the lock, because it will
   call into arbitrary user code (otherwise, if that user code calls into
   gst_templatematch_set_property on this same thread it would deadlock).

 * gst_template_match_load_template: If we fail to load the new template
   we still unload the previous template, so this element becomes a no-op
   in the pipeline. The alternative would be to keep the previous template;
   I believe unloading the previous template is a better choice, because it
   is consistent with the state this element would be in if it fails to
   load the very first template at start-up.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list