USES cv2 to display images:
import tensorflow as tf
import cv2 as cv
image = cv.imread('F:\CODES\n07740461_173.jpg')
cv.imshow("input", image)
error:
p>
resolution 1: changes the “\” of the image path to “/” to display correctly.
image = cv.imread('F:/CODES/n07740461_173.jpg')
resolution 2: in the image path before the “r”, can be displayed correctly.
image = cv.imread(r'F:\CODES\n07740461_173.jpg')
p>
div>
Read More:
- “Typeerror: invalid dimensions for image data” in Matplotlib drawing imshow() function
- OpenCV error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor‘
- plt.show () and plt.imshow The difference between ()
- cv2.error: OpenCV(3.4.2) error: (-215:Assertion failed) !empty() in function ‘detectMultiScale‘
- Android get screen width and height and get control width and height
- Imshow() reports an error after C + + opencv 4.5.1 configures the environment
- (-215:Assertion failed) 0 <= contourIdx && contourIdx < (int)last in function ‘cv::drawContours‘
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- error: (-215:Assertion failed) !ssize.empty() in function ‘resize‘
- Copying a param with shape torch. Size ([262, 2048]), parameter size does not match
- Error in comparing the size function of STL with negative number
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- plt.plot and plt.imshow difference
- Error: (- 215: assertion failed)
- Android gets the height and width of the screen
- Python opencv (3) get image size
- Configure Nvidia graphics card on ubuntu18.04 xrandr Failed to get size of gamma for output default
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor