Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

研究Intel D455 3D深度攝影機 #6

Open
ziteh opened this issue Apr 19, 2022 · 6 comments
Open

研究Intel D455 3D深度攝影機 #6

ziteh opened this issue Apr 19, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@ziteh
Copy link
Member

ziteh commented Apr 19, 2022

librealsense/wrappers/csharp at development · IntelRealSense/librealsense

@ziteh ziteh added the enhancement New feature or request label Apr 19, 2022
@ziteh ziteh self-assigned this Apr 19, 2022
@ziteh
Copy link
Member Author

ziteh commented Apr 19, 2022

@ziteh
Copy link
Member Author

ziteh commented Apr 19, 2022

using Intel.RealSense;

var pipe = new Pipeline();
pipe.Start();

while (true)
{
    using (var frames = pipe.WaitForFrames())
    {
        using (var depth = frames.DepthFrame.DisposeWith(frames))
        {
            Console.WriteLine("The camera is pointing at an object " +
                depth.GetDistance(depth.Width / 2, depth.Height / 2) + " meters away\t");

            Console.SetCursorPosition(0, 0);
        }
    }
}

System.Exception: 'Frame didn't arrive within 5000'
ExternalException: rs2_pipeline_wait_for_frames(pipe:00000242BA59C8C0)
at: using (var frames = pipe.WaitForFrames())

@ziteh
Copy link
Member Author

ziteh commented Apr 19, 2022

@ziteh ziteh removed their assignment Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant