Differences
This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
controlling_the_camera [2015/11/17 02:56] herrsteiner created |
controlling_the_camera [2015/11/17 03:15] herrsteiner |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Operating the RaspiCam | ||
- | |||
To operate the camera a OSC command has to be sent setup like | To operate the camera a OSC command has to be sent setup like | ||
- | /camera command number | + | **/ |
number is usually an integer but sometimes a float number, as explained together with the commands below. For instance to switch the camera on, you have to send | number is usually an integer but sometimes a float number, as explained together with the commands below. For instance to switch the camera on, you have to send | ||
- | /camera switch 1 | + | **/ |
The possible commands are: | The possible commands are: | ||
- | switch 0/1 | + | **switch |
1 activates the camera, 0 switches it off | 1 activates the camera, 0 switches it off | ||
- | alpha int | + | **alpha //int//** |
sets the opacity of the camerapicture. The number is a integer between 0 and 255 for full opacity. | sets the opacity of the camerapicture. The number is a integer between 0 and 255 for full opacity. | ||
- | effect int | + | **effect |
set the build in picture effects which got rendered by the build in DSP in the camera and don't tax the CPU. Most of them are cheesy but some could be a departure point of image processing. X is a integer between 0 and 21. Following effects are possible: | set the build in picture effects which got rendered by the build in DSP in the camera and don't tax the CPU. Most of them are cheesy but some could be a departure point of image processing. X is a integer between 0 and 21. Following effects are possible: | ||
- | ' | + | //' |
- | saturation int | + | **saturation |
controls the saturation of the image, the number is an integer between -100 and 100. | controls the saturation of the image, the number is an integer between -100 and 100. | ||
- | Sharpness | + | **sharpness //int//** |
the sharpness, the number is an integer between -100 and 100. | the sharpness, the number is an integer between -100 and 100. | ||
- | shutter int | + | **shutter |
sets the shutter speed, that can help with low lighting. The number is an integer between -100 and 100. | sets the shutter speed, that can help with low lighting. The number is an integer between -100 and 100. | ||
- | x int | + | **x //int//** |
positions the image horizontally, | positions the image horizontally, | ||
- | y int | + | **y //int//** |
positions the image vertically. Int is in Pixel and usually the range of the actual vertical screenresolution is to be used. | positions the image vertically. Int is in Pixel and usually the range of the actual vertical screenresolution is to be used. | ||
- | width int | + | **width //int//** |
sets the width of the camera picture. Aspect ratio is not kept so it can be used for horizontal distortions | sets the width of the camera picture. Aspect ratio is not kept so it can be used for horizontal distortions | ||
- | height int | + | **height |
set the height of the camera picture. Aspect ratio is not kept so it can be used for vertical distortions | set the height of the camera picture. Aspect ratio is not kept so it can be used for vertical distortions | ||
Line 46: | Line 44: | ||
0 sets fullscreen off, 1 fullscreen on, means the picture fills the whole screen | 0 sets fullscreen off, 1 fullscreen on, means the picture fills the whole screen | ||
- | framerate int | + | **framerate |
set the framerate of the camera | set the framerate of the camera | ||
- | hflip 0/1 | + | **hflip //0/1//** |
when 1 it mirrors the picture horizontal | when 1 it mirrors the picture horizontal | ||
- | vflip 0/1 | + | **vflip //0/1//** |
when 1 it mirros the picture vertical | when 1 it mirros the picture vertical | ||
- | zoomx float | + | **zoomx //float//** |
- | zoomy float | + | **zoomy //float//** |
- | zoomw float | + | **zoomw //float//** |
- | zoomh float | + | **zoomh //float//** |