question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RecoverPose method question

See original GitHub issue

Summary of your issue

when using recoverPose ,the application close immediately…please help ,thank you!

Environment

Write your environment. win10 vs2017

What did you do when you faced the problem?

Write here

Example code:

//cvp1 and cvp2 are List<OpenCvSharp.Point2f> with 8 points individually
            InputArray p1 = InputArray.Create(cvp1);
            InputArray p2 = InputArray.Create(cvp2);

            Mat r = new Mat();
            Mat tt = new Mat();

            OutputArray rr = OutputArray.Create(r);
            OutputArray ttt = OutputArray.Create(tt);

            OpenCvSharp.Cv2.RecoverPose(Essential, p1 , p2 , K, rr, ttt);

Output:

when run the method,the application close immediately

What did you intend to be?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andrealu2012commented, Oct 15, 2020

Essential: [1.503247056657373e-16, -7.074103796034695e-16, -7.781514175638166e-16; 6.720398606232961e-16, -6.189840821530359e-17, -0.7071067811865476; 7.781514175638166e-16, 0.7071067811865475, -2.033804841359975e-16]

cvp1: [1017.0883, 848.23529; 1637, 848.23529; 1637, 1648.7059; 1017.0883, 1648.7059; 2282.2144, 772; 3034.9644, 772; 3034.9644, 1744; 2282.2144, 1744]

cvp2: [414.88824, 848.23529; 1034.8, 848.23529; 1034.8, 1648.7059; 414.88824, 1648.7059; 1550.9714, 772; 2303.7214, 772; 2303.7214, 1744; 1550.9714, 1744]

K: [3011, 0, 1637; 0, 3024, 1204; 0, 0, 1]

Thank you very much!

0reactions
shimatcommented, Oct 16, 2020

Yes, you can. #1072 has been merged into master. Or you can use the nightly build version of nuget. Package source: https://ci.appveyor.com/nuget/opencvsharp

Read more comments on GitHub >

github_iconTop Results From Across the Web

opencv 3 essentialmatrix and recoverpose
The recoverPose function uses the cheirality constraint (positive depth) to determine which rotation and translation out of the 4 possible ...
Read more >
OpenCV recoverPose from essential matrix E
My questions is: There is a way to obtain more inliers from recoverPose function? If not, There is alternate way to obtain R...
Read more >
cv.recoverPose - mexopencv
This function decomposes an essential matrix using cv.decomposeEssentialMat and then verifies possible pose hypotheses by doing cheirality check. The cheirality ...
Read more >
findEssentialMat/recoverPose issue #17348 - opencv/ ...
I am running into what seems to be a similar problem. I take 2 photos, translated sideways about 30cm from one another, facing...
Read more >
Python recoverPose Examples, cv2. ...
Python recoverPose - 41 examples found. These are the top rated real world Python examples of cv2.recoverPose extracted from open source projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found