Changeset 122 in pacpussensors


Ignore:
Timestamp:
04/08/16 15:52:51 (8 years ago)
Author:
ldecherf
Message:

porting for linux

Location:
trunk/OpencvVideo
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/OpencvVideo/WebcamWorker.cpp

    r60 r122  
    1 // Includes, project.
     1//0/ Includes, project.
    22#include "WebcamWorker.hpp"
    33
     
    2626  if (!mWebcam.open(device))
    2727    throw std::runtime_error("cannot open the requested device");
     28#ifdef WIN32
    2829  if (!mWebcam.set(CV_CAP_PROP_FRAME_WIDTH, width))
    2930    throw std::runtime_error("cannot set the requested width");
    3031  if (!mWebcam.set(CV_CAP_PROP_FRAME_HEIGHT, height))
    3132    throw std::runtime_error("cannot set the requested height");
     33#endif
    3234
    3335  mHeartbeat->setInterval(msec);
Note: See TracChangeset for help on using the changeset viewer.