bazar  1.3.1
Functions | Variables
interactive.cpp File Reference

An interactive example of 2D planar object training and detection. This example uses HighGUI to interactively propose to the user to create a planar model. It then shows live 2D detection of this object. More...

#include <iostream>
#include "cv.h"
#include "highgui.h"
#include <garfeild.h>
#include <config.h>
#include <sys/time.h>
Include dependency graph for interactive.cpp:

Go to the source code of this file.

Functions

void acquire_model (CvCapture *capture, planar_object_recognizer &detector)
void show_result (planar_object_recognizer &recognizer, IplImage *video, IplImage **dst)
void usage (const char *s)
int main (int argc, char **argv)

Variables

char * modelFile = "model.jpg"

Detailed Description

An interactive example of 2D planar object training and detection. This example uses HighGUI to interactively propose to the user to create a planar model. It then shows live 2D detection of this object.

Definition in file interactive.cpp.

Function Documentation

void acquire_model ( CvCapture *  capture,
planar_object_recognizer detector 
)
Examples:
singlecalib.cpp.

Definition at line 186 of file interactive.cpp.

References planar_object_recognizer::build(), modelFile, and planar_object_recognizer::save().

Referenced by main().

int main ( int  argc,
char **  argv 
)
void show_result ( planar_object_recognizer recognizer,
IplImage *  video,
IplImage **  dst 
)
void usage ( const char *  s)

Definition at line 25 of file interactive.cpp.

Variable Documentation

char* modelFile = "model.jpg"