fix(sample): record core error 2.

This commit is contained in:
TinyO 2019-10-22 17:07:34 +08:00
parent 58aeae6564
commit 165efd7c79

View File

@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
auto &&motion_datas = api->GetMotionDatas();
imu_count += motion_datas.size();
cv::Mat img;
if (left_datas.size() > 0) {
if (left_datas.size() > 0 && right_datas.size() > 0) {
auto &&left_frame = left_datas.back().frame_raw;
auto &&right_frame = right_datas.back().frame_raw;
if (left_frame->format() == Format::GREY) {