Restored check chessboard parameters
authorMaksim Shabunin <maksim.shabunin@itseez.com>
Wed, 13 Jul 2016 13:03:47 +0000 (16:03 +0300)
committerMaksim Shabunin <maksim.shabunin@itseez.com>
Wed, 13 Jul 2016 13:03:47 +0000 (16:03 +0300)
modules/calib3d/src/checkchessboard.cpp

index 5f95461..88c6baf 100644 (file)
@@ -61,8 +61,8 @@ int cvCheckChessboardBinary(IplImage* src, CvSize size);
 
 static void icvGetQuadrangleHypotheses(CvSeq* contours, std::vector<std::pair<float, int> >& quads, int class_id)
 {
-    const float min_aspect_ratio = 0.2f;
-    const float max_aspect_ratio = 5.0f;
+    const float min_aspect_ratio = 0.3f;
+    const float max_aspect_ratio = 3.0f;
     const float min_box_size = 10.0f;
 
     for(CvSeq* seq = contours; seq != NULL; seq = seq->h_next)