personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix ArUco detection perf cliff with OpenCV 4.13

minMarkerPerimeterRate=0.002 triggers a catastrophic slowdown in
OpenCV 4.13 on certain images (50ms → 14s per frame). Raise to 0.003
which stays fast (~76ms) and still detects 16px tags on up to 4K displays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+3 -2
+3 -2
observe/aruco.py
··· 31 31 if _detector is None: 32 32 dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_50) 33 33 params = cv2.aruco.DetectorParameters() 34 - # Tuned parameters for small markers 35 - params.minMarkerPerimeterRate = 0.002 34 + # Tuned for 16px CSS tags (~0.011 rate on 1080p, ~0.005 on 4K). 35 + # Values below 0.003 trigger an OpenCV 4.13 perf cliff (ms → seconds). 36 + params.minMarkerPerimeterRate = 0.003 36 37 params.maxMarkerPerimeterRate = 8.0 37 38 params.adaptiveThreshWinSizeMin = 3 38 39 params.adaptiveThreshWinSizeMax = 23