Giter VIP home page Giter VIP logo

ruby-cursor-game's People

Contributors

rglassett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ruby-cursor-game's Issues

Thanks for this! - maybe you could help me with a variation on your code

I want to manipulate a v4l camera via uvcdynctrl (I can't use guvcview because I need to use the app with cheese or zoom etc).

So I want to select from the list of the camera controls with the UP and DOWN cursors, and then increase or decrease the value of the control with the LEFT and RIGHT cursors which would run the app with the new value.

The controls are:

uvcdynctrl -s "Brightness" 128
#    Values  : [ 0 .. 255, step size: 1 ],
#    Default : 128

uvcdynctrl -s "Contrast" 128
#    Values  : [ 0 .. 255, step size: 1 ],
#    Default : 128

uvcdynctrl -s "Saturation" 128
#    Values  : [ 0 .. 255, step size: 1 ],
#    Default : 128

uvcdynctrl -s "White Balance Temperature, Auto" 1
#    Values  : [ 0 .. 1, step size: 1 ],
#    Default : 1

uvcdynctrl -s "Gain" 128
#    Values  : [ 0 .. 255, step size: 1 ],
#    Default : 0

uvcdynctrl -s "Power Line Frequency" 2
#    Values  : { 'Disabled'[0], '50 Hz'[1], '60 Hz'[2] },
#    Default : 2

# uvcdynctrl -s "White Balance Temperature" 4000
#    Values  : [ 2000 .. 6500, step size: 1 ],
#    Default : 4000

uvcdynctrl -s "Sharpness" 128
#    Values  : [ 0 .. 255, step size: 1 ],
#    Default : 128

uvcdynctrl -s "Backlight Compensation" 0
#    Values  : [ 0 .. 1, step size: 1 ],
#    Default : 0

uvcdynctrl -s "Exposure, Auto" 3
#    Values  : { 'Manual Mode'[1], 'Aperture Priority Mode'[3] },
#    Default : 3

uvcdynctrl -s "Exposure (Absolute)" 250
#    Values  : [ 3 .. 2047, step size: 1 ],
#    Default : 250

uvcdynctrl -s "Exposure, Auto Priority" 0
#    Values  : [ 0 .. 1, step size: 1 ],
#    Default : 0

uvcdynctrl -s "Zoom, Absolute" 500
#    Values  : [ 100 .. 500, step size: 1 ],
#    Default : 100

uvcdynctrl -s "Pan (Absolute)" 0
#    Values  : [ -36000 .. 36000, step size: 3600 ],
#    Default : 0

uvcdynctrl -s "Tilt (Absolute)" 0
#    Values  : [ -36000 .. 36000, step size: 3600 ],
#    Default : 0

uvcdynctrl -s "Focus (absolute)" 0
#    Values  : [ 0 .. 250, step size: 5 ],
#    Default : 0

uvcdynctrl -s "Focus, Auto" 1
#    Values  : [ 0 .. 1, step size: 1 ],
#    Default : 1

Negative values need "--" and space before the "-"

What do you think? I can see that some of the existing code could be re-used but I am not sure how to do the rest . .

Any help would be much appreciated! (and it would help learn a bit more Ruby).

Thanks,
Phil.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.