fix(api): plugin error
This commit is contained in:
parent
3c4f8b986b
commit
0025a555ba
|
@ -41,6 +41,7 @@ int main(int argc, char *argv[]) {
|
||||||
auto &&left_data = api->GetStreamData(Stream::LEFT);
|
auto &&left_data = api->GetStreamData(Stream::LEFT);
|
||||||
auto &&right_data = api->GetStreamData(Stream::RIGHT);
|
auto &&right_data = api->GetStreamData(Stream::RIGHT);
|
||||||
|
|
||||||
|
if (!left_data.frame.empty() && !right_data.frame.empty()) {
|
||||||
cv::Mat img;
|
cv::Mat img;
|
||||||
cv::hconcat(left_data.frame, right_data.frame, img);
|
cv::hconcat(left_data.frame, right_data.frame, img);
|
||||||
cv::imshow("frame", img);
|
cv::imshow("frame", img);
|
||||||
|
@ -49,6 +50,7 @@ int main(int argc, char *argv[]) {
|
||||||
if (!disp_data.frame.empty()) {
|
if (!disp_data.frame.empty()) {
|
||||||
cv::imshow("disparity", disp_data.frame);
|
cv::imshow("disparity", disp_data.frame);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
char key = static_cast<char>(cv::waitKey(1));
|
char key = static_cast<char>(cv::waitKey(1));
|
||||||
if (key == 27 || key == 'q' || key == 'Q') { // ESC/Q
|
if (key == 27 || key == 'q' || key == 'Q') { // ESC/Q
|
||||||
|
|
Loading…
Reference in New Issue
Block a user