Changeset 142 in pacpussensors for trunk/Vislab/VislabComponent.cpp
- Timestamp:
- Mar 30, 2017, 4:18:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Vislab/VislabComponent.cpp
r138 r142 9 9 #include <Pacpus/kernel/DbiteFileTypes.h> 10 10 #include <Pacpus/kernel/DbiteException.h> 11 #include <lib3dv -1.2.0/lib3dv/device.h>12 #include <20150310_lib3dv-1.2.0/src/display.h>11 #include <lib3dv/device.h> 12 //#include <20150310_lib3dv-1.2.0/src/display.h> 13 13 14 14 // Includes, qt. … … 58 58 try 59 59 { 60 QString filename = name() + ".dbt";61 //mDBTFile.open(filename.toStdString(), WriteMode, FILE_JPEG,MAX_LENGTH_NAME);60 camera.setVideoOutput(getTypedOutput<cv::Mat, VislabComponent>("image")); 61 camera.setDispariteOutput(getTypedOutput<cv::Mat, VislabComponent>("disparity")); 62 62 } 63 63 catch (std::exception const& e) … … 72 72 VislabComponent::configureComponent(XmlComponentConfig config) 73 73 { 74 try75 {76 QDir directory;77 if (!directory.exists(name().toLatin1()) && !directory.mkdir(name().toLatin1()))78 throw std::runtime_error("cannot create the webcam directory");79 80 //mFilenameTemplate = QString("%1/image-%2.jpg").arg(name());81 //LOG_INFO("template filename: " << mFilenameTemplate);82 }83 catch (std::exception const& e)84 {85 LOG_ERROR(e.what());86 return ComponentBase::CONFIGURED_FAILED;87 }88 89 74 return ComponentBase::CONFIGURED_OK; 90 75 }
Note:
See TracChangeset
for help on using the changeset viewer.