Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/makelove/OpenCV-Python-Tutorial
/ toint
Function
toint
官方samples/fitline.py:42–43 ·
view source on GitHub ↗
(p)
Source
from the content-addressed store, hash-verified
40
w, h = 512, 256
41
42
def
toint(p):
43
return
tuple(map(int, p))
44
45
def
sample_line(p1, p2, n, noise=0.0):
46
p1 = np.float32(p1)
Callers
1
update
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected