Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-01-15 01:31:31 -0600

Nbb gravatar image

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

image description image description image description image description image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

image description image description image description image description image description image description

EDIT: I read a paper http://people.csail.mit.edu/bkph/articles/Tsai_Revisited.pdf Apparently it mentions that the algorithm should work for coplanar points. I shall read through it and hopefully it works. Any suggestions are still very welcome

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

image description image description image description image description image description image description

EDIT: I read a paper http://people.csail.mit.edu/bkph/articles/Tsai_Revisited.pdf Apparently it mentions that the algorithm should work for coplanar points. I shall read through it and hopefully it works. Any suggestions are still very welcome

image description image description image description image description image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: I read a paper http://people.csail.mit.edu/bkph/articles/Tsai_Revisited.pdf Apparently it mentions that the algorithm am getting 90 error and my camera position is wrong. What should work for coplanar points. I shall read through it and hopefully it works. Any suggestions are still very welcome i do

image description image description image description image description image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: I am getting double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!! It should be negative something y. All my cameras y are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position is wrong. What should = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position ! Help please i dohave been stuck at this problem for 4 months. I just want the camera positions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

image description

image description image description image description image description image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!! axis. It should be negative something y. All my cameras y are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position ! Help please i have been stuck at this problem for 4 months. I just want the camera positions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!position

image description

image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis. axis !!!!!!!!!!!!! It should be negative something y. All my cameras y coordinate are 30 something. something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera positionposition. Can i send the code and data to anyone ? HELP ME FIND THE CAMERA POSITION PLEASE IT HAS BEEN 3 MONTHS AND I AM GOING TO FAIL OH GOD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

image description

image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!!!!!!!!!!!! It should be negative something y. All my cameras y coordinate are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position. Can i send the code and data to anyone ? HELP ME FIND THE CAMERA POSITION PLEASE IT HAS BEEN 3 MONTHS AND I AM GOING TO FAIL OH GOD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Camera positions

87.3212582849046; 31.93218648966307; 13.06565020386278]

[88.33600161820506; 36.45175643361132; 13.09339437945696]

[52.67469116679835; 32.05365845570439; 12.67307503062286]

[53.09438819350136; 36.17409639334836; 12.70318338140262]

[9.268389455871184; 35.52733695765274; 14.36430399165124]

[9.21543336317054; 38.71223919680707; 14.1736490348868]

Why do all the Y positions look wrong !!?? Is it a fatal error with opencv 3.0 calibratecamera ???????????????????????

image description

image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!!!!!!!!!!!! It should be negative something y. All my cameras y coordinate are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position. Can i send the code and data to anyone ? HELP ME FIND THE CAMERA POSITION PLEASE IT HAS BEEN 3 MONTHS AND I AM GOING TO FAIL OH GOD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Camera positions

87.3212582849046; 31.93218648966307; 13.06565020386278]

[88.33600161820506; 36.45175643361132; 13.09339437945696]

[52.67469116679835; 32.05365845570439; 12.67307503062286]

[53.09438819350136; 36.17409639334836; 12.70318338140262]

[9.268389455871184; 35.52733695765274; 14.36430399165124]

[9.21543336317054; 38.71223919680707; 14.1736490348868]

Why do all the Y positions look wrong !!?? Is it a fatal error with opencv 3.0 calibratecamera ???????????????????????

image description

image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!!!!!!!!!!!! It should be negative something y. All my cameras y coordinate are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position. Can i send the code and data to anyone ? HELP ME FIND THE CAMERA POSITION PLEASE IT HAS BEEN 3 MONTHS AND I AM GOING TO FAIL OH GOD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Camera positions

87.3212582849046; 31.93218648966307; 13.06565020386278]

[88.33600161820506; 36.45175643361132; 13.09339437945696]

[52.67469116679835; 32.05365845570439; 12.67307503062286]

[53.09438819350136; 36.17409639334836; 12.70318338140262]

[9.268389455871184; 35.52733695765274; 14.36430399165124]

[9.21543336317054; 38.71223919680707; 14.1736490348868]

Why do all the Y positions look wrong !!?? Is it a fatal error with opencv 3.0 calibratecamera ???????????????????????

EDIT: i changed to CV_CALIB_FIX_ASPECT_RATIO and the error has dropped to 19. how do i make it drop to ~1. help

image description

image description image description

Extract camera position

Hi

Given a set of points in world coordinates lying around a field, how do i extract the POSITION in XYZ of the camera ?

Help thanks

EDIT: double cv::calibrateCamera gives me 90 error and my camera positions are wrong.

Position of camera 1 is [87.32213358065832; 31.93220642490884; 13.05887540297087] Camera 1 is not at 30 meters in the y axis !!!!!!!!!!!!! It should be negative something y. All my cameras y coordinate are 30 something. I have checked the coordinates of the points and the image and confirm they are correct.13.05887540297087]

I input the into the function following the tutorial http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

calibrateCamera(World_Coords, Image_Coords, Size(1920,1080), cameraMatrix, distCoeffs, rvecs, tvecs, CV_CALIB_FIX_K4 | CV_CALIB_FIX_K5);

The points in world_coords and Image_coords are arranged such that they correspond to each other.

Then i use rodrigues() to extract the 3x3 rot matrix then the camera position = - rot_matrix.transpose() * tvec.

But I am not getting the right camera position. Can i send the code and data to anyone ? HELP ME FIND THE CAMERA POSITION PLEASE IT HAS BEEN 3 MONTHS AND I AM GOING TO FAIL OH GOD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Camera positions

87.3212582849046; 31.93218648966307; 13.06565020386278]

[88.33600161820506; 36.45175643361132; 13.09339437945696]

[52.67469116679835; 32.05365845570439; 12.67307503062286]

[53.09438819350136; 36.17409639334836; 12.70318338140262]

[9.268389455871184; 35.52733695765274; 14.36430399165124]

[9.21543336317054; 38.71223919680707; 14.1736490348868]

Why do all the Y positions look wrong !!?? Is it a fatal error with opencv 3.0 calibratecamera ???????????????????????

EDIT: i changed to CV_CALIB_FIX_ASPECT_RATIO and the error has dropped to 19. how do i make it drop to ~1. help

image description

image description image description