728x90 반응형 cv2.Subdiv2D1 error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\subdivision2d.cpp:288: error: (-211:One of the arguments' values is out of range) in function 'cv::Subdiv2D::locate' cv2.Subdiv2D는 2D 평면을 Delaunay triangulation 하는 함수다. 이 함수를 사용하다가 제목과 같은 오류가 발생했다. chatGPT를 활용하여 함수를 만들었는데 코드는 아래와 같다. def get_triangulation(landmarks1, landmarks2): """ Given two sets of corresponding landmarks, computes and returns their Delaunay triangulation. """ # Create an empty rectangle that covers both images rectangle = (0, 0, max(landmarks1.max(axis=0)[0], landmarks2.max(axis=0)[0]), ma.. 2023. 4. 10. 이전 1 다음 728x90 반응형