i need help for opencv apriltag detect - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: i need help for opencv apriltag detect (/thread-31348.html) |
i need help for opencv apriltag detect - bleulake - Dec-06-2020 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)
|