Ask Your Question
0

Definition of python functions

asked 2016-10-24 23:16:23 -0600

Hi,

I am using camera pose estimation python functions in OpenCV 3.0.0:

E, mask = cv2.findEssentialMat(p1, p0, focal, pp, cv2.RANSAC, 0.999, 1.0); R, t = recoverPose(E, p1, p0, focal, pp, mask);

The definition seems to be wrong.

Where can I find the python definitions of these 3.0.0 functions.

Thanks.

edit retag flag offensive close merge delete

Comments

1

"The definition seems to be wrong."

what do you mean ? can you explain ?

berak gravatar imageberak ( 2016-10-24 23:59:12 -0600 )edit

I am looking for python definitions for some opencv functions. By pyton definition I mean, what are the input and output parameters.

I couldn't python definitions for functions that were newly added in OpenCV 3.0.

In particular, I am looking for python definitions for following functions: cv2.findEssentialMat cv2.recoverPose

--RG

RandomGuy gravatar imageRandomGuy ( 2016-10-25 11:06:16 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2016-10-30 00:52:03 -0600

for python there always show us very friendly error tracking, so if u can show us the all error message , that will very help people re-help you; like :

In [1]: import cv2

In [2]: cv2.findChessboardCorners()

TypeError Traceback (most recent call last) <ipython-input-2-0ea99b6628b2> in <module>() ----> 1 cv2.findChessboardCorners()

TypeError: Required argument 'image' (pos 1) not found ...

and for my guess findEssentialMat is maybe not in cv3 ? compilation - How to enable findEssentialMat in opencv 2.4.9? - Stack Overflow http://stackoverflow.com/questions/15...

BTW: and other possible, not the findEssentialMat error, just u python code error?

E, mask = cv2.findEssentialMat(p1, p0, focal, pp, cv2.RANSAC, 0.999, 1.0); R, t = recoverPose(E, p1, p0, focal, pp, mask);

for this code ,look like not right python code...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-24 23:16:23 -0600

Seen: 1,890 times

Last updated: Oct 30 '16