griddetection #그리드검출 #opencv #computervision

Deep Learning/Computer Vision

그리드 검출

import cv2 import matplotlib.pyplot as plt %matplotlib inline flat_chess = cv2.imread('../DATA/flat_chessboard.png') plt.imshow(flat_chess,cmap='gray') 그리드 검출 시 그리드가 본질적으로 체스판같이 정형화되어야함 found, corners = cv2.findChessboardCorners(flat_chess,(7,7)) 그리드 사이즈 지정 전체 이미지가 8*8라면, 끝에 있는 가장자리를 탐지하기 위해 7*7로 지정함 found는 체스보드 타입의 모서리를 찾았는지를 나타냄 if found: print('OpenCV was able to find the corners') else: prin..

해파리냉채무침
'griddetection #그리드검출 #opencv #computervision' 태그의 글 목록