1 | initial version |
Well your problem is in the error message "Unsupported image type, must be 8bit gray or RGB image. " So either supply a grayscale or RGB image. Opencv reads image as BGR per default. Its easy to convert between them with cv2.cvtColor()
P.S I really like spanish(Hola amigo) but try not to mix english variables names with spanish - its hard to understand imho.