Technische Universität München OpenTL – Tutorial 1 • Grabbing frames from a camera and show the output
Technische Universität München HighAPI Input Detector Tracker Output Visual Modalities Model Projection Models CvProcess Core Math
Technische Universität München Input – Image Sensors • Video-File • USB-Camera • Firewire Camera → in this tutorial we use Guppy firewire cameras from ALLIED vision technologies
Technische Universität München Firewire Camera • Create an instance of a camera: → input::FirewireCamera::createFirewireCamera(0) • Open the camera → camera->open(); • You can set some features of the camera → camera->enableWhiteBalanceAuto(true) → camera->enableGainAuto(true) • Start the frame-grabbing: → camera->captureStart()
Task – capture from a Firewire camera Technische Universität München • Create a camera (as explained before) • Define a cvdata::Image pointer srcImage • Create an OpenCV Window: → cvNamedWindow("image",1); • Loop: → captureNext() → getImage() → show Image with OpenCV: cvShowImage("image",srcImage->getIplImage()); • Stop the frame capturing, close the camera → stop() → close()
Recommend
More recommend