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

check calibration cube #150

Closed
pablovela5620 opened this issue May 5, 2022 · 11 comments
Closed

check calibration cube #150

pablovela5620 opened this issue May 5, 2022 · 11 comments

Comments

@pablovela5620
Copy link

I'm not sure what I'm doing wrong, but these are the images I get when checking calibration for 2 cameras

image
image

when using the first test, I get much more reasonble results
image
image

While in the documentation it shows a much more clean cube, I also noticed the issue #71 had similar problems. Any idea what may be going on? I manually labeled the checkerboard so I don't believe its a problem with that (though they may not be the highest possible precision)

Any idea whats going on?

@chingswy
Copy link
Contributor

chingswy commented May 6, 2022

Hello, your pattern of the chessboard may be wrong. It's must be not centrosymmetric.

@pablovela5620
Copy link
Author

Hey thanks for the response, could you clarify what you mean by this? I'm not totally sure what centrosymmetric means, I'm guessing it means starting on a black square and ending on a white one? I just used this link to print a board https://www.mrpt.org/downloads/camera-calibration-checker-board_9x7.pdf. Do you have any recommendations to where I could generate a printable calibration pattern? This is for hand pose estimation

@chingswy
Copy link
Contributor

chingswy commented May 6, 2022

Hello, this is a commonly used 9x6 pattern.

@pablovela5620
Copy link
Author

Great appreciate it, will try with this pattern thanks

@pablovela5620
Copy link
Author

Looks like I'm still having the same problem. For context I used the pattern you linked above, set the --grid value to 0.02, collected ~15 images for each camera to generate the intrinic parameters and ~8 images for the extrinsic parameters (for a quick and dirty test). This what I get for the --vis --s
how when doing calibrate camera
000000

but for the cube calibration test I get
image
image

Could this be an issue with the scale/grid parameters? I noticed that in the example provided a much much larger checkerboard is used

@pablovela5620
Copy link
Author

Wanted to add a few things. It seems like the detection/3d skeleton recon/smpl fitting are working, but the smpl repro is not and I'm not sure if this has to do with the potentially bad extrinsic parameters. Attached videos to show

detec.mp4
repro_smpl.mp4
smpl.mp4

@chingswy
Copy link
Contributor

chingswy commented May 7, 2022

Hello, the videos cannot be played. The length of the edge of the showed cube is 1meter.

@pablovela5620
Copy link
Author

Sorry about that, fixed with gifs instead. In that case it sounds like the issue is potentially the size of the cube considering your square size is 200mm v.s. the 22mm I'm using.

I'm still not fully sure why the reprojected smpl keypoints are failing while everything else seems to be okay. Does this have to do with the calibration or is it an unrelated problem?
detect

repro

repro_smpl
smpl

@chingswy
Copy link
Contributor

chingswy commented May 7, 2022

Hello, if the rendered mesh seems good, it's all ok. Don't care about the reprojected SMPL joints. Maybe there is some bug.

@pablovela5620
Copy link
Author

Understood, thanks! I think I may have found the bug. It looks like the keypoints confidence values are being set to 0 when projected from 3d->2d. I added an ugly workaround for now to verify.

On line 89 of mv1p.py

if args.vis_repro:
    keypoints = body_model(return_verts=False, return_tensor=False, **param)[0]
    kpts_repro = projectN3(keypoints, dataset.Pall)
    kpts_repro[:, :, -1] = 1
    dataset.vis_repro(images, kpts_repro, nf=nf, sub_vis=args.sub_vis, mode='repro_smpl')

But otherwise it sounds like as long as SMPL are showing up and original reprojection is good, the calibration is working?

@chingswy
Copy link
Contributor

chingswy commented May 8, 2022

Yes.

@chingswy chingswy closed this as completed May 8, 2022
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

2 participants