Changeset 169 in flair-src for trunk/lib/FlairSensorActuator/src
- Timestamp:
- Apr 13, 2017, 11:52:54 AM (8 years ago)
- Location:
- trunk/lib/FlairSensorActuator/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Camera.cpp
r157 r169 143 143 void Camera::SavePictureToFile(string filename) const { 144 144 if(filename=="") filename="./"+ObjectName()+"_"+std::to_string(GetTime())+".jpg"; 145 145 string::size_type idx = filename.rfind('.'); 146 146 147 147 if(idx != string::npos) { … … 158 158 } 159 159 output->ReleaseMutex(); 160 Printf("saving %s ok\n", filename.c_str()); 160 161 161 162 } else { -
trunk/lib/FlairSensorActuator/src/V4LCamera.cpp
r165 r169 37 37 : Thread(getFrameworkManager(), name, priority), 38 38 Camera(name, width, height, format) { 39 capture = cvCaptureFromCAM(camera_index); // a mettre apres l'init dsp 40 39 capture = cvCaptureFromCAM(camera_index); 41 40 if (capture < 0) 42 41 Thread::Err("cvCaptureFromCAM error\n");
Note:
See TracChangeset
for help on using the changeset viewer.