MCPcopy 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

2import numpy as np
3
4def 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
10def detect_defect(binary, boxes, tpl):

Callers 1

opencv_073.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected