MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / parse_prompt_chars

Function parse_prompt_chars

app/services/tenvision_adapter.py:76–81  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

74 return extract_chinese_chars(compact)
75
76
77def order_points(points):
78 pts = np.asarray(points, dtype=np.float32)
79 if pts.shape != (4, 2):
80 return pts
81 sums = pts.sum(axis=1)
82 diffs = np.diff(pts, axis=1).reshape(-1)
83 top_left = pts[np.argmin(sums)]
84 bottom_right = pts[np.argmax(sums)]

Callers 3

find_prompt_itemFunction · 0.85
build_prompt_charsFunction · 0.85
run_pipeline_bytesFunction · 0.85

Calls 2

normalize_textFunction · 0.85
extract_chinese_charsFunction · 0.85

Tested by

no test coverage detected