Video surveillance application

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Video surveillance application

Andrzej Polatyński-2
Hello,

I'm writing a simple video surveillance application. I started with
creating simple GUI and basic gst pipeline for viewing live video
stream.

Now I want to add some video analyzing code to perform abandoned
object detection. For this I need to grab video frames. I found this
element gdkpixbufsink and thought that it can be used for my task, but
I couldn't force it to work yet. As of now, my pipeline looks like
this:

v4l2src -> ffmpegcolorspace -> tee -> xvimagesink
                                                  \-> gdkpixbufsink

Is my approach good? Does the gdkpixbufsink need a separate thread? Is
there any other way of getting video frames?

My second problem is how to draw over output video images, so that
user could see for example an red outline indicating a detected object
through xvimagesink. I see that there are some elements that can
overlay text, but I can't find any element that could overlay an
image.


--
Thanks,
Andrzej Polatyński

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video surveillance application

Stefan Sauer
Andrzej Polatyński schrieb:

> Hello,
>
> I'm writing a simple video surveillance application. I started with
> creating simple GUI and basic gst pipeline for viewing live video
> stream.
>
> Now I want to add some video analyzing code to perform abandoned
> object detection. For this I need to grab video frames. I found this
> element gdkpixbufsink and thought that it can be used for my task, but
> I couldn't force it to work yet. As of now, my pipeline looks like
> this:
>
> v4l2src -> ffmpegcolorspace -> tee -> xvimagesink
>                                                   \-> gdkpixbufsink
>
> Is my approach good? Does the gdkpixbufsink need a separate thread? Is
> there any other way of getting video frames?
>  
xvimagesink (like all basesinks) also have a last-buffer property.

What I would do is to write a videofilter based plugin that analyzes the
video frames and sends a bus-message. Look at gst-plugins-bad. there is
a videoanalyze element.

Stefan
> My second problem is how to draw over output video images, so that
> user could see for example an red outline indicating a detected object
> through xvimagesink. I see that there are some elements that can
> overlay text, but I can't find any element that could overlay an
> image.
>
>
>  


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel