-
Notifications
You must be signed in to change notification settings - Fork 123
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
DICe execution failed #315
Comments
For the first case above, it's hard to say what's going wrong since I can't see all the parameters you have selected on the right panel. One possibility is that there is that the SSSIG threshold is too high. Have you tried setting that to zero to see if it works? There might not be enough contrast in the top image to satisfy the SSSIG criteria. Also, if you could attach the input.xml file that got generated in the working directory I could help you more. For the bottom case, the problem is that you selected "calibrate results" but you did not provide the calibration parameters in the "load cal file" input box. Did you calibrate the camera using the perform calibration tool? If not you won't be able to calibrate the resutls. |
If you chose to install DICe in a folder that is not the default location suggested by the install dialogue you have to select the folder where the dice.exe executable exists. The reason you get an error about DICe_OpenCVServer.exe is because that is the first executable that DICe looks for when you open the GUI. You can either reinstall DICe in the default location or re-install it and when you get the first error above about the executable path not existing, select the folder where you have dice.exe installed in the dialog box. |
Well, I can run properly now thank you a lot for your information. However, I have my own calibration code, but I'm wondering what is in the .xml file. What does it look like inside the file? How can I see what is written in the .xml file? Thank you in advance. |
I have to tell you that I can't calibrate like in your example clip. I don't understand why but I really just want to know what's inside the .xml file and what does it looks like. |
Here's an example of the DICe xml file: https://github.com/dicengine/dice/blob/master/tests/regression/stereo_rectified/cal.xml |
If I have key point value which could I insert the value to let the program calibrate ? How to be same as your file the cal.xml like how to change the value inside the file ? thank you in advance. |
We don't have the ability in DICe to read in the keypoint locations and then calibrate, but you could use OpenCV to write a small python script that does that. Once you calibrate using OpenCV you can just copy and paste the intrinsic and extrinsic parameters to a DICe formated cal.xml file or have the python script output the cal.xml file. |
That's right, you can simply change the values in your cal.xml file if you have a template from DICe to work from. |
The problem you are seeing when you try to run the DICe calibration on the images is probably due to the brightness changes across your calibration target. It makes setting the segmentation threshold hard to get right. It just so happens that we recently updated the calibration routine to handle this better, but haven't pushed the changes yet. These updates will be available in a new version of DICe in a few weeks. |
All of this is covered here: https://github.com/dicengine/dice/blob/master/doc/reports/Triangulation.pdf |
Thank you, but I have to bother you again so how do you calculated the Euler angles? I just wonder how the process looks like. |
Here's a link that might be helpful: https://learnopencv.com/rotation-matrix-to-euler-angles/ |
For the skew parameter, just add another parameter to the cal.xml file:
For the calibration, DICe doesn't interface with OpenCV through files, but by using it as a library. To see how this is done, look at lines 303 or 313 in this source code file to see how it's done https://github.com/dicengine/dice/blob/master/src/opencv/DICe_Calibration.cpp If you have the rotation matrix instead of the euler angles, you can use the rotation matrix directly in the cal.xml file:
You still need to define TX, TY, and TZ in cal.xml. When you have defined TX, TY, TZ and the rotation matrix you have define all the CAL_EXTRINSICS. |
Yes, that's correct. |
Thank you, from your previous file Calibration.cpp you also have the .exe file to call the function of .cpp or where do you call and use the function ? Regards, |
How can I output the function 'intersection_points' Regards, |
At this point, you might need to consult some sources on C++ code development. There are a lot of good resources out there. |
I actually want to know about "TrilinosConfig.cmake" file and how can I find this file? Regards, |
image dimensions: 2448 x 2048
Output will be written to one file per frame with all subsets included
Execution information will be written to a separate file (not placed in the output headers)
C:\Users\dzturne\Software\DICe_nightly\src\core\DICe_Decomp.cpp:73:
Throw number = 1
Throw test that evaluated to true: comm_->get_rank()==0&&subset_centroids_x.size()<=0
//////
Excuse me, what the problem is about ?
The text was updated successfully, but these errors were encountered: