- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am new so I am still grasping the details of the RealSense D435 camera. I am streaming frames through a C++ program with OpenCV. I set my camera to 720 x 1080 to a 30 frame rate and I was wondering how to meausure the actual frame per second value (or any kind of latency).
I used the chrono library, but I am not sur if there is a better way to do it, perhaps the realsense API handles it automatically.
If someone could suggest me another way to do it I would be deeply grateful.
Thank you for your time
auto timeStart = std::chrono::high_resolution_clock::now();
// Stream frames and do something
auto timeEnd = std::chrono::high_resolution_clock::now();
long long duration = std::chrono::duration_cast<std::chrono::milliseconds>(timeEnd - timeStart).count();
std::cout << "Latency value: " << duration << " in ms." << std::endl;
- Tags:
- Intel® RealSense
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page