[IPython-dev] Camera widget

Doug Blank doug.blank at gmail.com
Wed Feb 26 17:25:47 EST 2014

Jason, thank you very much for sharing this!

So, I am testing this with IPython 2.0.0-dev master, and after three
clicks, it no longer updates the imageurl field. The picture continues to
be updated in the view, both live, and when the picture is taken. But it
appears that the data is no longer being sent to the kernel.

I have a feeling that this is because the frontend is not receiving a
proper message back from the kernel (because auto throttling kicks in).
This is my guess, anyway.

Can you verify that you are also having this issue, and perhaps suggest
what could be the matter.

Thanks again!


On Tue, Feb 25, 2014 at 1:30 PM, Jason Grout <jason-sage at creativetrax.com>wrote:

> For your enjoyment, here's a basic camera widget that allows you to snap
> pictures and then process them.
> The user-level part of the code is:
> c=Camera()
> display(c)
> # snap picture
> %matplotlib inline
> from skimage import io, filter, color
> io.imshow(filter.roberts(color.rgb2gray(c.image)))
> It could easily be extended to grab video and audio as well:
> http://nbviewer.ipython.org/gist/jasongrout/9210458
> You can also see a tweaked version here:
> http://sagecell.sagemath.org/?q=htlcsf
> (you'll probably have to allow the browser to use your camera...)
> Thanks,
> Jason
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140226/78db5047/attachment.html>

More information about the IPython-dev mailing list