Ask Your Question

What does OpenCV Python interface miss some key classes?

asked 2016-01-21 00:14:00 -0500

acgtyrant gravatar image

I am writing a Python script, and I am shocked that I find that there is no such cv2.Mat and cv2.Rect classes, so that I can not construct variables.

I do not understand why does Python interface miss these key classes.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-21 00:43:37 -0500

berak gravatar image

updated 2016-01-21 00:45:29 -0500

those classes do not exist.

instead numpy arrays are used for Mat's or images, and ordinary python tuples for Rect, Point and such.

please have a look at the python tutorials, like the basic ops

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-01-21 00:14:00 -0500

Seen: 52 times

Last updated: Jan 21 '16