Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JimmyHHua/opencv_tutorials
/ get_template
Function
get_template
python/code_073/opencv_073.py:4–7 ·
view source on GitHub ↗
(binary, boxes)
Source
from the content-addressed store, hash-verified
2
import
numpy
as
np
3
4
def
get_template(binary, boxes):
5
x, y, w, h = boxes[0]
6
roi = binary[y:y+h, x:x+w]
7
return
roi
8
9
10
def
detect_defect(binary, boxes, tpl):
Callers
1
opencv_073.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected