[Bug 702722] New: opencv: add GrabCut segmentation element

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jun 20 02:32:12 PDT 2013


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

           Summary: opencv: add GrabCut segmentation element
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: miguelecasassanchez at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=247303)
 View: https://bugzilla.gnome.org/attachment.cgi?id=247303
 Review: https://bugzilla.gnome.org/review?bug=702722&attachment=247303

1st full gstgrabcut element patch && facedetect sends downstream events

This element is a wrapper around OpenCV grabcut implementation. GrabCut is an
image segmentation method based on graph cuts technique. It can be seen as a
way of fine-grain segmenting the image from some FG and BG "seed" areas. The
OpenCV implementation follows the article [1]. 
The "seed" areas are taken in this element from either an input bounding box
coming from a face detection, or from alpha channel values. The input box is
taken from a "face" event such as the one generated from the 'facedetect' 
element. The Alpha channel values should be one of the following: 
enum{  
 GC_BGD    = 0,  //!< background
 GC_FGD    = 1,  //!< foreground
 GC_PR_BGD = 2,  //!< most probably background
 GC_PR_FGD = 3   //!< most probably foreground
};
with values over GC_PR_FGD interpreted as GC_PR_FGD. If both foreground alpha
is not specified and there is no face detection, a by-default one is taken, 
roughly corresponding to a face in the middle of the frame.

[1] C. Rother, V. Kolmogorov, and A. Blake, "GrabCut: Interactive foreground 
extraction using iterated graph cuts, ACM Trans. Graph., vol. 23, pp. 309–314,
2004.

---------------
Also a small modification in gstfacedetect to send the detected face bounding 
box also via downstream events, and not only to the message bus.

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