Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有使用 python 制作的 OpenCV 模板匹配代码。现在我正在寻找一种方法来告诉 OpenCV 仅在提供的区域(x、y、w、h)中搜索,这可能吗?
问候,菲利普
roi = image[y:y+h , x:x+w] cv2.matchTemplate(roi, templ, ...