Skip to content

A very simple camera interface (frame grabber) for Torch7.

Notifications You must be signed in to change notification settings

vgokhale/lua---camera

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPENDENCIES:
MacOS: Install OpenCV 2.X: http://opencv.willowgarage.com/
Linux: None

All: Torch7 (follow instructions here: www.torch.ch)

INSTALL:
$ torch-pkg install camera

STATE:
MacOS: working on all MacOS builds, using OpenCV (wrapper from Jordan Bates)
Linux: working all right, using raw video4linux2 (wrapper from Clement Farabet)

USE:
$ torch
> require 'camera'
> camera.testme()   -- a simple grabber+display
> cam = image.Camera()  -- create the camera grabber
> frame = cam:forward()  -- return the next frame available
> cam:stop() -- release the camera
> image.display(frame)  -- display frame

About

A very simple camera interface (frame grabber) for Torch7.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 43.2%
  • Objective-C 33.0%
  • Lua 23.5%
  • C++ 0.3%