Changeset 122 in pacpussensors for trunk/OpencvVideo/WebcamWorker.cpp
- Timestamp:
- Apr 8, 2016, 3:52:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/OpencvVideo/WebcamWorker.cpp
r60 r122 1 // Includes, project.1 //0/ Includes, project. 2 2 #include "WebcamWorker.hpp" 3 3 … … 26 26 if (!mWebcam.open(device)) 27 27 throw std::runtime_error("cannot open the requested device"); 28 #ifdef WIN32 28 29 if (!mWebcam.set(CV_CAP_PROP_FRAME_WIDTH, width)) 29 30 throw std::runtime_error("cannot set the requested width"); 30 31 if (!mWebcam.set(CV_CAP_PROP_FRAME_HEIGHT, height)) 31 32 throw std::runtime_error("cannot set the requested height"); 33 #endif 32 34 33 35 mHeartbeat->setInterval(msec);
Note:
See TracChangeset
for help on using the changeset viewer.