Great. Thanks to both of you. I have implemented a video viewer using visvis that works very similarly to opencv (including registering key presses). I'll submit a PR in the next couple of days to see if anyone is interested in including it in skimage.

On Friday, February 1, 2013 2:36:26 AM UTC-5, Otto wrote:
I used WX to display frames from a video within my GUIs, it works well:


http://wxpython.org/docs/api/wx.DC-class.html


2013/2/1 Almar Klein <almar...@gmail.com>
You could do it with OpenGl, although it wouldn't be straightforward. You can also do it in visvis (which uses OpenGl). Here's some untested code that would do this:

import visvis as vv
vv.clf() # Clear figure (or create a new figure)
tex = vv.imshow(first_frame)

while video_not_ended:
    tex.SetData(next_frame)
    time.sleep(1.0/framerate)
    vv.processEvents()

- Almar


On 30 January 2013 22:07, Colin Lea <coli...@gmail.com> wrote:
For a long time now I've kept OpenCV in my vision stack primarily for displaying videos. I'm trying to get rid of it as a dependence for use on a secure remote server which I don't have unfettered access to. 

So I'm wondering, how do other people display videos? I see that PyGame is another option. Does anyone use that? By displaying videos essentially I just mean showing streams of images (not necessary from a video file).

If nobody else has a solution other than to use OpenCV, would it be of interest to implement something (either using PyGame or otherwise) for skimage?


--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.