Questions tagged [opencv-solvepnp]

This tag is used in questions related to estimating the pose of an object. In other words, the relative orientation and position with respect to a camera

The 'PNP' in solvepnp means Perspective-n-Point.

For more details camera calibration and 3D reconstruction has a detailed explanation. And if that is not enough, Head pose estimation using OpenCV can help you further.

98 questions
0
votes
1 answer

OpenCV solvePnP get position of pattern origin relative to camera

I'm currently trying to get the relative position of two Kinect v2s by getting the position of a tracking pattern both cameras can see. Unfortunately I can't seem to get the correct position of the patterns origin. This is my current code to get the…
Jay Tea
  • 43
  • 5
0
votes
1 answer

Python: solvePnP( ) not enough values to unpack?

I'm having problem with a function called cv2.solvePnP from OpenCV. This function is used to get a pose estimation of a chess board. After the following code I get an error: for fname in glob.glob('Images/Calibragem/img1*.jpg'): img =…
0
votes
1 answer

how to calculate the inliers points from my rotation and translation matrix?

In estimate the camera pose using cv::solvePnPRansac, the input are objectPoints and imagePoints. And the output are the rotation and translation matrix, plus number of inliers points I make to use GA “Gigantic algorithm” to generate a new…
0
votes
0 answers

Match the given Coordinates from the template in the scaled and rotated image using OpenCV and Python

This is the image taken from the camera I am trying to get the camera position and yaw, pitch, roll angle of the camera. But I am stuck in pointing the deformed object in the picture. My approach is - 1) Find the matching coordinates using ORB…
Ayirus
  • 1
  • 2
0
votes
2 answers

pose estimation: determine whether rotation and transmation matrix are right

Recently I'm struggling with a pose estimation problem with a single camera. I have some 3D points and the corresponding 2D points on the image. Then I use solvePnP to get the rotation and translation vectors. The problem is, how can I determine…
dudu
  • 801
  • 1
  • 10
  • 32
0
votes
0 answers

OpenCV solvePnP method works only of a small region

When I'm trying to recognize using solvePnP algorithm I'm receiving the data that helps to calculate sizes only near the bounds of the points I put into the solvePnP function. The other sizes are incorrect. Why? Is the reason - wrong camera…
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
-1
votes
0 answers

Finding distance from camera using SolvePnp

I am trying to find distance of a person from the camera in a video using landmarks and cv2.solvePnp function. Ideally I want to get distance in some real world unit like metres/cm/mm I have used Mediapipe pose detector to find 2d and 3d landmarks…
-1
votes
1 answer

OpenCV Explanation solvenpn

Can anyone give me more explanation about the opencv function solvepnp()? The opencv documentation says bool cv::solvePnP ( InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, …
SVL
  • 7
  • 8
1 2 3 4 5 6
7