fix(api): add setDuplicate(enable)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user