Skip to content

findCirclesGrid can't detect rotated SYMMETRIC_GRID #24964

@AleksandrPanov

Description

@AleksandrPanov

System Information

OpenCV version: 4.9.0 (last version)

Detailed description

findCirclesGrid can find the circles (blobls), but can't find grid if the grid is rotated.

Steps to reproduce

test

import cv2 as cv
frame = cv.imread("test.png")
circle_board_size = (6, 7)
ret, circle_centers = cv.findCirclesGrid(frame, circle_board_size)
cv.drawChessboardCorners(frame, circle_board_size, circle_centers, ret)
print(ret)
cv.imshow("CircleGridDetect", frame)
cv.waitKey(0)

result:
False
CircleGridDetect

It works if you rotate the grid.
image

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions