Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints().

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

Process so far....

Detect board corners. Detect ball locations, and fit a circle. Calculate rvecs and tvecs for board and the two balls. Use projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints().

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

Detect board corners. Detect ball locations, and fit a circle. Calculate rvecs and tvecs for board and the two balls. Use projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints().cv::ProjectPoints(). We are working with a fully calibrated camera with know camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

Detect board corners. Detect ball locations, and fit a circle. Calculate rvecs and tvecs for board and the two balls. Use projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints(). We are working with a fully calibrated camera with know known camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

Detect board corners. Detect ball locations, and fit a circle. Calculate rvecs and tvecs for board and the two balls. Use projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints(). We are working with a fully calibrated camera with known camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

  • Detect board corners. corners. Detect ball ball locations, and fit a circle. Calculate rvecs and tvecs for board board and the two balls. balls. Use projectPoints projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints(). We are working with a fully calibrated camera with known camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

  • Detect board corners. Detect ball ball
  • locations, and fit a circle. circle.
  • Calculate rvecs and tvecs for board board
  • and the two balls. Use projectPoints projectPoints
  • to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints(). We are working with a fully calibrated camera with known camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

  • Detect board corners.
  • Detect ball
  • ball locations, and fit a circle.
  • Calculate rvecs and tvecs for board
  • board and the two balls.
  • Use projectPoints
  • projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection once locations and velocity are determined.

Kind regards,

Daniel

World Co-ordinates and Object Co-ordinates

Hello,

I am working with cv::SolvePnp(), cv::ProjectPoints(). We are working with a fully calibrated camera with known camera matrix and distortion coefficients.

Given a detected marker, it is possible to get the rvec and tvec for a given 3D model.

This has been done for two types of model, a board model and a ball model. We then get three sets of tvecs/rvecs, one for the board and then two more models for the balls. As shown below.....

image description

How do we relate these? We can project the model points into the image usings the result of solvepnp.

How do the rvecs and tvecs relate in this case? Is it possible to get the location of each ball on the board in terms of it's x,y,z location relative to the board model?

image description

The board is shaped as (0,0), (1,0), (1,1), (0,1).

The ball are circles centered at 0, with radius 0.1, which is in scale with the real world objects.

Process so far....

  • Detect board corners.
  • Detect ball locations, and fit a circle.
  • Calculate rvecs and tvecs for board and the two balls.
  • Use projectPoints to project model into image.

Can we get more information on where the balls are on the board? The ultimate aim is collision detection detection/prediction once locations and velocity are determined.

Kind regards,

Daniel