Ask Your Question
1

How can I use UMat in Python?

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

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 -0500

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 3,037 times

Last updated: Jun 04 '17