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

KinFu2 error: Start failed: Bad Parameter #29

Open
447425299 opened this issue Oct 14, 2017 · 9 comments
Open

KinFu2 error: Start failed: Bad Parameter #29

447425299 opened this issue Oct 14, 2017 · 9 comments

Comments

@447425299
Copy link

Thanks for you sharing. I use kinect v1 and meet this error: KinFu2 error: Start failed: Bad Parameter sent to the device! How could I solve it? thanks!

@densechen
Copy link

kinect2 has the different resolution about depth model. you should change the default params.

but, i have another problem. when i run this code with kinect2 or iphoneX trueDepth, I always failed on track. could anyone help me?

@drmateo
Copy link
Contributor

drmateo commented Sep 26, 2018

Also, for my ICP fails on track using both kinect1 and kinect2. But, I've noticed that raycast is rendering anything (just a black image). @LittleLampChen could you check if you have the same problem with the raycaster output?

@densechen
Copy link

I have already solved this problem.
you should config correct depth camera intr parameters and correct image size.

@drmateo
Copy link
Contributor

drmateo commented Sep 27, 2018

You're right, I should have done a correct parameter set up, but it's still failing. The configuration for the SD stream of a Kinect2 that I did is:

Image dimension > (424 x 512)
center image > (255.04, 205.758)
focal > (365.564, 365.546)

and the depth image is a 16UC1 ( unsigned short) cv::Mat

@densechen
Copy link

it is 512 x 424 or 424 x 512?
and i config this on windows without openni2. i have rewrite the demo to read directly from image file

@drmateo
Copy link
Contributor

drmateo commented Sep 27, 2018

Height 424 and width 512. Also, I'm rewriting the demo because I'm reading the image from ROS (sensor_msgs). But, in my case, I'm afraid that the error comes from other place, something related with CUDA (SDK 9.2)

@densechen
Copy link

Good luck!
Cuda 9.2 has many difference with Cuda 8.0

@drmateo
Copy link
Contributor

drmateo commented Sep 30, 2018

You're write it was a pain discover the inconsistencies btw CUDA 9.2 and older versions. But finally, I get the solution. I'm going to make a pull request with the changes. Thanks for your help ;)

@nakini
Copy link

nakini commented Mar 9, 2019

@drmateo, could you please tell me how to set the parameters inside the code? I am using Kinecet-360 on Ubuntu-16.04. I did try to replace the values 640 and 480 with 320 and 240 in kfusion/src/kinfu.cpp and kfusion/src/cuda/proj_icp.cu but it didn't help. Still getting the same error.

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants