realsense

Intel RealSense D435i frames drop on Intel® RealSense™ SDK 2.0

人盡茶涼 提交于 2020-08-17 05:52:46
问题 It works like a charm when the RGB module of the camera has a resolution of 1280x720, and FPS as 15 frames/sec. The depth mode and IMU work fine in all the settings. But if the resolution is increased above 1280x720 - 15 frames/sec, I face a Runtime error: backend-v412.cpp:988 - Frames didn't arrive within 5 seconds. Other forms of this error: 10:41:49 [Warn] .../backend-v4l2.cpp:988 - Frames didn't arrived within 5 seconds It seems like the pipeline is not able to handle the framebuffers,

How do I include RealSense2/OpenCV source into compilation with CMake?

99封情书 提交于 2020-07-10 08:37:06
问题 SHORT VERSION I want to bundle the (uncompiled) source files for OpenCV and librealsense2 with CMake so I can cross compile it on RPi (or at all), but I am new to CMake and don't know how. add_executable (CMakeRealSense "CMakeRealSense.cpp" "CMakeRealSense.h") include_directories(opencv libs/opencv-master/include) include_directories(realsense2 libs/librealsense-master/include) This gives a bunch of errors related to RS files itself (X not declared on scope). LONG VERSION I am currently

使用realsense435

▼魔方 西西 提交于 2020-02-04 02:42:43
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md 一、SDK安装 1、更新Ubuntu发行版,包括获取最新的稳定内核: sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade 2、下载source git clone https://github.com/IntelRealSense/librealsense.git cd librealsense 3、安装依赖项(此时不能插realsense) sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev ####Ubuntu16.04 : sudo apt-get install libglfw3-dev 4、运行位于librealsense根目录的英特尔Realsense权限脚本: ./scripts/setup_udev_rules.sh 5、Build and apply patched kernel modules ./scripts/patch-realsense-ubuntu-lts.sh 6

Calculating distance from Intel Realsense R200 Depth Camera

坚强是说给别人听的谎言 提交于 2019-12-13 03:32:08
问题 I have been trying to calculate the distances of objects with values of R200 camera. I installed PyRealsense and librealsense(legacy). And examples of PyRealsense are working without any problem. I have created a code for this purpose: import pyrealsense as pyrs from pyrealsense.constants import rs_option depth_stream = pyrs.stream.DepthStream() infrared_stream = pyrs.stream.InfraredStream() with pyrs.Service() as serv: with serv.Device(streams=(depth_stream, infrared_stream, )) as dev: #dev

python+opencv+dlib+Intel RealSense D435 实现人脸检测和跟踪

情到浓时终转凉″ 提交于 2019-12-11 03:09:58
https://blog.csdn.net/cherry_yu08/article/details/84551326 视频人脸跟踪 这里用Intel RealSense D435获取图片,用opencv显示图片,用dlib的算法实现人脸跟踪。 使用Intel RealSense D435获取RGB图像,并使用dlib的get_frontal_face_detector检测人脸,代码: import dlib import cv2 import pyrealsense2 as rs import numpy as np if __name__ == "__main__" : # Configure depth and color streams pipeline = rs . pipeline ( ) config = rs . config ( ) config . enable_stream ( rs . stream . depth , 640 , 480 , rs . format . z16 , 30 ) config . enable_stream ( rs . stream . color , 640 , 480 , rs . format . bgr8 , 30 ) # Start streaming pipeline . start ( config )

Saving the stream using Intel RealSense

夙愿已清 提交于 2019-12-07 05:12:11
问题 I'm new to Intel RealSense. I want to learn how to save the color and depth streams to bitmap. I'm using C++ as my language. I have learned that there is a function ToBitmap(), but it can be used for C#. So I wanted to know is there any method or any function that will help me in saving the streams. Thanks in advance. 回答1: I'm also working my way through this, It seems that the only option is to do it manually. We need to get ImageData from PXCImage. The actual data is stored in ImageData

Saving the stream using Intel RealSense

半城伤御伤魂 提交于 2019-12-05 11:15:46
I'm new to Intel RealSense. I want to learn how to save the color and depth streams to bitmap. I'm using C++ as my language. I have learned that there is a function ToBitmap(), but it can be used for C#. So I wanted to know is there any method or any function that will help me in saving the streams. Thanks in advance. I'm also working my way through this, It seems that the only option is to do it manually. We need to get ImageData from PXCImage. The actual data is stored in ImageData.planes but I still don't understand how it's organized. https://software.intel.com/en-us/articles/dipping-into

How to save an image in Intel RealSense(Visual C++)

那年仲夏 提交于 2019-12-04 17:37:56
问题 I'm working on Intel RealSense SDK (R2). I want to save the image from Camera_viewer. I have worked till saving the frame to specific buffers and retrieving from the same. I want to know how to save those frames/images to a specified location/folder. Here's my code: PXCImage *colorIm, *depthIm; for (int i=0; i<MAX_FRAMES; i++) { // This function blocks until all streams are ready (depth and color) // if false streams will be unaligned if (psm->AcquireFrame(true)<PXC_STATUS_NO_ERROR) break; //

Intel Realsense D435 在ROS:Kinetic + Ubuntu16.04中安装使用

 ̄綄美尐妖づ 提交于 2019-12-01 13:33:39
Intel Realsense D435是Intel生产的一款RGBD相机,可以在ROS系统中安装和使用,本文使用的软件配置如下: Ubuntu 16.04 内核版本:4.15.0 ROS kinetic 1. 前期准备 a.  首先更新Ubuntu及内核: sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade b.  升级程序包 sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial c.  升级OS Boot并重启使用正确的内核 sudo update-grub && sudo reboot d.  查看内核版本   uname -r 确定系统内核版本是 4.[4,8,10,13,15,16] e.  下载源程序 ROS源程序地址: https://github.com/IntelRealSense

Convert a PXCImage into an OpenCV Mat

寵の児 提交于 2019-12-01 00:55:14
I'm working on the Intel's RealSense SDK. For signal processing purposes, I have to convert it into an OpenCV format. Do you have a function to do such a conversion? Here is the conversion (some cases aren't managed but feel free to adapt it): void ConvertPXCImageToOpenCVMat(PXCImage *inImg, Mat *outImg) { int cvDataType; int cvDataWidth; PXCImage::ImageData data; inImg->AcquireAccess(PXCImage::ACCESS_READ, &data); PXCImage::ImageInfo imgInfo = inImg->QueryInfo(); switch (data.format) { /* STREAM_TYPE_COLOR */ case PXCImage::PIXEL_FORMAT_YUY2: /* YUY2 image */ case PXCImage::PIXEL_FORMAT_NV12: