here the code:
import cv2
import numpy
img = cv2.VideoCapture(0)
run = True
while run:
frame = img.read()
cv2.imshow(“baka”, “hi”)
this the error it gave me i cant find a doc on what a mat is ment to be
cv2.imshow(“baka”, [(0,0,0)])
cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function ‘imshow’
Overload resolution failed:
- mat is not a numpy array, neither a scalar
- Expected Ptr<cv::cuda::GpuMat> for argument ‘mat’
- Expected Ptr<cv::UMat> for argument ‘mat’
ive tryed to look for what the gpumat is with no luck