Changeset 122 in pacpussensors for trunk/OpencvVideo


Ignore:
Timestamp:
Apr 8, 2016, 3:52:51 PM (9 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.