The color frame is stopping for every few second...
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
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);
}
// Update is called once per frame void Update()
{
using (var frames = pipe.WaitForFrames())
using (var depth = frames.DepthFrame)
{
var frame = frames.waitforframes();
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); } }
-
Hi Cjsgkcksgur,
The RealSense GitHub that you have also posted this question at will be the best place to receive expert programming advice on this particular question, as that is where the Intel RealSense team members who work on the RealSense Unity wrapper are located. I do apologize.
Please sign in to leave a comment.
Comments
1 comment