Browse Source

add print

leon 1 month ago
parent
commit
15d4657a0e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/nodes/stream/streamNode.cpp

+ 5 - 0
src/nodes/stream/streamNode.cpp

@@ -12,6 +12,11 @@ void StreamNode::work()
         std::cerr << "Error: cannot open camera" << std::endl;
         return;
     }
+    printf("StreamNode %s\n", name_.c_str());
+    printf("fps: %f\n", cap.get(cv::CAP_PROP_FPS));
+    printf("width: %f\n", cap.get(cv::CAP_PROP_FRAME_WIDTH));
+    printf("height: %f\n", cap.get(cv::CAP_PROP_FRAME_HEIGHT));
+    printf("frame count: %f\n", cap.get(cv::CAP_PROP_FRAME_COUNT));
 
     while (running_)
     {