Python Forum

Full Version: i need help for opencv apriltag detect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I photographed april tag using raspberry pi 4 B+(8GB), arducam IMX298 MIPI 16MP Color Camera.
The shooting mode is width 1920 * height 1080.
I want to extract the coordinate values for each corner of the april tag from the picture I took.

When I type the command on the last line I get the message below
Let me know what to fix
(cv) pi@raspberrypi:~ $ python
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apriltag
>>> import cv2
>>> image = cv2.imread("test.jpg")
>>> gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
>>> options = apriltag.DetectorOptions(families="tag36h11")
>>> detector = apriltag.Detector(options)
>>> results = detector.detect(gray)
Error:
warning: too many borders in contour_detect (max of 32767!) Segmentation fault