- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi i am using D435 and D415 in my unity project.
And i use windows 10.
Both camera has same problem. So i think i have a software problem.
And my sdk version is latest.
The problem is when i try to get Colorimage from D435 ,
First i can get normal image but after some seconds ,
The camera returns same image for few second.
So after that time , camera returns normal image.
It is repeated.
But the depth frame doesn't have same problem.
The distance information from D435 is normal when the camera returns unnormal frames.
I tried to change FrameRates , and change my computer(I thought that was cpu problem)... , and change sdk version.. but nothing is solved.....
I try to solve this problem some days , but i can't handle it...
so.. please help me.
Thank you very much.
Here is my code.
public class NewBehaviourScript : MonoBehaviour
{
Pipeline pipe;
Config cfg;
FrameSet frames;
// Start is called before the first frame update
FrameQueue queframe;
private Align aligner;
void Start()
{
cfg = new Config();
cfg.EnableStream(Stream.Depth, 640, 480,Format.Z16,30);
cfg.EnableStream(Stream.Color, 640,480,Format.Rgb8,30);
pipe = new Pipeline();
pipe.Start(cfg);
queframe = new FrameQueue(5);
}
// Update is called once per frame
void Update()
{
using (var frames = pipe.WaitForFrames())
using (var depth = frames.DepthFrame)
{
var frame = frames.FirstOrDefault(Stream.Color);
print("The camera is pointing at an object " +
depth.GetDistance(depth.Width / 2, depth.Height / 2) + " meters away\t");
Mat color_Frame = new Mat(480, 640, MatType.CV_8UC3, frame.Data);
Cv2.ImShow("color_frame", color_Frame);
}
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This forum is due to close down today as it has been replaced by a new forum at the link below.
https://support.intelrealsense.com/hc/en-us/community/topics
I researched your question carefully. As it involves Unity programming though, the best place for expert advice will be the RealSense GitHub that you have already posted the question to. Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page