Ask Your Question
1

How can I use UMat in Python?

asked 2017-06-04 03:56:13 -0600

gaussian37 gravatar image

How can I use UMat in Python?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-07-06 18:46:32 -0600

GaryB gravatar image

mypython_umat = cv2.UMat(myNumpyMat)

or

mypython_umat = cv2.UMat(myOpenCVMat)

or:

UMat img = imread( "lena.jpg", IMREAD_COLOR ).getUMat( ACCESS_READ );

or directly:

data_dst_um = cv.UMat(128, 128, cv.CV_64F) # from size/type

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-04 03:56:13 -0600

Seen: 4,848 times

Last updated: Jun 04 '17