Fix make tools compile fail when using opencv2.4.x version

This commit is contained in:
Osenberg-Y 2018-07-27 14:50:02 +08:00
parent 5a9fffe3ed
commit 0c92f770f2

View File

@ -311,8 +311,8 @@ DeviceWriter::dev_info_t DeviceWriter::LoadDeviceInfo(
LOG(FATAL) << "Failed to load file: " << filepath; LOG(FATAL) << "Failed to load file: " << filepath;
} }
DeviceInfo info; DeviceInfo info;
info.lens_type = Type(fs["lens_type"].string()); info.lens_type = Type(std::string(fs["lens_type"]));
info.imu_type = Type(fs["imu_type"].string()); info.imu_type = Type(std::string(fs["imu_type"]));
fs["nominal_baseline"] >> info.nominal_baseline; fs["nominal_baseline"] >> info.nominal_baseline;
fs.release(); fs.release();
return info; return info;