TwiceAsNice  2019-02-18
Functions | Variables
grabber_demo.cpp File Reference
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <math.h>
#include "pwc-wrapper.h"
#include "cv-buttons.h"
Include dependency graph for grabber_demo.cpp:

Functions

void on_framerate (int pos)
 Framerate slider callback
More...
 
void on_automatic_gain_control (int pos)
 AGC slider callback. More...
 
void on_shutter_speed (int pos)
 Shutter Speed slider callback
More...
 
void on_whitebalance (int pos)
 Whitebalance slider callback
More...
 
void on_snapshot (int toggle)
 Snapshot button callback. More...
 
void on_video (int toggle)
 Toggle video on/off button callback. More...
 
void on_exit (int toggle)
 Exit button callback. More...
 
int main (int argc, char **argv)
 Main function. More...
 

Variables

CvCapture * capture = 0
 This program illustrates how Philips webcam features can be used along with OpenCV and the pwc driver. More...
 
PwcWrapperpwc = 0
 
IplImage * frame = 0
 
IplImage * output = 0
 
CvVideoWriter * writer = 0
 
CvButtonsbuttons = 0
 
int record_video = 0
 
int exit_program = 0
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Main function.

◆ on_automatic_gain_control()

void on_automatic_gain_control ( int  pos)

AGC slider callback.

◆ on_exit()

void on_exit ( int  toggle)

Exit button callback.

◆ on_framerate()

void on_framerate ( int  pos)

Framerate slider callback

◆ on_shutter_speed()

void on_shutter_speed ( int  pos)

Shutter Speed slider callback

◆ on_snapshot()

void on_snapshot ( int  toggle)

Snapshot button callback.

◆ on_video()

void on_video ( int  toggle)

Toggle video on/off button callback.

◆ on_whitebalance()

void on_whitebalance ( int  pos)

Whitebalance slider callback

Variable Documentation

◆ buttons

CvButtons* buttons = 0

◆ capture

CvCapture* capture = 0

This program illustrates how Philips webcam features can be used along with OpenCV and the pwc driver.

It shows how to set framerate, shutter speed and more. Moreover, with ffmpeg being installed videos can be saved to disc. Snapshots can be taken, too.

Andreas Geiger, Karlsruhe Institute of Technology, 16.7.2007.

◆ exit_program

int exit_program = 0

◆ frame

IplImage* frame = 0

◆ output

IplImage* output = 0

◆ pwc

PwcWrapper* pwc = 0

◆ record_video

int record_video = 0

◆ writer

CvVideoWriter* writer = 0