코랩에서영상불러오기1 1_5 Colab에서 영상 불러오기 영상 불러오기 구글 코랩에서 기본 작업 후, 영상을 구글 드라이브에 올리고 새파일로 복사하는 과정이다. 구글드라이브 마운트 from google.colap import drive drive.mount('/content/drive') 또는 이렇게해도 된다. drive.mount('drive') 영상 올리기 from Google.colab.patches import cv2_imshow import cv2 img = cv2.imread('./lena.jpg') cv2_imshow(img) 이미지 새 이름으로 복사하기 cv2.imwrite('/lena2.jpg', img) 같은 디렉터리에 두 파일이 있다. 원본 'Lena.jpg', 사본 'lena2.jpg'. 2022. 3. 23. 이전 1 다음