[Bug 702722] opencv: add GrabCut segmentation element

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jul 16 06:46:39 PDT 2013


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

--- Comment #20 from Miguel (elmiguelao) Casas-Sanchez <miguelecasassanchez at gmail.com> 2013-07-16 13:46:34 UTC ---
(In reply to comment #19)
> Review of attachment 249271 [details]:
> 
> What do you mean with appropriate moment?
> 

Yeah right now the autogen.sh/configure specifies a gst-plugins-base version
(1.1.2.1?), if this patch lands, it'll fail to compile since it needs the last
-base commit (the region of interest meta), hence my question.

> ::: ext/opencv/gstgrabcut.cpp
> @@ +315,3 @@
> +    gc->facepos.height = meta->h * gc->scale * 1.1;
> +  } else {
> +    memset (&(gc->facepos), 0, sizeof (gc->facepos));
> 
> If there's no meta you can just return, right?

There might be an input on the alpha channel (allowing for non rectangle
roi's...), this is only known whenever the input image has been split in
channels and the pixels of channel alpha counted.

But: I indeed forgot to return right away when "No face info present, skipping
frame" :) So I'll send another patch in a jiffie :)

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