Changing brightness and contrast cv2.cuda python
Hi all, I'm trying to modify brightness and contrast of an Image but it returns the error
cv2.error: OpenCV(4.2.0-dev) F:\Dev\Repos\opencv_fork_1\modules\core\src\matrix_wrap.cpp:359: error: (-213:The function/feature is not implemented) getGpuMat is available only for cuda::GpuMat and cuda::HostMem in function 'cv::_InputArray::getGpuMat'
my code,
import time, traceback
import numpy
import cv2 as cv
import numpy as np
img = cv.imread('test.jpeg')
raw = cv.cuda_GpuMat()
raw.upload(img)
alpha = 50
beta = 45
b = raw.convertTo(cv.CV_8U,alpha,beta)
img = b.download()
cv.imshow("Corrected",img)
opencv version ? from where ? did you build it with CUDA support ?
(i don't think, there's any prebuilt cv2, that supports it)
I downloaded a built from https://jamesbowley.co.uk/downloads/ this site with cuda support opencv 4.2