I want to read an image from folder and display then from user input insert some details in dataframe. I need to loop 1000 images for annotation but i only see input not the image ''' img =Image('/content/drive/MyDrive/dataset/images/01.jpg',cv2.IMREAD_UNCHANGED) cv2_imshow(img) id = input("Enter id ") '''
Asked
Active
Viewed 647 times
0
-
attach the screenshot of your code snippet and output, then it will be helpful to get your problem. – Faizanur Rahman May 25 '22 at 05:43
-
you can try matplotlib.inline magic function at the top of notebook %matplotlib inline – Faizanur Rahman May 25 '22 at 05:46
1 Answers
0
Google colab crashes if you try to display image using cv2.imshow() instead import from google.colab.patches import cv2_imshow and display using cv2_imshow()

Faizanur Rahman
- 474
- 3
- 12