fix(api): add setDuplicate(enable)

This commit is contained in:
TinyOh
2019-03-14 09:51:42 +08:00
parent 0025a555ba
commit 5a6eabcc5f
8 changed files with 30 additions and 5 deletions

View File

@@ -35,8 +35,6 @@ int main(int argc, char *argv[]) {
cv::namedWindow("frame");
cv::namedWindow("depth");
double t = 0;
double fps;
while (true) {
api->WaitForStreams();

View File

@@ -26,6 +26,8 @@ int main(int argc, char *argv[]) {
if (!ok) return 1;
api->ConfigStreamRequest(request);
api->setDuplicate(true);
api->EnablePlugin("plugins/linux-x86_64/libplugin_g_cuda9.1_opencv3.4.0.so");
api->EnableStreamData(Stream::DISPARITY_NORMALIZED);