79366562

Date: 2025-01-18 04:33:26
Score: 0.5
Natty:
Report link

The numpy.zeros shape parameter has type int or tuple of ints so it shoud be

image = np.zeros((480, 640, 3), dtype=np.uint8)

Since you have CUDA installed you could do the same with

gpu_image = cv2.cuda_GpuMat(480, 640, cv2.CV_8UC3, (0, 0, 0))
image = gpu_image.download()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lewis