mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:23:05 +02:00
Make our call to configureCamera on OS X.
This commit is contained in:
parent
556a64eab9
commit
2e033631eb
1 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,10 @@
|
||||||
#include <Log.h>
|
#include <Log.h>
|
||||||
#include <SharedUtil.h>
|
#include <SharedUtil.h>
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <UVCCameraControl.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "Webcam.h"
|
#include "Webcam.h"
|
||||||
|
|
||||||
|
@ -119,6 +123,10 @@ void FrameGrabber::grabFrame() {
|
||||||
const int IDEAL_FRAME_HEIGHT = 240;
|
const int IDEAL_FRAME_HEIGHT = 240;
|
||||||
cvSetCaptureProperty(_capture, CV_CAP_PROP_FRAME_WIDTH, IDEAL_FRAME_WIDTH);
|
cvSetCaptureProperty(_capture, CV_CAP_PROP_FRAME_WIDTH, IDEAL_FRAME_WIDTH);
|
||||||
cvSetCaptureProperty(_capture, CV_CAP_PROP_FRAME_HEIGHT, IDEAL_FRAME_HEIGHT);
|
cvSetCaptureProperty(_capture, CV_CAP_PROP_FRAME_HEIGHT, IDEAL_FRAME_HEIGHT);
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
configureCamera();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
IplImage* image = cvQueryFrame(_capture);
|
IplImage* image = cvQueryFrame(_capture);
|
||||||
if (image == 0) {
|
if (image == 0) {
|
||||||
|
|
Loading…
Reference in a new issue