fix(sample): record core error.
This commit is contained in:
parent
10cae0133a
commit
58aeae6564
|
@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
|
|||
// std::uint16_t fps;
|
||||
// }
|
||||
|
||||
request.fps = 10;
|
||||
// request.fps = 10;
|
||||
api->ConfigStreamRequest(request);
|
||||
api->EnableMotionDatas();
|
||||
|
||||
|
@ -74,12 +74,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
auto &&motion_datas = api->GetMotionDatas();
|
||||
imu_count += motion_datas.size();
|
||||
|
||||
cv::Mat img;
|
||||
if (left_datas.size() > 0) {
|
||||
auto &&left_frame = left_datas.back().frame_raw;
|
||||
auto &&right_frame = right_datas.back().frame_raw;
|
||||
|
||||
cv::Mat img;
|
||||
|
||||
if (left_frame->format() == Format::GREY) {
|
||||
cv::Mat left_img(
|
||||
left_frame->height(), left_frame->width(), CV_8UC1,
|
||||
|
@ -110,6 +108,8 @@ int main(int argc, char *argv[]) {
|
|||
return -1;
|
||||
}
|
||||
cv::imshow("frame", img);
|
||||
}
|
||||
|
||||
if (img_count > 10 && imu_count > 50) { // save
|
||||
// save Stream::LEFT
|
||||
for (auto &&left : left_datas) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user