Skip to content
Snippets Groups Projects
Commit 445076c7 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Refix realsense

parent 14eb2a52
No related branches found
No related tags found
1 merge request!40Implements #89 PNG chunking
Pipeline #11599 passed
......@@ -39,7 +39,7 @@ RealsenseSource::~RealsenseSource() {
bool RealsenseSource::grab() {
rs2::frameset frames = pipe_.wait_for_frames();
//rs2::align align(RS2_STREAM_DEPTH);
//frames = align_to_depth_.process(frames); //align_to_depth_.process(frames);
frames = align_to_depth_.process(frames); //align_to_depth_.process(frames);
rs2::depth_frame depth = frames.get_depth_frame();
float w = depth.get_width();
......
......@@ -310,7 +310,7 @@ void Streamer::_schedule() {
vector<int> pngparams = {cv::IMWRITE_PNG_COMPRESSION, 1}; // Default is 1 for fast, 9 = small but slow.
cv::imencode(".png", d2, d_buf, pngparams);
LOG(INFO) << "Sending chunk " << chunk << " : size = " << (d_buf.size()+rgb_buf.size()) / 1024 << "kb";
//LOG(INFO) << "Sending chunk " << chunk << " : size = " << (d_buf.size()+rgb_buf.size()) / 1024 << "kb";
UNIQUE_LOCK(src->mutex,lk);
auto i = src->clients[0].begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment