Ask Your Question
1

What does OpenCV Python interface miss some key classes?

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

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
3

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

berak gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 350 times

Last updated: Jan 21 '16