Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TencentQQGYLab/AppAgent
/ get_unit_len
Function
get_unit_len
scripts/utils.py:64–68 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
62
63
def
draw_grid(img_path, output_path):
64
def
get_unit_len(n):
65
for
i in range(1, n + 1):
66
if
n % i == 0 and 120 <= i <= 180:
67
return
i
68
return
-1
69
70
image = cv2.imread(img_path)
71
height, width, _ = image.shape
Callers
1
draw_grid
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected