[IPython-dev] Camera widget

Brian Granger ellisonbg@gmail....
Tue Feb 25 12:59:40 CST 2014


:)

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



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


More information about the IPython-dev mailing list