[IPython-dev] Camera widget

Brian Granger ellisonbg at gmail.com
Tue Feb 25 13:59:40 EST 2014


:)

On Tue, Feb 25, 2014 at 10:30 AM, 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



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com



More information about the IPython-dev mailing list