Functions | |
NUMBER | cam.init () |
We load and start the module. More... | |
NUMBER | cam.begin () |
Configures and starts the camera for making video. More... | |
BOOLEAN | cam.state () |
It allows to know the status of the cam module. More... | |
BOOLEAN | cam.available () |
It allows to know the status of the connection of the camera into the USB port. More... | |
NIL | cam.render (NUMBER x, NUMBER y) |
Displays the current image the camera sees. More... | |
NIL | cam.render (NUMBER x, NUMBER y, NUMBER w, NUMBER h) |
Muestra en pantalla la imágen actual que vé la cámara, aplicando un escalado. More... | |
NUMBER | cam.shot (STRING path) |
Take a snapshot of the current image the camera sees and stores on the route and with the specified name. More... | |
IMAGE | cam.toimage () |
Create a copy of the current image the camera sees. More... | |
NUMBER | cam.direction () |
It allows to know the direction of the camera lens. More... | |
NUMBER | cam.brightness () |
It allows to know the current brightness of the camera. More... | |
NIL | cam.brightness (NUMBER value) |
It allows setting the brightness of the camera. More... | |
NUMBER | cam.contrast () |
It allows to know the current contrast of the camera. More... | |
NIL | cam.contrast (NUMBER value) |
It allows setting the contrast of the camera. More... | |
NUMBER | cam.sharpness () |
It allows to know the current sharpness of the camera. More... | |
NIL | cam.sharpness (NUMBER value) |
It allows setting the sharpness of the camera. More... | |
NUMBER | cam.saturation () |
It allows to know the current saturation of the camera. More... | |
NIL | cam.saturation (NUMBER value) |
It allows setting the saturation of the camera. More... | |
NUMBER | cam.zoom () |
It allows to know the current zoom of the camera. More... | |
NIL | cam.zoom (NUMBER value) |
It allows setting the zoom of the camera. More... | |
NUMBER | cam.evlevel () |
It allows to know the current evlevel of the camera. More... | |
NIL | cam.evlevel (NUMBER value) |
It allows setting the evlevel of the camera. More... | |
NUMBER | cam.effect () |
It allows to know the current effect of the camera. More... | |
NIL | cam.effect (NUMBER value) |
It allows setting the effect of the camera. More... | |
NUMBER | cam.autoreverse () |
It allows to know the current autoreverse state of the camera. More... | |
NIL | cam.autoreverse (NUMBER mode) |
It allows setting the autoreverse of the camera. More... | |
NUMBER | cam.mirror () |
It allows to know the current mirror of the camera. More... | |
NIL | cam.mirror (NUMBER value) |
It allows setting the mirror of the camera. More... | |
NUMBER | cam.term () |
Unloaded and finish the module. More... | |
Management USB camera (GO! CAM).
NUMBER cam.init | ( | ) |
We load and start the module.
NUMBER cam.begin | ( | ) |
Configures and starts the camera for making video.
BOOLEAN cam.state | ( | ) |
It allows to know the status of the cam module.
BOOLEAN cam.available | ( | ) |
It allows to know the status of the connection of the camera into the USB port.
NIL cam.render | ( | NUMBER | x, |
NUMBER | y | ||
) |
Displays the current image the camera sees.
x | coordinate X where the image is displayed. |
y | coordinate Y where the image is displayed. |
NIL cam.render | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | w, | ||
NUMBER | h | ||
) |
Muestra en pantalla la imágen actual que vé la cámara, aplicando un escalado.
x | coordinate X where the image is displayed. |
y | coordinate Y where the image is displayed. |
w | The new image width (in pixels). |
h | The new image height (in pixels). |
NUMBER cam.shot | ( | STRING | path | ) |
Take a snapshot of the current image the camera sees and stores on the route and with the specified name.
path | Path and name of the snapshot (.PNG format). |
IMAGE cam.toimage | ( | ) |
Create a copy of the current image the camera sees.
NUMBER cam.direction | ( | ) |
It allows to know the direction of the camera lens.
NUMBER cam.brightness | ( | ) |
It allows to know the current brightness of the camera.
NIL cam.brightness | ( | NUMBER | value | ) |
It allows setting the brightness of the camera.
value | The new value for setting the brightness of the camera, values between 0 and 255, the common value is 128. |
NUMBER cam.contrast | ( | ) |
It allows to know the current contrast of the camera.
NIL cam.contrast | ( | NUMBER | value | ) |
It allows setting the contrast of the camera.
value | The new value for setting the contrast of the camera, values between 0 and 255, the common value is 64. |
NUMBER cam.sharpness | ( | ) |
It allows to know the current sharpness of the camera.
NIL cam.sharpness | ( | NUMBER | value | ) |
It allows setting the sharpness of the camera.
value | The new value for setting the sharpness of the camera, values between 0 and 255, the common value is 0. |
NUMBER cam.saturation | ( | ) |
It allows to know the current saturation of the camera.
NIL cam.saturation | ( | NUMBER | value | ) |
It allows setting the saturation of the camera.
value | The new value for setting the saturation of the camera, values between 0 and 255, the common value is 125. |
NUMBER cam.zoom | ( | ) |
It allows to know the current zoom of the camera.
NIL cam.zoom | ( | NUMBER | value | ) |
It allows setting the zoom of the camera.
value | The new value for setting the zoom of the camera, values between 1 and 5. |
NUMBER cam.evlevel | ( | ) |
It allows to know the current evlevel of the camera.
NIL cam.evlevel | ( | NUMBER | value | ) |
It allows setting the evlevel of the camera.
value | The new value for setting the evlevel of the camera, values between 1 and 17, the common value is 8. |
NUMBER cam.effect | ( | ) |
It allows to know the current effect of the camera.
NIL cam.effect | ( | NUMBER | value | ) |
It allows setting the effect of the camera.
value | Some of these constants(in parentheses their numeric values):
|
NUMBER cam.autoreverse | ( | ) |
It allows to know the current autoreverse state of the camera.
NIL cam.autoreverse | ( | NUMBER | mode | ) |
It allows setting the autoreverse of the camera.
mode | Any of the following values:
|
NUMBER cam.mirror | ( | ) |
It allows to know the current mirror of the camera.
NIL cam.mirror | ( | NUMBER | value | ) |
It allows setting the mirror of the camera.
value | The new value for setting the mirror of the camera, values between 1 and 0. |
NUMBER cam.term | ( | ) |
Unloaded and finish the module.