Python/Open_CV (1) 썸네일형 리스트형 Python - Machine Running ####### test 이미지 만들기 ####### test_digits= cv2.imread('./Data/digits.jpg') #크기확인 re_digits= cv2.resize(test_digits,(int(test_digits.shape[1]*0.2), int(test_digits.shape[0]*0.2))) #사이즈 줄이기 crop_digits=re_digits[0:int(re_digits.shape[0]-10), 15:int(re_digits.shape[1]-40)] #불필요한부분 자르기 gray_digits = cv2.cvtColor(crop_digits,cv2.COLOR_BGR2GRAY)#그레이화 retval,bin_digits= cv2.threshold(gray_digits, 170, 2.. 이전 1 다음