[IPython-dev] Camera widget

Fernando Perez fperez.net@gmail....
Tue Feb 25 14:05:41 CST 2014


Very cool. I know you watched Wolfram's video, great job ;)

I was actually wondering how much code it would take to do it in IPython.
Thanks for reading my mind and acting on it!!

f


On Tue, Feb 25, 2014 at 10:30 AM, Jason Grout
<jason-sage@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20140225/a5d71968/attachment.html 


More information about the IPython-dev mailing list