![]() |
Gestro
|
runs a thread to start camera and capture image More...
#include <Capture.h>

Public Member Functions | |
| Capture () | |
| void | init (Gestro::CaptureAndDetectCallbackInterface *, int, int) |
| void | start () |
| void | stop () |
Public Attributes | |
| bool | running = false |
| boolean to check if cmaera is running More... | |
Private Member Functions | |
| void | imageCap () |
Private Attributes | |
| thread | uthread |
| thread to start image capture More... | |
| Gestro::CaptureAndDetectCallbackInterface * | callback |
| callback to capture and detect More... | |
| int | height |
| resolution height More... | |
| int | width |
| resolution width More... | |
| Mat | frame |
| captured frame More... | |
| VideoCapture * | capture |
| pointer to VideoCapture More... | |
runs a thread to start camera and capture image
A class that captures images from the webcam and calls the callback function with the image.
| Capture::Capture | ( | ) |
The constructor for the class.
Definition at line 3 of file Capture.cpp.
|
private |
It captures an image from the webcam, and then calls the callback function with the image
Definition at line 32 of file Capture.cpp.


| void Capture::init | ( | Gestro::CaptureAndDetectCallbackInterface * | interface, |
| int | width, | ||
| int | height | ||
| ) |
It initializes the Capture class with the width and height of the image to be captured, and a pointer to the DetectInterface class
| interface | The interface that will be called when a new frame is available. |
| width | The width of the image to be captured. |
| height | The height of the image to be captured. |
Definition at line 5 of file Capture.cpp.


| void Capture::start | ( | ) |
It starts a thread that runs the imageCap function to read Images
Definition at line 22 of file Capture.cpp.


| void Capture::stop | ( | ) |
It stops the capture thread by setting the running flag to false, and then waits for the thread to finish
Definition at line 27 of file Capture.cpp.
|
private |
|
private |
|
private |
|
private |
| bool GestureDetection::Capture::running = false |
|
private |
|
private |
1.8.13