I am on the step to get image, but I get a problem when runing the 'sharpness()'. And the error is attached below. I check the format of image, which is numpy arrary, but still getting the below problem. I noticed you once to read the image from the path, which enables the images in the format of cv2. I also tried the convert image to the format of cv2, but still get the problem. Can you help to check?
cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function 'cvtColor'
I am on the step to get image, but I get a problem when runing the 'sharpness()'. And the error is attached below. I check the format of image, which is numpy arrary, but still getting the below problem. I noticed you once to read the image from the path, which enables the images in the format of cv2. I also tried the convert image to the format of cv2, but still get the problem. Can you help to check?
cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function 'cvtColor'