Image Processing Using OpenCV
·
AI/computer vision
# 파이선 업그레이드pip install --upgrade pip# 라이브러리 설치pip install opencv-python 데이터 가져오기import cv2# 로컬에서 이미지 가져오기image = cv2.imread('이미지 경로')# 이미지 로드 확인if image is None: print("Error: Unable to load image. Please check the file path.") exit()# 이미지 확인 (height, width, channels)print(f"Original Image Shape: {image.shape}")# 로컬 창에 이미지 출력cv2.imshow('Original Image', image)cv2.waitKey(0) # 사용자가 아무 키나 누..