You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Required Info
Camera Model
{ D455 }
Firmware Version
(Open RealSense Viewer --> Click info)
Operating System & Version
{ Linux (Ubuntu 20) }
Kernel Version (Linux Only)
(e.g. 5.10.160)
Platform
RK3588S
SDK Version
{ legacy / 2.55.1 }
Language
{C++ }
Segment
{others }
|
Issue Description
Here are my codes.
#include<librealsense2/rs.hpp>// Include RealSense Cross Platform API
#include<iostream>// for cout
#include<opencv2/opencv.hpp>// Hello RealSense example demonstrates the basics of connecting to a RealSense device// and taking advantage of depth dataintmain(int argc, char * argv[]) try
{
// Create a Pipeline - this serves as a top-level API for streaming and processing framesint camera_w = 640;
int camera_h = 480;
int camera_fps = 30;
rs2::config cfg = rs2::config();
cfg.enable_stream(RS2_STREAM_COLOR,
camera_w,
camera_h,
RS2_FORMAT_RGB8,
camera_fps);
cfg.enable_stream(RS2_STREAM_DEPTH,
camera_w,
camera_h,
RS2_FORMAT_Z16,
camera_fps);
rs2::pipeline p;
// Configure and start the pipeline
p.start(cfg);
while (true)
{
// Block program until frames arrive
rs2::frameset frames = p.wait_for_frames();
rs2::frame color_frame = frames.get_color_frame();
cv::Mat color = cv::Mat(cv::Size(camera_w, camera_h), CV_8UC3, (void*)color_frame.get_data(), cv::Mat::AUTO_STEP);
cv::imshow("tt",color);
cv::waitKey(0);
}
return EXIT_SUCCESS;
}
When I run the code, the images displayed are sometimes incorrectly sized.
But when I use sdk2.53.1, the results are correct.
The text was updated successfully, but these errors were encountered:
Hi @pumpkin639 When you upgraded to librealsense SDK version 2.55.1, did you also update your camera firmware driver version to 5.16.0.1 please? This is the recommended firmware to use with 2.55.1. Using older firmwares instead of the recommended version could result in errors.
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
|
Issue Description
Here are my codes.
When I run the code, the images displayed are sometimes incorrectly sized.
But when I use sdk2.53.1, the results are correct.
The text was updated successfully, but these errors were encountered: