TwiceAsNice
2019-02-18
|
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <math.h>
#include "pwc-wrapper.h"
#include "cv-buttons.h"
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... | |
PwcWrapper * | pwc = 0 |
IplImage * | frame = 0 |
IplImage * | output = 0 |
CvVideoWriter * | writer = 0 |
CvButtons * | buttons = 0 |
int | record_video = 0 |
int | exit_program = 0 |
int main | ( | int | argc, |
char ** | argv | ||
) |
Main function.
void on_automatic_gain_control | ( | int | pos | ) |
AGC slider callback.
void on_exit | ( | int | toggle | ) |
Exit button callback.
void on_framerate | ( | int | pos | ) |
Framerate slider callback
void on_shutter_speed | ( | int | pos | ) |
Shutter Speed slider callback
void on_snapshot | ( | int | toggle | ) |
Snapshot button callback.
void on_video | ( | int | toggle | ) |
Toggle video on/off button callback.
void on_whitebalance | ( | int | pos | ) |
Whitebalance slider callback
CvButtons* buttons = 0 |
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.
int exit_program = 0 |
IplImage* frame = 0 |
IplImage* output = 0 |
PwcWrapper* pwc = 0 |
int record_video = 0 |
CvVideoWriter* writer = 0 |