OpenCV
OpenCV - CircleGrid
Hoon[]
2022. 11. 15. 15:23
src = cv2.imread(path + 'circleGrid.jpg')
print('이미지쉐입', src.shape)
src_ = cv2.resize(src,dsize=(600,399), interpolation=cv2.INTER_AREA)
gray = cv2.cvtColor(src_, cv2.COLOR_BGR2GRAY)
ret, corners = cv2.findCirclesGrid(gray,(6,4), None)
img2 = cv2.drawChessboardCorners(src_,(6,4),corners,ret)
cv2.imshow('Chess', img2)
cv2.waitKey()
cv2.destroyAllWindows()