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

Charuco Calibration Not Working #16

Open
KenR22 opened this issue Dec 20, 2022 · 8 comments
Open

Charuco Calibration Not Working #16

KenR22 opened this issue Dec 20, 2022 · 8 comments

Comments

@KenR22
Copy link

KenR22 commented Dec 20, 2022

Hi,

We have shifted from Anipose to Jarvis, but we have calibration in Anipose format for our previous recording. I could not get the CHaruco to get working on Jarvis. I have attached our calibration video and charuco board parameter(under the toml file) here. I was wondering if you could guide me to the problem.

https://drive.google.com/file/d/1ZKJEH7MikZAsPpsFvqcfZMbWz0jbG9RG/view?usp=sharing

Let me know if the link does not work.

Thanks,
Ken

@JARVIS-MoCap
Copy link
Owner

Hi,

Thank you for sharing the example! The link requires you to give me permission to access the files, I send a request. I'll have a look at the data as soon as I have access.

Timo

@KenR22
Copy link
Author

KenR22 commented Dec 26, 2022

You should have the access now.

Thanks,
Ken

@timohueser
Copy link
Collaborator

Sorry it took me so long to get back to the issue! I just tried running the calibration on the videos you provided but could not figure out what version of the ChArUco markerset you are using. Could you please tell me what pattern this is/how you generated it?

Thanks and best
Timo

@KenR22
Copy link
Author

KenR22 commented Jan 20, 2023

Hi,

This board was generated using anipose.
https://github.com/lambdaloop/anipose/blob/dbebebba1e438f563f373245c2e546ece118fc65/anipose/anipose.py#L284
I think they used OpenCV here^.

The parameters we used can be found in the Calibration_TIMO/config.toml file

Let me know if you need anything else.

Thanks again!
Ken

@KenR22
Copy link
Author

KenR22 commented Feb 3, 2023

Hi,

Also I would like to mention that anipose parameters are in the folder but it does not match with jarvis format. If you could guide how to convert them, that should also work for us.
Thanks

@JARVIS-MoCap
Copy link
Owner

Hey,
sorry it took me a while to figure this one out! It seems like OpenCV changed the way they arrange the ChArUco markers somewhere between version 4.5 and version 4.7. There are also some changes to the Python commands in the newer version (e.g CharucoBoard_create was renamed to just CharucoBoard), so I assume there are some changes under the hood of the OpenCV aruco module that cause this.
Unfortunately that means that you can not use the calibration recordings you have with the JARVIS, since it uses a newer OpenCV version.

I attached a Anipose to Jarvis conversion script that I used some time age. It does NOT work on your calibration files directly though, since your format seems to be different to what I was using. Also note that JARVIS does not allow fisheye calibration, so it might be a bit tricky to correctly convert the distortion values.

Sorry I can't give you a more satisfying answer. Please let me know if you have any other questions and I'm happy to help out with getting the conversion working!

Timo

@KenR22
Copy link
Author

KenR22 commented Feb 25, 2023

Thanks for your time on this!
I was wondering if you would be willing to give a pointer to make my own calibration for Jarvis preferably on python.
I have got to the point I can do charuco detection on previous opencv but struggling with the bundle adjustment part.

@karihoffman
Copy link

Hey Timo,

Thanks so much for your response to this! We're in a bind trying to finish the conversion and Ken could use help finding the specific next step (bundle adjustment). These are invaluable data for us, which is why he's putting in the effort needed to use the old charuco (we can't recollect these neural learning data).

Anything you can do to point him in the right direction would be appreciated!

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