openpose icon indicating copy to clipboard operation
openpose copied to clipboard

camera extrinsics

Open lks90commit opened this issue 3 years ago • 4 comments

Hi, I was able to get the intrinsic parameters for my camera, but I'm not sure how to get the extrinsic parameters from my two folders of left and right images (already undistorted).

On the OpenPose documentation there is this line:

./build/examples/calibration/calibration.bin --mode 2 --grid_square_size_mm 127.0 --grid_number_inner_corners 9x6 --omit_distortion --calibration_image_dir ~/Desktop/extrinsics/ --cam0 1 --cam1 0

I would appreciate if someone can indicate the way to properly get the extrinsic camera parameters in this situation, in which I have two folders of undistorted left and right images from a stereo camera.

lks90commit avatar Apr 26 '21 22:04 lks90commit

I think I found the solution by placing all the images on the same extrinsics folder, but now I'm with the error "invalid vector<T> subscript" when I try to execute the calibration:

Starting OpenPose calibration toolbox... Running calibration (extrinsic parameters)...

Error: invalid vector<T> subscript

Coming from:

  • C:\OpenPose\openpose\src\openpose\calibration\cameraParameterEstimation.cpp:op::estimateAndSaveExtrinsics():1212

lks90commit avatar Apr 27 '21 19:04 lks90commit

solved, it was the camera_parameter_folder path.

lks90commit avatar Apr 30 '21 17:04 lks90commit

I think I found the solution by placing all the images on the same extrinsics folder, but now I'm with the error "invalid vector subscript" when I try to execute the calibration:

Starting OpenPose calibration toolbox... Running calibration (extrinsic parameters)...

Error: invalid vector subscript

Coming from:

  • C:\OpenPose\openpose\src\openpose\calibration\cameraParameterEstimation.cpp:op::estimateAndSaveExtrinsics():1212

I have the same problem. When I run the frist CAM: "./build/examples/openpose/openpose.bin --camera 0 --frame_undistort --camera_parameter_path "models/cameraParameters/0.xml" --num_gpu 0 --write_images /data/cam/extrinsics/ " and then run the second CAM "./build/examples/openpose/openpose.bin --camera 1 --frame_undistort --camera_parameter_path "models/cameraParameters/1.xml" --num_gpu 0 --write_images /data/cam/extrinsics/". The last camera images will be replaced by the second camera images one by one using the same index like this: "000000000000_rendered.png 000000000001_rendered.png 000000000002_rendered.png 000000000003_rendered.png"

I have try all the way that I could thought. But I haven't fixed it. Please help me and I'll very appreciate.

redyuan43 avatar Jun 08 '21 08:06 redyuan43

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 07:01 stale[bot]