fix(sample): record core error 2.
This commit is contained in:
parent
58aeae6564
commit
165efd7c79
|
@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
|
||||||
auto &&motion_datas = api->GetMotionDatas();
|
auto &&motion_datas = api->GetMotionDatas();
|
||||||
imu_count += motion_datas.size();
|
imu_count += motion_datas.size();
|
||||||
cv::Mat img;
|
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 &&left_frame = left_datas.back().frame_raw;
|
||||||
auto &&right_frame = right_datas.back().frame_raw;
|
auto &&right_frame = right_datas.back().frame_raw;
|
||||||
if (left_frame->format() == Format::GREY) {
|
if (left_frame->format() == Format::GREY) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user