소스 검색

add print

leon 1 개월 전
부모
커밋
15d4657a0e
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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_)
     {