Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use (from the README) #8

Open
Atcold opened this issue May 20, 2013 · 0 comments
Open

Use (from the README) #8

Atcold opened this issue May 20, 2013 · 0 comments

Comments

@Atcold
Copy link
Contributor

Atcold commented May 20, 2013

Just typing what is written in the main README file gives me the following

t7> require 'camera'
t7> camera.testme()
--------------------------------------------------
grabbing frames from your camera for about 10secs
initializing camera
camera initialized
Cleaned up camera.
stopping camera 
done: create your own frame grabber with image.Camera() 
--------------------------------------------------
t7> cam = image.Camera()
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
image.Camera

> usage:
image.Camera{
    [idx = number]                      -- camera index  [default = 0]
    [width = number]                    -- frame width  [default = 640]
    [height = number]                   -- frame height  [default = 480]
}

image.Camera{width=number, idx=number}
image.Camera(number, ...)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++:
{}
/usr/local/share/lua/5.1/xlua/init.lua:311: error
stack traceback:
        [C]: in function 'error'
        /usr/local/share/lua/5.1/xlua/init.lua:311: in function 'error'
        /usr/local/share/lua/5.1/xlua/init.lua:519: in function 'unpack'
        /usr/local/share/lua/5.1/camopencv/init.lua:17: in function '__init'
        /usr/local/share/lua/5.1/torch/init.lua:45: in function </usr/local/share/lua/5.1/torch/init.lua:41>
        [C]: in function 'Camera'
        [string "cam = image.Camera()"]:1: in main chunk
        [C]: at 0x010fb43d80

The 10 seconds test does work (even if the aspect ration is wrong), the frame grabber doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant